]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/grid_wrap.cpp
Added FindById
[wxWidgets.git] / wxPython / src / gtk / grid_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.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 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
125 #endif
126
127
128 /***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
138 #include "Python.h"
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 #define SWIG_PY_INT 1
145 #define SWIG_PY_FLOAT 2
146 #define SWIG_PY_STRING 3
147 #define SWIG_PY_POINTER 4
148 #define SWIG_PY_BINARY 5
149
150 /* Flags for pointer conversion */
151
152 #define SWIG_POINTER_EXCEPTION 0x1
153 #define SWIG_POINTER_DISOWN 0x2
154
155 /* Exception handling in wrappers */
156 #define SWIG_fail goto fail
157
158 /* Constant information structure */
159 typedef struct swig_const_info {
160 int type;
161 char *name;
162 long lvalue;
163 double dvalue;
164 void *pvalue;
165 swig_type_info **ptype;
166 } swig_const_info;
167
168 /* Common SWIG API */
169 #define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171 #define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173 #define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175
176 /* Python-specific SWIG API */
177 #define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
183 #define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185 #define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
187
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199
200 /* Contract support */
201
202 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
203
204 #ifdef __cplusplus
205 }
206 #endif
207
208
209
210 /* -------- TYPES TABLE (BEGIN) -------- */
211
212 #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0]
213 #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1]
214 #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2]
215 #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3]
216 #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4]
217 #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5]
218 #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6]
219 #define SWIGTYPE_p_wxGridCellRenderer swig_types[7]
220 #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8]
221 #define SWIGTYPE_p_wxGridCellAttr swig_types[9]
222 #define SWIGTYPE_p_wxColour swig_types[10]
223 #define SWIGTYPE_p_wxDC swig_types[11]
224 #define SWIGTYPE_p_wxGridTableMessage swig_types[12]
225 #define SWIGTYPE_p_wxGrid swig_types[13]
226 #define SWIGTYPE_p_wxPanel swig_types[14]
227 #define SWIGTYPE_p_wxNotifyEvent swig_types[15]
228 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[16]
229 #define SWIGTYPE_p_wxSize swig_types[17]
230 #define SWIGTYPE_p_wxGridCellCoords swig_types[18]
231 #define SWIGTYPE_p_wxScrolledWindow swig_types[19]
232 #define SWIGTYPE_p_wxWindow swig_types[20]
233 #define SWIGTYPE_p_wxFont swig_types[21]
234 #define SWIGTYPE_p_wxControl swig_types[22]
235 #define SWIGTYPE_p_wxEvent swig_types[23]
236 #define SWIGTYPE_p_wxObject swig_types[24]
237 #define SWIGTYPE_p_wxGridSizeEvent swig_types[25]
238 #define SWIGTYPE_p_wxRect swig_types[26]
239 #define SWIGTYPE_p_long swig_types[27]
240 #define SWIGTYPE_p_wxString swig_types[28]
241 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
242 #define SWIGTYPE_p_wxPoint swig_types[30]
243 #define SWIGTYPE_p_wxGridEvent swig_types[31]
244 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[32]
245 #define SWIGTYPE_p_wxGridTableBase swig_types[33]
246 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[34]
247 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35]
248 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36]
249 #define SWIGTYPE_p_wxGridCellEditor swig_types[37]
250 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38]
251 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[39]
252 #define SWIGTYPE_p_wxPyGridTableBase swig_types[40]
253 #define SWIGTYPE_p_wxGridStringTable swig_types[41]
254 #define SWIGTYPE_p_wxArrayString swig_types[42]
255 #define SWIGTYPE_p_wxCommandEvent swig_types[43]
256 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[44]
257 #define SWIGTYPE_p_wxKeyEvent swig_types[45]
258 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[46]
259 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[47]
260 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[48]
261 #define SWIGTYPE_p_int swig_types[49]
262 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[50]
263 static swig_type_info *swig_types[52];
264
265 /* -------- TYPES TABLE (END) -------- */
266
267
268 /*-----------------------------------------------
269 @(target):= _grid.so
270 ------------------------------------------------*/
271 #define SWIG_init init_grid
272
273 #define SWIG_name "_grid"
274
275 #include "wx/wxPython/wxPython.h"
276 #include "wx/wxPython/pyclasses.h"
277 #include "wx/wxPython/printfw.h"
278
279 #include <wx/grid.h>
280 #include <wx/generic/gridctrl.h>
281
282 DECLARE_DEF_STRING(PanelNameStr);
283 DECLARE_DEF_STRING2(DateTimeFormatStr, wxT("%c"));
284 static const wxString wxPyEmptyString(wxT(""));
285
286
287
288 #define wxPyMake_TEMPLATE(TYPE) \
289 PyObject* wxPyMake_##TYPE(TYPE* source) { \
290 PyObject* target = NULL; \
291 if (source) { \
292 /* Check if there is already a pointer to a Python object in the \
293 OOR data that we can use. */ \
294 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
295 if (data) { \
296 target = data->m_obj; \
297 Py_INCREF(target); \
298 } \
299 /* Otherwise make a new wrapper for it the old fashioned way and \
300 give it the OOR treatment */ \
301 if (! target) { \
302 target = wxPyConstructObject(source, wxT(#TYPE), False); \
303 if (target) \
304 source->SetClientObject(new wxPyOORClientData(target)); \
305 } \
306 } else { /* source was NULL so return None. */ \
307 Py_INCREF(Py_None); target = Py_None; \
308 } \
309 return target; \
310 } \
311
312
313 wxPyMake_TEMPLATE(wxGridCellRenderer)
314 wxPyMake_TEMPLATE(wxGridCellEditor)
315 wxPyMake_TEMPLATE(wxGridCellAttr)
316 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
317 wxPyMake_TEMPLATE(wxGridTableBase)
318
319
320
321 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
322 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
323 wxGridCellAttr* rval = NULL; \
324 bool found; \
325 wxPyBeginBlockThreads(); \
326 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
327 PyObject* ro; \
328 wxGridCellAttr* ptr; \
329 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
330 if (ro) { \
331 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
332 rval = ptr; \
333 Py_DECREF(ro); \
334 } \
335 } \
336 wxPyEndBlockThreads(); \
337 if (! found) \
338 rval = PCLASS::CBNAME(a, b, c); \
339 return rval; \
340 } \
341 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
342 return PCLASS::CBNAME(a, b, c); \
343 }
344
345
346
347 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
348 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
349 wxPyBeginBlockThreads(); \
350 bool found; \
351 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
352 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
353 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
354 Py_DECREF(obj); \
355 } \
356 wxPyEndBlockThreads(); \
357 if (! found) \
358 PCLASS::CBNAME(attr, a, b); \
359 } \
360 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
361 PCLASS::CBNAME(attr, a, b); \
362 }
363
364
365
366 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
367 void CBNAME(wxGridCellAttr *attr, int val) { \
368 wxPyBeginBlockThreads(); \
369 bool found; \
370 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
371 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
372 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
373 Py_DECREF(obj); \
374 } \
375 wxPyEndBlockThreads(); \
376 if (! found) \
377 PCLASS::CBNAME(attr, val); \
378 } \
379 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
380 PCLASS::CBNAME(attr, val); \
381 }
382
383
384
385 #define PYCALLBACK_INT__pure(CBNAME) \
386 int CBNAME() { \
387 wxPyBeginBlockThreads(); \
388 int rval = 0; \
389 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
390 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
391 wxPyEndBlockThreads(); \
392 return rval; \
393 }
394
395
396
397 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
398 bool CBNAME(int a, int b) { \
399 wxPyBeginBlockThreads(); \
400 bool rval = 0; \
401 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
402 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
403 wxPyEndBlockThreads(); \
404 return rval; \
405 }
406
407
408 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
409 wxString CBNAME(int a, int b) { \
410 wxPyBeginBlockThreads(); \
411 wxString rval; \
412 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
413 PyObject* ro; \
414 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
415 if (ro) { \
416 rval = Py2wxString(ro); \
417 Py_DECREF(ro); \
418 } \
419 } \
420 wxPyEndBlockThreads(); \
421 return rval; \
422 }
423
424
425 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
426 void CBNAME(int a, int b, const wxString& c) { \
427 wxPyBeginBlockThreads(); \
428 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
429 PyObject* s = wx2PyString(c); \
430 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
431 Py_DECREF(s); \
432 } \
433 wxPyEndBlockThreads(); \
434 }
435
436
437 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
438 wxString CBNAME(int a, int b) { \
439 bool found; \
440 wxPyBeginBlockThreads(); \
441 wxString rval; \
442 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
443 PyObject* ro; \
444 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
445 if (ro) { \
446 rval = Py2wxString(ro); \
447 Py_DECREF(ro); \
448 } \
449 } \
450 wxPyEndBlockThreads(); \
451 if (! found) \
452 rval = PCLASS::CBNAME(a, b); \
453 return rval; \
454 } \
455 wxString base_##CBNAME(int a, int b) { \
456 return PCLASS::CBNAME(a, b); \
457 }
458
459
460 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
461 bool CBNAME(int a, int b, const wxString& c) { \
462 bool rval = 0; \
463 bool found; \
464 wxPyBeginBlockThreads(); \
465 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
466 PyObject* s = wx2PyString(c); \
467 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
468 Py_DECREF(s); \
469 } \
470 wxPyEndBlockThreads(); \
471 if (! found) \
472 rval = PCLASS::CBNAME(a,b,c); \
473 return rval; \
474 } \
475 bool base_##CBNAME(int a, int b, const wxString& c) { \
476 return PCLASS::CBNAME(a,b,c); \
477 }
478
479
480
481
482 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
483 long CBNAME(int a, int b) { \
484 long rval; \
485 bool found; \
486 wxPyBeginBlockThreads(); \
487 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
488 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
489 wxPyEndBlockThreads(); \
490 if (! found) \
491 rval = PCLASS::CBNAME(a,b); \
492 return rval; \
493 } \
494 long base_##CBNAME(int a, int b) { \
495 return PCLASS::CBNAME(a,b); \
496 }
497
498
499
500 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
501 bool CBNAME(int a, int b) { \
502 bool rval = 0; \
503 bool found; \
504 wxPyBeginBlockThreads(); \
505 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
506 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
507 wxPyEndBlockThreads(); \
508 if (! found) \
509 rval = PCLASS::CBNAME(a,b); \
510 return rval; \
511 } \
512 bool base_##CBNAME(int a, int b) { \
513 return PCLASS::CBNAME(a,b); \
514 }
515
516
517
518 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
519 double CBNAME(int a, int b) { \
520 bool found; \
521 wxPyBeginBlockThreads(); \
522 double rval; \
523 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
524 PyObject* ro; \
525 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
526 if (ro) { \
527 PyObject* str = PyObject_Str(ro); \
528 rval = PyFloat_AsDouble(str); \
529 Py_DECREF(ro); Py_DECREF(str); \
530 } \
531 } \
532 wxPyEndBlockThreads(); \
533 if (! found) \
534 rval = PCLASS::CBNAME(a, b); \
535 return rval; \
536 } \
537 double base_##CBNAME(int a, int b) { \
538 return PCLASS::CBNAME(a, b); \
539 }
540
541
542
543 #define PYCALLBACK__(PCLASS, CBNAME) \
544 void CBNAME() { \
545 bool found; \
546 wxPyBeginBlockThreads(); \
547 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
548 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
549 wxPyEndBlockThreads(); \
550 if (! found) \
551 PCLASS::CBNAME(); \
552 } \
553 void base_##CBNAME() { \
554 PCLASS::CBNAME(); \
555 }
556
557
558
559
560 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
561 bool CBNAME(size_t a, size_t b) { \
562 bool rval = 0; \
563 bool found; \
564 wxPyBeginBlockThreads(); \
565 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
566 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
567 wxPyEndBlockThreads(); \
568 if (! found) \
569 rval = PCLASS::CBNAME(a,b); \
570 return rval; \
571 } \
572 bool base_##CBNAME(size_t a, size_t b) { \
573 return PCLASS::CBNAME(a,b); \
574 }
575
576
577
578 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
579 bool CBNAME(size_t a) { \
580 bool rval = 0; \
581 bool found; \
582 wxPyBeginBlockThreads(); \
583 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
584 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
585 wxPyEndBlockThreads(); \
586 if (! found) \
587 rval = PCLASS::CBNAME(a); \
588 return rval; \
589 } \
590 bool base_##CBNAME(size_t a) { \
591 return PCLASS::CBNAME(a); \
592 }
593
594
595 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
596 wxString CBNAME(int a) { \
597 bool found; \
598 wxPyBeginBlockThreads(); \
599 wxString rval; \
600 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
601 PyObject* ro; \
602 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
603 if (ro) { \
604 rval = Py2wxString(ro); \
605 Py_DECREF(ro); \
606 } \
607 } \
608 wxPyEndBlockThreads(); \
609 if (! found) \
610 rval = PCLASS::CBNAME(a); \
611 return rval; \
612 } \
613 wxString base_##CBNAME(int a) { \
614 return PCLASS::CBNAME(a); \
615 }
616
617
618 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
619 void CBNAME(int a, const wxString& c) { \
620 bool found; \
621 wxPyBeginBlockThreads(); \
622 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
623 PyObject* s = wx2PyString(c); \
624 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
625 Py_DECREF(s); \
626 } \
627 wxPyEndBlockThreads(); \
628 if (! found) \
629 PCLASS::CBNAME(a,c); \
630 } \
631 void base_##CBNAME(int a, const wxString& c) { \
632 PCLASS::CBNAME(a,c); \
633 }
634
635
636
637
638 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
639 bool CBNAME() { \
640 bool rval = 0; \
641 bool found; \
642 wxPyBeginBlockThreads(); \
643 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
644 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
645 wxPyEndBlockThreads(); \
646 if (! found) \
647 rval = PCLASS::CBNAME(); \
648 return rval; \
649 } \
650 bool base_##CBNAME() { \
651 return PCLASS::CBNAME(); \
652 }
653
654
655
656 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
657 void CBNAME(size_t a, int b) { \
658 bool found; \
659 wxPyBeginBlockThreads(); \
660 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
661 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
662 wxPyEndBlockThreads(); \
663 if (! found) \
664 PCLASS::CBNAME(a,b); \
665 } \
666 void base_##CBNAME(size_t a, int b) { \
667 PCLASS::CBNAME(a,b); \
668 }
669
670
671
672
673 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
674 void CBNAME(int a, int b, long c) { \
675 bool found; \
676 wxPyBeginBlockThreads(); \
677 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
678 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
679 wxPyEndBlockThreads(); \
680 if (! found) \
681 PCLASS::CBNAME(a,b,c); \
682 } \
683 void base_##CBNAME(int a, int b, long c) { \
684 PCLASS::CBNAME(a,b,c); \
685 }
686
687
688
689
690 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
691 void CBNAME(int a, int b, double c) { \
692 bool found; \
693 wxPyBeginBlockThreads(); \
694 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
695 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
696 wxPyEndBlockThreads(); \
697 if (! found) \
698 PCLASS::CBNAME(a,b,c); \
699 } \
700 void base_##CBNAME(int a, int b, double c) { \
701 PCLASS::CBNAME(a,b,c); \
702 }
703
704
705
706 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
707 void CBNAME(int a, int b, bool c) { \
708 bool found; \
709 wxPyBeginBlockThreads(); \
710 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
711 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
712 wxPyEndBlockThreads(); \
713 if (! found) \
714 PCLASS::CBNAME(a,b,c); \
715 } \
716 void base_##CBNAME(int a, int b, bool c) { \
717 PCLASS::CBNAME(a,b,c); \
718 }
719
720
721
722
723
724 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
725 self->SetClientObject(new wxPyOORClientData(_self));
726 }
727
728 class wxPyGridCellRenderer : public wxGridCellRenderer
729 {
730 public:
731 wxPyGridCellRenderer() : wxGridCellRenderer() {};
732
733 // Implement Python callback aware virtual methods
734 void Draw(wxGrid& grid, wxGridCellAttr& attr,
735 wxDC& dc, const wxRect& rect,
736 int row, int col, bool isSelected) {
737 wxPyBeginBlockThreads();
738 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
739 PyObject* go = wxPyMake_wxObject(&grid);
740 PyObject* dco = wxPyMake_wxObject(&dc);
741 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
742 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
743
744 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
745 row, col, isSelected));
746 Py_DECREF(go);
747 Py_DECREF(ao);
748 Py_DECREF(dco);
749 Py_DECREF(ro);
750 }
751 wxPyEndBlockThreads();
752 }
753
754 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
755 int row, int col) {
756 wxSize rval;
757 wxPyBeginBlockThreads();
758 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
759 PyObject* ro;
760 wxSize* ptr;
761 PyObject* go = wxPyMake_wxObject(&grid);
762 PyObject* dco = wxPyMake_wxObject(&dc);
763 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
764
765 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
766 go, ao, dco,
767 row, col));
768 Py_DECREF(go);
769 Py_DECREF(ao);
770 Py_DECREF(dco);
771
772 if (ro) {
773 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
774 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
775 rval = *ptr;
776 }
777 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
778 PyObject* o1 = PySequence_GetItem(ro, 0);
779 PyObject* o2 = PySequence_GetItem(ro, 1);
780 if (PyNumber_Check(o1) && PyNumber_Check(o2))
781 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
782 else
783 PyErr_SetString(PyExc_TypeError, errmsg);
784 Py_DECREF(o1);
785 Py_DECREF(o2);
786 }
787 else {
788 PyErr_SetString(PyExc_TypeError, errmsg);
789 }
790 Py_DECREF(ro);
791 }
792 }
793 wxPyEndBlockThreads();
794 return rval;
795 }
796
797
798 wxGridCellRenderer *Clone() const {
799 wxGridCellRenderer* rval = NULL;
800 wxPyBeginBlockThreads();
801 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
802 PyObject* ro;
803 wxGridCellRenderer* ptr;
804 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
805 if (ro) {
806 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
807 rval = ptr;
808 Py_DECREF(ro);
809 }
810 }
811 wxPyEndBlockThreads();
812 return rval;
813 }
814
815 DEC_PYCALLBACK__STRING(SetParameters);
816
817 PYPRIVATE;
818 };
819
820 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
821
822
823 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
824 self->SetClientObject(new wxPyOORClientData(_self));
825 }
826
827 class wxPyGridCellEditor : public wxGridCellEditor
828 {
829 public:
830 wxPyGridCellEditor() : wxGridCellEditor() {}
831
832 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
833 wxPyBeginBlockThreads();
834 if (wxPyCBH_findCallback(m_myInst, "Create")) {
835 PyObject* po = wxPyMake_wxObject(parent);
836 PyObject* eo = wxPyMake_wxObject(evtHandler);
837
838 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
839 Py_DECREF(po);
840 Py_DECREF(eo);
841 }
842 wxPyEndBlockThreads();
843 }
844
845
846 void BeginEdit(int row, int col, wxGrid* grid) {
847 wxPyBeginBlockThreads();
848 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
849 PyObject* go = wxPyMake_wxObject(grid);
850 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
851 Py_DECREF(go);
852 }
853 wxPyEndBlockThreads();
854 }
855
856
857 bool EndEdit(int row, int col, wxGrid* grid) {
858 bool rv = False;
859 wxPyBeginBlockThreads();
860 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
861 PyObject* go = wxPyMake_wxObject(grid);
862 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
863 Py_DECREF(go);
864 }
865 wxPyEndBlockThreads();
866 return rv;
867 }
868
869
870 wxGridCellEditor* Clone() const {
871 wxGridCellEditor* rval = NULL;
872 wxPyBeginBlockThreads();
873 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
874 PyObject* ro;
875 wxGridCellEditor* ptr;
876 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
877 if (ro) {
878 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
879 rval = ptr;
880 Py_DECREF(ro);
881 }
882 }
883 wxPyEndBlockThreads();
884 return rval;
885 }
886
887
888 void Show(bool show, wxGridCellAttr *attr) {
889 bool found;
890 wxPyBeginBlockThreads();
891 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
892 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
893 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
894 Py_DECREF(ao);
895 }
896 wxPyEndBlockThreads();
897 if (! found)
898 wxGridCellEditor::Show(show, attr);
899 }
900 void base_Show(bool show, wxGridCellAttr *attr) {
901 wxGridCellEditor::Show(show, attr);
902 }
903
904
905 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
906 bool found;
907 wxPyBeginBlockThreads();
908 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
909 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
910 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
911
912 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
913
914 Py_DECREF(ro);
915 Py_DECREF(ao);
916 }
917 wxPyEndBlockThreads();
918 if (! found)
919 wxGridCellEditor::PaintBackground(rectCell, attr);
920 }
921 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
922 wxGridCellEditor::PaintBackground(rectCell, attr);
923 }
924
925
926 DEC_PYCALLBACK___pure(Reset);
927 DEC_PYCALLBACK__constany(SetSize, wxRect);
928 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
929 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
930 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
931 DEC_PYCALLBACK__(StartingClick);
932 DEC_PYCALLBACK__(Destroy);
933 DEC_PYCALLBACK__STRING(SetParameters);
934 DEC_PYCALLBACK_STRING__constpure(GetValue);
935
936 PYPRIVATE;
937 };
938
939
940 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
941 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
942 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
943 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
944 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
945 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
946 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
947 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
948 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
949
950
951 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
952 self->SetClientObject(new wxPyOORClientData(_self));
953 }
954
955 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
956 PyObject* o2;
957 PyObject* o3;
958
959 if (!target) {
960 target = o;
961 } else if (target == Py_None) {
962 Py_DECREF(Py_None);
963 target = o;
964 } else {
965 if (!PyTuple_Check(target)) {
966 o2 = target;
967 target = PyTuple_New(1);
968 PyTuple_SetItem(target, 0, o2);
969 }
970 o3 = PyTuple_New(1);
971 PyTuple_SetItem(o3, 0, o);
972
973 o2 = target;
974 target = PySequence_Concat(o2, o3);
975 Py_DECREF(o2);
976 Py_DECREF(o3);
977 }
978 return target;
979 }
980
981 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
982 self->SetClientObject(new wxPyOORClientData(_self));
983 }
984
985 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
986 {
987 public:
988 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
989
990 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
991 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
992 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
993 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
994
995 PYPRIVATE;
996 };
997
998 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
999 self->SetClientObject(new wxPyOORClientData(_self));
1000 }
1001
1002 class wxPyGridTableBase : public wxGridTableBase
1003 {
1004 public:
1005 wxPyGridTableBase() : wxGridTableBase() {}
1006
1007 PYCALLBACK_INT__pure(GetNumberRows);
1008 PYCALLBACK_INT__pure(GetNumberCols);
1009 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1010 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1011 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1012 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1013 PYCALLBACK__(wxGridTableBase, Clear);
1014 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1015 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1016 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1017 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1018 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1019 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1020 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1021 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1022 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1023 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1024 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1025 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1026 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1027 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1028 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1029
1030
1031 wxString GetValue(int row, int col) {
1032 wxPyBeginBlockThreads();
1033 wxString rval;
1034 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1035 PyObject* ro;
1036 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1037 if (ro) {
1038 rval = Py2wxString(ro);
1039 Py_DECREF(ro);
1040 }
1041 }
1042 wxPyEndBlockThreads();
1043 return rval;
1044 }
1045
1046 void SetValue(int row, int col, const wxString& val) {
1047 wxPyBeginBlockThreads();
1048 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1049 PyObject* s = wx2PyString(val);
1050 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1051 Py_DECREF(s);
1052 }
1053 wxPyEndBlockThreads();
1054 }
1055
1056
1057 // Map the Get/Set methods for the standard non-string types to
1058 // the GetValue and SetValue python methods.
1059 long GetValueAsLong( int row, int col ) {
1060 long rval = 0;
1061 wxPyBeginBlockThreads();
1062 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1063 PyObject* ro;
1064 PyObject* num;
1065 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1066 if (ro && PyNumber_Check(ro)) {
1067 num = PyNumber_Int(ro);
1068 if (num) {
1069 rval = PyInt_AsLong(num);
1070 Py_DECREF(num);
1071 }
1072 Py_DECREF(ro);
1073 }
1074 }
1075 wxPyEndBlockThreads();
1076 return rval;
1077 }
1078
1079 double GetValueAsDouble( int row, int col ) {
1080 double rval = 0.0;
1081 wxPyBeginBlockThreads();
1082 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1083 PyObject* ro;
1084 PyObject* num;
1085 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1086 if (ro && PyNumber_Check(ro)) {
1087 num = PyNumber_Float(ro);
1088 if (num) {
1089 rval = PyFloat_AsDouble(num);
1090 Py_DECREF(num);
1091 }
1092 Py_DECREF(ro);
1093 }
1094 }
1095 wxPyEndBlockThreads();
1096 return rval;
1097 }
1098
1099 bool GetValueAsBool( int row, int col ) {
1100 return (bool)GetValueAsLong(row, col);
1101 }
1102
1103 void SetValueAsLong( int row, int col, long value ) {
1104 wxPyBeginBlockThreads();
1105 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1106 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1107 }
1108 wxPyEndBlockThreads();
1109 }
1110
1111 void SetValueAsDouble( int row, int col, double value ) {
1112 wxPyBeginBlockThreads();
1113 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1114 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1115 }
1116 wxPyEndBlockThreads();
1117 }
1118
1119 void SetValueAsBool( int row, int col, bool value ) {
1120 SetValueAsLong( row, col, (long)value );
1121 }
1122
1123
1124 PYPRIVATE;
1125 };
1126
1127 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1128 PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
1129 PyObject* tup = PyTuple_New(2);
1130 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1131 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1132 return tup;
1133 }
1134
1135 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1136
1137 // If source is an object instance then it may already be the right type
1138 if (wxPySwigInstance_Check(source)) {
1139 wxGridCellCoords* ptr;
1140 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1141 goto error;
1142 *obj = ptr;
1143 return True;
1144 }
1145 // otherwise a 2-tuple of integers is expected
1146 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1147 PyObject* o1 = PySequence_GetItem(source, 0);
1148 PyObject* o2 = PySequence_GetItem(source, 1);
1149 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1150 Py_DECREF(o1);
1151 Py_DECREF(o2);
1152 goto error;
1153 }
1154 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1155 Py_DECREF(o1);
1156 Py_DECREF(o2);
1157 return True;
1158 }
1159
1160 error:
1161 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1162 return False;
1163 }
1164
1165
1166 bool wxGridCellCoords_typecheck(PyObject* source) {
1167 void* ptr;
1168
1169 if (wxPySwigInstance_Check(source) &&
1170 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1171 return True;
1172
1173 PyErr_Clear();
1174 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1175 return True;
1176
1177 return False;
1178 }
1179
1180
1181 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1182 {
1183 PyObject* list = PyList_New(0);
1184 size_t idx;
1185 for (idx = 0; idx < source.GetCount(); idx += 1) {
1186 wxGridCellCoords& coord = source.Item(idx);
1187 PyObject* tup = PyTuple_New(2);
1188 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1189 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1190 PyList_Append(list, tup);
1191 Py_DECREF(tup);
1192 }
1193 return list;
1194 }
1195
1196
1197 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1198
1199 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1200 wxGridCellCoords rv;
1201 self->XYToCell(x, y, rv);
1202 return rv;
1203 }
1204 #ifdef __cplusplus
1205 extern "C" {
1206 #endif
1207 static int _wrap_GridNoCellCoords_set(PyObject *_val) {
1208 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1209 return 1;
1210 }
1211
1212
1213 static PyObject *_wrap_GridNoCellCoords_get() {
1214 PyObject *pyobj;
1215
1216 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0);
1217 return pyobj;
1218 }
1219
1220
1221 static int _wrap_GridNoCellRect_set(PyObject *_val) {
1222 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1223 return 1;
1224 }
1225
1226
1227 static PyObject *_wrap_GridNoCellRect_get() {
1228 PyObject *pyobj;
1229
1230 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0);
1231 return pyobj;
1232 }
1233
1234
1235 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1236 PyObject *resultobj;
1237 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1238 PyObject *arg2 = (PyObject *) 0 ;
1239 PyObject * obj0 = 0 ;
1240 PyObject * obj1 = 0 ;
1241 char *kwnames[] = {
1242 (char *) "self",(char *) "_self", NULL
1243 };
1244
1245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1247 arg2 = obj1;
1248 {
1249 PyThreadState* __tstate = wxPyBeginAllowThreads();
1250 wxGridCellRenderer__setOORInfo(arg1,arg2);
1251
1252 wxPyEndAllowThreads(__tstate);
1253 if (PyErr_Occurred()) SWIG_fail;
1254 }
1255 Py_INCREF(Py_None); resultobj = Py_None;
1256 return resultobj;
1257 fail:
1258 return NULL;
1259 }
1260
1261
1262 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject *resultobj;
1264 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1265 wxString *arg2 = 0 ;
1266 bool temp2 = False ;
1267 PyObject * obj0 = 0 ;
1268 PyObject * obj1 = 0 ;
1269 char *kwnames[] = {
1270 (char *) "self",(char *) "params", NULL
1271 };
1272
1273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1275 {
1276 arg2 = wxString_in_helper(obj1);
1277 if (arg2 == NULL) SWIG_fail;
1278 temp2 = True;
1279 }
1280 {
1281 PyThreadState* __tstate = wxPyBeginAllowThreads();
1282 (arg1)->SetParameters((wxString const &)*arg2);
1283
1284 wxPyEndAllowThreads(__tstate);
1285 if (PyErr_Occurred()) SWIG_fail;
1286 }
1287 Py_INCREF(Py_None); resultobj = Py_None;
1288 {
1289 if (temp2)
1290 delete arg2;
1291 }
1292 return resultobj;
1293 fail:
1294 {
1295 if (temp2)
1296 delete arg2;
1297 }
1298 return NULL;
1299 }
1300
1301
1302 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1303 PyObject *resultobj;
1304 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1305 PyObject * obj0 = 0 ;
1306 char *kwnames[] = {
1307 (char *) "self", NULL
1308 };
1309
1310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1312 {
1313 PyThreadState* __tstate = wxPyBeginAllowThreads();
1314 (arg1)->IncRef();
1315
1316 wxPyEndAllowThreads(__tstate);
1317 if (PyErr_Occurred()) SWIG_fail;
1318 }
1319 Py_INCREF(Py_None); resultobj = Py_None;
1320 return resultobj;
1321 fail:
1322 return NULL;
1323 }
1324
1325
1326 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1327 PyObject *resultobj;
1328 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1329 PyObject * obj0 = 0 ;
1330 char *kwnames[] = {
1331 (char *) "self", NULL
1332 };
1333
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1336 {
1337 PyThreadState* __tstate = wxPyBeginAllowThreads();
1338 (arg1)->DecRef();
1339
1340 wxPyEndAllowThreads(__tstate);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 Py_INCREF(Py_None); resultobj = Py_None;
1344 return resultobj;
1345 fail:
1346 return NULL;
1347 }
1348
1349
1350 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1351 PyObject *resultobj;
1352 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1353 wxGrid *arg2 = 0 ;
1354 wxGridCellAttr *arg3 = 0 ;
1355 wxDC *arg4 = 0 ;
1356 wxRect *arg5 = 0 ;
1357 int arg6 ;
1358 int arg7 ;
1359 bool arg8 ;
1360 wxRect temp5 ;
1361 PyObject * obj0 = 0 ;
1362 PyObject * obj1 = 0 ;
1363 PyObject * obj2 = 0 ;
1364 PyObject * obj3 = 0 ;
1365 PyObject * obj4 = 0 ;
1366 PyObject * obj7 = 0 ;
1367 char *kwnames[] = {
1368 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1369 };
1370
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOiiO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7)) goto fail;
1372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1373 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1374 if (arg2 == NULL) {
1375 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1376 }
1377 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1378 if (arg3 == NULL) {
1379 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1380 }
1381 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1382 if (arg4 == NULL) {
1383 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1384 }
1385 {
1386 arg5 = &temp5;
1387 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1388 }
1389 arg8 = PyInt_AsLong(obj7) ? true : false;
1390 if (PyErr_Occurred()) SWIG_fail;
1391 {
1392 PyThreadState* __tstate = wxPyBeginAllowThreads();
1393 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1394
1395 wxPyEndAllowThreads(__tstate);
1396 if (PyErr_Occurred()) SWIG_fail;
1397 }
1398 Py_INCREF(Py_None); resultobj = Py_None;
1399 return resultobj;
1400 fail:
1401 return NULL;
1402 }
1403
1404
1405 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1406 PyObject *resultobj;
1407 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1408 wxGrid *arg2 = 0 ;
1409 wxGridCellAttr *arg3 = 0 ;
1410 wxDC *arg4 = 0 ;
1411 int arg5 ;
1412 int arg6 ;
1413 wxSize result;
1414 PyObject * obj0 = 0 ;
1415 PyObject * obj1 = 0 ;
1416 PyObject * obj2 = 0 ;
1417 PyObject * obj3 = 0 ;
1418 char *kwnames[] = {
1419 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1420 };
1421
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOii:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
1423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1424 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1425 if (arg2 == NULL) {
1426 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1427 }
1428 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1429 if (arg3 == NULL) {
1430 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1431 }
1432 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1433 if (arg4 == NULL) {
1434 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1435 }
1436 {
1437 PyThreadState* __tstate = wxPyBeginAllowThreads();
1438 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1439
1440 wxPyEndAllowThreads(__tstate);
1441 if (PyErr_Occurred()) SWIG_fail;
1442 }
1443 {
1444 wxSize * resultptr;
1445 resultptr = new wxSize((wxSize &) result);
1446 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1447 }
1448 return resultobj;
1449 fail:
1450 return NULL;
1451 }
1452
1453
1454 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1457 wxGridCellRenderer *result;
1458 PyObject * obj0 = 0 ;
1459 char *kwnames[] = {
1460 (char *) "self", NULL
1461 };
1462
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1465 {
1466 PyThreadState* __tstate = wxPyBeginAllowThreads();
1467 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1468
1469 wxPyEndAllowThreads(__tstate);
1470 if (PyErr_Occurred()) SWIG_fail;
1471 }
1472 {
1473 resultobj = wxPyMake_wxGridCellRenderer(result);
1474 }
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1482 PyObject *obj;
1483 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1484 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1485 Py_INCREF(obj);
1486 return Py_BuildValue((char *)"");
1487 }
1488 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1489 PyObject *resultobj;
1490 wxPyGridCellRenderer *result;
1491 char *kwnames[] = {
1492 NULL
1493 };
1494
1495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1);
1504 return resultobj;
1505 fail:
1506 return NULL;
1507 }
1508
1509
1510 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1511 PyObject *resultobj;
1512 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1513 PyObject *arg2 = (PyObject *) 0 ;
1514 PyObject *arg3 = (PyObject *) 0 ;
1515 PyObject * obj0 = 0 ;
1516 PyObject * obj1 = 0 ;
1517 PyObject * obj2 = 0 ;
1518 char *kwnames[] = {
1519 (char *) "self",(char *) "self",(char *) "_class", NULL
1520 };
1521
1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1524 arg2 = obj1;
1525 arg3 = obj2;
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 (arg1)->_setCallbackInfo(arg2,arg3);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 Py_INCREF(Py_None); resultobj = Py_None;
1534 return resultobj;
1535 fail:
1536 return NULL;
1537 }
1538
1539
1540 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1543 wxString *arg2 = 0 ;
1544 bool temp2 = False ;
1545 PyObject * obj0 = 0 ;
1546 PyObject * obj1 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self",(char *) "params", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1553 {
1554 arg2 = wxString_in_helper(obj1);
1555 if (arg2 == NULL) SWIG_fail;
1556 temp2 = True;
1557 }
1558 {
1559 PyThreadState* __tstate = wxPyBeginAllowThreads();
1560 (arg1)->base_SetParameters((wxString const &)*arg2);
1561
1562 wxPyEndAllowThreads(__tstate);
1563 if (PyErr_Occurred()) SWIG_fail;
1564 }
1565 Py_INCREF(Py_None); resultobj = Py_None;
1566 {
1567 if (temp2)
1568 delete arg2;
1569 }
1570 return resultobj;
1571 fail:
1572 {
1573 if (temp2)
1574 delete arg2;
1575 }
1576 return NULL;
1577 }
1578
1579
1580 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1581 PyObject *obj;
1582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1583 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1584 Py_INCREF(obj);
1585 return Py_BuildValue((char *)"");
1586 }
1587 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxGridCellStringRenderer *result;
1590 char *kwnames[] = {
1591 NULL
1592 };
1593
1594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1);
1603 return resultobj;
1604 fail:
1605 return NULL;
1606 }
1607
1608
1609 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1610 PyObject *obj;
1611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1612 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1613 Py_INCREF(obj);
1614 return Py_BuildValue((char *)"");
1615 }
1616 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxGridCellNumberRenderer *result;
1619 char *kwnames[] = {
1620 NULL
1621 };
1622
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1624 {
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1639 PyObject *obj;
1640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1641 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1642 Py_INCREF(obj);
1643 return Py_BuildValue((char *)"");
1644 }
1645 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1646 PyObject *resultobj;
1647 int arg1 = (int) -1 ;
1648 int arg2 = (int) -1 ;
1649 wxGridCellFloatRenderer *result;
1650 char *kwnames[] = {
1651 (char *) "width",(char *) "precision", NULL
1652 };
1653
1654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellFloatRenderer",kwnames,&arg1,&arg2)) goto fail;
1655 {
1656 PyThreadState* __tstate = wxPyBeginAllowThreads();
1657 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1658
1659 wxPyEndAllowThreads(__tstate);
1660 if (PyErr_Occurred()) SWIG_fail;
1661 }
1662 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1663 return resultobj;
1664 fail:
1665 return NULL;
1666 }
1667
1668
1669 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1670 PyObject *resultobj;
1671 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1672 int result;
1673 PyObject * obj0 = 0 ;
1674 char *kwnames[] = {
1675 (char *) "self", NULL
1676 };
1677
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1680 {
1681 PyThreadState* __tstate = wxPyBeginAllowThreads();
1682 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1683
1684 wxPyEndAllowThreads(__tstate);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 }
1687 resultobj = PyInt_FromLong((long)result);
1688 return resultobj;
1689 fail:
1690 return NULL;
1691 }
1692
1693
1694 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1695 PyObject *resultobj;
1696 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1697 int arg2 ;
1698 PyObject * obj0 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "self",(char *) "width", NULL
1701 };
1702
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1705 {
1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
1707 (arg1)->SetWidth(arg2);
1708
1709 wxPyEndAllowThreads(__tstate);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 }
1712 Py_INCREF(Py_None); resultobj = Py_None;
1713 return resultobj;
1714 fail:
1715 return NULL;
1716 }
1717
1718
1719 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1720 PyObject *resultobj;
1721 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1722 int result;
1723 PyObject * obj0 = 0 ;
1724 char *kwnames[] = {
1725 (char *) "self", NULL
1726 };
1727
1728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
1729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1730 {
1731 PyThreadState* __tstate = wxPyBeginAllowThreads();
1732 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
1733
1734 wxPyEndAllowThreads(__tstate);
1735 if (PyErr_Occurred()) SWIG_fail;
1736 }
1737 resultobj = PyInt_FromLong((long)result);
1738 return resultobj;
1739 fail:
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1747 int arg2 ;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self",(char *) "precision", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&arg2)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1755 {
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 (arg1)->SetPrecision(arg2);
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
1762 Py_INCREF(Py_None); resultobj = Py_None;
1763 return resultobj;
1764 fail:
1765 return NULL;
1766 }
1767
1768
1769 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
1770 PyObject *obj;
1771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1772 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
1773 Py_INCREF(obj);
1774 return Py_BuildValue((char *)"");
1775 }
1776 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1777 PyObject *resultobj;
1778 wxGridCellBoolRenderer *result;
1779 char *kwnames[] = {
1780 NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
1784 {
1785 PyThreadState* __tstate = wxPyBeginAllowThreads();
1786 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
1787
1788 wxPyEndAllowThreads(__tstate);
1789 if (PyErr_Occurred()) SWIG_fail;
1790 }
1791 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1);
1792 return resultobj;
1793 fail:
1794 return NULL;
1795 }
1796
1797
1798 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
1799 PyObject *obj;
1800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1801 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
1802 Py_INCREF(obj);
1803 return Py_BuildValue((char *)"");
1804 }
1805 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1806 PyObject *resultobj;
1807 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
1808 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
1809 wxGridCellDateTimeRenderer *result;
1810 PyObject * obj0 = 0 ;
1811 PyObject * obj1 = 0 ;
1812 char *kwnames[] = {
1813 (char *) "outformat",(char *) "informat", NULL
1814 };
1815
1816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
1817 if (obj0) {
1818 {
1819 wxString* sptr = wxString_in_helper(obj0);
1820 if (sptr == NULL) SWIG_fail;
1821 arg1 = *sptr;
1822 delete sptr;
1823 }
1824 }
1825 if (obj1) {
1826 {
1827 wxString* sptr = wxString_in_helper(obj1);
1828 if (sptr == NULL) SWIG_fail;
1829 arg2 = *sptr;
1830 delete sptr;
1831 }
1832 }
1833 {
1834 PyThreadState* __tstate = wxPyBeginAllowThreads();
1835 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
1836
1837 wxPyEndAllowThreads(__tstate);
1838 if (PyErr_Occurred()) SWIG_fail;
1839 }
1840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
1841 return resultobj;
1842 fail:
1843 return NULL;
1844 }
1845
1846
1847 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
1848 PyObject *obj;
1849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1850 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
1851 Py_INCREF(obj);
1852 return Py_BuildValue((char *)"");
1853 }
1854 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1855 PyObject *resultobj;
1856 wxString const &arg1_defvalue = wxPyEmptyString ;
1857 wxString *arg1 = (wxString *) &arg1_defvalue ;
1858 wxGridCellEnumRenderer *result;
1859 bool temp1 = False ;
1860 PyObject * obj0 = 0 ;
1861 char *kwnames[] = {
1862 (char *) "choices", NULL
1863 };
1864
1865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
1866 if (obj0) {
1867 {
1868 arg1 = wxString_in_helper(obj0);
1869 if (arg1 == NULL) SWIG_fail;
1870 temp1 = True;
1871 }
1872 }
1873 {
1874 PyThreadState* __tstate = wxPyBeginAllowThreads();
1875 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
1876
1877 wxPyEndAllowThreads(__tstate);
1878 if (PyErr_Occurred()) SWIG_fail;
1879 }
1880 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1);
1881 {
1882 if (temp1)
1883 delete arg1;
1884 }
1885 return resultobj;
1886 fail:
1887 {
1888 if (temp1)
1889 delete arg1;
1890 }
1891 return NULL;
1892 }
1893
1894
1895 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
1896 PyObject *obj;
1897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1898 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
1899 Py_INCREF(obj);
1900 return Py_BuildValue((char *)"");
1901 }
1902 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxGridCellAutoWrapStringRenderer *result;
1905 char *kwnames[] = {
1906 NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
1917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
1918 return resultobj;
1919 fail:
1920 return NULL;
1921 }
1922
1923
1924 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
1925 PyObject *obj;
1926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1927 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
1928 Py_INCREF(obj);
1929 return Py_BuildValue((char *)"");
1930 }
1931 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1934 PyObject *arg2 = (PyObject *) 0 ;
1935 PyObject * obj0 = 0 ;
1936 PyObject * obj1 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self",(char *) "_self", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1943 arg2 = obj1;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 wxGridCellEditor__setOORInfo(arg1,arg2);
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 Py_INCREF(Py_None); resultobj = Py_None;
1952 return resultobj;
1953 fail:
1954 return NULL;
1955 }
1956
1957
1958 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject *resultobj;
1960 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1961 bool result;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "self", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
1968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1969 {
1970 PyThreadState* __tstate = wxPyBeginAllowThreads();
1971 result = (bool)(arg1)->IsCreated();
1972
1973 wxPyEndAllowThreads(__tstate);
1974 if (PyErr_Occurred()) SWIG_fail;
1975 }
1976 resultobj = PyInt_FromLong((long)result);
1977 return resultobj;
1978 fail:
1979 return NULL;
1980 }
1981
1982
1983 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1984 PyObject *resultobj;
1985 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1986 wxControl *result;
1987 PyObject * obj0 = 0 ;
1988 char *kwnames[] = {
1989 (char *) "self", NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
1993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1994 {
1995 PyThreadState* __tstate = wxPyBeginAllowThreads();
1996 result = (wxControl *)(arg1)->GetControl();
1997
1998 wxPyEndAllowThreads(__tstate);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
2001 {
2002 resultobj = wxPyMake_wxObject(result);
2003 }
2004 return resultobj;
2005 fail:
2006 return NULL;
2007 }
2008
2009
2010 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2011 PyObject *resultobj;
2012 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2013 wxControl *arg2 = (wxControl *) 0 ;
2014 PyObject * obj0 = 0 ;
2015 PyObject * obj1 = 0 ;
2016 char *kwnames[] = {
2017 (char *) "self",(char *) "control", NULL
2018 };
2019
2020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2023 {
2024 PyThreadState* __tstate = wxPyBeginAllowThreads();
2025 (arg1)->SetControl(arg2);
2026
2027 wxPyEndAllowThreads(__tstate);
2028 if (PyErr_Occurred()) SWIG_fail;
2029 }
2030 Py_INCREF(Py_None); resultobj = Py_None;
2031 return resultobj;
2032 fail:
2033 return NULL;
2034 }
2035
2036
2037 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2038 PyObject *resultobj;
2039 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2040 wxGridCellAttr *result;
2041 PyObject * obj0 = 0 ;
2042 char *kwnames[] = {
2043 (char *) "self", NULL
2044 };
2045
2046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 {
2056 resultobj = wxPyMake_wxGridCellAttr(result);
2057 }
2058 return resultobj;
2059 fail:
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2067 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2068 PyObject * obj0 = 0 ;
2069 PyObject * obj1 = 0 ;
2070 char *kwnames[] = {
2071 (char *) "self",(char *) "attr", NULL
2072 };
2073
2074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2076 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2077 {
2078 PyThreadState* __tstate = wxPyBeginAllowThreads();
2079 (arg1)->SetCellAttr(arg2);
2080
2081 wxPyEndAllowThreads(__tstate);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 }
2084 Py_INCREF(Py_None); resultobj = Py_None;
2085 return resultobj;
2086 fail:
2087 return NULL;
2088 }
2089
2090
2091 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2092 PyObject *resultobj;
2093 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2094 wxString *arg2 = 0 ;
2095 bool temp2 = False ;
2096 PyObject * obj0 = 0 ;
2097 PyObject * obj1 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self",(char *) "params", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2104 {
2105 arg2 = wxString_in_helper(obj1);
2106 if (arg2 == NULL) SWIG_fail;
2107 temp2 = True;
2108 }
2109 {
2110 PyThreadState* __tstate = wxPyBeginAllowThreads();
2111 (arg1)->SetParameters((wxString const &)*arg2);
2112
2113 wxPyEndAllowThreads(__tstate);
2114 if (PyErr_Occurred()) SWIG_fail;
2115 }
2116 Py_INCREF(Py_None); resultobj = Py_None;
2117 {
2118 if (temp2)
2119 delete arg2;
2120 }
2121 return resultobj;
2122 fail:
2123 {
2124 if (temp2)
2125 delete arg2;
2126 }
2127 return NULL;
2128 }
2129
2130
2131 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2132 PyObject *resultobj;
2133 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2134 PyObject * obj0 = 0 ;
2135 char *kwnames[] = {
2136 (char *) "self", NULL
2137 };
2138
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2141 {
2142 PyThreadState* __tstate = wxPyBeginAllowThreads();
2143 (arg1)->IncRef();
2144
2145 wxPyEndAllowThreads(__tstate);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 }
2148 Py_INCREF(Py_None); resultobj = Py_None;
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2158 PyObject * obj0 = 0 ;
2159 char *kwnames[] = {
2160 (char *) "self", NULL
2161 };
2162
2163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->DecRef();
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2182 wxWindow *arg2 = (wxWindow *) 0 ;
2183 int arg3 ;
2184 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2185 PyObject * obj0 = 0 ;
2186 PyObject * obj1 = 0 ;
2187 PyObject * obj3 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO:GridCellEditor_Create",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2195 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2196 {
2197 PyThreadState* __tstate = wxPyBeginAllowThreads();
2198 (arg1)->Create(arg2,arg3,arg4);
2199
2200 wxPyEndAllowThreads(__tstate);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 }
2203 Py_INCREF(Py_None); resultobj = Py_None;
2204 return resultobj;
2205 fail:
2206 return NULL;
2207 }
2208
2209
2210 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2211 PyObject *resultobj;
2212 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2213 int arg2 ;
2214 int arg3 ;
2215 wxGrid *arg4 = (wxGrid *) 0 ;
2216 PyObject * obj0 = 0 ;
2217 PyObject * obj3 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_BeginEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2224 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 (arg1)->BeginEdit(arg2,arg3,arg4);
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 Py_INCREF(Py_None); resultobj = Py_None;
2233 return resultobj;
2234 fail:
2235 return NULL;
2236 }
2237
2238
2239 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2240 PyObject *resultobj;
2241 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2242 int arg2 ;
2243 int arg3 ;
2244 wxGrid *arg4 = (wxGrid *) 0 ;
2245 bool result;
2246 PyObject * obj0 = 0 ;
2247 PyObject * obj3 = 0 ;
2248 char *kwnames[] = {
2249 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2250 };
2251
2252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_EndEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2254 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
2262 resultobj = PyInt_FromLong((long)result);
2263 return resultobj;
2264 fail:
2265 return NULL;
2266 }
2267
2268
2269 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2270 PyObject *resultobj;
2271 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2272 PyObject * obj0 = 0 ;
2273 char *kwnames[] = {
2274 (char *) "self", NULL
2275 };
2276
2277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2279 {
2280 PyThreadState* __tstate = wxPyBeginAllowThreads();
2281 (arg1)->Reset();
2282
2283 wxPyEndAllowThreads(__tstate);
2284 if (PyErr_Occurred()) SWIG_fail;
2285 }
2286 Py_INCREF(Py_None); resultobj = Py_None;
2287 return resultobj;
2288 fail:
2289 return NULL;
2290 }
2291
2292
2293 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2296 wxGridCellEditor *result;
2297 PyObject * obj0 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 {
2312 resultobj = wxPyMake_wxGridCellEditor(result);
2313 }
2314 return resultobj;
2315 fail:
2316 return NULL;
2317 }
2318
2319
2320 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2321 PyObject *resultobj;
2322 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2323 wxRect *arg2 = 0 ;
2324 wxRect temp2 ;
2325 PyObject * obj0 = 0 ;
2326 PyObject * obj1 = 0 ;
2327 char *kwnames[] = {
2328 (char *) "self",(char *) "rect", NULL
2329 };
2330
2331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2333 {
2334 arg2 = &temp2;
2335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2336 }
2337 {
2338 PyThreadState* __tstate = wxPyBeginAllowThreads();
2339 (arg1)->SetSize((wxRect const &)*arg2);
2340
2341 wxPyEndAllowThreads(__tstate);
2342 if (PyErr_Occurred()) SWIG_fail;
2343 }
2344 Py_INCREF(Py_None); resultobj = Py_None;
2345 return resultobj;
2346 fail:
2347 return NULL;
2348 }
2349
2350
2351 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2352 PyObject *resultobj;
2353 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2354 bool arg2 ;
2355 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2356 PyObject * obj0 = 0 ;
2357 PyObject * obj1 = 0 ;
2358 PyObject * obj2 = 0 ;
2359 char *kwnames[] = {
2360 (char *) "self",(char *) "show",(char *) "attr", NULL
2361 };
2362
2363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2365 arg2 = PyInt_AsLong(obj1) ? true : false;
2366 if (PyErr_Occurred()) SWIG_fail;
2367 if (obj2) {
2368 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2369 }
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 (arg1)->Show(arg2,arg3);
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 Py_INCREF(Py_None); resultobj = Py_None;
2378 return resultobj;
2379 fail:
2380 return NULL;
2381 }
2382
2383
2384 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2385 PyObject *resultobj;
2386 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2387 wxRect *arg2 = 0 ;
2388 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2389 wxRect temp2 ;
2390 PyObject * obj0 = 0 ;
2391 PyObject * obj1 = 0 ;
2392 PyObject * obj2 = 0 ;
2393 char *kwnames[] = {
2394 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2395 };
2396
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2399 {
2400 arg2 = &temp2;
2401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2402 }
2403 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 Py_INCREF(Py_None); resultobj = Py_None;
2412 return resultobj;
2413 fail:
2414 return NULL;
2415 }
2416
2417
2418 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj;
2420 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2421 wxKeyEvent *arg2 = 0 ;
2422 bool result;
2423 PyObject * obj0 = 0 ;
2424 PyObject * obj1 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self",(char *) "event", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2432 if (arg2 == NULL) {
2433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2434 }
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 resultobj = PyInt_FromLong((long)result);
2443 return resultobj;
2444 fail:
2445 return NULL;
2446 }
2447
2448
2449 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2452 wxKeyEvent *arg2 = 0 ;
2453 PyObject * obj0 = 0 ;
2454 PyObject * obj1 = 0 ;
2455 char *kwnames[] = {
2456 (char *) "self",(char *) "event", NULL
2457 };
2458
2459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2461 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2462 if (arg2 == NULL) {
2463 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2464 }
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 (arg1)->StartingKey(*arg2);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 Py_INCREF(Py_None); resultobj = Py_None;
2473 return resultobj;
2474 fail:
2475 return NULL;
2476 }
2477
2478
2479 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2489 {
2490 PyThreadState* __tstate = wxPyBeginAllowThreads();
2491 (arg1)->StartingClick();
2492
2493 wxPyEndAllowThreads(__tstate);
2494 if (PyErr_Occurred()) SWIG_fail;
2495 }
2496 Py_INCREF(Py_None); resultobj = Py_None;
2497 return resultobj;
2498 fail:
2499 return NULL;
2500 }
2501
2502
2503 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2504 PyObject *resultobj;
2505 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2506 wxKeyEvent *arg2 = 0 ;
2507 PyObject * obj0 = 0 ;
2508 PyObject * obj1 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self",(char *) "event", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2515 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2516 if (arg2 == NULL) {
2517 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2518 }
2519 {
2520 PyThreadState* __tstate = wxPyBeginAllowThreads();
2521 (arg1)->HandleReturn(*arg2);
2522
2523 wxPyEndAllowThreads(__tstate);
2524 if (PyErr_Occurred()) SWIG_fail;
2525 }
2526 Py_INCREF(Py_None); resultobj = Py_None;
2527 return resultobj;
2528 fail:
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj;
2535 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2536 PyObject * obj0 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "self", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 (arg1)->Destroy();
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 Py_INCREF(Py_None); resultobj = Py_None;
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2558 PyObject *obj;
2559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2560 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2561 Py_INCREF(obj);
2562 return Py_BuildValue((char *)"");
2563 }
2564 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject *resultobj;
2566 wxPyGridCellEditor *result;
2567 char *kwnames[] = {
2568 NULL
2569 };
2570
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2572 {
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1);
2580 return resultobj;
2581 fail:
2582 return NULL;
2583 }
2584
2585
2586 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2587 PyObject *resultobj;
2588 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2589 PyObject *arg2 = (PyObject *) 0 ;
2590 PyObject *arg3 = (PyObject *) 0 ;
2591 PyObject * obj0 = 0 ;
2592 PyObject * obj1 = 0 ;
2593 PyObject * obj2 = 0 ;
2594 char *kwnames[] = {
2595 (char *) "self",(char *) "self",(char *) "_class", NULL
2596 };
2597
2598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2600 arg2 = obj1;
2601 arg3 = obj2;
2602 {
2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
2604 (arg1)->_setCallbackInfo(arg2,arg3);
2605
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) SWIG_fail;
2608 }
2609 Py_INCREF(Py_None); resultobj = Py_None;
2610 return resultobj;
2611 fail:
2612 return NULL;
2613 }
2614
2615
2616 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2617 PyObject *resultobj;
2618 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2619 wxRect *arg2 = 0 ;
2620 wxRect temp2 ;
2621 PyObject * obj0 = 0 ;
2622 PyObject * obj1 = 0 ;
2623 char *kwnames[] = {
2624 (char *) "self",(char *) "rect", NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2629 {
2630 arg2 = &temp2;
2631 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2632 }
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 (arg1)->base_SetSize((wxRect const &)*arg2);
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 Py_INCREF(Py_None); resultobj = Py_None;
2641 return resultobj;
2642 fail:
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2650 bool arg2 ;
2651 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2652 PyObject * obj0 = 0 ;
2653 PyObject * obj1 = 0 ;
2654 PyObject * obj2 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self",(char *) "show",(char *) "attr", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2661 arg2 = PyInt_AsLong(obj1) ? true : false;
2662 if (PyErr_Occurred()) SWIG_fail;
2663 if (obj2) {
2664 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2665 }
2666 {
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
2668 (arg1)->base_Show(arg2,arg3);
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) SWIG_fail;
2672 }
2673 Py_INCREF(Py_None); resultobj = Py_None;
2674 return resultobj;
2675 fail:
2676 return NULL;
2677 }
2678
2679
2680 static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2683 wxRect *arg2 = 0 ;
2684 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2685 wxRect temp2 ;
2686 PyObject * obj0 = 0 ;
2687 PyObject * obj1 = 0 ;
2688 PyObject * obj2 = 0 ;
2689 char *kwnames[] = {
2690 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2691 };
2692
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2695 {
2696 arg2 = &temp2;
2697 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2698 }
2699 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) SWIG_fail;
2706 }
2707 Py_INCREF(Py_None); resultobj = Py_None;
2708 return resultobj;
2709 fail:
2710 return NULL;
2711 }
2712
2713
2714 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2715 PyObject *resultobj;
2716 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2717 wxKeyEvent *arg2 = 0 ;
2718 bool result;
2719 PyObject * obj0 = 0 ;
2720 PyObject * obj1 = 0 ;
2721 char *kwnames[] = {
2722 (char *) "self",(char *) "event", NULL
2723 };
2724
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2727 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2728 if (arg2 == NULL) {
2729 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2730 }
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 resultobj = PyInt_FromLong((long)result);
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2748 wxKeyEvent *arg2 = 0 ;
2749 PyObject * obj0 = 0 ;
2750 PyObject * obj1 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "self",(char *) "event", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2757 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2758 if (arg2 == NULL) {
2759 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2760 }
2761 {
2762 PyThreadState* __tstate = wxPyBeginAllowThreads();
2763 (arg1)->base_StartingKey(*arg2);
2764
2765 wxPyEndAllowThreads(__tstate);
2766 if (PyErr_Occurred()) SWIG_fail;
2767 }
2768 Py_INCREF(Py_None); resultobj = Py_None;
2769 return resultobj;
2770 fail:
2771 return NULL;
2772 }
2773
2774
2775 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject *resultobj;
2777 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2778 PyObject * obj0 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "self", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
2784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 (arg1)->base_StartingClick();
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) SWIG_fail;
2791 }
2792 Py_INCREF(Py_None); resultobj = Py_None;
2793 return resultobj;
2794 fail:
2795 return NULL;
2796 }
2797
2798
2799 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2800 PyObject *resultobj;
2801 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2802 wxKeyEvent *arg2 = 0 ;
2803 PyObject * obj0 = 0 ;
2804 PyObject * obj1 = 0 ;
2805 char *kwnames[] = {
2806 (char *) "self",(char *) "event", NULL
2807 };
2808
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2811 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2812 if (arg2 == NULL) {
2813 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2814 }
2815 {
2816 PyThreadState* __tstate = wxPyBeginAllowThreads();
2817 (arg1)->base_HandleReturn(*arg2);
2818
2819 wxPyEndAllowThreads(__tstate);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 Py_INCREF(Py_None); resultobj = Py_None;
2823 return resultobj;
2824 fail:
2825 return NULL;
2826 }
2827
2828
2829 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2830 PyObject *resultobj;
2831 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2832 PyObject * obj0 = 0 ;
2833 char *kwnames[] = {
2834 (char *) "self", NULL
2835 };
2836
2837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
2838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2839 {
2840 PyThreadState* __tstate = wxPyBeginAllowThreads();
2841 (arg1)->base_Destroy();
2842
2843 wxPyEndAllowThreads(__tstate);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 }
2846 Py_INCREF(Py_None); resultobj = Py_None;
2847 return resultobj;
2848 fail:
2849 return NULL;
2850 }
2851
2852
2853 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2854 PyObject *resultobj;
2855 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2856 wxString *arg2 = 0 ;
2857 bool temp2 = False ;
2858 PyObject * obj0 = 0 ;
2859 PyObject * obj1 = 0 ;
2860 char *kwnames[] = {
2861 (char *) "self",(char *) "params", NULL
2862 };
2863
2864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2866 {
2867 arg2 = wxString_in_helper(obj1);
2868 if (arg2 == NULL) SWIG_fail;
2869 temp2 = True;
2870 }
2871 {
2872 PyThreadState* __tstate = wxPyBeginAllowThreads();
2873 (arg1)->base_SetParameters((wxString const &)*arg2);
2874
2875 wxPyEndAllowThreads(__tstate);
2876 if (PyErr_Occurred()) SWIG_fail;
2877 }
2878 Py_INCREF(Py_None); resultobj = Py_None;
2879 {
2880 if (temp2)
2881 delete arg2;
2882 }
2883 return resultobj;
2884 fail:
2885 {
2886 if (temp2)
2887 delete arg2;
2888 }
2889 return NULL;
2890 }
2891
2892
2893 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
2894 PyObject *obj;
2895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2896 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
2897 Py_INCREF(obj);
2898 return Py_BuildValue((char *)"");
2899 }
2900 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 wxGridCellTextEditor *result;
2903 char *kwnames[] = {
2904 NULL
2905 };
2906
2907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
2908 {
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
2910 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
2911
2912 wxPyEndAllowThreads(__tstate);
2913 if (PyErr_Occurred()) SWIG_fail;
2914 }
2915 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1);
2916 return resultobj;
2917 fail:
2918 return NULL;
2919 }
2920
2921
2922 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2923 PyObject *resultobj;
2924 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
2925 wxString result;
2926 PyObject * obj0 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "self", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2933 {
2934 PyThreadState* __tstate = wxPyBeginAllowThreads();
2935 result = (arg1)->GetValue();
2936
2937 wxPyEndAllowThreads(__tstate);
2938 if (PyErr_Occurred()) SWIG_fail;
2939 }
2940 {
2941 #if wxUSE_UNICODE
2942 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2943 #else
2944 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2945 #endif
2946 }
2947 return resultobj;
2948 fail:
2949 return NULL;
2950 }
2951
2952
2953 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
2954 PyObject *obj;
2955 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2956 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
2957 Py_INCREF(obj);
2958 return Py_BuildValue((char *)"");
2959 }
2960 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2961 PyObject *resultobj;
2962 int arg1 = (int) -1 ;
2963 int arg2 = (int) -1 ;
2964 wxGridCellNumberEditor *result;
2965 char *kwnames[] = {
2966 (char *) "min",(char *) "max", NULL
2967 };
2968
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellNumberEditor",kwnames,&arg1,&arg2)) goto fail;
2970 {
2971 PyThreadState* __tstate = wxPyBeginAllowThreads();
2972 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
2973
2974 wxPyEndAllowThreads(__tstate);
2975 if (PyErr_Occurred()) SWIG_fail;
2976 }
2977 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1);
2978 return resultobj;
2979 fail:
2980 return NULL;
2981 }
2982
2983
2984 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2985 PyObject *resultobj;
2986 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
2987 wxString result;
2988 PyObject * obj0 = 0 ;
2989 char *kwnames[] = {
2990 (char *) "self", NULL
2991 };
2992
2993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
2994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 result = (arg1)->GetValue();
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 {
3003 #if wxUSE_UNICODE
3004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3005 #else
3006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3007 #endif
3008 }
3009 return resultobj;
3010 fail:
3011 return NULL;
3012 }
3013
3014
3015 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3016 PyObject *obj;
3017 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3018 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3019 Py_INCREF(obj);
3020 return Py_BuildValue((char *)"");
3021 }
3022 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3023 PyObject *resultobj;
3024 wxGridCellFloatEditor *result;
3025 char *kwnames[] = {
3026 NULL
3027 };
3028
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
3030 {
3031 PyThreadState* __tstate = wxPyBeginAllowThreads();
3032 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
3033
3034 wxPyEndAllowThreads(__tstate);
3035 if (PyErr_Occurred()) SWIG_fail;
3036 }
3037 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1);
3038 return resultobj;
3039 fail:
3040 return NULL;
3041 }
3042
3043
3044 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject *resultobj;
3046 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3047 wxString result;
3048 PyObject * obj0 = 0 ;
3049 char *kwnames[] = {
3050 (char *) "self", NULL
3051 };
3052
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3055 {
3056 PyThreadState* __tstate = wxPyBeginAllowThreads();
3057 result = (arg1)->GetValue();
3058
3059 wxPyEndAllowThreads(__tstate);
3060 if (PyErr_Occurred()) SWIG_fail;
3061 }
3062 {
3063 #if wxUSE_UNICODE
3064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3065 #else
3066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3067 #endif
3068 }
3069 return resultobj;
3070 fail:
3071 return NULL;
3072 }
3073
3074
3075 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3076 PyObject *obj;
3077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3078 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3079 Py_INCREF(obj);
3080 return Py_BuildValue((char *)"");
3081 }
3082 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3083 PyObject *resultobj;
3084 wxGridCellBoolEditor *result;
3085 char *kwnames[] = {
3086 NULL
3087 };
3088
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1);
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3107 wxString result;
3108 PyObject * obj0 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (arg1)->GetValue();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 {
3123 #if wxUSE_UNICODE
3124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3125 #else
3126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3127 #endif
3128 }
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3136 PyObject *obj;
3137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3138 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3139 Py_INCREF(obj);
3140 return Py_BuildValue((char *)"");
3141 }
3142 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 int arg1 = (int) 0 ;
3145 wxString *arg2 = (wxString *) NULL ;
3146 bool arg3 = (bool) False ;
3147 wxGridCellChoiceEditor *result;
3148 PyObject * obj0 = 0 ;
3149 PyObject * obj1 = 0 ;
3150 char *kwnames[] = {
3151 (char *) "choices",(char *) "allowOthers", NULL
3152 };
3153
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3155 if (obj0) {
3156 {
3157 arg1 = PyList_Size(obj0);
3158 arg2 = wxString_LIST_helper(obj0);
3159 if (arg2 == NULL) SWIG_fail;
3160 }
3161 }
3162 if (obj1) {
3163 arg3 = PyInt_AsLong(obj1) ? true : false;
3164 if (PyErr_Occurred()) SWIG_fail;
3165 }
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3174 {
3175 if (arg2) delete [] arg2;
3176 }
3177 return resultobj;
3178 fail:
3179 {
3180 if (arg2) delete [] arg2;
3181 }
3182 return NULL;
3183 }
3184
3185
3186 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject *resultobj;
3188 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3189 wxString result;
3190 PyObject * obj0 = 0 ;
3191 char *kwnames[] = {
3192 (char *) "self", NULL
3193 };
3194
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3197 {
3198 PyThreadState* __tstate = wxPyBeginAllowThreads();
3199 result = (arg1)->GetValue();
3200
3201 wxPyEndAllowThreads(__tstate);
3202 if (PyErr_Occurred()) SWIG_fail;
3203 }
3204 {
3205 #if wxUSE_UNICODE
3206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3207 #else
3208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3209 #endif
3210 }
3211 return resultobj;
3212 fail:
3213 return NULL;
3214 }
3215
3216
3217 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3218 PyObject *obj;
3219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3220 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3221 Py_INCREF(obj);
3222 return Py_BuildValue((char *)"");
3223 }
3224 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject *resultobj;
3226 wxString const &arg1_defvalue = wxPyEmptyString ;
3227 wxString *arg1 = (wxString *) &arg1_defvalue ;
3228 wxGridCellEnumEditor *result;
3229 bool temp1 = False ;
3230 PyObject * obj0 = 0 ;
3231 char *kwnames[] = {
3232 (char *) "choices", NULL
3233 };
3234
3235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3236 if (obj0) {
3237 {
3238 arg1 = wxString_in_helper(obj0);
3239 if (arg1 == NULL) SWIG_fail;
3240 temp1 = True;
3241 }
3242 }
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3246
3247 wxPyEndAllowThreads(__tstate);
3248 if (PyErr_Occurred()) SWIG_fail;
3249 }
3250 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1);
3251 {
3252 if (temp1)
3253 delete arg1;
3254 }
3255 return resultobj;
3256 fail:
3257 {
3258 if (temp1)
3259 delete arg1;
3260 }
3261 return NULL;
3262 }
3263
3264
3265 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3266 PyObject *resultobj;
3267 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3268 wxString result;
3269 PyObject * obj0 = 0 ;
3270 char *kwnames[] = {
3271 (char *) "self", NULL
3272 };
3273
3274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3276 {
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 result = (arg1)->GetValue();
3279
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 {
3284 #if wxUSE_UNICODE
3285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3286 #else
3287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3288 #endif
3289 }
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3297 PyObject *obj;
3298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3299 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3300 Py_INCREF(obj);
3301 return Py_BuildValue((char *)"");
3302 }
3303 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj;
3305 wxGridCellAutoWrapStringEditor *result;
3306 char *kwnames[] = {
3307 NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3311 {
3312 PyThreadState* __tstate = wxPyBeginAllowThreads();
3313 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3314
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3326 PyObject *resultobj;
3327 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3328 wxString result;
3329 PyObject * obj0 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "self", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3336 {
3337 PyThreadState* __tstate = wxPyBeginAllowThreads();
3338 result = (arg1)->GetValue();
3339
3340 wxPyEndAllowThreads(__tstate);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 }
3343 {
3344 #if wxUSE_UNICODE
3345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3346 #else
3347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3348 #endif
3349 }
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3357 PyObject *obj;
3358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3359 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3360 Py_INCREF(obj);
3361 return Py_BuildValue((char *)"");
3362 }
3363 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3364 PyObject *resultobj;
3365 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3366 PyObject *arg2 = (PyObject *) 0 ;
3367 PyObject * obj0 = 0 ;
3368 PyObject * obj1 = 0 ;
3369 char *kwnames[] = {
3370 (char *) "self",(char *) "_self", NULL
3371 };
3372
3373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3375 arg2 = obj1;
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 wxGridCellAttr__setOORInfo(arg1,arg2);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 Py_INCREF(Py_None); resultobj = Py_None;
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj;
3392 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3393 wxGridCellAttr *result;
3394 PyObject * obj0 = 0 ;
3395 char *kwnames[] = {
3396 (char *) "attrDefault", NULL
3397 };
3398
3399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3400 if (obj0) {
3401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3402 }
3403 {
3404 PyThreadState* __tstate = wxPyBeginAllowThreads();
3405 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3406
3407 wxPyEndAllowThreads(__tstate);
3408 if (PyErr_Occurred()) SWIG_fail;
3409 }
3410 {
3411 resultobj = wxPyMake_wxGridCellAttr(result);
3412 }
3413 return resultobj;
3414 fail:
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3422 wxGridCellAttr *result;
3423 PyObject * obj0 = 0 ;
3424 char *kwnames[] = {
3425 (char *) "self", NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3430 {
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3433
3434 wxPyEndAllowThreads(__tstate);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 {
3438 resultobj = wxPyMake_wxGridCellAttr(result);
3439 }
3440 return resultobj;
3441 fail:
3442 return NULL;
3443 }
3444
3445
3446 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj;
3448 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3449 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3450 PyObject * obj0 = 0 ;
3451 PyObject * obj1 = 0 ;
3452 char *kwnames[] = {
3453 (char *) "self",(char *) "mergefrom", NULL
3454 };
3455
3456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3458 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3459 {
3460 PyThreadState* __tstate = wxPyBeginAllowThreads();
3461 (arg1)->MergeWith(arg2);
3462
3463 wxPyEndAllowThreads(__tstate);
3464 if (PyErr_Occurred()) SWIG_fail;
3465 }
3466 Py_INCREF(Py_None); resultobj = Py_None;
3467 return resultobj;
3468 fail:
3469 return NULL;
3470 }
3471
3472
3473 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3474 PyObject *resultobj;
3475 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3476 PyObject * obj0 = 0 ;
3477 char *kwnames[] = {
3478 (char *) "self", NULL
3479 };
3480
3481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3483 {
3484 PyThreadState* __tstate = wxPyBeginAllowThreads();
3485 (arg1)->IncRef();
3486
3487 wxPyEndAllowThreads(__tstate);
3488 if (PyErr_Occurred()) SWIG_fail;
3489 }
3490 Py_INCREF(Py_None); resultobj = Py_None;
3491 return resultobj;
3492 fail:
3493 return NULL;
3494 }
3495
3496
3497 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3498 PyObject *resultobj;
3499 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3500 PyObject * obj0 = 0 ;
3501 char *kwnames[] = {
3502 (char *) "self", NULL
3503 };
3504
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 (arg1)->DecRef();
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 Py_INCREF(Py_None); resultobj = Py_None;
3515 return resultobj;
3516 fail:
3517 return NULL;
3518 }
3519
3520
3521 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3524 wxColour *arg2 = 0 ;
3525 wxColour temp2 ;
3526 PyObject * obj0 = 0 ;
3527 PyObject * obj1 = 0 ;
3528 char *kwnames[] = {
3529 (char *) "self",(char *) "colText", NULL
3530 };
3531
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3534 {
3535 arg2 = &temp2;
3536 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3537 }
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 (arg1)->SetTextColour((wxColour const &)*arg2);
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 Py_INCREF(Py_None); resultobj = Py_None;
3546 return resultobj;
3547 fail:
3548 return NULL;
3549 }
3550
3551
3552 static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3553 PyObject *resultobj;
3554 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3555 wxColour *arg2 = 0 ;
3556 wxColour temp2 ;
3557 PyObject * obj0 = 0 ;
3558 PyObject * obj1 = 0 ;
3559 char *kwnames[] = {
3560 (char *) "self",(char *) "colBack", NULL
3561 };
3562
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
3564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3565 {
3566 arg2 = &temp2;
3567 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3568 }
3569 {
3570 PyThreadState* __tstate = wxPyBeginAllowThreads();
3571 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3572
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 Py_INCREF(Py_None); resultobj = Py_None;
3577 return resultobj;
3578 fail:
3579 return NULL;
3580 }
3581
3582
3583 static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3584 PyObject *resultobj;
3585 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3586 wxFont *arg2 = 0 ;
3587 PyObject * obj0 = 0 ;
3588 PyObject * obj1 = 0 ;
3589 char *kwnames[] = {
3590 (char *) "self",(char *) "font", NULL
3591 };
3592
3593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
3594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3595 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3596 if (arg2 == NULL) {
3597 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3598 }
3599 {
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 (arg1)->SetFont((wxFont const &)*arg2);
3602
3603 wxPyEndAllowThreads(__tstate);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 Py_INCREF(Py_None); resultobj = Py_None;
3607 return resultobj;
3608 fail:
3609 return NULL;
3610 }
3611
3612
3613 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj;
3615 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3616 int arg2 ;
3617 int arg3 ;
3618 PyObject * obj0 = 0 ;
3619 char *kwnames[] = {
3620 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
3621 };
3622
3623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
3624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 (arg1)->SetAlignment(arg2,arg3);
3628
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 Py_INCREF(Py_None); resultobj = Py_None;
3633 return resultobj;
3634 fail:
3635 return NULL;
3636 }
3637
3638
3639 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3640 PyObject *resultobj;
3641 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3642 int arg2 ;
3643 int arg3 ;
3644 PyObject * obj0 = 0 ;
3645 char *kwnames[] = {
3646 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
3647 };
3648
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
3650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 (arg1)->SetSize(arg2,arg3);
3654
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 Py_INCREF(Py_None); resultobj = Py_None;
3659 return resultobj;
3660 fail:
3661 return NULL;
3662 }
3663
3664
3665 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
3666 PyObject *resultobj;
3667 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3668 bool arg2 = (bool) True ;
3669 PyObject * obj0 = 0 ;
3670 PyObject * obj1 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self",(char *) "allow", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3677 if (obj1) {
3678 arg2 = PyInt_AsLong(obj1) ? true : false;
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 (arg1)->SetOverflow(arg2);
3684
3685 wxPyEndAllowThreads(__tstate);
3686 if (PyErr_Occurred()) SWIG_fail;
3687 }
3688 Py_INCREF(Py_None); resultobj = Py_None;
3689 return resultobj;
3690 fail:
3691 return NULL;
3692 }
3693
3694
3695 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
3696 PyObject *resultobj;
3697 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3698 bool arg2 = (bool) True ;
3699 PyObject * obj0 = 0 ;
3700 PyObject * obj1 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self",(char *) "isReadOnly", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
3706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3707 if (obj1) {
3708 arg2 = PyInt_AsLong(obj1) ? true : false;
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 (arg1)->SetReadOnly(arg2);
3714
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 Py_INCREF(Py_None); resultobj = Py_None;
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3728 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
3729 PyObject * obj0 = 0 ;
3730 PyObject * obj1 = 0 ;
3731 char *kwnames[] = {
3732 (char *) "self",(char *) "renderer", NULL
3733 };
3734
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
3736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3737 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 (arg1)->SetRenderer(arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3755 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
3756 PyObject * obj0 = 0 ;
3757 PyObject * obj1 = 0 ;
3758 char *kwnames[] = {
3759 (char *) "self",(char *) "editor", NULL
3760 };
3761
3762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
3763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3764 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 (arg1)->SetEditor(arg2);
3768
3769 wxPyEndAllowThreads(__tstate);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 }
3772 Py_INCREF(Py_None); resultobj = Py_None;
3773 return resultobj;
3774 fail:
3775 return NULL;
3776 }
3777
3778
3779 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
3780 PyObject *resultobj;
3781 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3782 int arg2 ;
3783 PyObject * obj0 = 0 ;
3784 char *kwnames[] = {
3785 (char *) "self",(char *) "kind", NULL
3786 };
3787
3788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellAttr_SetKind",kwnames,&obj0,&arg2)) goto fail;
3789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
3793
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 Py_INCREF(Py_None); resultobj = Py_None;
3798 return resultobj;
3799 fail:
3800 return NULL;
3801 }
3802
3803
3804 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3807 bool result;
3808 PyObject * obj0 = 0 ;
3809 char *kwnames[] = {
3810 (char *) "self", NULL
3811 };
3812
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
3814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 resultobj = PyInt_FromLong((long)result);
3823 return resultobj;
3824 fail:
3825 return NULL;
3826 }
3827
3828
3829 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj;
3831 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3832 bool result;
3833 PyObject * obj0 = 0 ;
3834 char *kwnames[] = {
3835 (char *) "self", NULL
3836 };
3837
3838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
3839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3840 {
3841 PyThreadState* __tstate = wxPyBeginAllowThreads();
3842 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
3843
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 resultobj = PyInt_FromLong((long)result);
3848 return resultobj;
3849 fail:
3850 return NULL;
3851 }
3852
3853
3854 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3855 PyObject *resultobj;
3856 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3857 bool result;
3858 PyObject * obj0 = 0 ;
3859 char *kwnames[] = {
3860 (char *) "self", NULL
3861 };
3862
3863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
3864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = PyInt_FromLong((long)result);
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3882 bool result;
3883 PyObject * obj0 = 0 ;
3884 char *kwnames[] = {
3885 (char *) "self", NULL
3886 };
3887
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
3889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3890 {
3891 PyThreadState* __tstate = wxPyBeginAllowThreads();
3892 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
3893
3894 wxPyEndAllowThreads(__tstate);
3895 if (PyErr_Occurred()) SWIG_fail;
3896 }
3897 resultobj = PyInt_FromLong((long)result);
3898 return resultobj;
3899 fail:
3900 return NULL;
3901 }
3902
3903
3904 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3905 PyObject *resultobj;
3906 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3907 bool result;
3908 PyObject * obj0 = 0 ;
3909 char *kwnames[] = {
3910 (char *) "self", NULL
3911 };
3912
3913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
3914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 resultobj = PyInt_FromLong((long)result);
3923 return resultobj;
3924 fail:
3925 return NULL;
3926 }
3927
3928
3929 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3930 PyObject *resultobj;
3931 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3932 bool result;
3933 PyObject * obj0 = 0 ;
3934 char *kwnames[] = {
3935 (char *) "self", NULL
3936 };
3937
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
3939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
3943
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 resultobj = PyInt_FromLong((long)result);
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3957 bool result;
3958 PyObject * obj0 = 0 ;
3959 char *kwnames[] = {
3960 (char *) "self", NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
3964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3965 {
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 resultobj = PyInt_FromLong((long)result);
3973 return resultobj;
3974 fail:
3975 return NULL;
3976 }
3977
3978
3979 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj;
3981 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3982 bool result;
3983 PyObject * obj0 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "self", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
3989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
3993
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 resultobj = PyInt_FromLong((long)result);
3998 return resultobj;
3999 fail:
4000 return NULL;
4001 }
4002
4003
4004 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4005 PyObject *resultobj;
4006 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4007 wxColour result;
4008 PyObject * obj0 = 0 ;
4009 char *kwnames[] = {
4010 (char *) "self", NULL
4011 };
4012
4013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4018
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 {
4023 wxColour * resultptr;
4024 resultptr = new wxColour((wxColour &) result);
4025 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4026 }
4027 return resultobj;
4028 fail:
4029 return NULL;
4030 }
4031
4032
4033 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4034 PyObject *resultobj;
4035 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4036 wxColour result;
4037 PyObject * obj0 = 0 ;
4038 char *kwnames[] = {
4039 (char *) "self", NULL
4040 };
4041
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4047
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) SWIG_fail;
4050 }
4051 {
4052 wxColour * resultptr;
4053 resultptr = new wxColour((wxColour &) result);
4054 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4055 }
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4063 PyObject *resultobj;
4064 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4065 wxFont result;
4066 PyObject * obj0 = 0 ;
4067 char *kwnames[] = {
4068 (char *) "self", NULL
4069 };
4070
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 result = ((wxGridCellAttr const *)arg1)->GetFont();
4076
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 {
4081 wxFont * resultptr;
4082 resultptr = new wxFont((wxFont &) result);
4083 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
4084 }
4085 return resultobj;
4086 fail:
4087 return NULL;
4088 }
4089
4090
4091 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj;
4093 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4094 int *arg2 = (int *) 0 ;
4095 int *arg3 = (int *) 0 ;
4096 int temp2 ;
4097 int temp3 ;
4098 PyObject * obj0 = 0 ;
4099 char *kwnames[] = {
4100 (char *) "self", NULL
4101 };
4102
4103 arg2 = &temp2;
4104 arg3 = &temp3;
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4107 {
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4110
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 Py_INCREF(Py_None); resultobj = Py_None;
4115 {
4116 PyObject *o = PyInt_FromLong((long) (*arg2));
4117 resultobj = t_output_helper(resultobj,o);
4118 }
4119 {
4120 PyObject *o = PyInt_FromLong((long) (*arg3));
4121 resultobj = t_output_helper(resultobj,o);
4122 }
4123 return resultobj;
4124 fail:
4125 return NULL;
4126 }
4127
4128
4129 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj;
4131 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4132 int *arg2 = (int *) 0 ;
4133 int *arg3 = (int *) 0 ;
4134 int temp2 ;
4135 int temp3 ;
4136 PyObject * obj0 = 0 ;
4137 char *kwnames[] = {
4138 (char *) "self", NULL
4139 };
4140
4141 arg2 = &temp2;
4142 arg3 = &temp3;
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4145 {
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4148
4149 wxPyEndAllowThreads(__tstate);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 Py_INCREF(Py_None); resultobj = Py_None;
4153 {
4154 PyObject *o = PyInt_FromLong((long) (*arg2));
4155 resultobj = t_output_helper(resultobj,o);
4156 }
4157 {
4158 PyObject *o = PyInt_FromLong((long) (*arg3));
4159 resultobj = t_output_helper(resultobj,o);
4160 }
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj;
4169 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4170 bool result;
4171 PyObject * obj0 = 0 ;
4172 char *kwnames[] = {
4173 (char *) "self", NULL
4174 };
4175
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4181
4182 wxPyEndAllowThreads(__tstate);
4183 if (PyErr_Occurred()) SWIG_fail;
4184 }
4185 resultobj = PyInt_FromLong((long)result);
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4195 wxGrid *arg2 = (wxGrid *) 0 ;
4196 int arg3 ;
4197 int arg4 ;
4198 wxGridCellRenderer *result;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char *kwnames[] = {
4202 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4203 };
4204
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4207 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4211
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 {
4216 resultobj = wxPyMake_wxGridCellRenderer(result);
4217 }
4218 return resultobj;
4219 fail:
4220 return NULL;
4221 }
4222
4223
4224 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4225 PyObject *resultobj;
4226 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4227 wxGrid *arg2 = (wxGrid *) 0 ;
4228 int arg3 ;
4229 int arg4 ;
4230 wxGridCellEditor *result;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 char *kwnames[] = {
4234 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4235 };
4236
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4239 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4243
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 {
4248 resultobj = wxPyMake_wxGridCellEditor(result);
4249 }
4250 return resultobj;
4251 fail:
4252 return NULL;
4253 }
4254
4255
4256 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4257 PyObject *resultobj;
4258 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4259 bool result;
4260 PyObject * obj0 = 0 ;
4261 char *kwnames[] = {
4262 (char *) "self", NULL
4263 };
4264
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = PyInt_FromLong((long)result);
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj;
4283 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4284 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char *kwnames[] = {
4288 (char *) "self",(char *) "defAttr", NULL
4289 };
4290
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4293 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->SetDefAttr(arg2);
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 Py_INCREF(Py_None); resultobj = Py_None;
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4309 PyObject *obj;
4310 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4311 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4312 Py_INCREF(obj);
4313 return Py_BuildValue((char *)"");
4314 }
4315 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxGridCellAttrProvider *result;
4318 char *kwnames[] = {
4319 NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 {
4331 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4332 }
4333 return resultobj;
4334 fail:
4335 return NULL;
4336 }
4337
4338
4339 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4340 PyObject *resultobj;
4341 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4342 PyObject *arg2 = (PyObject *) 0 ;
4343 PyObject * obj0 = 0 ;
4344 PyObject * obj1 = 0 ;
4345 char *kwnames[] = {
4346 (char *) "self",(char *) "_self", NULL
4347 };
4348
4349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4351 arg2 = obj1;
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4355
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 Py_INCREF(Py_None); resultobj = Py_None;
4360 return resultobj;
4361 fail:
4362 return NULL;
4363 }
4364
4365
4366 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4369 int arg2 ;
4370 int arg3 ;
4371 int arg4 ;
4372 wxGridCellAttr *result;
4373 PyObject * obj0 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridCellAttrProvider_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4380 {
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4383
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 {
4388 resultobj = wxPyMake_wxGridCellAttr(result);
4389 }
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4399 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4400 int arg3 ;
4401 int arg4 ;
4402 PyObject * obj0 = 0 ;
4403 PyObject * obj1 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4410 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 (arg1)->SetAttr(arg2,arg3,arg4);
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 Py_INCREF(Py_None); resultobj = Py_None;
4419 return resultobj;
4420 fail:
4421 return NULL;
4422 }
4423
4424
4425 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4426 PyObject *resultobj;
4427 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4428 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4429 int arg3 ;
4430 PyObject * obj0 = 0 ;
4431 PyObject * obj1 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "self",(char *) "attr",(char *) "row", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4438 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 (arg1)->SetRowAttr(arg2,arg3);
4442
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 Py_INCREF(Py_None); resultobj = Py_None;
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4454 PyObject *resultobj;
4455 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4456 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4457 int arg3 ;
4458 PyObject * obj0 = 0 ;
4459 PyObject * obj1 = 0 ;
4460 char *kwnames[] = {
4461 (char *) "self",(char *) "attr",(char *) "col", NULL
4462 };
4463
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4466 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 (arg1)->SetColAttr(arg2,arg3);
4470
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 Py_INCREF(Py_None); resultobj = Py_None;
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4484 size_t arg2 ;
4485 int arg3 ;
4486 PyObject * obj0 = 0 ;
4487 PyObject * obj1 = 0 ;
4488 char *kwnames[] = {
4489 (char *) "self",(char *) "pos",(char *) "numRows", NULL
4490 };
4491
4492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&arg3)) goto fail;
4493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4494 arg2 = (size_t) PyInt_AsLong(obj1);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 (arg1)->UpdateAttrRows(arg2,arg3);
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 Py_INCREF(Py_None); resultobj = Py_None;
4504 return resultobj;
4505 fail:
4506 return NULL;
4507 }
4508
4509
4510 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4511 PyObject *resultobj;
4512 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4513 size_t arg2 ;
4514 int arg3 ;
4515 PyObject * obj0 = 0 ;
4516 PyObject * obj1 = 0 ;
4517 char *kwnames[] = {
4518 (char *) "self",(char *) "pos",(char *) "numCols", NULL
4519 };
4520
4521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&arg3)) goto fail;
4522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4523 arg2 = (size_t) PyInt_AsLong(obj1);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 (arg1)->UpdateAttrCols(arg2,arg3);
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 Py_INCREF(Py_None); resultobj = Py_None;
4533 return resultobj;
4534 fail:
4535 return NULL;
4536 }
4537
4538
4539 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4540 PyObject *obj;
4541 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4542 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
4543 Py_INCREF(obj);
4544 return Py_BuildValue((char *)"");
4545 }
4546 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj;
4548 wxPyGridCellAttrProvider *result;
4549 char *kwnames[] = {
4550 NULL
4551 };
4552
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
4557
4558 wxPyEndAllowThreads(__tstate);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
4562 return resultobj;
4563 fail:
4564 return NULL;
4565 }
4566
4567
4568 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj;
4570 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4571 PyObject *arg2 = (PyObject *) 0 ;
4572 PyObject *arg3 = (PyObject *) 0 ;
4573 PyObject * obj0 = 0 ;
4574 PyObject * obj1 = 0 ;
4575 PyObject * obj2 = 0 ;
4576 char *kwnames[] = {
4577 (char *) "self",(char *) "self",(char *) "_class", NULL
4578 };
4579
4580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
4581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4582 arg2 = obj1;
4583 arg3 = obj2;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 (arg1)->_setCallbackInfo(arg2,arg3);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 Py_INCREF(Py_None); resultobj = Py_None;
4592 return resultobj;
4593 fail:
4594 return NULL;
4595 }
4596
4597
4598 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4599 PyObject *resultobj;
4600 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4601 int arg2 ;
4602 int arg3 ;
4603 int arg4 ;
4604 wxGridCellAttr *result;
4605 PyObject * obj0 = 0 ;
4606 char *kwnames[] = {
4607 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4608 };
4609
4610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 {
4620 resultobj = wxPyMake_wxGridCellAttr(result);
4621 }
4622 return resultobj;
4623 fail:
4624 return NULL;
4625 }
4626
4627
4628 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj;
4630 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4631 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4632 int arg3 ;
4633 int arg4 ;
4634 PyObject * obj0 = 0 ;
4635 PyObject * obj1 = 0 ;
4636 char *kwnames[] = {
4637 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4638 };
4639
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4642 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 (arg1)->base_SetAttr(arg2,arg3,arg4);
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 Py_INCREF(Py_None); resultobj = Py_None;
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4658 PyObject *resultobj;
4659 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4660 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4661 int arg3 ;
4662 PyObject * obj0 = 0 ;
4663 PyObject * obj1 = 0 ;
4664 char *kwnames[] = {
4665 (char *) "self",(char *) "attr",(char *) "row", NULL
4666 };
4667
4668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4670 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 (arg1)->base_SetRowAttr(arg2,arg3);
4674
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 Py_INCREF(Py_None); resultobj = Py_None;
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj;
4687 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4688 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4689 int arg3 ;
4690 PyObject * obj0 = 0 ;
4691 PyObject * obj1 = 0 ;
4692 char *kwnames[] = {
4693 (char *) "self",(char *) "attr",(char *) "col", NULL
4694 };
4695
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4698 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 (arg1)->base_SetColAttr(arg2,arg3);
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 Py_INCREF(Py_None); resultobj = Py_None;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4714 PyObject *obj;
4715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4716 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
4717 Py_INCREF(obj);
4718 return Py_BuildValue((char *)"");
4719 }
4720 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj;
4722 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4723 PyObject *arg2 = (PyObject *) 0 ;
4724 PyObject * obj0 = 0 ;
4725 PyObject * obj1 = 0 ;
4726 char *kwnames[] = {
4727 (char *) "self",(char *) "_self", NULL
4728 };
4729
4730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4732 arg2 = obj1;
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 wxGridTableBase__setOORInfo(arg1,arg2);
4736
4737 wxPyEndAllowThreads(__tstate);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 Py_INCREF(Py_None); resultobj = Py_None;
4741 return resultobj;
4742 fail:
4743 return NULL;
4744 }
4745
4746
4747 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj;
4749 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4750 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
4751 PyObject * obj0 = 0 ;
4752 PyObject * obj1 = 0 ;
4753 char *kwnames[] = {
4754 (char *) "self",(char *) "attrProvider", NULL
4755 };
4756
4757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
4758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4759 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 (arg1)->SetAttrProvider(arg2);
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 Py_INCREF(Py_None); resultobj = Py_None;
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4777 wxGridCellAttrProvider *result;
4778 PyObject * obj0 = 0 ;
4779 char *kwnames[] = {
4780 (char *) "self", NULL
4781 };
4782
4783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
4784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
4788
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 {
4793 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4794 }
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4804 wxGrid *arg2 = (wxGrid *) 0 ;
4805 PyObject * obj0 = 0 ;
4806 PyObject * obj1 = 0 ;
4807 char *kwnames[] = {
4808 (char *) "self",(char *) "grid", NULL
4809 };
4810
4811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
4812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4813 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4814 {
4815 PyThreadState* __tstate = wxPyBeginAllowThreads();
4816 (arg1)->SetView(arg2);
4817
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 Py_INCREF(Py_None); resultobj = Py_None;
4822 return resultobj;
4823 fail:
4824 return NULL;
4825 }
4826
4827
4828 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj;
4830 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4831 wxGrid *result;
4832 PyObject * obj0 = 0 ;
4833 char *kwnames[] = {
4834 (char *) "self", NULL
4835 };
4836
4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
4838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 resultobj = wxPyMake_wxObject(result);
4848 }
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj;
4857 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4858 int result;
4859 PyObject * obj0 = 0 ;
4860 char *kwnames[] = {
4861 (char *) "self", NULL
4862 };
4863
4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
4865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (int)(arg1)->GetNumberRows();
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = PyInt_FromLong((long)result);
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4883 int result;
4884 PyObject * obj0 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (int)(arg1)->GetNumberCols();
4894
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = PyInt_FromLong((long)result);
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
4906 PyObject *resultobj;
4907 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4908 int arg2 ;
4909 int arg3 ;
4910 bool result;
4911 PyObject * obj0 = 0 ;
4912 char *kwnames[] = {
4913 (char *) "self",(char *) "row",(char *) "col", NULL
4914 };
4915
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_IsEmptyCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
4917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4918 {
4919 PyThreadState* __tstate = wxPyBeginAllowThreads();
4920 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
4921
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 resultobj = PyInt_FromLong((long)result);
4926 return resultobj;
4927 fail:
4928 return NULL;
4929 }
4930
4931
4932 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4933 PyObject *resultobj;
4934 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4935 int arg2 ;
4936 int arg3 ;
4937 wxString result;
4938 PyObject * obj0 = 0 ;
4939 char *kwnames[] = {
4940 (char *) "self",(char *) "row",(char *) "col", NULL
4941 };
4942
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
4944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (arg1)->GetValue(arg2,arg3);
4948
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 {
4953 #if wxUSE_UNICODE
4954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4955 #else
4956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4957 #endif
4958 }
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject *resultobj;
4967 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4968 int arg2 ;
4969 int arg3 ;
4970 wxString *arg4 = 0 ;
4971 bool temp4 = False ;
4972 PyObject * obj0 = 0 ;
4973 PyObject * obj3 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
4979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4980 {
4981 arg4 = wxString_in_helper(obj3);
4982 if (arg4 == NULL) SWIG_fail;
4983 temp4 = True;
4984 }
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 Py_INCREF(Py_None); resultobj = Py_None;
4993 {
4994 if (temp4)
4995 delete arg4;
4996 }
4997 return resultobj;
4998 fail:
4999 {
5000 if (temp4)
5001 delete arg4;
5002 }
5003 return NULL;
5004 }
5005
5006
5007 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj;
5009 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5010 int arg2 ;
5011 int arg3 ;
5012 wxString result;
5013 PyObject * obj0 = 0 ;
5014 char *kwnames[] = {
5015 (char *) "self",(char *) "row",(char *) "col", NULL
5016 };
5017
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
5019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (arg1)->GetTypeName(arg2,arg3);
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 {
5028 #if wxUSE_UNICODE
5029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5030 #else
5031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5032 #endif
5033 }
5034 return resultobj;
5035 fail:
5036 return NULL;
5037 }
5038
5039
5040 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj;
5042 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5043 int arg2 ;
5044 int arg3 ;
5045 wxString *arg4 = 0 ;
5046 bool result;
5047 bool temp4 = False ;
5048 PyObject * obj0 = 0 ;
5049 PyObject * obj3 = 0 ;
5050 char *kwnames[] = {
5051 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5052 };
5053
5054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5056 {
5057 arg4 = wxString_in_helper(obj3);
5058 if (arg4 == NULL) SWIG_fail;
5059 temp4 = True;
5060 }
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = PyInt_FromLong((long)result);
5069 {
5070 if (temp4)
5071 delete arg4;
5072 }
5073 return resultobj;
5074 fail:
5075 {
5076 if (temp4)
5077 delete arg4;
5078 }
5079 return NULL;
5080 }
5081
5082
5083 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5084 PyObject *resultobj;
5085 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5086 int arg2 ;
5087 int arg3 ;
5088 wxString *arg4 = 0 ;
5089 bool result;
5090 bool temp4 = False ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj3 = 0 ;
5093 char *kwnames[] = {
5094 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5095 };
5096
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5099 {
5100 arg4 = wxString_in_helper(obj3);
5101 if (arg4 == NULL) SWIG_fail;
5102 temp4 = True;
5103 }
5104 {
5105 PyThreadState* __tstate = wxPyBeginAllowThreads();
5106 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5107
5108 wxPyEndAllowThreads(__tstate);
5109 if (PyErr_Occurred()) SWIG_fail;
5110 }
5111 resultobj = PyInt_FromLong((long)result);
5112 {
5113 if (temp4)
5114 delete arg4;
5115 }
5116 return resultobj;
5117 fail:
5118 {
5119 if (temp4)
5120 delete arg4;
5121 }
5122 return NULL;
5123 }
5124
5125
5126 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj;
5128 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5129 int arg2 ;
5130 int arg3 ;
5131 long result;
5132 PyObject * obj0 = 0 ;
5133 char *kwnames[] = {
5134 (char *) "self",(char *) "row",(char *) "col", NULL
5135 };
5136
5137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsLong",kwnames,&obj0,&arg2,&arg3)) goto fail;
5138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5142
5143 wxPyEndAllowThreads(__tstate);
5144 if (PyErr_Occurred()) SWIG_fail;
5145 }
5146 resultobj = PyInt_FromLong((long)result);
5147 return resultobj;
5148 fail:
5149 return NULL;
5150 }
5151
5152
5153 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5156 int arg2 ;
5157 int arg3 ;
5158 double result;
5159 PyObject * obj0 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "row",(char *) "col", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsDouble",kwnames,&obj0,&arg2,&arg3)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = PyFloat_FromDouble(result);
5174 return resultobj;
5175 fail:
5176 return NULL;
5177 }
5178
5179
5180 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5181 PyObject *resultobj;
5182 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5183 int arg2 ;
5184 int arg3 ;
5185 bool result;
5186 PyObject * obj0 = 0 ;
5187 char *kwnames[] = {
5188 (char *) "self",(char *) "row",(char *) "col", NULL
5189 };
5190
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsBool",kwnames,&obj0,&arg2,&arg3)) goto fail;
5192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = PyInt_FromLong((long)result);
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj;
5209 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5210 int arg2 ;
5211 int arg3 ;
5212 long arg4 ;
5213 PyObject * obj0 = 0 ;
5214 char *kwnames[] = {
5215 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5216 };
5217
5218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:GridTableBase_SetValueAsLong",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5223
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 Py_INCREF(Py_None); resultobj = Py_None;
5228 return resultobj;
5229 fail:
5230 return NULL;
5231 }
5232
5233
5234 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj;
5236 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5237 int arg2 ;
5238 int arg3 ;
5239 double arg4 ;
5240 PyObject * obj0 = 0 ;
5241 char *kwnames[] = {
5242 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5243 };
5244
5245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiid:GridTableBase_SetValueAsDouble",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5250
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 Py_INCREF(Py_None); resultobj = Py_None;
5255 return resultobj;
5256 fail:
5257 return NULL;
5258 }
5259
5260
5261 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5264 int arg2 ;
5265 int arg3 ;
5266 bool arg4 ;
5267 PyObject * obj0 = 0 ;
5268 PyObject * obj3 = 0 ;
5269 char *kwnames[] = {
5270 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5271 };
5272
5273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValueAsBool",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5275 arg4 = PyInt_AsLong(obj3) ? true : false;
5276 if (PyErr_Occurred()) SWIG_fail;
5277 {
5278 PyThreadState* __tstate = wxPyBeginAllowThreads();
5279 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5280
5281 wxPyEndAllowThreads(__tstate);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 Py_INCREF(Py_None); resultobj = Py_None;
5285 return resultobj;
5286 fail:
5287 return NULL;
5288 }
5289
5290
5291 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject *resultobj;
5293 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5294 PyObject * obj0 = 0 ;
5295 char *kwnames[] = {
5296 (char *) "self", NULL
5297 };
5298
5299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
5300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5301 {
5302 PyThreadState* __tstate = wxPyBeginAllowThreads();
5303 (arg1)->Clear();
5304
5305 wxPyEndAllowThreads(__tstate);
5306 if (PyErr_Occurred()) SWIG_fail;
5307 }
5308 Py_INCREF(Py_None); resultobj = Py_None;
5309 return resultobj;
5310 fail:
5311 return NULL;
5312 }
5313
5314
5315 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5316 PyObject *resultobj;
5317 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5318 size_t arg2 = (size_t) 0 ;
5319 size_t arg3 = (size_t) 1 ;
5320 bool result;
5321 PyObject * obj0 = 0 ;
5322 PyObject * obj1 = 0 ;
5323 PyObject * obj2 = 0 ;
5324 char *kwnames[] = {
5325 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5326 };
5327
5328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5330 if (obj1) {
5331 arg2 = (size_t) PyInt_AsLong(obj1);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 if (obj2) {
5335 arg3 = (size_t) PyInt_AsLong(obj2);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)(arg1)->InsertRows(arg2,arg3);
5341
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 resultobj = PyInt_FromLong((long)result);
5346 return resultobj;
5347 fail:
5348 return NULL;
5349 }
5350
5351
5352 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5353 PyObject *resultobj;
5354 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5355 size_t arg2 = (size_t) 1 ;
5356 bool result;
5357 PyObject * obj0 = 0 ;
5358 PyObject * obj1 = 0 ;
5359 char *kwnames[] = {
5360 (char *) "self",(char *) "numRows", NULL
5361 };
5362
5363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
5364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5365 if (obj1) {
5366 arg2 = (size_t) PyInt_AsLong(obj1);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 result = (bool)(arg1)->AppendRows(arg2);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 resultobj = PyInt_FromLong((long)result);
5377 return resultobj;
5378 fail:
5379 return NULL;
5380 }
5381
5382
5383 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj;
5385 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5386 size_t arg2 = (size_t) 0 ;
5387 size_t arg3 = (size_t) 1 ;
5388 bool result;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 PyObject * obj2 = 0 ;
5392 char *kwnames[] = {
5393 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5394 };
5395
5396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5398 if (obj1) {
5399 arg2 = (size_t) PyInt_AsLong(obj1);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 if (obj2) {
5403 arg3 = (size_t) PyInt_AsLong(obj2);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 result = (bool)(arg1)->DeleteRows(arg2,arg3);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = PyInt_FromLong((long)result);
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj;
5422 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5423 size_t arg2 = (size_t) 0 ;
5424 size_t arg3 = (size_t) 1 ;
5425 bool result;
5426 PyObject * obj0 = 0 ;
5427 PyObject * obj1 = 0 ;
5428 PyObject * obj2 = 0 ;
5429 char *kwnames[] = {
5430 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5431 };
5432
5433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5435 if (obj1) {
5436 arg2 = (size_t) PyInt_AsLong(obj1);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 if (obj2) {
5440 arg3 = (size_t) PyInt_AsLong(obj2);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 {
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 result = (bool)(arg1)->InsertCols(arg2,arg3);
5446
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = PyInt_FromLong((long)result);
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5460 size_t arg2 = (size_t) 1 ;
5461 bool result;
5462 PyObject * obj0 = 0 ;
5463 PyObject * obj1 = 0 ;
5464 char *kwnames[] = {
5465 (char *) "self",(char *) "numCols", NULL
5466 };
5467
5468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
5469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5470 if (obj1) {
5471 arg2 = (size_t) PyInt_AsLong(obj1);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (bool)(arg1)->AppendCols(arg2);
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = PyInt_FromLong((long)result);
5482 return resultobj;
5483 fail:
5484 return NULL;
5485 }
5486
5487
5488 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj;
5490 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5491 size_t arg2 = (size_t) 0 ;
5492 size_t arg3 = (size_t) 1 ;
5493 bool result;
5494 PyObject * obj0 = 0 ;
5495 PyObject * obj1 = 0 ;
5496 PyObject * obj2 = 0 ;
5497 char *kwnames[] = {
5498 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5499 };
5500
5501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5503 if (obj1) {
5504 arg2 = (size_t) PyInt_AsLong(obj1);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 if (obj2) {
5508 arg3 = (size_t) PyInt_AsLong(obj2);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 result = (bool)(arg1)->DeleteCols(arg2,arg3);
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = PyInt_FromLong((long)result);
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj;
5527 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5528 int arg2 ;
5529 wxString result;
5530 PyObject * obj0 = 0 ;
5531 char *kwnames[] = {
5532 (char *) "self",(char *) "row", NULL
5533 };
5534
5535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
5536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 result = (arg1)->GetRowLabelValue(arg2);
5540
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 {
5545 #if wxUSE_UNICODE
5546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5547 #else
5548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5549 #endif
5550 }
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5558 PyObject *resultobj;
5559 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5560 int arg2 ;
5561 wxString result;
5562 PyObject * obj0 = 0 ;
5563 char *kwnames[] = {
5564 (char *) "self",(char *) "col", NULL
5565 };
5566
5567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
5568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5569 {
5570 PyThreadState* __tstate = wxPyBeginAllowThreads();
5571 result = (arg1)->GetColLabelValue(arg2);
5572
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 {
5577 #if wxUSE_UNICODE
5578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5579 #else
5580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5581 #endif
5582 }
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5592 int arg2 ;
5593 wxString *arg3 = 0 ;
5594 bool temp3 = False ;
5595 PyObject * obj0 = 0 ;
5596 PyObject * obj2 = 0 ;
5597 char *kwnames[] = {
5598 (char *) "self",(char *) "row",(char *) "value", NULL
5599 };
5600
5601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5603 {
5604 arg3 = wxString_in_helper(obj2);
5605 if (arg3 == NULL) SWIG_fail;
5606 temp3 = True;
5607 }
5608 {
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
5611
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 Py_INCREF(Py_None); resultobj = Py_None;
5616 {
5617 if (temp3)
5618 delete arg3;
5619 }
5620 return resultobj;
5621 fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 return NULL;
5627 }
5628
5629
5630 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5631 PyObject *resultobj;
5632 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5633 int arg2 ;
5634 wxString *arg3 = 0 ;
5635 bool temp3 = False ;
5636 PyObject * obj0 = 0 ;
5637 PyObject * obj2 = 0 ;
5638 char *kwnames[] = {
5639 (char *) "self",(char *) "col",(char *) "value", NULL
5640 };
5641
5642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5644 {
5645 arg3 = wxString_in_helper(obj2);
5646 if (arg3 == NULL) SWIG_fail;
5647 temp3 = True;
5648 }
5649 {
5650 PyThreadState* __tstate = wxPyBeginAllowThreads();
5651 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
5652
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 Py_INCREF(Py_None); resultobj = Py_None;
5657 {
5658 if (temp3)
5659 delete arg3;
5660 }
5661 return resultobj;
5662 fail:
5663 {
5664 if (temp3)
5665 delete arg3;
5666 }
5667 return NULL;
5668 }
5669
5670
5671 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5672 PyObject *resultobj;
5673 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5674 bool result;
5675 PyObject * obj0 = 0 ;
5676 char *kwnames[] = {
5677 (char *) "self", NULL
5678 };
5679
5680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
5681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 result = (bool)(arg1)->CanHaveAttributes();
5685
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
5689 resultobj = PyInt_FromLong((long)result);
5690 return resultobj;
5691 fail:
5692 return NULL;
5693 }
5694
5695
5696 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj;
5698 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5699 int arg2 ;
5700 int arg3 ;
5701 int arg4 ;
5702 wxGridCellAttr *result;
5703 PyObject * obj0 = 0 ;
5704 char *kwnames[] = {
5705 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
5706 };
5707
5708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridTableBase_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
5713
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 {
5718 resultobj = wxPyMake_wxGridCellAttr(result);
5719 }
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5727 PyObject *resultobj;
5728 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5729 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5730 int arg3 ;
5731 int arg4 ;
5732 PyObject * obj0 = 0 ;
5733 PyObject * obj1 = 0 ;
5734 char *kwnames[] = {
5735 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
5736 };
5737
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
5739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5740 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 (arg1)->SetAttr(arg2,arg3,arg4);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 Py_INCREF(Py_None); resultobj = Py_None;
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj;
5757 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5758 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5759 int arg3 ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self",(char *) "attr",(char *) "row", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
5767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5768 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 (arg1)->SetRowAttr(arg2,arg3);
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 Py_INCREF(Py_None); resultobj = Py_None;
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj;
5785 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5786 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5787 int arg3 ;
5788 PyObject * obj0 = 0 ;
5789 PyObject * obj1 = 0 ;
5790 char *kwnames[] = {
5791 (char *) "self",(char *) "attr",(char *) "col", NULL
5792 };
5793
5794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
5795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5796 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 (arg1)->SetColAttr(arg2,arg3);
5800
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 Py_INCREF(Py_None); resultobj = Py_None;
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
5812 PyObject *obj;
5813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5814 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
5815 Py_INCREF(obj);
5816 return Py_BuildValue((char *)"");
5817 }
5818 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj;
5820 wxPyGridTableBase *result;
5821 char *kwnames[] = {
5822 NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (wxPyGridTableBase *)new wxPyGridTableBase();
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1);
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5843 PyObject *arg2 = (PyObject *) 0 ;
5844 PyObject *arg3 = (PyObject *) 0 ;
5845 PyObject * obj0 = 0 ;
5846 PyObject * obj1 = 0 ;
5847 PyObject * obj2 = 0 ;
5848 char *kwnames[] = {
5849 (char *) "self",(char *) "self",(char *) "_class", NULL
5850 };
5851
5852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5854 arg2 = obj1;
5855 arg3 = obj2;
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 (arg1)->_setCallbackInfo(arg2,arg3);
5859
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 Py_INCREF(Py_None); resultobj = Py_None;
5864 return resultobj;
5865 fail:
5866 return NULL;
5867 }
5868
5869
5870 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj;
5872 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5873 PyObject * obj0 = 0 ;
5874 char *kwnames[] = {
5875 (char *) "self", NULL
5876 };
5877
5878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
5879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 wxPyGridTableBase_Destroy(arg1);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 Py_INCREF(Py_None); resultobj = Py_None;
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5897 int arg2 ;
5898 int arg3 ;
5899 wxString result;
5900 PyObject * obj0 = 0 ;
5901 char *kwnames[] = {
5902 (char *) "self",(char *) "row",(char *) "col", NULL
5903 };
5904
5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
5906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (arg1)->base_GetTypeName(arg2,arg3);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 #if wxUSE_UNICODE
5916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5917 #else
5918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5919 #endif
5920 }
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5930 int arg2 ;
5931 int arg3 ;
5932 wxString *arg4 = 0 ;
5933 bool result;
5934 bool temp4 = False ;
5935 PyObject * obj0 = 0 ;
5936 PyObject * obj3 = 0 ;
5937 char *kwnames[] = {
5938 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5939 };
5940
5941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5943 {
5944 arg4 = wxString_in_helper(obj3);
5945 if (arg4 == NULL) SWIG_fail;
5946 temp4 = True;
5947 }
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 resultobj = PyInt_FromLong((long)result);
5956 {
5957 if (temp4)
5958 delete arg4;
5959 }
5960 return resultobj;
5961 fail:
5962 {
5963 if (temp4)
5964 delete arg4;
5965 }
5966 return NULL;
5967 }
5968
5969
5970 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5971 PyObject *resultobj;
5972 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5973 int arg2 ;
5974 int arg3 ;
5975 wxString *arg4 = 0 ;
5976 bool result;
5977 bool temp4 = False ;
5978 PyObject * obj0 = 0 ;
5979 PyObject * obj3 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5986 {
5987 arg4 = wxString_in_helper(obj3);
5988 if (arg4 == NULL) SWIG_fail;
5989 temp4 = True;
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 resultobj = PyInt_FromLong((long)result);
5999 {
6000 if (temp4)
6001 delete arg4;
6002 }
6003 return resultobj;
6004 fail:
6005 {
6006 if (temp4)
6007 delete arg4;
6008 }
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6016 PyObject * obj0 = 0 ;
6017 char *kwnames[] = {
6018 (char *) "self", NULL
6019 };
6020
6021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 (arg1)->base_Clear();
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 Py_INCREF(Py_None); resultobj = Py_None;
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj;
6039 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6040 size_t arg2 = (size_t) 0 ;
6041 size_t arg3 = (size_t) 1 ;
6042 bool result;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 PyObject * obj2 = 0 ;
6046 char *kwnames[] = {
6047 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6048 };
6049
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6052 if (obj1) {
6053 arg2 = (size_t) PyInt_AsLong(obj1);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 if (obj2) {
6057 arg3 = (size_t) PyInt_AsLong(obj2);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = PyInt_FromLong((long)result);
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6077 size_t arg2 = (size_t) 1 ;
6078 bool result;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 char *kwnames[] = {
6082 (char *) "self",(char *) "numRows", NULL
6083 };
6084
6085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6087 if (obj1) {
6088 arg2 = (size_t) PyInt_AsLong(obj1);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 result = (bool)(arg1)->base_AppendRows(arg2);
6094
6095 wxPyEndAllowThreads(__tstate);
6096 if (PyErr_Occurred()) SWIG_fail;
6097 }
6098 resultobj = PyInt_FromLong((long)result);
6099 return resultobj;
6100 fail:
6101 return NULL;
6102 }
6103
6104
6105 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6106 PyObject *resultobj;
6107 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6108 size_t arg2 = (size_t) 0 ;
6109 size_t arg3 = (size_t) 1 ;
6110 bool result;
6111 PyObject * obj0 = 0 ;
6112 PyObject * obj1 = 0 ;
6113 PyObject * obj2 = 0 ;
6114 char *kwnames[] = {
6115 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6116 };
6117
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6120 if (obj1) {
6121 arg2 = (size_t) PyInt_AsLong(obj1);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 if (obj2) {
6125 arg3 = (size_t) PyInt_AsLong(obj2);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6131
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 resultobj = PyInt_FromLong((long)result);
6136 return resultobj;
6137 fail:
6138 return NULL;
6139 }
6140
6141
6142 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj;
6144 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6145 size_t arg2 = (size_t) 0 ;
6146 size_t arg3 = (size_t) 1 ;
6147 bool result;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 PyObject * obj2 = 0 ;
6151 char *kwnames[] = {
6152 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6153 };
6154
6155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6157 if (obj1) {
6158 arg2 = (size_t) PyInt_AsLong(obj1);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 if (obj2) {
6162 arg3 = (size_t) PyInt_AsLong(obj2);
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 {
6166 PyThreadState* __tstate = wxPyBeginAllowThreads();
6167 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6168
6169 wxPyEndAllowThreads(__tstate);
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = PyInt_FromLong((long)result);
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj;
6181 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6182 size_t arg2 = (size_t) 1 ;
6183 bool result;
6184 PyObject * obj0 = 0 ;
6185 PyObject * obj1 = 0 ;
6186 char *kwnames[] = {
6187 (char *) "self",(char *) "numCols", NULL
6188 };
6189
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6192 if (obj1) {
6193 arg2 = (size_t) PyInt_AsLong(obj1);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 result = (bool)(arg1)->base_AppendCols(arg2);
6199
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = PyInt_FromLong((long)result);
6204 return resultobj;
6205 fail:
6206 return NULL;
6207 }
6208
6209
6210 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj;
6212 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6213 size_t arg2 = (size_t) 0 ;
6214 size_t arg3 = (size_t) 1 ;
6215 bool result;
6216 PyObject * obj0 = 0 ;
6217 PyObject * obj1 = 0 ;
6218 PyObject * obj2 = 0 ;
6219 char *kwnames[] = {
6220 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6221 };
6222
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6225 if (obj1) {
6226 arg2 = (size_t) PyInt_AsLong(obj1);
6227 if (PyErr_Occurred()) SWIG_fail;
6228 }
6229 if (obj2) {
6230 arg3 = (size_t) PyInt_AsLong(obj2);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (bool)(arg1)->base_DeleteCols(arg2,arg3);
6236
6237 wxPyEndAllowThreads(__tstate);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 resultobj = PyInt_FromLong((long)result);
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6250 int arg2 ;
6251 wxString result;
6252 PyObject * obj0 = 0 ;
6253 char *kwnames[] = {
6254 (char *) "self",(char *) "row", NULL
6255 };
6256
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
6258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (arg1)->base_GetRowLabelValue(arg2);
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 {
6267 #if wxUSE_UNICODE
6268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6269 #else
6270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6271 #endif
6272 }
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6282 int arg2 ;
6283 wxString result;
6284 PyObject * obj0 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self",(char *) "col", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
6290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (arg1)->base_GetColLabelValue(arg2);
6294
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 {
6299 #if wxUSE_UNICODE
6300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6301 #else
6302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6303 #endif
6304 }
6305 return resultobj;
6306 fail:
6307 return NULL;
6308 }
6309
6310
6311 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj;
6313 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6314 int arg2 ;
6315 wxString *arg3 = 0 ;
6316 bool temp3 = False ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj2 = 0 ;
6319 char *kwnames[] = {
6320 (char *) "self",(char *) "row",(char *) "value", NULL
6321 };
6322
6323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6325 {
6326 arg3 = wxString_in_helper(obj2);
6327 if (arg3 == NULL) SWIG_fail;
6328 temp3 = True;
6329 }
6330 {
6331 PyThreadState* __tstate = wxPyBeginAllowThreads();
6332 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
6333
6334 wxPyEndAllowThreads(__tstate);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 Py_INCREF(Py_None); resultobj = Py_None;
6338 {
6339 if (temp3)
6340 delete arg3;
6341 }
6342 return resultobj;
6343 fail:
6344 {
6345 if (temp3)
6346 delete arg3;
6347 }
6348 return NULL;
6349 }
6350
6351
6352 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6355 int arg2 ;
6356 wxString *arg3 = 0 ;
6357 bool temp3 = False ;
6358 PyObject * obj0 = 0 ;
6359 PyObject * obj2 = 0 ;
6360 char *kwnames[] = {
6361 (char *) "self",(char *) "col",(char *) "value", NULL
6362 };
6363
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6366 {
6367 arg3 = wxString_in_helper(obj2);
6368 if (arg3 == NULL) SWIG_fail;
6369 temp3 = True;
6370 }
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 {
6380 if (temp3)
6381 delete arg3;
6382 }
6383 return resultobj;
6384 fail:
6385 {
6386 if (temp3)
6387 delete arg3;
6388 }
6389 return NULL;
6390 }
6391
6392
6393 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6396 bool result;
6397 PyObject * obj0 = 0 ;
6398 char *kwnames[] = {
6399 (char *) "self", NULL
6400 };
6401
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
6403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (bool)(arg1)->base_CanHaveAttributes();
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 resultobj = PyInt_FromLong((long)result);
6412 return resultobj;
6413 fail:
6414 return NULL;
6415 }
6416
6417
6418 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6419 PyObject *resultobj;
6420 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6421 int arg2 ;
6422 int arg3 ;
6423 int arg4 ;
6424 wxGridCellAttr *result;
6425 PyObject * obj0 = 0 ;
6426 char *kwnames[] = {
6427 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridTableBase_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6432 {
6433 PyThreadState* __tstate = wxPyBeginAllowThreads();
6434 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6435
6436 wxPyEndAllowThreads(__tstate);
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 {
6440 resultobj = wxPyMake_wxGridCellAttr(result);
6441 }
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6449 PyObject *resultobj;
6450 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6451 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6452 int arg3 ;
6453 int arg4 ;
6454 PyObject * obj0 = 0 ;
6455 PyObject * obj1 = 0 ;
6456 char *kwnames[] = {
6457 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6458 };
6459
6460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
6461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6462 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 (arg1)->base_SetAttr(arg2,arg3,arg4);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 Py_INCREF(Py_None); resultobj = Py_None;
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6480 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6481 int arg3 ;
6482 PyObject * obj0 = 0 ;
6483 PyObject * obj1 = 0 ;
6484 char *kwnames[] = {
6485 (char *) "self",(char *) "attr",(char *) "row", NULL
6486 };
6487
6488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 (arg1)->base_SetRowAttr(arg2,arg3);
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 Py_INCREF(Py_None); resultobj = Py_None;
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj;
6507 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6508 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6509 int arg3 ;
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self",(char *) "attr",(char *) "col", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6518 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->base_SetColAttr(arg2,arg3);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 Py_INCREF(Py_None); resultobj = Py_None;
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
6534 PyObject *obj;
6535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6536 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
6537 Py_INCREF(obj);
6538 return Py_BuildValue((char *)"");
6539 }
6540 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
6541 PyObject *resultobj;
6542 int arg1 = (int) 0 ;
6543 int arg2 = (int) 0 ;
6544 wxGridStringTable *result;
6545 char *kwnames[] = {
6546 (char *) "numRows",(char *) "numCols", NULL
6547 };
6548
6549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridStringTable",kwnames,&arg1,&arg2)) goto fail;
6550 {
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
6553
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1);
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
6565 PyObject *obj;
6566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6567 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
6568 Py_INCREF(obj);
6569 return Py_BuildValue((char *)"");
6570 }
6571 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj;
6573 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6574 int arg2 ;
6575 int arg3 = (int) -1 ;
6576 int arg4 = (int) -1 ;
6577 wxGridTableMessage *result;
6578 PyObject * obj0 = 0 ;
6579 char *kwnames[] = {
6580 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
6581 };
6582
6583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_GridTableMessage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
6588
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1);
6593 return resultobj;
6594 fail:
6595 return NULL;
6596 }
6597
6598
6599 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6600 PyObject *resultobj;
6601 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6602 PyObject * obj0 = 0 ;
6603 char *kwnames[] = {
6604 (char *) "self", NULL
6605 };
6606
6607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
6608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6609 {
6610 PyThreadState* __tstate = wxPyBeginAllowThreads();
6611 delete arg1;
6612
6613 wxPyEndAllowThreads(__tstate);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 Py_INCREF(Py_None); resultobj = Py_None;
6617 return resultobj;
6618 fail:
6619 return NULL;
6620 }
6621
6622
6623 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6624 PyObject *resultobj;
6625 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6626 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self",(char *) "table", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
6634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6635 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 (arg1)->SetTableObject(arg2);
6639
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 Py_INCREF(Py_None); resultobj = Py_None;
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6653 wxGridTableBase *result;
6654 PyObject * obj0 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 {
6669 resultobj = wxPyMake_wxGridTableBase(result);
6670 }
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6680 int arg2 ;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self",(char *) "id", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetId",kwnames,&obj0,&arg2)) goto fail;
6687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 (arg1)->SetId(arg2);
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 Py_INCREF(Py_None); resultobj = Py_None;
6696 return resultobj;
6697 fail:
6698 return NULL;
6699 }
6700
6701
6702 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6703 PyObject *resultobj;
6704 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6705 int result;
6706 PyObject * obj0 = 0 ;
6707 char *kwnames[] = {
6708 (char *) "self", NULL
6709 };
6710
6711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
6712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 result = (int)(arg1)->GetId();
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 resultobj = PyInt_FromLong((long)result);
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6730 int arg2 ;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self",(char *) "comInt1", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt",kwnames,&obj0,&arg2)) goto fail;
6737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 (arg1)->SetCommandInt(arg2);
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 Py_INCREF(Py_None); resultobj = Py_None;
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6755 int result;
6756 PyObject * obj0 = 0 ;
6757 char *kwnames[] = {
6758 (char *) "self", NULL
6759 };
6760
6761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
6762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 result = (int)(arg1)->GetCommandInt();
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 resultobj = PyInt_FromLong((long)result);
6771 return resultobj;
6772 fail:
6773 return NULL;
6774 }
6775
6776
6777 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6780 int arg2 ;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self",(char *) "comInt2", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt2",kwnames,&obj0,&arg2)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 (arg1)->SetCommandInt2(arg2);
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 Py_INCREF(Py_None); resultobj = Py_None;
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6805 int result;
6806 PyObject * obj0 = 0 ;
6807 char *kwnames[] = {
6808 (char *) "self", NULL
6809 };
6810
6811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6813 {
6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
6815 result = (int)(arg1)->GetCommandInt2();
6816
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = PyInt_FromLong((long)result);
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
6828 PyObject *obj;
6829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6830 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
6831 Py_INCREF(obj);
6832 return Py_BuildValue((char *)"");
6833 }
6834 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 int arg1 = (int) -1 ;
6837 int arg2 = (int) -1 ;
6838 wxGridCellCoords *result;
6839 char *kwnames[] = {
6840 (char *) "r",(char *) "c", NULL
6841 };
6842
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellCoords",kwnames,&arg1,&arg2)) goto fail;
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1);
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6861 PyObject * obj0 = 0 ;
6862 char *kwnames[] = {
6863 (char *) "self", NULL
6864 };
6865
6866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
6867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6868 {
6869 PyThreadState* __tstate = wxPyBeginAllowThreads();
6870 delete arg1;
6871
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 Py_INCREF(Py_None); resultobj = Py_None;
6876 return resultobj;
6877 fail:
6878 return NULL;
6879 }
6880
6881
6882 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj;
6884 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6885 int result;
6886 PyObject * obj0 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
6892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6893 {
6894 PyThreadState* __tstate = wxPyBeginAllowThreads();
6895 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
6896
6897 wxPyEndAllowThreads(__tstate);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 resultobj = PyInt_FromLong((long)result);
6901 return resultobj;
6902 fail:
6903 return NULL;
6904 }
6905
6906
6907 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
6908 PyObject *resultobj;
6909 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6910 int arg2 ;
6911 PyObject * obj0 = 0 ;
6912 char *kwnames[] = {
6913 (char *) "self",(char *) "n", NULL
6914 };
6915
6916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetRow",kwnames,&obj0,&arg2)) goto fail;
6917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 (arg1)->SetRow(arg2);
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 Py_INCREF(Py_None); resultobj = Py_None;
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj;
6934 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6935 int result;
6936 PyObject * obj0 = 0 ;
6937 char *kwnames[] = {
6938 (char *) "self", NULL
6939 };
6940
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
6942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6943 {
6944 PyThreadState* __tstate = wxPyBeginAllowThreads();
6945 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
6946
6947 wxPyEndAllowThreads(__tstate);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 resultobj = PyInt_FromLong((long)result);
6951 return resultobj;
6952 fail:
6953 return NULL;
6954 }
6955
6956
6957 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
6958 PyObject *resultobj;
6959 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6960 int arg2 ;
6961 PyObject * obj0 = 0 ;
6962 char *kwnames[] = {
6963 (char *) "self",(char *) "n", NULL
6964 };
6965
6966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetCol",kwnames,&obj0,&arg2)) goto fail;
6967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 (arg1)->SetCol(arg2);
6971
6972 wxPyEndAllowThreads(__tstate);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 }
6975 Py_INCREF(Py_None); resultobj = Py_None;
6976 return resultobj;
6977 fail:
6978 return NULL;
6979 }
6980
6981
6982 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6983 PyObject *resultobj;
6984 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6985 int arg2 ;
6986 int arg3 ;
6987 PyObject * obj0 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "row",(char *) "col", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellCoords_Set",kwnames,&obj0,&arg2,&arg3)) goto fail;
6993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 (arg1)->Set(arg2,arg3);
6997
6998 wxPyEndAllowThreads(__tstate);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 Py_INCREF(Py_None); resultobj = Py_None;
7002 return resultobj;
7003 fail:
7004 return NULL;
7005 }
7006
7007
7008 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7009 PyObject *resultobj;
7010 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7011 wxGridCellCoords *arg2 = 0 ;
7012 bool result;
7013 PyObject * obj0 = 0 ;
7014 PyObject * obj1 = 0 ;
7015 char *kwnames[] = {
7016 (char *) "self",(char *) "other", NULL
7017 };
7018
7019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7022 if (arg2 == NULL) {
7023 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7024 }
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7028
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 resultobj = PyInt_FromLong((long)result);
7033 return resultobj;
7034 fail:
7035 return NULL;
7036 }
7037
7038
7039 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7040 PyObject *resultobj;
7041 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7042 wxGridCellCoords *arg2 = 0 ;
7043 bool result;
7044 PyObject * obj0 = 0 ;
7045 PyObject * obj1 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "self",(char *) "other", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7052 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7053 if (arg2 == NULL) {
7054 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7055 }
7056 {
7057 PyThreadState* __tstate = wxPyBeginAllowThreads();
7058 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
7059
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = PyInt_FromLong((long)result);
7064 return resultobj;
7065 fail:
7066 return NULL;
7067 }
7068
7069
7070 static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj;
7072 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7073 PyObject *result;
7074 PyObject * obj0 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "self", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
7080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 result = (PyObject *)wxGridCellCoords_asTuple(arg1);
7084
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 resultobj = result;
7089 return resultobj;
7090 fail:
7091 return NULL;
7092 }
7093
7094
7095 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
7096 PyObject *obj;
7097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7098 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
7099 Py_INCREF(obj);
7100 return Py_BuildValue((char *)"");
7101 }
7102 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
7103 PyObject *resultobj;
7104 wxWindow *arg1 = (wxWindow *) 0 ;
7105 int arg2 ;
7106 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7107 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7108 wxSize const &arg4_defvalue = wxDefaultSize ;
7109 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7110 long arg5 = (long) wxWANTS_CHARS ;
7111 wxString const &arg6_defvalue = wxPyPanelNameStr ;
7112 wxString *arg6 = (wxString *) &arg6_defvalue ;
7113 wxGrid *result;
7114 wxPoint temp3 ;
7115 wxSize temp4 ;
7116 bool temp6 = False ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj2 = 0 ;
7119 PyObject * obj3 = 0 ;
7120 PyObject * obj5 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Grid",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail;
7126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7127 if (obj2) {
7128 {
7129 arg3 = &temp3;
7130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7131 }
7132 }
7133 if (obj3) {
7134 {
7135 arg4 = &temp4;
7136 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7137 }
7138 }
7139 if (obj5) {
7140 {
7141 arg6 = wxString_in_helper(obj5);
7142 if (arg6 == NULL) SWIG_fail;
7143 temp6 = True;
7144 }
7145 }
7146 {
7147 PyThreadState* __tstate = wxPyBeginAllowThreads();
7148 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7149
7150 wxPyEndAllowThreads(__tstate);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 {
7154 resultobj = wxPyMake_wxObject(result);
7155 }
7156 {
7157 if (temp6)
7158 delete arg6;
7159 }
7160 return resultobj;
7161 fail:
7162 {
7163 if (temp6)
7164 delete arg6;
7165 }
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj;
7172 wxGrid *arg1 = (wxGrid *) 0 ;
7173 int arg2 ;
7174 int arg3 ;
7175 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7176 bool result;
7177 PyObject * obj0 = 0 ;
7178 char *kwnames[] = {
7179 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
7180 };
7181
7182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Grid_CreateGrid",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
7183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 resultobj = PyInt_FromLong((long)result);
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxGrid *arg1 = (wxGrid *) 0 ;
7201 WXGRIDSELECTIONMODES arg2 ;
7202 PyObject * obj0 = 0 ;
7203 char *kwnames[] = {
7204 (char *) "self",(char *) "selmode", NULL
7205 };
7206
7207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetSelectionMode",kwnames,&obj0,&arg2)) goto fail;
7208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 (arg1)->SetSelectionMode(arg2);
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxGrid *arg1 = (wxGrid *) 0 ;
7226 WXGRIDSELECTIONMODES result;
7227 PyObject * obj0 = 0 ;
7228 char *kwnames[] = {
7229 (char *) "self", NULL
7230 };
7231
7232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
7233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = PyInt_FromLong((long)result);
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxGrid *arg1 = (wxGrid *) 0 ;
7251 int result;
7252 PyObject * obj0 = 0 ;
7253 char *kwnames[] = {
7254 (char *) "self", NULL
7255 };
7256
7257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
7258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (int)(arg1)->GetNumberRows();
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 resultobj = PyInt_FromLong((long)result);
7267 return resultobj;
7268 fail:
7269 return NULL;
7270 }
7271
7272
7273 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7274 PyObject *resultobj;
7275 wxGrid *arg1 = (wxGrid *) 0 ;
7276 int result;
7277 PyObject * obj0 = 0 ;
7278 char *kwnames[] = {
7279 (char *) "self", NULL
7280 };
7281
7282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
7283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 result = (int)(arg1)->GetNumberCols();
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = PyInt_FromLong((long)result);
7292 return resultobj;
7293 fail:
7294 return NULL;
7295 }
7296
7297
7298 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj;
7300 wxGrid *arg1 = (wxGrid *) 0 ;
7301 wxGridTableMessage *arg2 = 0 ;
7302 bool result;
7303 PyObject * obj0 = 0 ;
7304 PyObject * obj1 = 0 ;
7305 char *kwnames[] = {
7306 (char *) "self","arg2", NULL
7307 };
7308
7309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
7310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7311 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7312 if (arg2 == NULL) {
7313 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7314 }
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = (bool)(arg1)->ProcessTableMessage(*arg2);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = PyInt_FromLong((long)result);
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 wxGrid *arg1 = (wxGrid *) 0 ;
7332 wxGridTableBase *result;
7333 PyObject * obj0 = 0 ;
7334 char *kwnames[] = {
7335 (char *) "self", NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
7339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
7343
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 {
7348 resultobj = wxPyMake_wxGridTableBase(result);
7349 }
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxGrid *arg1 = (wxGrid *) 0 ;
7359 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7360 bool arg3 = (bool) False ;
7361 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7362 bool result;
7363 PyObject * obj0 = 0 ;
7364 PyObject * obj1 = 0 ;
7365 PyObject * obj2 = 0 ;
7366 char *kwnames[] = {
7367 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
7368 };
7369
7370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
7371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7372 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7373 if (obj2) {
7374 arg3 = PyInt_AsLong(obj2) ? true : false;
7375 if (PyErr_Occurred()) SWIG_fail;
7376 }
7377 {
7378 PyThreadState* __tstate = wxPyBeginAllowThreads();
7379 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
7380
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = PyInt_FromLong((long)result);
7385 return resultobj;
7386 fail:
7387 return NULL;
7388 }
7389
7390
7391 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7392 PyObject *resultobj;
7393 wxGrid *arg1 = (wxGrid *) 0 ;
7394 PyObject * obj0 = 0 ;
7395 char *kwnames[] = {
7396 (char *) "self", NULL
7397 };
7398
7399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
7400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7401 {
7402 PyThreadState* __tstate = wxPyBeginAllowThreads();
7403 (arg1)->ClearGrid();
7404
7405 wxPyEndAllowThreads(__tstate);
7406 if (PyErr_Occurred()) SWIG_fail;
7407 }
7408 Py_INCREF(Py_None); resultobj = Py_None;
7409 return resultobj;
7410 fail:
7411 return NULL;
7412 }
7413
7414
7415 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj;
7417 wxGrid *arg1 = (wxGrid *) 0 ;
7418 int arg2 = (int) 0 ;
7419 int arg3 = (int) 1 ;
7420 bool arg4 = (bool) True ;
7421 bool result;
7422 PyObject * obj0 = 0 ;
7423 PyObject * obj3 = 0 ;
7424 char *kwnames[] = {
7425 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7426 };
7427
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7430 if (obj3) {
7431 arg4 = PyInt_AsLong(obj3) ? true : false;
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = PyInt_FromLong((long)result);
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxGrid *arg1 = (wxGrid *) 0 ;
7451 int arg2 = (int) 1 ;
7452 bool arg3 = (bool) True ;
7453 bool result;
7454 PyObject * obj0 = 0 ;
7455 PyObject * obj2 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendRows",kwnames,&obj0,&arg2,&obj2)) goto fail;
7461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7462 if (obj2) {
7463 arg3 = PyInt_AsLong(obj2) ? true : false;
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 PyThreadState* __tstate = wxPyBeginAllowThreads();
7468 result = (bool)(arg1)->AppendRows(arg2,arg3);
7469
7470 wxPyEndAllowThreads(__tstate);
7471 if (PyErr_Occurred()) SWIG_fail;
7472 }
7473 resultobj = PyInt_FromLong((long)result);
7474 return resultobj;
7475 fail:
7476 return NULL;
7477 }
7478
7479
7480 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7481 PyObject *resultobj;
7482 wxGrid *arg1 = (wxGrid *) 0 ;
7483 int arg2 = (int) 0 ;
7484 int arg3 = (int) 1 ;
7485 bool arg4 = (bool) True ;
7486 bool result;
7487 PyObject * obj0 = 0 ;
7488 PyObject * obj3 = 0 ;
7489 char *kwnames[] = {
7490 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7491 };
7492
7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7495 if (obj3) {
7496 arg4 = PyInt_AsLong(obj3) ? true : false;
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 resultobj = PyInt_FromLong((long)result);
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj;
7515 wxGrid *arg1 = (wxGrid *) 0 ;
7516 int arg2 = (int) 0 ;
7517 int arg3 = (int) 1 ;
7518 bool arg4 = (bool) True ;
7519 bool result;
7520 PyObject * obj0 = 0 ;
7521 PyObject * obj3 = 0 ;
7522 char *kwnames[] = {
7523 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7524 };
7525
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7528 if (obj3) {
7529 arg4 = PyInt_AsLong(obj3) ? true : false;
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 {
7533 PyThreadState* __tstate = wxPyBeginAllowThreads();
7534 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
7535
7536 wxPyEndAllowThreads(__tstate);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 resultobj = PyInt_FromLong((long)result);
7540 return resultobj;
7541 fail:
7542 return NULL;
7543 }
7544
7545
7546 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7547 PyObject *resultobj;
7548 wxGrid *arg1 = (wxGrid *) 0 ;
7549 int arg2 = (int) 1 ;
7550 bool arg3 = (bool) True ;
7551 bool result;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj2 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendCols",kwnames,&obj0,&arg2,&obj2)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7560 if (obj2) {
7561 arg3 = PyInt_AsLong(obj2) ? true : false;
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = (bool)(arg1)->AppendCols(arg2,arg3);
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = PyInt_FromLong((long)result);
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxGrid *arg1 = (wxGrid *) 0 ;
7581 int arg2 = (int) 0 ;
7582 int arg3 = (int) 1 ;
7583 bool arg4 = (bool) True ;
7584 bool result;
7585 PyObject * obj0 = 0 ;
7586 PyObject * obj3 = 0 ;
7587 char *kwnames[] = {
7588 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7589 };
7590
7591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7593 if (obj3) {
7594 arg4 = PyInt_AsLong(obj3) ? true : false;
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 {
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
7600
7601 wxPyEndAllowThreads(__tstate);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 resultobj = PyInt_FromLong((long)result);
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 wxGrid *arg1 = (wxGrid *) 0 ;
7614 wxDC *arg2 = 0 ;
7615 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
7616 PyObject * obj0 = 0 ;
7617 PyObject * obj1 = 0 ;
7618 PyObject * obj2 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "self",(char *) "dc",(char *) "attr", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
7624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7625 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7626 if (arg2 == NULL) {
7627 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7628 }
7629 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7630 {
7631 PyThreadState* __tstate = wxPyBeginAllowThreads();
7632 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
7633
7634 wxPyEndAllowThreads(__tstate);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 }
7637 Py_INCREF(Py_None); resultobj = Py_None;
7638 return resultobj;
7639 fail:
7640 return NULL;
7641 }
7642
7643
7644 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject *resultobj;
7646 wxGrid *arg1 = (wxGrid *) 0 ;
7647 wxDC *arg2 = 0 ;
7648 wxString *arg3 = 0 ;
7649 wxRect *arg4 = 0 ;
7650 int arg5 = (int) wxLEFT ;
7651 int arg6 = (int) wxTOP ;
7652 int arg7 = (int) wxHORIZONTAL ;
7653 bool temp3 = False ;
7654 wxRect temp4 ;
7655 PyObject * obj0 = 0 ;
7656 PyObject * obj1 = 0 ;
7657 PyObject * obj2 = 0 ;
7658 PyObject * obj3 = 0 ;
7659 char *kwnames[] = {
7660 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iii:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&arg7)) goto fail;
7664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7665 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7666 if (arg2 == NULL) {
7667 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7668 }
7669 {
7670 arg3 = wxString_in_helper(obj2);
7671 if (arg3 == NULL) SWIG_fail;
7672 temp3 = True;
7673 }
7674 {
7675 arg4 = &temp4;
7676 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
7681
7682 wxPyEndAllowThreads(__tstate);
7683 if (PyErr_Occurred()) SWIG_fail;
7684 }
7685 Py_INCREF(Py_None); resultobj = Py_None;
7686 {
7687 if (temp3)
7688 delete arg3;
7689 }
7690 return resultobj;
7691 fail:
7692 {
7693 if (temp3)
7694 delete arg3;
7695 }
7696 return NULL;
7697 }
7698
7699
7700 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7701 PyObject *resultobj;
7702 wxGrid *arg1 = (wxGrid *) 0 ;
7703 wxDC *arg2 = 0 ;
7704 wxArrayString *arg3 = 0 ;
7705 long *arg4 = (long *) 0 ;
7706 long *arg5 = (long *) 0 ;
7707 long temp4 ;
7708 long temp5 ;
7709 PyObject * obj0 = 0 ;
7710 PyObject * obj1 = 0 ;
7711 PyObject * obj2 = 0 ;
7712 char *kwnames[] = {
7713 (char *) "self",(char *) "dc",(char *) "lines", NULL
7714 };
7715
7716 arg4 = &temp4;
7717 arg5 = &temp5;
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
7719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7720 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7721 if (arg2 == NULL) {
7722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7723 }
7724 {
7725 if (! PySequence_Check(obj2)) {
7726 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7727 SWIG_fail;
7728 }
7729 arg3 = new wxArrayString;
7730 int i, len=PySequence_Length(obj2);
7731 for (i=0; i<len; i++) {
7732 PyObject* item = PySequence_GetItem(obj2, i);
7733 #if wxUSE_UNICODE
7734 PyObject* str = PyObject_Unicode(item);
7735 #else
7736 PyObject* str = PyObject_Str(item);
7737 #endif
7738 arg3->Add(Py2wxString(str));
7739 Py_DECREF(item);
7740 Py_DECREF(str);
7741 }
7742 }
7743 {
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
7746
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 Py_INCREF(Py_None); resultobj = Py_None;
7751 {
7752 PyObject *o = PyInt_FromLong((long) (*arg4));
7753 resultobj = t_output_helper(resultobj,o);
7754 }
7755 {
7756 PyObject *o = PyInt_FromLong((long) (*arg5));
7757 resultobj = t_output_helper(resultobj,o);
7758 }
7759 {
7760 if (arg3) delete arg3;
7761 }
7762 return resultobj;
7763 fail:
7764 {
7765 if (arg3) delete arg3;
7766 }
7767 return NULL;
7768 }
7769
7770
7771 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
7772 PyObject *resultobj;
7773 wxGrid *arg1 = (wxGrid *) 0 ;
7774 PyObject * obj0 = 0 ;
7775 char *kwnames[] = {
7776 (char *) "self", NULL
7777 };
7778
7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
7780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 (arg1)->BeginBatch();
7784
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 Py_INCREF(Py_None); resultobj = Py_None;
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj;
7797 wxGrid *arg1 = (wxGrid *) 0 ;
7798 PyObject * obj0 = 0 ;
7799 char *kwnames[] = {
7800 (char *) "self", NULL
7801 };
7802
7803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
7804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7805 {
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 (arg1)->EndBatch();
7808
7809 wxPyEndAllowThreads(__tstate);
7810 if (PyErr_Occurred()) SWIG_fail;
7811 }
7812 Py_INCREF(Py_None); resultobj = Py_None;
7813 return resultobj;
7814 fail:
7815 return NULL;
7816 }
7817
7818
7819 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7820 PyObject *resultobj;
7821 wxGrid *arg1 = (wxGrid *) 0 ;
7822 int result;
7823 PyObject * obj0 = 0 ;
7824 char *kwnames[] = {
7825 (char *) "self", NULL
7826 };
7827
7828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
7829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7830 {
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (int)(arg1)->GetBatchCount();
7833
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = PyInt_FromLong((long)result);
7838 return resultobj;
7839 fail:
7840 return NULL;
7841 }
7842
7843
7844 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
7845 PyObject *resultobj;
7846 wxGrid *arg1 = (wxGrid *) 0 ;
7847 PyObject * obj0 = 0 ;
7848 char *kwnames[] = {
7849 (char *) "self", NULL
7850 };
7851
7852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
7853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7854 {
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 (arg1)->ForceRefresh();
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 Py_INCREF(Py_None); resultobj = Py_None;
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj;
7870 wxGrid *arg1 = (wxGrid *) 0 ;
7871 bool arg2 = (bool) True ;
7872 wxRect *arg3 = (wxRect *) NULL ;
7873 PyObject * obj0 = 0 ;
7874 PyObject * obj1 = 0 ;
7875 PyObject * obj2 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "self",(char *) "eraseb",(char *) "rect", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
7881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7882 if (obj1) {
7883 arg2 = PyInt_AsLong(obj1) ? true : false;
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 if (obj2) {
7887 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7888 }
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 (arg1)->Refresh(arg2,(wxRect const *)arg3);
7892
7893 wxPyEndAllowThreads(__tstate);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 Py_INCREF(Py_None); resultobj = Py_None;
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxGrid *arg1 = (wxGrid *) 0 ;
7906 bool result;
7907 PyObject * obj0 = 0 ;
7908 char *kwnames[] = {
7909 (char *) "self", NULL
7910 };
7911
7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (bool)(arg1)->IsEditable();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = PyInt_FromLong((long)result);
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxGrid *arg1 = (wxGrid *) 0 ;
7931 bool arg2 ;
7932 PyObject * obj0 = 0 ;
7933 PyObject * obj1 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self",(char *) "edit", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7940 arg2 = PyInt_AsLong(obj1) ? true : false;
7941 if (PyErr_Occurred()) SWIG_fail;
7942 {
7943 PyThreadState* __tstate = wxPyBeginAllowThreads();
7944 (arg1)->EnableEditing(arg2);
7945
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 Py_INCREF(Py_None); resultobj = Py_None;
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj;
7958 wxGrid *arg1 = (wxGrid *) 0 ;
7959 bool arg2 = (bool) True ;
7960 PyObject * obj0 = 0 ;
7961 PyObject * obj1 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self",(char *) "enable", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7968 if (obj1) {
7969 arg2 = PyInt_AsLong(obj1) ? true : false;
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 (arg1)->EnableCellEditControl(arg2);
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 Py_INCREF(Py_None); resultobj = Py_None;
7980 return resultobj;
7981 fail:
7982 return NULL;
7983 }
7984
7985
7986 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 wxGrid *arg1 = (wxGrid *) 0 ;
7989 PyObject * obj0 = 0 ;
7990 char *kwnames[] = {
7991 (char *) "self", NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
7995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7996 {
7997 PyThreadState* __tstate = wxPyBeginAllowThreads();
7998 (arg1)->DisableCellEditControl();
7999
8000 wxPyEndAllowThreads(__tstate);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 Py_INCREF(Py_None); resultobj = Py_None;
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8011 PyObject *resultobj;
8012 wxGrid *arg1 = (wxGrid *) 0 ;
8013 bool result;
8014 PyObject * obj0 = 0 ;
8015 char *kwnames[] = {
8016 (char *) "self", NULL
8017 };
8018
8019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
8020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = PyInt_FromLong((long)result);
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxGrid *arg1 = (wxGrid *) 0 ;
8038 bool result;
8039 PyObject * obj0 = 0 ;
8040 char *kwnames[] = {
8041 (char *) "self", NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
8045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8046 {
8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
8048 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
8049
8050 wxPyEndAllowThreads(__tstate);
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
8053 resultobj = PyInt_FromLong((long)result);
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj;
8062 wxGrid *arg1 = (wxGrid *) 0 ;
8063 bool result;
8064 PyObject * obj0 = 0 ;
8065 char *kwnames[] = {
8066 (char *) "self", NULL
8067 };
8068
8069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
8070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 resultobj = PyInt_FromLong((long)result);
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxGrid *arg1 = (wxGrid *) 0 ;
8088 bool result;
8089 PyObject * obj0 = 0 ;
8090 char *kwnames[] = {
8091 (char *) "self", NULL
8092 };
8093
8094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail;
8095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8096 {
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
8099
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 resultobj = PyInt_FromLong((long)result);
8104 return resultobj;
8105 fail:
8106 return NULL;
8107 }
8108
8109
8110 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8111 PyObject *resultobj;
8112 wxGrid *arg1 = (wxGrid *) 0 ;
8113 PyObject * obj0 = 0 ;
8114 char *kwnames[] = {
8115 (char *) "self", NULL
8116 };
8117
8118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail;
8119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8120 {
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 (arg1)->ShowCellEditControl();
8123
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 Py_INCREF(Py_None); resultobj = Py_None;
8128 return resultobj;
8129 fail:
8130 return NULL;
8131 }
8132
8133
8134 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj;
8136 wxGrid *arg1 = (wxGrid *) 0 ;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
8143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 (arg1)->HideCellEditControl();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 Py_INCREF(Py_None); resultobj = Py_None;
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxGrid *arg1 = (wxGrid *) 0 ;
8161 PyObject * obj0 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "self", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
8167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 (arg1)->SaveEditControlValue();
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 Py_INCREF(Py_None); resultobj = Py_None;
8176 return resultobj;
8177 fail:
8178 return NULL;
8179 }
8180
8181
8182 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject *resultobj;
8184 wxGrid *arg1 = (wxGrid *) 0 ;
8185 int arg2 ;
8186 int arg3 ;
8187 wxGridCellCoords result;
8188 PyObject * obj0 = 0 ;
8189 char *kwnames[] = {
8190 (char *) "self",(char *) "x",(char *) "y", NULL
8191 };
8192
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_XYToCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
8194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 result = wxGrid_XYToCell(arg1,arg2,arg3);
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 {
8203 wxGridCellCoords * resultptr;
8204 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
8205 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
8206 }
8207 return resultobj;
8208 fail:
8209 return NULL;
8210 }
8211
8212
8213 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8214 PyObject *resultobj;
8215 wxGrid *arg1 = (wxGrid *) 0 ;
8216 int arg2 ;
8217 int result;
8218 PyObject * obj0 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self",(char *) "y", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToRow",kwnames,&obj0,&arg2)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 result = (int)(arg1)->YToRow(arg2);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = PyInt_FromLong((long)result);
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj;
8241 wxGrid *arg1 = (wxGrid *) 0 ;
8242 int arg2 ;
8243 int result;
8244 PyObject * obj0 = 0 ;
8245 char *kwnames[] = {
8246 (char *) "self",(char *) "x", NULL
8247 };
8248
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToCol",kwnames,&obj0,&arg2)) goto fail;
8250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 result = (int)(arg1)->XToCol(arg2);
8254
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = PyInt_FromLong((long)result);
8259 return resultobj;
8260 fail:
8261 return NULL;
8262 }
8263
8264
8265 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8266 PyObject *resultobj;
8267 wxGrid *arg1 = (wxGrid *) 0 ;
8268 int arg2 ;
8269 int result;
8270 PyObject * obj0 = 0 ;
8271 char *kwnames[] = {
8272 (char *) "self",(char *) "y", NULL
8273 };
8274
8275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToEdgeOfRow",kwnames,&obj0,&arg2)) goto fail;
8276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8277 {
8278 PyThreadState* __tstate = wxPyBeginAllowThreads();
8279 result = (int)(arg1)->YToEdgeOfRow(arg2);
8280
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = PyInt_FromLong((long)result);
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8292 PyObject *resultobj;
8293 wxGrid *arg1 = (wxGrid *) 0 ;
8294 int arg2 ;
8295 int result;
8296 PyObject * obj0 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self",(char *) "x", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToEdgeOfCol",kwnames,&obj0,&arg2)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (int)(arg1)->XToEdgeOfCol(arg2);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 resultobj = PyInt_FromLong((long)result);
8311 return resultobj;
8312 fail:
8313 return NULL;
8314 }
8315
8316
8317 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8318 PyObject *resultobj;
8319 wxGrid *arg1 = (wxGrid *) 0 ;
8320 int arg2 ;
8321 int arg3 ;
8322 wxRect result;
8323 PyObject * obj0 = 0 ;
8324 char *kwnames[] = {
8325 (char *) "self",(char *) "row",(char *) "col", NULL
8326 };
8327
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_CellToRect",kwnames,&obj0,&arg2,&arg3)) goto fail;
8329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 result = (arg1)->CellToRect(arg2,arg3);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 {
8338 wxRect * resultptr;
8339 resultptr = new wxRect((wxRect &) result);
8340 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
8341 }
8342 return resultobj;
8343 fail:
8344 return NULL;
8345 }
8346
8347
8348 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj;
8350 wxGrid *arg1 = (wxGrid *) 0 ;
8351 int result;
8352 PyObject * obj0 = 0 ;
8353 char *kwnames[] = {
8354 (char *) "self", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
8358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8359 {
8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
8361 result = (int)(arg1)->GetGridCursorRow();
8362
8363 wxPyEndAllowThreads(__tstate);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 resultobj = PyInt_FromLong((long)result);
8367 return resultobj;
8368 fail:
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxGrid *arg1 = (wxGrid *) 0 ;
8376 int result;
8377 PyObject * obj0 = 0 ;
8378 char *kwnames[] = {
8379 (char *) "self", NULL
8380 };
8381
8382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
8383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8384 {
8385 PyThreadState* __tstate = wxPyBeginAllowThreads();
8386 result = (int)(arg1)->GetGridCursorCol();
8387
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = PyInt_FromLong((long)result);
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj;
8400 wxGrid *arg1 = (wxGrid *) 0 ;
8401 int arg2 ;
8402 int arg3 ;
8403 bool arg4 = (bool) True ;
8404 bool result;
8405 PyObject * obj0 = 0 ;
8406 PyObject * obj3 = 0 ;
8407 char *kwnames[] = {
8408 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
8409 };
8410
8411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_IsVisible",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
8412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8413 if (obj3) {
8414 arg4 = PyInt_AsLong(obj3) ? true : false;
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 {
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
8420
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 resultobj = PyInt_FromLong((long)result);
8425 return resultobj;
8426 fail:
8427 return NULL;
8428 }
8429
8430
8431 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8432 PyObject *resultobj;
8433 wxGrid *arg1 = (wxGrid *) 0 ;
8434 int arg2 ;
8435 int arg3 ;
8436 PyObject * obj0 = 0 ;
8437 char *kwnames[] = {
8438 (char *) "self",(char *) "row",(char *) "col", NULL
8439 };
8440
8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_MakeCellVisible",kwnames,&obj0,&arg2,&arg3)) goto fail;
8442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8443 {
8444 PyThreadState* __tstate = wxPyBeginAllowThreads();
8445 (arg1)->MakeCellVisible(arg2,arg3);
8446
8447 wxPyEndAllowThreads(__tstate);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 Py_INCREF(Py_None); resultobj = Py_None;
8451 return resultobj;
8452 fail:
8453 return NULL;
8454 }
8455
8456
8457 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
8458 PyObject *resultobj;
8459 wxGrid *arg1 = (wxGrid *) 0 ;
8460 int arg2 ;
8461 int arg3 ;
8462 PyObject * obj0 = 0 ;
8463 char *kwnames[] = {
8464 (char *) "self",(char *) "row",(char *) "col", NULL
8465 };
8466
8467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetGridCursor",kwnames,&obj0,&arg2,&arg3)) goto fail;
8468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8469 {
8470 PyThreadState* __tstate = wxPyBeginAllowThreads();
8471 (arg1)->SetGridCursor(arg2,arg3);
8472
8473 wxPyEndAllowThreads(__tstate);
8474 if (PyErr_Occurred()) SWIG_fail;
8475 }
8476 Py_INCREF(Py_None); resultobj = Py_None;
8477 return resultobj;
8478 fail:
8479 return NULL;
8480 }
8481
8482
8483 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj;
8485 wxGrid *arg1 = (wxGrid *) 0 ;
8486 bool arg2 ;
8487 bool result;
8488 PyObject * obj0 = 0 ;
8489 PyObject * obj1 = 0 ;
8490 char *kwnames[] = {
8491 (char *) "self",(char *) "expandSelection", NULL
8492 };
8493
8494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
8495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8496 arg2 = PyInt_AsLong(obj1) ? true : false;
8497 if (PyErr_Occurred()) SWIG_fail;
8498 {
8499 PyThreadState* __tstate = wxPyBeginAllowThreads();
8500 result = (bool)(arg1)->MoveCursorUp(arg2);
8501
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 resultobj = PyInt_FromLong((long)result);
8506 return resultobj;
8507 fail:
8508 return NULL;
8509 }
8510
8511
8512 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8513 PyObject *resultobj;
8514 wxGrid *arg1 = (wxGrid *) 0 ;
8515 bool arg2 ;
8516 bool result;
8517 PyObject * obj0 = 0 ;
8518 PyObject * obj1 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self",(char *) "expandSelection", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8525 arg2 = PyInt_AsLong(obj1) ? true : false;
8526 if (PyErr_Occurred()) SWIG_fail;
8527 {
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 result = (bool)(arg1)->MoveCursorDown(arg2);
8530
8531 wxPyEndAllowThreads(__tstate);
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 resultobj = PyInt_FromLong((long)result);
8535 return resultobj;
8536 fail:
8537 return NULL;
8538 }
8539
8540
8541 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj;
8543 wxGrid *arg1 = (wxGrid *) 0 ;
8544 bool arg2 ;
8545 bool result;
8546 PyObject * obj0 = 0 ;
8547 PyObject * obj1 = 0 ;
8548 char *kwnames[] = {
8549 (char *) "self",(char *) "expandSelection", NULL
8550 };
8551
8552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
8553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8554 arg2 = PyInt_AsLong(obj1) ? true : false;
8555 if (PyErr_Occurred()) SWIG_fail;
8556 {
8557 PyThreadState* __tstate = wxPyBeginAllowThreads();
8558 result = (bool)(arg1)->MoveCursorLeft(arg2);
8559
8560 wxPyEndAllowThreads(__tstate);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
8563 resultobj = PyInt_FromLong((long)result);
8564 return resultobj;
8565 fail:
8566 return NULL;
8567 }
8568
8569
8570 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxGrid *arg1 = (wxGrid *) 0 ;
8573 bool arg2 ;
8574 bool result;
8575 PyObject * obj0 = 0 ;
8576 PyObject * obj1 = 0 ;
8577 char *kwnames[] = {
8578 (char *) "self",(char *) "expandSelection", NULL
8579 };
8580
8581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
8582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8583 arg2 = PyInt_AsLong(obj1) ? true : false;
8584 if (PyErr_Occurred()) SWIG_fail;
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 result = (bool)(arg1)->MoveCursorRight(arg2);
8588
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 resultobj = PyInt_FromLong((long)result);
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxGrid *arg1 = (wxGrid *) 0 ;
8602 bool result;
8603 PyObject * obj0 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = (bool)(arg1)->MovePageDown();
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 resultobj = PyInt_FromLong((long)result);
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxGrid *arg1 = (wxGrid *) 0 ;
8627 bool result;
8628 PyObject * obj0 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8635 {
8636 PyThreadState* __tstate = wxPyBeginAllowThreads();
8637 result = (bool)(arg1)->MovePageUp();
8638
8639 wxPyEndAllowThreads(__tstate);
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 resultobj = PyInt_FromLong((long)result);
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj;
8651 wxGrid *arg1 = (wxGrid *) 0 ;
8652 bool arg2 ;
8653 bool result;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char *kwnames[] = {
8657 (char *) "self",(char *) "expandSelection", NULL
8658 };
8659
8660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
8661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8662 arg2 = PyInt_AsLong(obj1) ? true : false;
8663 if (PyErr_Occurred()) SWIG_fail;
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 resultobj = PyInt_FromLong((long)result);
8672 return resultobj;
8673 fail:
8674 return NULL;
8675 }
8676
8677
8678 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj;
8680 wxGrid *arg1 = (wxGrid *) 0 ;
8681 bool arg2 ;
8682 bool result;
8683 PyObject * obj0 = 0 ;
8684 PyObject * obj1 = 0 ;
8685 char *kwnames[] = {
8686 (char *) "self",(char *) "expandSelection", NULL
8687 };
8688
8689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
8690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8691 arg2 = PyInt_AsLong(obj1) ? true : false;
8692 if (PyErr_Occurred()) SWIG_fail;
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = PyInt_FromLong((long)result);
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxGrid *arg1 = (wxGrid *) 0 ;
8710 bool arg2 ;
8711 bool result;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 char *kwnames[] = {
8715 (char *) "self",(char *) "expandSelection", NULL
8716 };
8717
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
8719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8720 arg2 = PyInt_AsLong(obj1) ? true : false;
8721 if (PyErr_Occurred()) SWIG_fail;
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 resultobj = PyInt_FromLong((long)result);
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 wxGrid *arg1 = (wxGrid *) 0 ;
8739 bool arg2 ;
8740 bool result;
8741 PyObject * obj0 = 0 ;
8742 PyObject * obj1 = 0 ;
8743 char *kwnames[] = {
8744 (char *) "self",(char *) "expandSelection", NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
8748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8749 arg2 = PyInt_AsLong(obj1) ? true : false;
8750 if (PyErr_Occurred()) SWIG_fail;
8751 {
8752 PyThreadState* __tstate = wxPyBeginAllowThreads();
8753 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
8754
8755 wxPyEndAllowThreads(__tstate);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 }
8758 resultobj = PyInt_FromLong((long)result);
8759 return resultobj;
8760 fail:
8761 return NULL;
8762 }
8763
8764
8765 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxGrid *arg1 = (wxGrid *) 0 ;
8768 int result;
8769 PyObject * obj0 = 0 ;
8770 char *kwnames[] = {
8771 (char *) "self", NULL
8772 };
8773
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
8775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8776 {
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 result = (int)(arg1)->GetDefaultRowLabelSize();
8779
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 resultobj = PyInt_FromLong((long)result);
8784 return resultobj;
8785 fail:
8786 return NULL;
8787 }
8788
8789
8790 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8791 PyObject *resultobj;
8792 wxGrid *arg1 = (wxGrid *) 0 ;
8793 int result;
8794 PyObject * obj0 = 0 ;
8795 char *kwnames[] = {
8796 (char *) "self", NULL
8797 };
8798
8799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
8800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 result = (int)(arg1)->GetRowLabelSize();
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 resultobj = PyInt_FromLong((long)result);
8809 return resultobj;
8810 fail:
8811 return NULL;
8812 }
8813
8814
8815 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj;
8817 wxGrid *arg1 = (wxGrid *) 0 ;
8818 int result;
8819 PyObject * obj0 = 0 ;
8820 char *kwnames[] = {
8821 (char *) "self", NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
8825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 result = (int)(arg1)->GetDefaultColLabelSize();
8829
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 resultobj = PyInt_FromLong((long)result);
8834 return resultobj;
8835 fail:
8836 return NULL;
8837 }
8838
8839
8840 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8841 PyObject *resultobj;
8842 wxGrid *arg1 = (wxGrid *) 0 ;
8843 int result;
8844 PyObject * obj0 = 0 ;
8845 char *kwnames[] = {
8846 (char *) "self", NULL
8847 };
8848
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
8850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (int)(arg1)->GetColLabelSize();
8854
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = PyInt_FromLong((long)result);
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj;
8867 wxGrid *arg1 = (wxGrid *) 0 ;
8868 wxColour result;
8869 PyObject * obj0 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8876 {
8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
8878 result = (arg1)->GetLabelBackgroundColour();
8879
8880 wxPyEndAllowThreads(__tstate);
8881 if (PyErr_Occurred()) SWIG_fail;
8882 }
8883 {
8884 wxColour * resultptr;
8885 resultptr = new wxColour((wxColour &) result);
8886 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
8887 }
8888 return resultobj;
8889 fail:
8890 return NULL;
8891 }
8892
8893
8894 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8895 PyObject *resultobj;
8896 wxGrid *arg1 = (wxGrid *) 0 ;
8897 wxColour result;
8898 PyObject * obj0 = 0 ;
8899 char *kwnames[] = {
8900 (char *) "self", NULL
8901 };
8902
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
8904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (arg1)->GetLabelTextColour();
8908
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 {
8913 wxColour * resultptr;
8914 resultptr = new wxColour((wxColour &) result);
8915 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
8916 }
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxGrid *arg1 = (wxGrid *) 0 ;
8926 wxFont result;
8927 PyObject * obj0 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "self", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
8933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = (arg1)->GetLabelFont();
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 {
8942 wxFont * resultptr;
8943 resultptr = new wxFont((wxFont &) result);
8944 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
8945 }
8946 return resultobj;
8947 fail:
8948 return NULL;
8949 }
8950
8951
8952 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
8953 PyObject *resultobj;
8954 wxGrid *arg1 = (wxGrid *) 0 ;
8955 int *arg2 = (int *) 0 ;
8956 int *arg3 = (int *) 0 ;
8957 int temp2 ;
8958 int temp3 ;
8959 PyObject * obj0 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self", NULL
8962 };
8963
8964 arg2 = &temp2;
8965 arg3 = &temp3;
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 (arg1)->GetRowLabelAlignment(arg2,arg3);
8971
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 Py_INCREF(Py_None); resultobj = Py_None;
8976 {
8977 PyObject *o = PyInt_FromLong((long) (*arg2));
8978 resultobj = t_output_helper(resultobj,o);
8979 }
8980 {
8981 PyObject *o = PyInt_FromLong((long) (*arg3));
8982 resultobj = t_output_helper(resultobj,o);
8983 }
8984 return resultobj;
8985 fail:
8986 return NULL;
8987 }
8988
8989
8990 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj;
8992 wxGrid *arg1 = (wxGrid *) 0 ;
8993 int *arg2 = (int *) 0 ;
8994 int *arg3 = (int *) 0 ;
8995 int temp2 ;
8996 int temp3 ;
8997 PyObject * obj0 = 0 ;
8998 char *kwnames[] = {
8999 (char *) "self", NULL
9000 };
9001
9002 arg2 = &temp2;
9003 arg3 = &temp3;
9004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
9005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 (arg1)->GetColLabelAlignment(arg2,arg3);
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 Py_INCREF(Py_None); resultobj = Py_None;
9014 {
9015 PyObject *o = PyInt_FromLong((long) (*arg2));
9016 resultobj = t_output_helper(resultobj,o);
9017 }
9018 {
9019 PyObject *o = PyInt_FromLong((long) (*arg3));
9020 resultobj = t_output_helper(resultobj,o);
9021 }
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxGrid *arg1 = (wxGrid *) 0 ;
9031 int result;
9032 PyObject * obj0 = 0 ;
9033 char *kwnames[] = {
9034 (char *) "self", NULL
9035 };
9036
9037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
9038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (int)(arg1)->GetColLabelTextOrientation();
9042
9043 wxPyEndAllowThreads(__tstate);
9044 if (PyErr_Occurred()) SWIG_fail;
9045 }
9046 resultobj = PyInt_FromLong((long)result);
9047 return resultobj;
9048 fail:
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9054 PyObject *resultobj;
9055 wxGrid *arg1 = (wxGrid *) 0 ;
9056 int arg2 ;
9057 wxString result;
9058 PyObject * obj0 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self",(char *) "row", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9065 {
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 result = (arg1)->GetRowLabelValue(arg2);
9068
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 {
9073 #if wxUSE_UNICODE
9074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9075 #else
9076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9077 #endif
9078 }
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj;
9087 wxGrid *arg1 = (wxGrid *) 0 ;
9088 int arg2 ;
9089 wxString result;
9090 PyObject * obj0 = 0 ;
9091 char *kwnames[] = {
9092 (char *) "self",(char *) "col", NULL
9093 };
9094
9095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
9096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9097 {
9098 PyThreadState* __tstate = wxPyBeginAllowThreads();
9099 result = (arg1)->GetColLabelValue(arg2);
9100
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 {
9105 #if wxUSE_UNICODE
9106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9107 #else
9108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9109 #endif
9110 }
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj;
9119 wxGrid *arg1 = (wxGrid *) 0 ;
9120 wxColour result;
9121 PyObject * obj0 = 0 ;
9122 char *kwnames[] = {
9123 (char *) "self", NULL
9124 };
9125
9126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
9127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 result = (arg1)->GetGridLineColour();
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 {
9136 wxColour * resultptr;
9137 resultptr = new wxColour((wxColour &) result);
9138 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9139 }
9140 return resultobj;
9141 fail:
9142 return NULL;
9143 }
9144
9145
9146 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
9148 wxGrid *arg1 = (wxGrid *) 0 ;
9149 wxColour result;
9150 PyObject * obj0 = 0 ;
9151 char *kwnames[] = {
9152 (char *) "self", NULL
9153 };
9154
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
9156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 result = (arg1)->GetCellHighlightColour();
9160
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 {
9165 wxColour * resultptr;
9166 resultptr = new wxColour((wxColour &) result);
9167 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9168 }
9169 return resultobj;
9170 fail:
9171 return NULL;
9172 }
9173
9174
9175 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj;
9177 wxGrid *arg1 = (wxGrid *) 0 ;
9178 int result;
9179 PyObject * obj0 = 0 ;
9180 char *kwnames[] = {
9181 (char *) "self", NULL
9182 };
9183
9184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
9185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (int)(arg1)->GetCellHighlightPenWidth();
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 resultobj = PyInt_FromLong((long)result);
9194 return resultobj;
9195 fail:
9196 return NULL;
9197 }
9198
9199
9200 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj;
9202 wxGrid *arg1 = (wxGrid *) 0 ;
9203 int result;
9204 PyObject * obj0 = 0 ;
9205 char *kwnames[] = {
9206 (char *) "self", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
9210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 result = (int)(arg1)->GetCellHighlightROPenWidth();
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = PyInt_FromLong((long)result);
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj;
9227 wxGrid *arg1 = (wxGrid *) 0 ;
9228 int arg2 ;
9229 PyObject * obj0 = 0 ;
9230 char *kwnames[] = {
9231 (char *) "self",(char *) "width", NULL
9232 };
9233
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
9235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 (arg1)->SetRowLabelSize(arg2);
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 Py_INCREF(Py_None); resultobj = Py_None;
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxGrid *arg1 = (wxGrid *) 0 ;
9253 int arg2 ;
9254 PyObject * obj0 = 0 ;
9255 char *kwnames[] = {
9256 (char *) "self",(char *) "height", NULL
9257 };
9258
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelSize",kwnames,&obj0,&arg2)) goto fail;
9260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9261 {
9262 PyThreadState* __tstate = wxPyBeginAllowThreads();
9263 (arg1)->SetColLabelSize(arg2);
9264
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 Py_INCREF(Py_None); resultobj = Py_None;
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9276 PyObject *resultobj;
9277 wxGrid *arg1 = (wxGrid *) 0 ;
9278 wxColour *arg2 = 0 ;
9279 wxColour temp2 ;
9280 PyObject * obj0 = 0 ;
9281 PyObject * obj1 = 0 ;
9282 char *kwnames[] = {
9283 (char *) "self","arg2", NULL
9284 };
9285
9286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
9287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9288 {
9289 arg2 = &temp2;
9290 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9291 }
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 Py_INCREF(Py_None); resultobj = Py_None;
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj;
9308 wxGrid *arg1 = (wxGrid *) 0 ;
9309 wxColour *arg2 = 0 ;
9310 wxColour temp2 ;
9311 PyObject * obj0 = 0 ;
9312 PyObject * obj1 = 0 ;
9313 char *kwnames[] = {
9314 (char *) "self","arg2", NULL
9315 };
9316
9317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
9318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9319 {
9320 arg2 = &temp2;
9321 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9322 }
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
9326
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
9330 Py_INCREF(Py_None); resultobj = Py_None;
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9338 PyObject *resultobj;
9339 wxGrid *arg1 = (wxGrid *) 0 ;
9340 wxFont *arg2 = 0 ;
9341 PyObject * obj0 = 0 ;
9342 PyObject * obj1 = 0 ;
9343 char *kwnames[] = {
9344 (char *) "self","arg2", NULL
9345 };
9346
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
9348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9349 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9350 if (arg2 == NULL) {
9351 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9352 }
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 (arg1)->SetLabelFont((wxFont const &)*arg2);
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 Py_INCREF(Py_None); resultobj = Py_None;
9361 return resultobj;
9362 fail:
9363 return NULL;
9364 }
9365
9366
9367 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9368 PyObject *resultobj;
9369 wxGrid *arg1 = (wxGrid *) 0 ;
9370 int arg2 ;
9371 int arg3 ;
9372 PyObject * obj0 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 (arg1)->SetRowLabelAlignment(arg2,arg3);
9382
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 Py_INCREF(Py_None); resultobj = Py_None;
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj;
9395 wxGrid *arg1 = (wxGrid *) 0 ;
9396 int arg2 ;
9397 int arg3 ;
9398 PyObject * obj0 = 0 ;
9399 char *kwnames[] = {
9400 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9401 };
9402
9403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9405 {
9406 PyThreadState* __tstate = wxPyBeginAllowThreads();
9407 (arg1)->SetColLabelAlignment(arg2,arg3);
9408
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 Py_INCREF(Py_None); resultobj = Py_None;
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj;
9421 wxGrid *arg1 = (wxGrid *) 0 ;
9422 int arg2 ;
9423 PyObject * obj0 = 0 ;
9424 char *kwnames[] = {
9425 (char *) "self",(char *) "textOrientation", NULL
9426 };
9427
9428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelTextOrientation",kwnames,&obj0,&arg2)) goto fail;
9429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 (arg1)->SetColLabelTextOrientation(arg2);
9433
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 Py_INCREF(Py_None); resultobj = Py_None;
9438 return resultobj;
9439 fail:
9440 return NULL;
9441 }
9442
9443
9444 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj;
9446 wxGrid *arg1 = (wxGrid *) 0 ;
9447 int arg2 ;
9448 wxString *arg3 = 0 ;
9449 bool temp3 = False ;
9450 PyObject * obj0 = 0 ;
9451 PyObject * obj2 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "self",(char *) "row","arg3", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9458 {
9459 arg3 = wxString_in_helper(obj2);
9460 if (arg3 == NULL) SWIG_fail;
9461 temp3 = True;
9462 }
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
9466
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 Py_INCREF(Py_None); resultobj = Py_None;
9471 {
9472 if (temp3)
9473 delete arg3;
9474 }
9475 return resultobj;
9476 fail:
9477 {
9478 if (temp3)
9479 delete arg3;
9480 }
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxGrid *arg1 = (wxGrid *) 0 ;
9488 int arg2 ;
9489 wxString *arg3 = 0 ;
9490 bool temp3 = False ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj2 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self",(char *) "col","arg3", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9499 {
9500 arg3 = wxString_in_helper(obj2);
9501 if (arg3 == NULL) SWIG_fail;
9502 temp3 = True;
9503 }
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 Py_INCREF(Py_None); resultobj = Py_None;
9512 {
9513 if (temp3)
9514 delete arg3;
9515 }
9516 return resultobj;
9517 fail:
9518 {
9519 if (temp3)
9520 delete arg3;
9521 }
9522 return NULL;
9523 }
9524
9525
9526 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9527 PyObject *resultobj;
9528 wxGrid *arg1 = (wxGrid *) 0 ;
9529 wxColour *arg2 = 0 ;
9530 wxColour temp2 ;
9531 PyObject * obj0 = 0 ;
9532 PyObject * obj1 = 0 ;
9533 char *kwnames[] = {
9534 (char *) "self","arg2", NULL
9535 };
9536
9537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
9538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9539 {
9540 arg2 = &temp2;
9541 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9542 }
9543 {
9544 PyThreadState* __tstate = wxPyBeginAllowThreads();
9545 (arg1)->SetGridLineColour((wxColour const &)*arg2);
9546
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 Py_INCREF(Py_None); resultobj = Py_None;
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj;
9559 wxGrid *arg1 = (wxGrid *) 0 ;
9560 wxColour *arg2 = 0 ;
9561 wxColour temp2 ;
9562 PyObject * obj0 = 0 ;
9563 PyObject * obj1 = 0 ;
9564 char *kwnames[] = {
9565 (char *) "self","arg2", NULL
9566 };
9567
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
9569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9570 {
9571 arg2 = &temp2;
9572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9573 }
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 Py_INCREF(Py_None); resultobj = Py_None;
9582 return resultobj;
9583 fail:
9584 return NULL;
9585 }
9586
9587
9588 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 wxGrid *arg1 = (wxGrid *) 0 ;
9591 int arg2 ;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "self",(char *) "width", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&arg2)) goto fail;
9598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 (arg1)->SetCellHighlightPenWidth(arg2);
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 Py_INCREF(Py_None); resultobj = Py_None;
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj;
9615 wxGrid *arg1 = (wxGrid *) 0 ;
9616 int arg2 ;
9617 PyObject * obj0 = 0 ;
9618 char *kwnames[] = {
9619 (char *) "self",(char *) "width", NULL
9620 };
9621
9622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&arg2)) goto fail;
9623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 (arg1)->SetCellHighlightROPenWidth(arg2);
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 Py_INCREF(Py_None); resultobj = Py_None;
9632 return resultobj;
9633 fail:
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxGrid *arg1 = (wxGrid *) 0 ;
9641 bool arg2 = (bool) True ;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 char *kwnames[] = {
9645 (char *) "self",(char *) "enable", NULL
9646 };
9647
9648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
9649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9650 if (obj1) {
9651 arg2 = PyInt_AsLong(obj1) ? true : false;
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 (arg1)->EnableDragRowSize(arg2);
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 Py_INCREF(Py_None); resultobj = Py_None;
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxGrid *arg1 = (wxGrid *) 0 ;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 (arg1)->DisableDragRowSize();
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 Py_INCREF(Py_None); resultobj = Py_None;
9686 return resultobj;
9687 fail:
9688 return NULL;
9689 }
9690
9691
9692 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj;
9694 wxGrid *arg1 = (wxGrid *) 0 ;
9695 bool result;
9696 PyObject * obj0 = 0 ;
9697 char *kwnames[] = {
9698 (char *) "self", NULL
9699 };
9700
9701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
9702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 result = (bool)(arg1)->CanDragRowSize();
9706
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 resultobj = PyInt_FromLong((long)result);
9711 return resultobj;
9712 fail:
9713 return NULL;
9714 }
9715
9716
9717 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9718 PyObject *resultobj;
9719 wxGrid *arg1 = (wxGrid *) 0 ;
9720 bool arg2 = (bool) True ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 char *kwnames[] = {
9724 (char *) "self",(char *) "enable", NULL
9725 };
9726
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
9728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9729 if (obj1) {
9730 arg2 = PyInt_AsLong(obj1) ? true : false;
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 {
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 (arg1)->EnableDragColSize(arg2);
9736
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 Py_INCREF(Py_None); resultobj = Py_None;
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj;
9749 wxGrid *arg1 = (wxGrid *) 0 ;
9750 PyObject * obj0 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "self", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 (arg1)->DisableDragColSize();
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 Py_INCREF(Py_None); resultobj = Py_None;
9765 return resultobj;
9766 fail:
9767 return NULL;
9768 }
9769
9770
9771 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj;
9773 wxGrid *arg1 = (wxGrid *) 0 ;
9774 bool result;
9775 PyObject * obj0 = 0 ;
9776 char *kwnames[] = {
9777 (char *) "self", NULL
9778 };
9779
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
9781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (bool)(arg1)->CanDragColSize();
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = PyInt_FromLong((long)result);
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 wxGrid *arg1 = (wxGrid *) 0 ;
9799 bool arg2 = (bool) True ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "self",(char *) "enable", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
9807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9808 if (obj1) {
9809 arg2 = PyInt_AsLong(obj1) ? true : false;
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 (arg1)->EnableDragGridSize(arg2);
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 Py_INCREF(Py_None); resultobj = Py_None;
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxGrid *arg1 = (wxGrid *) 0 ;
9829 PyObject * obj0 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
9835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 (arg1)->DisableDragGridSize();
9839
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 Py_INCREF(Py_None); resultobj = Py_None;
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj;
9852 wxGrid *arg1 = (wxGrid *) 0 ;
9853 bool result;
9854 PyObject * obj0 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "self", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
9860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (bool)(arg1)->CanDragGridSize();
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 resultobj = PyInt_FromLong((long)result);
9869 return resultobj;
9870 fail:
9871 return NULL;
9872 }
9873
9874
9875 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj;
9877 wxGrid *arg1 = (wxGrid *) 0 ;
9878 int arg2 ;
9879 int arg3 ;
9880 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
9881 PyObject * obj0 = 0 ;
9882 PyObject * obj3 = 0 ;
9883 char *kwnames[] = {
9884 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
9885 };
9886
9887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetAttr",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
9888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9889 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 (arg1)->SetAttr(arg2,arg3,arg4);
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 Py_INCREF(Py_None); resultobj = Py_None;
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxGrid *arg1 = (wxGrid *) 0 ;
9907 int arg2 ;
9908 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
9909 PyObject * obj0 = 0 ;
9910 PyObject * obj2 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self",(char *) "row",(char *) "attr", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9917 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 (arg1)->SetRowAttr(arg2,arg3);
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 Py_INCREF(Py_None); resultobj = Py_None;
9926 return resultobj;
9927 fail:
9928 return NULL;
9929 }
9930
9931
9932 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject *resultobj;
9934 wxGrid *arg1 = (wxGrid *) 0 ;
9935 int arg2 ;
9936 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
9937 PyObject * obj0 = 0 ;
9938 PyObject * obj2 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self",(char *) "col",(char *) "attr", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9945 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 (arg1)->SetColAttr(arg2,arg3);
9949
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 Py_INCREF(Py_None); resultobj = Py_None;
9954 return resultobj;
9955 fail:
9956 return NULL;
9957 }
9958
9959
9960 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 wxGrid *arg1 = (wxGrid *) 0 ;
9963 int arg2 ;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self",(char *) "col", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatBool",kwnames,&obj0,&arg2)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 (arg1)->SetColFormatBool(arg2);
9974
9975 wxPyEndAllowThreads(__tstate);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
9978 Py_INCREF(Py_None); resultobj = Py_None;
9979 return resultobj;
9980 fail:
9981 return NULL;
9982 }
9983
9984
9985 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
9986 PyObject *resultobj;
9987 wxGrid *arg1 = (wxGrid *) 0 ;
9988 int arg2 ;
9989 PyObject * obj0 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "self",(char *) "col", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatNumber",kwnames,&obj0,&arg2)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 (arg1)->SetColFormatNumber(arg2);
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 Py_INCREF(Py_None); resultobj = Py_None;
10004 return resultobj;
10005 fail:
10006 return NULL;
10007 }
10008
10009
10010 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxGrid *arg1 = (wxGrid *) 0 ;
10013 int arg2 ;
10014 int arg3 = (int) -1 ;
10015 int arg4 = (int) -1 ;
10016 PyObject * obj0 = 0 ;
10017 char *kwnames[] = {
10018 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
10019 };
10020
10021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:Grid_SetColFormatFloat",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10023 {
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
10026
10027 wxPyEndAllowThreads(__tstate);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 Py_INCREF(Py_None); resultobj = Py_None;
10031 return resultobj;
10032 fail:
10033 return NULL;
10034 }
10035
10036
10037 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj;
10039 wxGrid *arg1 = (wxGrid *) 0 ;
10040 int arg2 ;
10041 wxString *arg3 = 0 ;
10042 bool temp3 = False ;
10043 PyObject * obj0 = 0 ;
10044 PyObject * obj2 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self",(char *) "col",(char *) "typeName", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColFormatCustom",kwnames,&obj0,&arg2,&obj2)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10051 {
10052 arg3 = wxString_in_helper(obj2);
10053 if (arg3 == NULL) SWIG_fail;
10054 temp3 = True;
10055 }
10056 {
10057 PyThreadState* __tstate = wxPyBeginAllowThreads();
10058 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
10059
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 Py_INCREF(Py_None); resultobj = Py_None;
10064 {
10065 if (temp3)
10066 delete arg3;
10067 }
10068 return resultobj;
10069 fail:
10070 {
10071 if (temp3)
10072 delete arg3;
10073 }
10074 return NULL;
10075 }
10076
10077
10078 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10079 PyObject *resultobj;
10080 wxGrid *arg1 = (wxGrid *) 0 ;
10081 bool arg2 = (bool) True ;
10082 PyObject * obj0 = 0 ;
10083 PyObject * obj1 = 0 ;
10084 char *kwnames[] = {
10085 (char *) "self",(char *) "enable", NULL
10086 };
10087
10088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
10089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10090 if (obj1) {
10091 arg2 = PyInt_AsLong(obj1) ? true : false;
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 (arg1)->EnableGridLines(arg2);
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 Py_INCREF(Py_None); resultobj = Py_None;
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxGrid *arg1 = (wxGrid *) 0 ;
10111 bool result;
10112 PyObject * obj0 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (bool)(arg1)->GridLinesEnabled();
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 resultobj = PyInt_FromLong((long)result);
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj;
10135 wxGrid *arg1 = (wxGrid *) 0 ;
10136 int result;
10137 PyObject * obj0 = 0 ;
10138 char *kwnames[] = {
10139 (char *) "self", NULL
10140 };
10141
10142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
10143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 result = (int)(arg1)->GetDefaultRowSize();
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 resultobj = PyInt_FromLong((long)result);
10152 return resultobj;
10153 fail:
10154 return NULL;
10155 }
10156
10157
10158 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10159 PyObject *resultobj;
10160 wxGrid *arg1 = (wxGrid *) 0 ;
10161 int arg2 ;
10162 int result;
10163 PyObject * obj0 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self",(char *) "row", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowSize",kwnames,&obj0,&arg2)) goto fail;
10169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (int)(arg1)->GetRowSize(arg2);
10173
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 resultobj = PyInt_FromLong((long)result);
10178 return resultobj;
10179 fail:
10180 return NULL;
10181 }
10182
10183
10184 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10185 PyObject *resultobj;
10186 wxGrid *arg1 = (wxGrid *) 0 ;
10187 int result;
10188 PyObject * obj0 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10195 {
10196 PyThreadState* __tstate = wxPyBeginAllowThreads();
10197 result = (int)(arg1)->GetDefaultColSize();
10198
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 resultobj = PyInt_FromLong((long)result);
10203 return resultobj;
10204 fail:
10205 return NULL;
10206 }
10207
10208
10209 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10210 PyObject *resultobj;
10211 wxGrid *arg1 = (wxGrid *) 0 ;
10212 int arg2 ;
10213 int result;
10214 PyObject * obj0 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self",(char *) "col", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColSize",kwnames,&obj0,&arg2)) goto fail;
10220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10221 {
10222 PyThreadState* __tstate = wxPyBeginAllowThreads();
10223 result = (int)(arg1)->GetColSize(arg2);
10224
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 resultobj = PyInt_FromLong((long)result);
10229 return resultobj;
10230 fail:
10231 return NULL;
10232 }
10233
10234
10235 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj;
10237 wxGrid *arg1 = (wxGrid *) 0 ;
10238 wxColour result;
10239 PyObject * obj0 = 0 ;
10240 char *kwnames[] = {
10241 (char *) "self", NULL
10242 };
10243
10244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
10245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (arg1)->GetDefaultCellBackgroundColour();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 {
10254 wxColour * resultptr;
10255 resultptr = new wxColour((wxColour &) result);
10256 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10257 }
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxGrid *arg1 = (wxGrid *) 0 ;
10267 int arg2 ;
10268 int arg3 ;
10269 wxColour result;
10270 PyObject * obj0 = 0 ;
10271 char *kwnames[] = {
10272 (char *) "self",(char *) "row",(char *) "col", NULL
10273 };
10274
10275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
10280
10281 wxPyEndAllowThreads(__tstate);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 {
10285 wxColour * resultptr;
10286 resultptr = new wxColour((wxColour &) result);
10287 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10288 }
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxGrid *arg1 = (wxGrid *) 0 ;
10298 wxColour result;
10299 PyObject * obj0 = 0 ;
10300 char *kwnames[] = {
10301 (char *) "self", NULL
10302 };
10303
10304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
10305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = (arg1)->GetDefaultCellTextColour();
10309
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 {
10314 wxColour * resultptr;
10315 resultptr = new wxColour((wxColour &) result);
10316 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10317 }
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj;
10326 wxGrid *arg1 = (wxGrid *) 0 ;
10327 int arg2 ;
10328 int arg3 ;
10329 wxColour result;
10330 PyObject * obj0 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self",(char *) "row",(char *) "col", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellTextColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 result = (arg1)->GetCellTextColour(arg2,arg3);
10340
10341 wxPyEndAllowThreads(__tstate);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 {
10345 wxColour * resultptr;
10346 resultptr = new wxColour((wxColour &) result);
10347 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10348 }
10349 return resultobj;
10350 fail:
10351 return NULL;
10352 }
10353
10354
10355 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10356 PyObject *resultobj;
10357 wxGrid *arg1 = (wxGrid *) 0 ;
10358 wxFont result;
10359 PyObject * obj0 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "self", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
10365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 result = (arg1)->GetDefaultCellFont();
10369
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 {
10374 wxFont * resultptr;
10375 resultptr = new wxFont((wxFont &) result);
10376 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10377 }
10378 return resultobj;
10379 fail:
10380 return NULL;
10381 }
10382
10383
10384 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxGrid *arg1 = (wxGrid *) 0 ;
10387 int arg2 ;
10388 int arg3 ;
10389 wxFont result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self",(char *) "row",(char *) "col", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellFont",kwnames,&obj0,&arg2,&arg3)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (arg1)->GetCellFont(arg2,arg3);
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 wxFont * resultptr;
10406 resultptr = new wxFont((wxFont &) result);
10407 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10408 }
10409 return resultobj;
10410 fail:
10411 return NULL;
10412 }
10413
10414
10415 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10416 PyObject *resultobj;
10417 wxGrid *arg1 = (wxGrid *) 0 ;
10418 int *arg2 = (int *) 0 ;
10419 int *arg3 = (int *) 0 ;
10420 int temp2 ;
10421 int temp3 ;
10422 PyObject * obj0 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self", NULL
10425 };
10426
10427 arg2 = &temp2;
10428 arg3 = &temp3;
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 (arg1)->GetDefaultCellAlignment(arg2,arg3);
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 Py_INCREF(Py_None); resultobj = Py_None;
10439 {
10440 PyObject *o = PyInt_FromLong((long) (*arg2));
10441 resultobj = t_output_helper(resultobj,o);
10442 }
10443 {
10444 PyObject *o = PyInt_FromLong((long) (*arg3));
10445 resultobj = t_output_helper(resultobj,o);
10446 }
10447 return resultobj;
10448 fail:
10449 return NULL;
10450 }
10451
10452
10453 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10454 PyObject *resultobj;
10455 wxGrid *arg1 = (wxGrid *) 0 ;
10456 int arg2 ;
10457 int arg3 ;
10458 int *arg4 = (int *) 0 ;
10459 int *arg5 = (int *) 0 ;
10460 int temp4 ;
10461 int temp5 ;
10462 PyObject * obj0 = 0 ;
10463 char *kwnames[] = {
10464 (char *) "self",(char *) "row",(char *) "col", NULL
10465 };
10466
10467 arg4 = &temp4;
10468 arg5 = &temp5;
10469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
10470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
10474
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 Py_INCREF(Py_None); resultobj = Py_None;
10479 {
10480 PyObject *o = PyInt_FromLong((long) (*arg4));
10481 resultobj = t_output_helper(resultobj,o);
10482 }
10483 {
10484 PyObject *o = PyInt_FromLong((long) (*arg5));
10485 resultobj = t_output_helper(resultobj,o);
10486 }
10487 return resultobj;
10488 fail:
10489 return NULL;
10490 }
10491
10492
10493 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj;
10495 wxGrid *arg1 = (wxGrid *) 0 ;
10496 bool result;
10497 PyObject * obj0 = 0 ;
10498 char *kwnames[] = {
10499 (char *) "self", NULL
10500 };
10501
10502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
10503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = (bool)(arg1)->GetDefaultCellOverflow();
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = PyInt_FromLong((long)result);
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxGrid *arg1 = (wxGrid *) 0 ;
10521 int arg2 ;
10522 int arg3 ;
10523 bool result;
10524 PyObject * obj0 = 0 ;
10525 char *kwnames[] = {
10526 (char *) "self",(char *) "row",(char *) "col", NULL
10527 };
10528
10529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellOverflow",kwnames,&obj0,&arg2,&arg3)) goto fail;
10530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
10534
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = PyInt_FromLong((long)result);
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj;
10547 wxGrid *arg1 = (wxGrid *) 0 ;
10548 int arg2 ;
10549 int arg3 ;
10550 int *arg4 = (int *) 0 ;
10551 int *arg5 = (int *) 0 ;
10552 int temp4 ;
10553 int temp5 ;
10554 PyObject * obj0 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self",(char *) "row",(char *) "col", NULL
10557 };
10558
10559 arg4 = &temp4;
10560 arg5 = &temp5;
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
10566
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 Py_INCREF(Py_None); resultobj = Py_None;
10571 {
10572 PyObject *o = PyInt_FromLong((long) (*arg4));
10573 resultobj = t_output_helper(resultobj,o);
10574 }
10575 {
10576 PyObject *o = PyInt_FromLong((long) (*arg5));
10577 resultobj = t_output_helper(resultobj,o);
10578 }
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj;
10587 wxGrid *arg1 = (wxGrid *) 0 ;
10588 int arg2 ;
10589 bool arg3 = (bool) False ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj2 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultRowSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10598 if (obj2) {
10599 arg3 = PyInt_AsLong(obj2) ? true : false;
10600 if (PyErr_Occurred()) SWIG_fail;
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->SetDefaultRowSize(arg2,arg3);
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 Py_INCREF(Py_None); resultobj = Py_None;
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxGrid *arg1 = (wxGrid *) 0 ;
10619 int arg2 ;
10620 int arg3 ;
10621 PyObject * obj0 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self",(char *) "row",(char *) "height", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 (arg1)->SetRowSize(arg2,arg3);
10631
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 Py_INCREF(Py_None); resultobj = Py_None;
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj;
10644 wxGrid *arg1 = (wxGrid *) 0 ;
10645 int arg2 ;
10646 bool arg3 = (bool) False ;
10647 PyObject * obj0 = 0 ;
10648 PyObject * obj2 = 0 ;
10649 char *kwnames[] = {
10650 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
10651 };
10652
10653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultColSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10655 if (obj2) {
10656 arg3 = PyInt_AsLong(obj2) ? true : false;
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->SetDefaultColSize(arg2,arg3);
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 Py_INCREF(Py_None); resultobj = Py_None;
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxGrid *arg1 = (wxGrid *) 0 ;
10676 int arg2 ;
10677 int arg3 ;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "col",(char *) "width", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 (arg1)->SetColSize(arg2,arg3);
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 Py_INCREF(Py_None); resultobj = Py_None;
10693 return resultobj;
10694 fail:
10695 return NULL;
10696 }
10697
10698
10699 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxGrid *arg1 = (wxGrid *) 0 ;
10702 int arg2 ;
10703 bool arg3 = (bool) True ;
10704 PyObject * obj0 = 0 ;
10705 PyObject * obj2 = 0 ;
10706 char *kwnames[] = {
10707 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
10708 };
10709
10710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeColumn",kwnames,&obj0,&arg2,&obj2)) goto fail;
10711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10712 if (obj2) {
10713 arg3 = PyInt_AsLong(obj2) ? true : false;
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 (arg1)->AutoSizeColumn(arg2,arg3);
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 Py_INCREF(Py_None); resultobj = Py_None;
10724 return resultobj;
10725 fail:
10726 return NULL;
10727 }
10728
10729
10730 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj;
10732 wxGrid *arg1 = (wxGrid *) 0 ;
10733 int arg2 ;
10734 bool arg3 = (bool) True ;
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 char *kwnames[] = {
10738 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
10739 };
10740
10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
10742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10743 if (obj2) {
10744 arg3 = PyInt_AsLong(obj2) ? true : false;
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 (arg1)->AutoSizeRow(arg2,arg3);
10750
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) SWIG_fail;
10753 }
10754 Py_INCREF(Py_None); resultobj = Py_None;
10755 return resultobj;
10756 fail:
10757 return NULL;
10758 }
10759
10760
10761 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
10762 PyObject *resultobj;
10763 wxGrid *arg1 = (wxGrid *) 0 ;
10764 bool arg2 = (bool) True ;
10765 PyObject * obj0 = 0 ;
10766 PyObject * obj1 = 0 ;
10767 char *kwnames[] = {
10768 (char *) "self",(char *) "setAsMin", NULL
10769 };
10770
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
10772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10773 if (obj1) {
10774 arg2 = PyInt_AsLong(obj1) ? true : false;
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 (arg1)->AutoSizeColumns(arg2);
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 Py_INCREF(Py_None); resultobj = Py_None;
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxGrid *arg1 = (wxGrid *) 0 ;
10794 bool arg2 = (bool) True ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 char *kwnames[] = {
10798 (char *) "self",(char *) "setAsMin", NULL
10799 };
10800
10801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
10802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10803 if (obj1) {
10804 arg2 = PyInt_AsLong(obj1) ? true : false;
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 (arg1)->AutoSizeRows(arg2);
10810
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 Py_INCREF(Py_None); resultobj = Py_None;
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj;
10823 wxGrid *arg1 = (wxGrid *) 0 ;
10824 PyObject * obj0 = 0 ;
10825 char *kwnames[] = {
10826 (char *) "self", NULL
10827 };
10828
10829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
10830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10831 {
10832 PyThreadState* __tstate = wxPyBeginAllowThreads();
10833 (arg1)->AutoSize();
10834
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 Py_INCREF(Py_None); resultobj = Py_None;
10839 return resultobj;
10840 fail:
10841 return NULL;
10842 }
10843
10844
10845 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj;
10847 wxGrid *arg1 = (wxGrid *) 0 ;
10848 int arg2 ;
10849 PyObject * obj0 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self",(char *) "row", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 (arg1)->AutoSizeRowLabelSize(arg2);
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 Py_INCREF(Py_None); resultobj = Py_None;
10864 return resultobj;
10865 fail:
10866 return NULL;
10867 }
10868
10869
10870 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj;
10872 wxGrid *arg1 = (wxGrid *) 0 ;
10873 int arg2 ;
10874 PyObject * obj0 = 0 ;
10875 char *kwnames[] = {
10876 (char *) "self",(char *) "col", NULL
10877 };
10878
10879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeColLabelSize",kwnames,&obj0,&arg2)) goto fail;
10880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 (arg1)->AutoSizeColLabelSize(arg2);
10884
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 Py_INCREF(Py_None); resultobj = Py_None;
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj;
10897 wxGrid *arg1 = (wxGrid *) 0 ;
10898 int arg2 ;
10899 int arg3 ;
10900 PyObject * obj0 = 0 ;
10901 char *kwnames[] = {
10902 (char *) "self",(char *) "col",(char *) "width", NULL
10903 };
10904
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColMinimalWidth",kwnames,&obj0,&arg2,&arg3)) goto fail;
10906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->SetColMinimalWidth(arg2,arg3);
10910
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 Py_INCREF(Py_None); resultobj = Py_None;
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj;
10923 wxGrid *arg1 = (wxGrid *) 0 ;
10924 int arg2 ;
10925 int arg3 ;
10926 PyObject * obj0 = 0 ;
10927 char *kwnames[] = {
10928 (char *) "self",(char *) "row",(char *) "width", NULL
10929 };
10930
10931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowMinimalHeight",kwnames,&obj0,&arg2,&arg3)) goto fail;
10932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 (arg1)->SetRowMinimalHeight(arg2,arg3);
10936
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 Py_INCREF(Py_None); resultobj = Py_None;
10941 return resultobj;
10942 fail:
10943 return NULL;
10944 }
10945
10946
10947 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxGrid *arg1 = (wxGrid *) 0 ;
10950 int arg2 ;
10951 PyObject * obj0 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self",(char *) "width", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&arg2)) goto fail;
10957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 (arg1)->SetColMinimalAcceptableWidth(arg2);
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 Py_INCREF(Py_None); resultobj = Py_None;
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxGrid *arg1 = (wxGrid *) 0 ;
10975 int arg2 ;
10976 PyObject * obj0 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self",(char *) "width", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&arg2)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10983 {
10984 PyThreadState* __tstate = wxPyBeginAllowThreads();
10985 (arg1)->SetRowMinimalAcceptableHeight(arg2);
10986
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 Py_INCREF(Py_None); resultobj = Py_None;
10991 return resultobj;
10992 fail:
10993 return NULL;
10994 }
10995
10996
10997 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10998 PyObject *resultobj;
10999 wxGrid *arg1 = (wxGrid *) 0 ;
11000 int result;
11001 PyObject * obj0 = 0 ;
11002 char *kwnames[] = {
11003 (char *) "self", NULL
11004 };
11005
11006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
11007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
11011
11012 wxPyEndAllowThreads(__tstate);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 resultobj = PyInt_FromLong((long)result);
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxGrid *arg1 = (wxGrid *) 0 ;
11025 int result;
11026 PyObject * obj0 = 0 ;
11027 char *kwnames[] = {
11028 (char *) "self", NULL
11029 };
11030
11031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
11032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 resultobj = PyInt_FromLong((long)result);
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj;
11049 wxGrid *arg1 = (wxGrid *) 0 ;
11050 wxColour *arg2 = 0 ;
11051 wxColour temp2 ;
11052 PyObject * obj0 = 0 ;
11053 PyObject * obj1 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self","arg2", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
11059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11060 {
11061 arg2 = &temp2;
11062 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11063 }
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
11067
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 Py_INCREF(Py_None); resultobj = Py_None;
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj;
11080 wxGrid *arg1 = (wxGrid *) 0 ;
11081 int arg2 ;
11082 int arg3 ;
11083 wxColour *arg4 = 0 ;
11084 wxColour temp4 ;
11085 PyObject * obj0 = 0 ;
11086 PyObject * obj3 = 0 ;
11087 char *kwnames[] = {
11088 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11089 };
11090
11091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11093 {
11094 arg4 = &temp4;
11095 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11096 }
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
11100
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 Py_INCREF(Py_None); resultobj = Py_None;
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj;
11113 wxGrid *arg1 = (wxGrid *) 0 ;
11114 wxColour *arg2 = 0 ;
11115 wxColour temp2 ;
11116 PyObject * obj0 = 0 ;
11117 PyObject * obj1 = 0 ;
11118 char *kwnames[] = {
11119 (char *) "self","arg2", NULL
11120 };
11121
11122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
11123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11124 {
11125 arg2 = &temp2;
11126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 Py_INCREF(Py_None); resultobj = Py_None;
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj;
11144 wxGrid *arg1 = (wxGrid *) 0 ;
11145 int arg2 ;
11146 int arg3 ;
11147 wxColour *arg4 = 0 ;
11148 wxColour temp4 ;
11149 PyObject * obj0 = 0 ;
11150 PyObject * obj3 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellTextColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11157 {
11158 arg4 = &temp4;
11159 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11160 }
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxGrid *arg1 = (wxGrid *) 0 ;
11178 wxFont *arg2 = 0 ;
11179 PyObject * obj0 = 0 ;
11180 PyObject * obj1 = 0 ;
11181 char *kwnames[] = {
11182 (char *) "self","arg2", NULL
11183 };
11184
11185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
11186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11187 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11188 if (arg2 == NULL) {
11189 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11190 }
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 (arg1)->SetDefaultCellFont((wxFont const &)*arg2);
11194
11195 wxPyEndAllowThreads(__tstate);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 Py_INCREF(Py_None); resultobj = Py_None;
11199 return resultobj;
11200 fail:
11201 return NULL;
11202 }
11203
11204
11205 static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11206 PyObject *resultobj;
11207 wxGrid *arg1 = (wxGrid *) 0 ;
11208 int arg2 ;
11209 int arg3 ;
11210 wxFont *arg4 = 0 ;
11211 PyObject * obj0 = 0 ;
11212 PyObject * obj3 = 0 ;
11213 char *kwnames[] = {
11214 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11215 };
11216
11217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellFont",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11219 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11220 if (arg4 == NULL) {
11221 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11222 }
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
11226
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 Py_INCREF(Py_None); resultobj = Py_None;
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11238 PyObject *resultobj;
11239 wxGrid *arg1 = (wxGrid *) 0 ;
11240 int arg2 ;
11241 int arg3 ;
11242 PyObject * obj0 = 0 ;
11243 char *kwnames[] = {
11244 (char *) "self",(char *) "horiz",(char *) "vert", NULL
11245 };
11246
11247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetDefaultCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
11248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11249 {
11250 PyThreadState* __tstate = wxPyBeginAllowThreads();
11251 (arg1)->SetDefaultCellAlignment(arg2,arg3);
11252
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 Py_INCREF(Py_None); resultobj = Py_None;
11257 return resultobj;
11258 fail:
11259 return NULL;
11260 }
11261
11262
11263 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11264 PyObject *resultobj;
11265 wxGrid *arg1 = (wxGrid *) 0 ;
11266 int arg2 ;
11267 int arg3 ;
11268 int arg4 ;
11269 int arg5 ;
11270 PyObject * obj0 = 0 ;
11271 char *kwnames[] = {
11272 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
11273 };
11274
11275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellAlignment",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
11280
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 Py_INCREF(Py_None); resultobj = Py_None;
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj;
11293 wxGrid *arg1 = (wxGrid *) 0 ;
11294 bool arg2 ;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "self",(char *) "allow", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
11302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11303 arg2 = PyInt_AsLong(obj1) ? true : false;
11304 if (PyErr_Occurred()) SWIG_fail;
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 (arg1)->SetDefaultCellOverflow(arg2);
11308
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 Py_INCREF(Py_None); resultobj = Py_None;
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj;
11321 wxGrid *arg1 = (wxGrid *) 0 ;
11322 int arg2 ;
11323 int arg3 ;
11324 bool arg4 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj3 = 0 ;
11327 char *kwnames[] = {
11328 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
11329 };
11330
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellOverflow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11333 arg4 = PyInt_AsLong(obj3) ? true : false;
11334 if (PyErr_Occurred()) SWIG_fail;
11335 {
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 (arg1)->SetCellOverflow(arg2,arg3,arg4);
11338
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 Py_INCREF(Py_None); resultobj = Py_None;
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11350 PyObject *resultobj;
11351 wxGrid *arg1 = (wxGrid *) 0 ;
11352 int arg2 ;
11353 int arg3 ;
11354 int arg4 ;
11355 int arg5 ;
11356 PyObject * obj0 = 0 ;
11357 char *kwnames[] = {
11358 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
11359 };
11360
11361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11363 {
11364 PyThreadState* __tstate = wxPyBeginAllowThreads();
11365 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
11366
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 Py_INCREF(Py_None); resultobj = Py_None;
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj;
11379 wxGrid *arg1 = (wxGrid *) 0 ;
11380 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
11381 PyObject * obj0 = 0 ;
11382 PyObject * obj1 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "renderer", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11389 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 (arg1)->SetDefaultRenderer(arg2);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxGrid *arg1 = (wxGrid *) 0 ;
11407 int arg2 ;
11408 int arg3 ;
11409 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj3 = 0 ;
11412 char *kwnames[] = {
11413 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
11414 };
11415
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellRenderer",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11418 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 (arg1)->SetCellRenderer(arg2,arg3,arg4);
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 Py_INCREF(Py_None); resultobj = Py_None;
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxGrid *arg1 = (wxGrid *) 0 ;
11436 wxGridCellRenderer *result;
11437 PyObject * obj0 = 0 ;
11438 char *kwnames[] = {
11439 (char *) "self", NULL
11440 };
11441
11442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
11443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
11447
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 resultobj = wxPyMake_wxGridCellRenderer(result);
11453 }
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj;
11462 wxGrid *arg1 = (wxGrid *) 0 ;
11463 int arg2 ;
11464 int arg3 ;
11465 wxGridCellRenderer *result;
11466 PyObject * obj0 = 0 ;
11467 char *kwnames[] = {
11468 (char *) "self",(char *) "row",(char *) "col", NULL
11469 };
11470
11471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellRenderer",kwnames,&obj0,&arg2,&arg3)) goto fail;
11472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
11476
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 {
11481 resultobj = wxPyMake_wxGridCellRenderer(result);
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj;
11491 wxGrid *arg1 = (wxGrid *) 0 ;
11492 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 char *kwnames[] = {
11496 (char *) "self",(char *) "editor", NULL
11497 };
11498
11499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
11500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11501 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 (arg1)->SetDefaultEditor(arg2);
11505
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 Py_INCREF(Py_None); resultobj = Py_None;
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj;
11518 wxGrid *arg1 = (wxGrid *) 0 ;
11519 int arg2 ;
11520 int arg3 ;
11521 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj3 = 0 ;
11524 char *kwnames[] = {
11525 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
11526 };
11527
11528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellEditor",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11530 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 (arg1)->SetCellEditor(arg2,arg3,arg4);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 Py_INCREF(Py_None); resultobj = Py_None;
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj;
11547 wxGrid *arg1 = (wxGrid *) 0 ;
11548 wxGridCellEditor *result;
11549 PyObject * obj0 = 0 ;
11550 char *kwnames[] = {
11551 (char *) "self", NULL
11552 };
11553
11554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
11555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
11559
11560 wxPyEndAllowThreads(__tstate);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 {
11564 resultobj = wxPyMake_wxGridCellEditor(result);
11565 }
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj;
11574 wxGrid *arg1 = (wxGrid *) 0 ;
11575 int arg2 ;
11576 int arg3 ;
11577 wxGridCellEditor *result;
11578 PyObject * obj0 = 0 ;
11579 char *kwnames[] = {
11580 (char *) "self",(char *) "row",(char *) "col", NULL
11581 };
11582
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellEditor",kwnames,&obj0,&arg2,&arg3)) goto fail;
11584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
11588
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 resultobj = wxPyMake_wxGridCellEditor(result);
11594 }
11595 return resultobj;
11596 fail:
11597 return NULL;
11598 }
11599
11600
11601 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11602 PyObject *resultobj;
11603 wxGrid *arg1 = (wxGrid *) 0 ;
11604 int arg2 ;
11605 int arg3 ;
11606 wxString result;
11607 PyObject * obj0 = 0 ;
11608 char *kwnames[] = {
11609 (char *) "self",(char *) "row",(char *) "col", NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
11613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 result = (arg1)->GetCellValue(arg2,arg3);
11617
11618 wxPyEndAllowThreads(__tstate);
11619 if (PyErr_Occurred()) SWIG_fail;
11620 }
11621 {
11622 #if wxUSE_UNICODE
11623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11624 #else
11625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11626 #endif
11627 }
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj;
11636 wxGrid *arg1 = (wxGrid *) 0 ;
11637 int arg2 ;
11638 int arg3 ;
11639 wxString *arg4 = 0 ;
11640 bool temp4 = False ;
11641 PyObject * obj0 = 0 ;
11642 PyObject * obj3 = 0 ;
11643 char *kwnames[] = {
11644 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
11645 };
11646
11647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11649 {
11650 arg4 = wxString_in_helper(obj3);
11651 if (arg4 == NULL) SWIG_fail;
11652 temp4 = True;
11653 }
11654 {
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
11657
11658 wxPyEndAllowThreads(__tstate);
11659 if (PyErr_Occurred()) SWIG_fail;
11660 }
11661 Py_INCREF(Py_None); resultobj = Py_None;
11662 {
11663 if (temp4)
11664 delete arg4;
11665 }
11666 return resultobj;
11667 fail:
11668 {
11669 if (temp4)
11670 delete arg4;
11671 }
11672 return NULL;
11673 }
11674
11675
11676 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj;
11678 wxGrid *arg1 = (wxGrid *) 0 ;
11679 int arg2 ;
11680 int arg3 ;
11681 bool result;
11682 PyObject * obj0 = 0 ;
11683 char *kwnames[] = {
11684 (char *) "self",(char *) "row",(char *) "col", NULL
11685 };
11686
11687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsReadOnly",kwnames,&obj0,&arg2,&arg3)) goto fail;
11688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11689 {
11690 PyThreadState* __tstate = wxPyBeginAllowThreads();
11691 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
11692
11693 wxPyEndAllowThreads(__tstate);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 }
11696 resultobj = PyInt_FromLong((long)result);
11697 return resultobj;
11698 fail:
11699 return NULL;
11700 }
11701
11702
11703 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
11704 PyObject *resultobj;
11705 wxGrid *arg1 = (wxGrid *) 0 ;
11706 int arg2 ;
11707 int arg3 ;
11708 bool arg4 = (bool) True ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj3 = 0 ;
11711 char *kwnames[] = {
11712 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
11713 };
11714
11715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_SetReadOnly",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11717 if (obj3) {
11718 arg4 = PyInt_AsLong(obj3) ? true : false;
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 (arg1)->SetReadOnly(arg2,arg3,arg4);
11724
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 Py_INCREF(Py_None); resultobj = Py_None;
11729 return resultobj;
11730 fail:
11731 return NULL;
11732 }
11733
11734
11735 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
11736 PyObject *resultobj;
11737 wxGrid *arg1 = (wxGrid *) 0 ;
11738 int arg2 ;
11739 bool arg3 = (bool) False ;
11740 PyObject * obj0 = 0 ;
11741 PyObject * obj2 = 0 ;
11742 char *kwnames[] = {
11743 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
11744 };
11745
11746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
11747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11748 if (obj2) {
11749 arg3 = PyInt_AsLong(obj2) ? true : false;
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 {
11753 PyThreadState* __tstate = wxPyBeginAllowThreads();
11754 (arg1)->SelectRow(arg2,arg3);
11755
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 Py_INCREF(Py_None); resultobj = Py_None;
11760 return resultobj;
11761 fail:
11762 return NULL;
11763 }
11764
11765
11766 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
11767 PyObject *resultobj;
11768 wxGrid *arg1 = (wxGrid *) 0 ;
11769 int arg2 ;
11770 bool arg3 = (bool) False ;
11771 PyObject * obj0 = 0 ;
11772 PyObject * obj2 = 0 ;
11773 char *kwnames[] = {
11774 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectCol",kwnames,&obj0,&arg2,&obj2)) goto fail;
11778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11779 if (obj2) {
11780 arg3 = PyInt_AsLong(obj2) ? true : false;
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->SelectCol(arg2,arg3);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 Py_INCREF(Py_None); resultobj = Py_None;
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj;
11799 wxGrid *arg1 = (wxGrid *) 0 ;
11800 int arg2 ;
11801 int arg3 ;
11802 int arg4 ;
11803 int arg5 ;
11804 bool arg6 = (bool) False ;
11805 PyObject * obj0 = 0 ;
11806 PyObject * obj5 = 0 ;
11807 char *kwnames[] = {
11808 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
11809 };
11810
11811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Grid_SelectBlock",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
11812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11813 if (obj5) {
11814 arg6 = PyInt_AsLong(obj5) ? true : false;
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 Py_INCREF(Py_None); resultobj = Py_None;
11825 return resultobj;
11826 fail:
11827 return NULL;
11828 }
11829
11830
11831 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11832 PyObject *resultobj;
11833 wxGrid *arg1 = (wxGrid *) 0 ;
11834 PyObject * obj0 = 0 ;
11835 char *kwnames[] = {
11836 (char *) "self", NULL
11837 };
11838
11839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
11840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 (arg1)->SelectAll();
11844
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 Py_INCREF(Py_None); resultobj = Py_None;
11849 return resultobj;
11850 fail:
11851 return NULL;
11852 }
11853
11854
11855 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxGrid *arg1 = (wxGrid *) 0 ;
11858 bool result;
11859 PyObject * obj0 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (bool)(arg1)->IsSelection();
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 resultobj = PyInt_FromLong((long)result);
11874 return resultobj;
11875 fail:
11876 return NULL;
11877 }
11878
11879
11880 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11881 PyObject *resultobj;
11882 wxGrid *arg1 = (wxGrid *) 0 ;
11883 PyObject * obj0 = 0 ;
11884 char *kwnames[] = {
11885 (char *) "self", NULL
11886 };
11887
11888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
11889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 (arg1)->ClearSelection();
11893
11894 wxPyEndAllowThreads(__tstate);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 Py_INCREF(Py_None); resultobj = Py_None;
11898 return resultobj;
11899 fail:
11900 return NULL;
11901 }
11902
11903
11904 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11905 PyObject *resultobj;
11906 wxGrid *arg1 = (wxGrid *) 0 ;
11907 int arg2 ;
11908 int arg3 ;
11909 bool result;
11910 PyObject * obj0 = 0 ;
11911 char *kwnames[] = {
11912 (char *) "self",(char *) "row",(char *) "col", NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsInSelection",kwnames,&obj0,&arg2,&arg3)) goto fail;
11916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = (bool)(arg1)->IsInSelection(arg2,arg3);
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = PyInt_FromLong((long)result);
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
11932 PyObject *resultobj;
11933 wxGrid *arg1 = (wxGrid *) 0 ;
11934 wxGridCellCoordsArray result;
11935 PyObject * obj0 = 0 ;
11936 char *kwnames[] = {
11937 (char *) "self", NULL
11938 };
11939
11940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
11941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = ((wxGrid const *)arg1)->GetSelectedCells();
11945
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 {
11950 resultobj = wxGridCellCoordsArray_helper(result);
11951 }
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxGrid *arg1 = (wxGrid *) 0 ;
11961 wxGridCellCoordsArray result;
11962 PyObject * obj0 = 0 ;
11963 char *kwnames[] = {
11964 (char *) "self", NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
11968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
11972
11973 wxPyEndAllowThreads(__tstate);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 {
11977 resultobj = wxGridCellCoordsArray_helper(result);
11978 }
11979 return resultobj;
11980 fail:
11981 return NULL;
11982 }
11983
11984
11985 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj;
11987 wxGrid *arg1 = (wxGrid *) 0 ;
11988 wxGridCellCoordsArray result;
11989 PyObject * obj0 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
11995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
11999
12000 wxPyEndAllowThreads(__tstate);
12001 if (PyErr_Occurred()) SWIG_fail;
12002 }
12003 {
12004 resultobj = wxGridCellCoordsArray_helper(result);
12005 }
12006 return resultobj;
12007 fail:
12008 return NULL;
12009 }
12010
12011
12012 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj;
12014 wxGrid *arg1 = (wxGrid *) 0 ;
12015 wxArrayInt result;
12016 PyObject * obj0 = 0 ;
12017 char *kwnames[] = {
12018 (char *) "self", NULL
12019 };
12020
12021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
12022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 result = ((wxGrid const *)arg1)->GetSelectedRows();
12026
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 resultobj = PyList_New(0);
12032 size_t idx;
12033 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12034 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12035 PyList_Append(resultobj, val);
12036 Py_DECREF(val);
12037 }
12038 }
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj;
12047 wxGrid *arg1 = (wxGrid *) 0 ;
12048 wxArrayInt result;
12049 PyObject * obj0 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 result = ((wxGrid const *)arg1)->GetSelectedCols();
12059
12060 wxPyEndAllowThreads(__tstate);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 {
12064 resultobj = PyList_New(0);
12065 size_t idx;
12066 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12067 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12068 PyList_Append(resultobj, val);
12069 Py_DECREF(val);
12070 }
12071 }
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj;
12080 wxGrid *arg1 = (wxGrid *) 0 ;
12081 int arg2 ;
12082 PyObject * obj0 = 0 ;
12083 char *kwnames[] = {
12084 (char *) "self",(char *) "row", NULL
12085 };
12086
12087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectRow",kwnames,&obj0,&arg2)) goto fail;
12088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 (arg1)->DeselectRow(arg2);
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 Py_INCREF(Py_None); resultobj = Py_None;
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj;
12105 wxGrid *arg1 = (wxGrid *) 0 ;
12106 int arg2 ;
12107 PyObject * obj0 = 0 ;
12108 char *kwnames[] = {
12109 (char *) "self",(char *) "col", NULL
12110 };
12111
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectCol",kwnames,&obj0,&arg2)) goto fail;
12113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->DeselectCol(arg2);
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 Py_INCREF(Py_None); resultobj = Py_None;
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxGrid *arg1 = (wxGrid *) 0 ;
12131 int arg2 ;
12132 int arg3 ;
12133 PyObject * obj0 = 0 ;
12134 char *kwnames[] = {
12135 (char *) "self",(char *) "row",(char *) "col", NULL
12136 };
12137
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_DeselectCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 (arg1)->DeselectCell(arg2,arg3);
12143
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 Py_INCREF(Py_None); resultobj = Py_None;
12148 return resultobj;
12149 fail:
12150 return NULL;
12151 }
12152
12153
12154 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12155 PyObject *resultobj;
12156 wxGrid *arg1 = (wxGrid *) 0 ;
12157 wxGridCellCoords *arg2 = 0 ;
12158 wxGridCellCoords *arg3 = 0 ;
12159 wxRect result;
12160 wxGridCellCoords temp2 ;
12161 wxGridCellCoords temp3 ;
12162 PyObject * obj0 = 0 ;
12163 PyObject * obj1 = 0 ;
12164 PyObject * obj2 = 0 ;
12165 char *kwnames[] = {
12166 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
12167 };
12168
12169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
12170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12171 {
12172 arg2 = &temp2;
12173 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
12174 }
12175 {
12176 arg3 = &temp3;
12177 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
12178 }
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
12182
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 {
12187 wxRect * resultptr;
12188 resultptr = new wxRect((wxRect &) result);
12189 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12190 }
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj;
12199 wxGrid *arg1 = (wxGrid *) 0 ;
12200 wxColour result;
12201 PyObject * obj0 = 0 ;
12202 char *kwnames[] = {
12203 (char *) "self", NULL
12204 };
12205
12206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
12207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = ((wxGrid const *)arg1)->GetSelectionBackground();
12211
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 {
12216 wxColour * resultptr;
12217 resultptr = new wxColour((wxColour &) result);
12218 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12219 }
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj;
12228 wxGrid *arg1 = (wxGrid *) 0 ;
12229 wxColour result;
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = ((wxGrid const *)arg1)->GetSelectionForeground();
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 wxColour * resultptr;
12246 resultptr = new wxColour((wxColour &) result);
12247 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12248 }
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxGrid *arg1 = (wxGrid *) 0 ;
12258 wxColour *arg2 = 0 ;
12259 wxColour temp2 ;
12260 PyObject * obj0 = 0 ;
12261 PyObject * obj1 = 0 ;
12262 char *kwnames[] = {
12263 (char *) "self",(char *) "c", NULL
12264 };
12265
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
12267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12268 {
12269 arg2 = &temp2;
12270 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12271 }
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 Py_INCREF(Py_None); resultobj = Py_None;
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj;
12288 wxGrid *arg1 = (wxGrid *) 0 ;
12289 wxColour *arg2 = 0 ;
12290 wxColour temp2 ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self",(char *) "c", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
12298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12299 {
12300 arg2 = &temp2;
12301 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12302 }
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
12306
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 Py_INCREF(Py_None); resultobj = Py_None;
12311 return resultobj;
12312 fail:
12313 return NULL;
12314 }
12315
12316
12317 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
12318 PyObject *resultobj;
12319 wxGrid *arg1 = (wxGrid *) 0 ;
12320 wxString *arg2 = 0 ;
12321 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
12322 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
12323 bool temp2 = False ;
12324 PyObject * obj0 = 0 ;
12325 PyObject * obj1 = 0 ;
12326 PyObject * obj2 = 0 ;
12327 PyObject * obj3 = 0 ;
12328 char *kwnames[] = {
12329 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
12330 };
12331
12332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12334 {
12335 arg2 = wxString_in_helper(obj1);
12336 if (arg2 == NULL) SWIG_fail;
12337 temp2 = True;
12338 }
12339 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12340 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 Py_INCREF(Py_None); resultobj = Py_None;
12349 {
12350 if (temp2)
12351 delete arg2;
12352 }
12353 return resultobj;
12354 fail:
12355 {
12356 if (temp2)
12357 delete arg2;
12358 }
12359 return NULL;
12360 }
12361
12362
12363 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj;
12365 wxGrid *arg1 = (wxGrid *) 0 ;
12366 int arg2 ;
12367 int arg3 ;
12368 wxGridCellEditor *result;
12369 PyObject * obj0 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self",(char *) "row",(char *) "col", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultEditorForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
12379
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 {
12384 resultobj = wxPyMake_wxGridCellEditor(result);
12385 }
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12393 PyObject *resultobj;
12394 wxGrid *arg1 = (wxGrid *) 0 ;
12395 int arg2 ;
12396 int arg3 ;
12397 wxGridCellRenderer *result;
12398 PyObject * obj0 = 0 ;
12399 char *kwnames[] = {
12400 (char *) "self",(char *) "row",(char *) "col", NULL
12401 };
12402
12403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultRendererForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
12408
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 {
12413 resultobj = wxPyMake_wxGridCellRenderer(result);
12414 }
12415 return resultobj;
12416 fail:
12417 return NULL;
12418 }
12419
12420
12421 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj;
12423 wxGrid *arg1 = (wxGrid *) 0 ;
12424 wxString *arg2 = 0 ;
12425 wxGridCellEditor *result;
12426 bool temp2 = False ;
12427 PyObject * obj0 = 0 ;
12428 PyObject * obj1 = 0 ;
12429 char *kwnames[] = {
12430 (char *) "self",(char *) "typeName", NULL
12431 };
12432
12433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
12434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12435 {
12436 arg2 = wxString_in_helper(obj1);
12437 if (arg2 == NULL) SWIG_fail;
12438 temp2 = True;
12439 }
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 {
12448 resultobj = wxPyMake_wxGridCellEditor(result);
12449 }
12450 {
12451 if (temp2)
12452 delete arg2;
12453 }
12454 return resultobj;
12455 fail:
12456 {
12457 if (temp2)
12458 delete arg2;
12459 }
12460 return NULL;
12461 }
12462
12463
12464 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12465 PyObject *resultobj;
12466 wxGrid *arg1 = (wxGrid *) 0 ;
12467 wxString *arg2 = 0 ;
12468 wxGridCellRenderer *result;
12469 bool temp2 = False ;
12470 PyObject * obj0 = 0 ;
12471 PyObject * obj1 = 0 ;
12472 char *kwnames[] = {
12473 (char *) "self",(char *) "typeName", NULL
12474 };
12475
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
12477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12478 {
12479 arg2 = wxString_in_helper(obj1);
12480 if (arg2 == NULL) SWIG_fail;
12481 temp2 = True;
12482 }
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
12486
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 {
12491 resultobj = wxPyMake_wxGridCellRenderer(result);
12492 }
12493 {
12494 if (temp2)
12495 delete arg2;
12496 }
12497 return resultobj;
12498 fail:
12499 {
12500 if (temp2)
12501 delete arg2;
12502 }
12503 return NULL;
12504 }
12505
12506
12507 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
12508 PyObject *resultobj;
12509 wxGrid *arg1 = (wxGrid *) 0 ;
12510 int arg2 ;
12511 int arg3 ;
12512 PyObject * obj0 = 0 ;
12513 char *kwnames[] = {
12514 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
12515 };
12516
12517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail;
12518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12519 {
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 (arg1)->SetMargins(arg2,arg3);
12522
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 Py_INCREF(Py_None); resultobj = Py_None;
12527 return resultobj;
12528 fail:
12529 return NULL;
12530 }
12531
12532
12533 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12534 PyObject *resultobj;
12535 wxGrid *arg1 = (wxGrid *) 0 ;
12536 wxWindow *result;
12537 PyObject * obj0 = 0 ;
12538 char *kwnames[] = {
12539 (char *) "self", NULL
12540 };
12541
12542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
12543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 result = (wxWindow *)(arg1)->GetGridWindow();
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 {
12552 resultobj = wxPyMake_wxObject(result);
12553 }
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxGrid *arg1 = (wxGrid *) 0 ;
12563 wxWindow *result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 {
12579 resultobj = wxPyMake_wxObject(result);
12580 }
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxGrid *arg1 = (wxGrid *) 0 ;
12590 wxWindow *result;
12591 PyObject * obj0 = 0 ;
12592 char *kwnames[] = {
12593 (char *) "self", NULL
12594 };
12595
12596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
12597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 {
12606 resultobj = wxPyMake_wxObject(result);
12607 }
12608 return resultobj;
12609 fail:
12610 return NULL;
12611 }
12612
12613
12614 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj;
12616 wxGrid *arg1 = (wxGrid *) 0 ;
12617 wxWindow *result;
12618 PyObject * obj0 = 0 ;
12619 char *kwnames[] = {
12620 (char *) "self", NULL
12621 };
12622
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
12624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
12628
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 {
12633 resultobj = wxPyMake_wxObject(result);
12634 }
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
12642 PyObject *obj;
12643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12644 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
12645 Py_INCREF(obj);
12646 return Py_BuildValue((char *)"");
12647 }
12648 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 int arg1 ;
12651 wxEventType arg2 ;
12652 wxGrid *arg3 = (wxGrid *) 0 ;
12653 int arg4 = (int) -1 ;
12654 int arg5 = (int) -1 ;
12655 int arg6 = (int) -1 ;
12656 int arg7 = (int) -1 ;
12657 bool arg8 = (bool) True ;
12658 bool arg9 = (bool) False ;
12659 bool arg10 = (bool) False ;
12660 bool arg11 = (bool) False ;
12661 bool arg12 = (bool) False ;
12662 wxGridEvent *result;
12663 PyObject * obj2 = 0 ;
12664 PyObject * obj7 = 0 ;
12665 PyObject * obj8 = 0 ;
12666 PyObject * obj9 = 0 ;
12667 PyObject * obj10 = 0 ;
12668 PyObject * obj11 = 0 ;
12669 char *kwnames[] = {
12670 (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
12671 };
12672
12673 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;
12674 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12675 if (obj7) {
12676 arg8 = PyInt_AsLong(obj7) ? true : false;
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 if (obj8) {
12680 arg9 = PyInt_AsLong(obj8) ? true : false;
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 if (obj9) {
12684 arg10 = PyInt_AsLong(obj9) ? true : false;
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 if (obj10) {
12688 arg11 = PyInt_AsLong(obj10) ? true : false;
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 if (obj11) {
12692 arg12 = PyInt_AsLong(obj11) ? true : false;
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12698
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1);
12703 return resultobj;
12704 fail:
12705 return NULL;
12706 }
12707
12708
12709 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12710 PyObject *resultobj;
12711 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12712 int result;
12713 PyObject * obj0 = 0 ;
12714 char *kwnames[] = {
12715 (char *) "self", NULL
12716 };
12717
12718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
12719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 result = (int)(arg1)->GetRow();
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 resultobj = PyInt_FromLong((long)result);
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12737 int result;
12738 PyObject * obj0 = 0 ;
12739 char *kwnames[] = {
12740 (char *) "self", NULL
12741 };
12742
12743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
12744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 result = (int)(arg1)->GetCol();
12748
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 resultobj = PyInt_FromLong((long)result);
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12762 wxPoint result;
12763 PyObject * obj0 = 0 ;
12764 char *kwnames[] = {
12765 (char *) "self", NULL
12766 };
12767
12768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
12769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 result = (arg1)->GetPosition();
12773
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 {
12778 wxPoint * resultptr;
12779 resultptr = new wxPoint((wxPoint &) result);
12780 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12781 }
12782 return resultobj;
12783 fail:
12784 return NULL;
12785 }
12786
12787
12788 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
12789 PyObject *resultobj;
12790 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12791 bool result;
12792 PyObject * obj0 = 0 ;
12793 char *kwnames[] = {
12794 (char *) "self", NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 result = (bool)(arg1)->Selecting();
12802
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = PyInt_FromLong((long)result);
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12816 bool result;
12817 PyObject * obj0 = 0 ;
12818 char *kwnames[] = {
12819 (char *) "self", NULL
12820 };
12821
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
12823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = (bool)(arg1)->ControlDown();
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = PyInt_FromLong((long)result);
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12841 bool result;
12842 PyObject * obj0 = 0 ;
12843 char *kwnames[] = {
12844 (char *) "self", NULL
12845 };
12846
12847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
12848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 result = (bool)(arg1)->MetaDown();
12852
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 resultobj = PyInt_FromLong((long)result);
12857 return resultobj;
12858 fail:
12859 return NULL;
12860 }
12861
12862
12863 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12864 PyObject *resultobj;
12865 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12866 bool result;
12867 PyObject * obj0 = 0 ;
12868 char *kwnames[] = {
12869 (char *) "self", NULL
12870 };
12871
12872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
12873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12874 {
12875 PyThreadState* __tstate = wxPyBeginAllowThreads();
12876 result = (bool)(arg1)->ShiftDown();
12877
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 resultobj = PyInt_FromLong((long)result);
12882 return resultobj;
12883 fail:
12884 return NULL;
12885 }
12886
12887
12888 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12889 PyObject *resultobj;
12890 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12891 bool result;
12892 PyObject * obj0 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "self", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
12898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (bool)(arg1)->AltDown();
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 resultobj = PyInt_FromLong((long)result);
12907 return resultobj;
12908 fail:
12909 return NULL;
12910 }
12911
12912
12913 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
12914 PyObject *obj;
12915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12916 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
12917 Py_INCREF(obj);
12918 return Py_BuildValue((char *)"");
12919 }
12920 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj;
12922 int arg1 ;
12923 wxEventType arg2 ;
12924 wxGrid *arg3 = (wxGrid *) 0 ;
12925 int arg4 = (int) -1 ;
12926 int arg5 = (int) -1 ;
12927 int arg6 = (int) -1 ;
12928 bool arg7 = (bool) False ;
12929 bool arg8 = (bool) False ;
12930 bool arg9 = (bool) False ;
12931 bool arg10 = (bool) False ;
12932 wxGridSizeEvent *result;
12933 PyObject * obj2 = 0 ;
12934 PyObject * obj6 = 0 ;
12935 PyObject * obj7 = 0 ;
12936 PyObject * obj8 = 0 ;
12937 PyObject * obj9 = 0 ;
12938 char *kwnames[] = {
12939 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
12940 };
12941
12942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO|iiiOOOO:new_GridSizeEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7,&obj8,&obj9)) goto fail;
12943 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12944 if (obj6) {
12945 arg7 = PyInt_AsLong(obj6) ? true : false;
12946 if (PyErr_Occurred()) SWIG_fail;
12947 }
12948 if (obj7) {
12949 arg8 = PyInt_AsLong(obj7) ? true : false;
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 if (obj8) {
12953 arg9 = PyInt_AsLong(obj8) ? true : false;
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 if (obj9) {
12957 arg10 = PyInt_AsLong(obj9) ? true : false;
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1);
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12975 PyObject *resultobj;
12976 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
12977 int result;
12978 PyObject * obj0 = 0 ;
12979 char *kwnames[] = {
12980 (char *) "self", NULL
12981 };
12982
12983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
12984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 result = (int)(arg1)->GetRowOrCol();
12988
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 resultobj = PyInt_FromLong((long)result);
12993 return resultobj;
12994 fail:
12995 return NULL;
12996 }
12997
12998
12999 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj;
13001 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13002 wxPoint result;
13003 PyObject * obj0 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13010 {
13011 PyThreadState* __tstate = wxPyBeginAllowThreads();
13012 result = (arg1)->GetPosition();
13013
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 {
13018 wxPoint * resultptr;
13019 resultptr = new wxPoint((wxPoint &) result);
13020 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13021 }
13022 return resultobj;
13023 fail:
13024 return NULL;
13025 }
13026
13027
13028 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj;
13030 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13031 bool result;
13032 PyObject * obj0 = 0 ;
13033 char *kwnames[] = {
13034 (char *) "self", NULL
13035 };
13036
13037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
13038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (bool)(arg1)->ControlDown();
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = PyInt_FromLong((long)result);
13047 return resultobj;
13048 fail:
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13056 bool result;
13057 PyObject * obj0 = 0 ;
13058 char *kwnames[] = {
13059 (char *) "self", NULL
13060 };
13061
13062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
13063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = (bool)(arg1)->MetaDown();
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 resultobj = PyInt_FromLong((long)result);
13072 return resultobj;
13073 fail:
13074 return NULL;
13075 }
13076
13077
13078 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13079 PyObject *resultobj;
13080 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13081 bool result;
13082 PyObject * obj0 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->ShiftDown();
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 resultobj = PyInt_FromLong((long)result);
13097 return resultobj;
13098 fail:
13099 return NULL;
13100 }
13101
13102
13103 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj;
13105 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13106 bool result;
13107 PyObject * obj0 = 0 ;
13108 char *kwnames[] = {
13109 (char *) "self", NULL
13110 };
13111
13112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
13113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13114 {
13115 PyThreadState* __tstate = wxPyBeginAllowThreads();
13116 result = (bool)(arg1)->AltDown();
13117
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 resultobj = PyInt_FromLong((long)result);
13122 return resultobj;
13123 fail:
13124 return NULL;
13125 }
13126
13127
13128 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
13129 PyObject *obj;
13130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13131 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
13132 Py_INCREF(obj);
13133 return Py_BuildValue((char *)"");
13134 }
13135 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj;
13137 int arg1 ;
13138 wxEventType arg2 ;
13139 wxGrid *arg3 = (wxGrid *) 0 ;
13140 wxGridCellCoords *arg4 = 0 ;
13141 wxGridCellCoords *arg5 = 0 ;
13142 bool arg6 = (bool) True ;
13143 bool arg7 = (bool) False ;
13144 bool arg8 = (bool) False ;
13145 bool arg9 = (bool) False ;
13146 bool arg10 = (bool) False ;
13147 wxGridRangeSelectEvent *result;
13148 wxGridCellCoords temp4 ;
13149 wxGridCellCoords temp5 ;
13150 PyObject * obj2 = 0 ;
13151 PyObject * obj3 = 0 ;
13152 PyObject * obj4 = 0 ;
13153 PyObject * obj5 = 0 ;
13154 PyObject * obj6 = 0 ;
13155 PyObject * obj7 = 0 ;
13156 PyObject * obj8 = 0 ;
13157 PyObject * obj9 = 0 ;
13158 char *kwnames[] = {
13159 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
13160 };
13161
13162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&arg1,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13163 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13164 {
13165 arg4 = &temp4;
13166 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
13167 }
13168 {
13169 arg5 = &temp5;
13170 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
13171 }
13172 if (obj5) {
13173 arg6 = PyInt_AsLong(obj5) ? true : false;
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 if (obj6) {
13177 arg7 = PyInt_AsLong(obj6) ? true : false;
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 if (obj7) {
13181 arg8 = PyInt_AsLong(obj7) ? true : false;
13182 if (PyErr_Occurred()) SWIG_fail;
13183 }
13184 if (obj8) {
13185 arg9 = PyInt_AsLong(obj8) ? true : false;
13186 if (PyErr_Occurred()) SWIG_fail;
13187 }
13188 if (obj9) {
13189 arg10 = PyInt_AsLong(obj9) ? true : false;
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 {
13193 PyThreadState* __tstate = wxPyBeginAllowThreads();
13194 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
13195
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1);
13200 return resultobj;
13201 fail:
13202 return NULL;
13203 }
13204
13205
13206 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13207 PyObject *resultobj;
13208 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13209 wxGridCellCoords result;
13210 PyObject * obj0 = 0 ;
13211 char *kwnames[] = {
13212 (char *) "self", NULL
13213 };
13214
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13217 {
13218 PyThreadState* __tstate = wxPyBeginAllowThreads();
13219 result = (arg1)->GetTopLeftCoords();
13220
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 {
13225 wxGridCellCoords * resultptr;
13226 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13227 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13228 }
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13236 PyObject *resultobj;
13237 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13238 wxGridCellCoords result;
13239 PyObject * obj0 = 0 ;
13240 char *kwnames[] = {
13241 (char *) "self", NULL
13242 };
13243
13244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
13245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13246 {
13247 PyThreadState* __tstate = wxPyBeginAllowThreads();
13248 result = (arg1)->GetBottomRightCoords();
13249
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 {
13254 wxGridCellCoords * resultptr;
13255 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13256 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13257 }
13258 return resultobj;
13259 fail:
13260 return NULL;
13261 }
13262
13263
13264 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13265 PyObject *resultobj;
13266 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13267 int result;
13268 PyObject * obj0 = 0 ;
13269 char *kwnames[] = {
13270 (char *) "self", NULL
13271 };
13272
13273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
13274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13275 {
13276 PyThreadState* __tstate = wxPyBeginAllowThreads();
13277 result = (int)(arg1)->GetTopRow();
13278
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 resultobj = PyInt_FromLong((long)result);
13283 return resultobj;
13284 fail:
13285 return NULL;
13286 }
13287
13288
13289 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13290 PyObject *resultobj;
13291 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13292 int result;
13293 PyObject * obj0 = 0 ;
13294 char *kwnames[] = {
13295 (char *) "self", NULL
13296 };
13297
13298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
13299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 result = (int)(arg1)->GetBottomRow();
13303
13304 wxPyEndAllowThreads(__tstate);
13305 if (PyErr_Occurred()) SWIG_fail;
13306 }
13307 resultobj = PyInt_FromLong((long)result);
13308 return resultobj;
13309 fail:
13310 return NULL;
13311 }
13312
13313
13314 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13315 PyObject *resultobj;
13316 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13317 int result;
13318 PyObject * obj0 = 0 ;
13319 char *kwnames[] = {
13320 (char *) "self", NULL
13321 };
13322
13323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
13324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = (int)(arg1)->GetLeftCol();
13328
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
13332 resultobj = PyInt_FromLong((long)result);
13333 return resultobj;
13334 fail:
13335 return NULL;
13336 }
13337
13338
13339 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13340 PyObject *resultobj;
13341 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13342 int result;
13343 PyObject * obj0 = 0 ;
13344 char *kwnames[] = {
13345 (char *) "self", NULL
13346 };
13347
13348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
13349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = (int)(arg1)->GetRightCol();
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = PyInt_FromLong((long)result);
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13367 bool result;
13368 PyObject * obj0 = 0 ;
13369 char *kwnames[] = {
13370 (char *) "self", NULL
13371 };
13372
13373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
13374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = (bool)(arg1)->Selecting();
13378
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 resultobj = PyInt_FromLong((long)result);
13383 return resultobj;
13384 fail:
13385 return NULL;
13386 }
13387
13388
13389 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13390 PyObject *resultobj;
13391 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13392 bool result;
13393 PyObject * obj0 = 0 ;
13394 char *kwnames[] = {
13395 (char *) "self", NULL
13396 };
13397
13398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
13399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = (bool)(arg1)->ControlDown();
13403
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 resultobj = PyInt_FromLong((long)result);
13408 return resultobj;
13409 fail:
13410 return NULL;
13411 }
13412
13413
13414 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13415 PyObject *resultobj;
13416 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13417 bool result;
13418 PyObject * obj0 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13425 {
13426 PyThreadState* __tstate = wxPyBeginAllowThreads();
13427 result = (bool)(arg1)->MetaDown();
13428
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = PyInt_FromLong((long)result);
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj;
13441 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13442 bool result;
13443 PyObject * obj0 = 0 ;
13444 char *kwnames[] = {
13445 (char *) "self", NULL
13446 };
13447
13448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
13449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (bool)(arg1)->ShiftDown();
13453
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = PyInt_FromLong((long)result);
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13465 PyObject *resultobj;
13466 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13467 bool result;
13468 PyObject * obj0 = 0 ;
13469 char *kwnames[] = {
13470 (char *) "self", NULL
13471 };
13472
13473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
13474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13475 {
13476 PyThreadState* __tstate = wxPyBeginAllowThreads();
13477 result = (bool)(arg1)->AltDown();
13478
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 resultobj = PyInt_FromLong((long)result);
13483 return resultobj;
13484 fail:
13485 return NULL;
13486 }
13487
13488
13489 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
13490 PyObject *obj;
13491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13492 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
13493 Py_INCREF(obj);
13494 return Py_BuildValue((char *)"");
13495 }
13496 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj;
13498 int arg1 ;
13499 wxEventType arg2 ;
13500 wxObject *arg3 = (wxObject *) 0 ;
13501 int arg4 ;
13502 int arg5 ;
13503 wxControl *arg6 = (wxControl *) 0 ;
13504 wxGridEditorCreatedEvent *result;
13505 PyObject * obj2 = 0 ;
13506 PyObject * obj5 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOiiO:new_GridEditorCreatedEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&obj5)) goto fail;
13512 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
13522 return resultobj;
13523 fail:
13524 return NULL;
13525 }
13526
13527
13528 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj;
13530 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13531 int result;
13532 PyObject * obj0 = 0 ;
13533 char *kwnames[] = {
13534 (char *) "self", NULL
13535 };
13536
13537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
13538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 result = (int)(arg1)->GetRow();
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 resultobj = PyInt_FromLong((long)result);
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13556 int result;
13557 PyObject * obj0 = 0 ;
13558 char *kwnames[] = {
13559 (char *) "self", NULL
13560 };
13561
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
13563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13564 {
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = (int)(arg1)->GetCol();
13567
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 resultobj = PyInt_FromLong((long)result);
13572 return resultobj;
13573 fail:
13574 return NULL;
13575 }
13576
13577
13578 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
13579 PyObject *resultobj;
13580 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13581 wxControl *result;
13582 PyObject * obj0 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13589 {
13590 PyThreadState* __tstate = wxPyBeginAllowThreads();
13591 result = (wxControl *)(arg1)->GetControl();
13592
13593 wxPyEndAllowThreads(__tstate);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 {
13597 resultobj = wxPyMake_wxObject(result);
13598 }
13599 return resultobj;
13600 fail:
13601 return NULL;
13602 }
13603
13604
13605 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj;
13607 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13608 int arg2 ;
13609 PyObject * obj0 = 0 ;
13610 char *kwnames[] = {
13611 (char *) "self",(char *) "row", NULL
13612 };
13613
13614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&arg2)) goto fail;
13615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13616 {
13617 PyThreadState* __tstate = wxPyBeginAllowThreads();
13618 (arg1)->SetRow(arg2);
13619
13620 wxPyEndAllowThreads(__tstate);
13621 if (PyErr_Occurred()) SWIG_fail;
13622 }
13623 Py_INCREF(Py_None); resultobj = Py_None;
13624 return resultobj;
13625 fail:
13626 return NULL;
13627 }
13628
13629
13630 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj;
13632 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13633 int arg2 ;
13634 PyObject * obj0 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self",(char *) "col", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&arg2)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13641 {
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 (arg1)->SetCol(arg2);
13644
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 Py_INCREF(Py_None); resultobj = Py_None;
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj;
13657 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13658 wxControl *arg2 = (wxControl *) 0 ;
13659 PyObject * obj0 = 0 ;
13660 PyObject * obj1 = 0 ;
13661 char *kwnames[] = {
13662 (char *) "self",(char *) "ctrl", NULL
13663 };
13664
13665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
13666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13667 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 (arg1)->SetControl(arg2);
13671
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 Py_INCREF(Py_None); resultobj = Py_None;
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
13683 PyObject *obj;
13684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13685 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
13686 Py_INCREF(obj);
13687 return Py_BuildValue((char *)"");
13688 }
13689 static PyMethodDef SwigMethods[] = {
13690 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13691 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
13692 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
13693 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
13694 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
13695 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
13696 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
13697 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
13698 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
13699 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13700 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
13701 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
13702 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
13703 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
13704 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
13705 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
13706 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
13707 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
13708 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
13709 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
13710 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
13711 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
13712 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
13713 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
13714 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
13715 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
13716 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
13717 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
13718 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
13719 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
13720 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13721 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
13722 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
13723 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
13724 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
13725 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
13726 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
13727 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
13728 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
13729 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
13730 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
13731 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
13732 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
13733 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
13734 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
13735 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
13736 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
13737 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
13738 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
13739 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
13740 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
13741 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
13742 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
13743 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
13744 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13745 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
13746 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
13747 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
13748 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
13749 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
13750 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
13751 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
13752 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
13753 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
13754 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
13755 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
13756 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13757 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
13758 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
13759 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13760 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
13761 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
13762 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13763 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
13764 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
13765 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13766 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
13767 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
13768 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13769 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
13770 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
13771 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13772 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
13773 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
13774 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13775 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
13776 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13777 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
13778 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
13779 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
13780 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
13781 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
13782 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
13783 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13784 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
13785 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
13786 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
13787 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
13788 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
13789 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
13790 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
13791 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
13792 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
13793 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13794 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
13795 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
13796 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
13797 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
13798 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
13799 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
13800 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
13801 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13802 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
13803 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
13804 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
13805 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
13806 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
13807 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
13808 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
13809 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
13810 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
13811 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
13812 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13813 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
13814 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
13815 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13816 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13817 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
13818 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
13819 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
13820 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
13821 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13822 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
13823 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
13824 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13825 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13826 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
13827 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13828 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
13829 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
13830 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
13831 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
13832 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
13833 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
13834 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
13835 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
13836 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
13837 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
13838 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
13839 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
13840 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
13841 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
13842 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
13843 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
13844 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
13845 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
13846 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
13847 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
13848 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
13849 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13850 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
13851 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
13852 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13853 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13854 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13855 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13856 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13857 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
13858 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
13859 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
13860 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13861 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13862 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
13863 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
13864 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13865 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
13866 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
13867 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
13868 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
13869 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
13870 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
13871 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
13872 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13873 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
13874 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
13875 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13876 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13877 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13878 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13879 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13880 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
13881 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
13882 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
13883 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13884 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13885 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
13886 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
13887 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
13888 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
13889 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
13890 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
13891 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
13892 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
13893 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
13894 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
13895 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
13896 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
13897 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
13898 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
13899 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
13900 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
13901 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
13902 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
13903 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
13904 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
13905 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
13906 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
13907 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
13908 { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
13909 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
13910 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
13911 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
13912 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
13913 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
13914 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
13915 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
13916 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
13917 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
13918 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
13919 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
13920 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
13921 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
13922 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13923 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
13924 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
13925 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13926 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
13927 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
13928 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
13929 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
13930 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
13931 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
13932 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
13933 { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
13934 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
13935 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
13936 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
13937 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
13938 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
13939 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
13940 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
13941 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
13942 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
13943 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
13944 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
13945 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
13946 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
13947 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
13948 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
13949 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
13950 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
13951 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
13952 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
13953 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
13954 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
13955 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
13956 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
13957 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
13958 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
13959 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
13960 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
13961 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
13962 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
13963 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
13964 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
13965 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
13966 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13967 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13968 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
13969 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
13970 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13971 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
13972 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
13973 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13974 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13975 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
13976 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13977 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13978 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
13979 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
13980 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
13981 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
13982 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13983 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
13984 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13985 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
13986 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
13987 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13988 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13989 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
13990 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13991 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13992 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
13993 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
13994 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
13995 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
13996 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
13997 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
13998 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
13999 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
14000 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
14001 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
14002 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14003 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14004 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
14005 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
14006 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14007 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14008 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
14009 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
14010 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
14011 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
14012 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
14013 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
14014 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14015 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
14016 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14017 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
14018 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14019 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14020 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14021 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14022 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14023 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
14024 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14025 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14026 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14027 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14028 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
14029 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14030 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
14031 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14032 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
14033 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
14034 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
14035 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
14036 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
14037 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
14038 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14039 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
14040 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
14041 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
14042 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14043 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14044 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14045 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14046 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14047 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14048 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14049 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14050 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14051 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
14052 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14053 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14054 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14055 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14056 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
14057 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14058 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14059 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14060 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14061 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14062 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
14063 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14064 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
14065 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
14066 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
14067 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
14068 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
14069 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
14070 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
14071 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
14072 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
14073 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
14074 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
14075 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
14076 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
14077 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
14078 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
14079 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
14080 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
14081 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
14082 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
14083 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
14084 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
14085 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14086 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14087 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14088 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14089 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
14090 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
14091 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
14092 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
14093 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
14094 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
14095 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
14096 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
14097 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
14098 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
14099 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
14100 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
14101 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14102 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14103 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14104 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14105 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14106 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14107 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14108 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14109 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
14110 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
14111 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
14112 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14113 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14114 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14115 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14116 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14117 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
14118 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
14119 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
14120 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
14121 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
14122 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
14123 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
14124 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
14125 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14126 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14127 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14128 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14129 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14130 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
14131 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
14132 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14133 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14134 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
14135 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
14136 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
14137 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
14138 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
14139 { NULL, NULL }
14140 };
14141
14142
14143 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
14144
14145 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
14146 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
14147 }
14148 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
14149 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
14150 }
14151 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
14152 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14153 }
14154 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
14155 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14156 }
14157 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
14158 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
14159 }
14160 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
14161 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14162 }
14163 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
14164 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14165 }
14166 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
14167 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14168 }
14169 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
14170 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14171 }
14172 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
14173 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14174 }
14175 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
14176 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14177 }
14178 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
14179 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14180 }
14181 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
14182 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14183 }
14184 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
14185 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
14186 }
14187 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
14188 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
14189 }
14190 static void *_p_wxGridTo_p_wxPanel(void *x) {
14191 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
14192 }
14193 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
14194 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14195 }
14196 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
14197 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14198 }
14199 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
14200 return (void *)((wxPanel *) ((wxPyPanel *) x));
14201 }
14202 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
14203 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
14204 }
14205 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
14206 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
14207 }
14208 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
14209 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14210 }
14211 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
14212 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
14213 }
14214 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
14215 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14216 }
14217 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
14218 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
14219 }
14220 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
14221 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
14222 }
14223 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
14224 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
14225 }
14226 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
14227 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
14228 }
14229 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
14230 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14231 }
14232 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
14233 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14234 }
14235 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
14236 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
14237 }
14238 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
14239 return (void *)((wxWindow *) ((wxMenuBar *) x));
14240 }
14241 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
14242 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14243 }
14244 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
14245 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14246 }
14247 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
14248 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14249 }
14250 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
14251 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14252 }
14253 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
14254 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14255 }
14256 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
14257 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14258 }
14259 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
14260 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14261 }
14262 static void *_p_wxPanelTo_p_wxWindow(void *x) {
14263 return (void *)((wxWindow *) ((wxPanel *) x));
14264 }
14265 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
14266 return (void *)((wxWindow *) ((wxStatusBar *) x));
14267 }
14268 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
14269 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
14270 }
14271 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
14272 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
14273 }
14274 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
14275 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14276 }
14277 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
14278 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14279 }
14280 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
14281 return (void *)((wxWindow *) ((wxPopupWindow *) x));
14282 }
14283 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
14284 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
14285 }
14286 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
14287 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
14288 }
14289 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
14290 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
14291 }
14292 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
14293 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
14294 }
14295 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
14296 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
14297 }
14298 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
14299 return (void *)((wxWindow *) ((wxSashWindow *) x));
14300 }
14301 static void *_p_wxControlTo_p_wxWindow(void *x) {
14302 return (void *)((wxWindow *) ((wxControl *) x));
14303 }
14304 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
14305 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14306 }
14307 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
14308 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14309 }
14310 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
14311 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14312 }
14313 static void *_p_wxGridTo_p_wxWindow(void *x) {
14314 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14315 }
14316 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
14317 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
14318 }
14319 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
14320 return (void *)((wxWindow *) ((wxPyWindow *) x));
14321 }
14322 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
14323 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14324 }
14325 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
14326 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14327 }
14328 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
14329 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14330 }
14331 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
14332 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
14333 }
14334 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
14335 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14336 }
14337 static void *_p_wxFrameTo_p_wxWindow(void *x) {
14338 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
14339 }
14340 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
14341 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
14342 }
14343 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
14344 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
14345 }
14346 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
14347 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
14348 }
14349 static void *_p_wxDialogTo_p_wxWindow(void *x) {
14350 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
14351 }
14352 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
14353 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
14354 }
14355 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
14356 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
14357 }
14358 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
14359 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
14360 }
14361 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
14362 return (void *)((wxControl *) ((wxControlWithItems *) x));
14363 }
14364 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
14365 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
14366 }
14367 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
14368 return (void *)((wxEvent *) ((wxMenuEvent *) x));
14369 }
14370 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
14371 return (void *)((wxEvent *) ((wxCloseEvent *) x));
14372 }
14373 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
14374 return (void *)((wxEvent *) ((wxMouseEvent *) x));
14375 }
14376 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
14377 return (void *)((wxEvent *) ((wxEraseEvent *) x));
14378 }
14379 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
14380 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
14381 }
14382 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
14383 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14384 }
14385 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
14386 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
14387 }
14388 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
14389 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
14390 }
14391 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
14392 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
14393 }
14394 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
14395 return (void *)((wxEvent *) ((wxPyEvent *) x));
14396 }
14397 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
14398 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
14399 }
14400 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
14401 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
14402 }
14403 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
14404 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14405 }
14406 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
14407 return (void *)((wxEvent *) ((wxIdleEvent *) x));
14408 }
14409 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
14410 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
14411 }
14412 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
14413 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
14414 }
14415 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
14416 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
14417 }
14418 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
14419 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
14420 }
14421 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
14422 return (void *)((wxEvent *) ((wxActivateEvent *) x));
14423 }
14424 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
14425 return (void *)((wxEvent *) ((wxSizeEvent *) x));
14426 }
14427 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
14428 return (void *)((wxEvent *) ((wxMoveEvent *) x));
14429 }
14430 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
14431 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
14432 }
14433 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
14434 return (void *)((wxEvent *) ((wxPaintEvent *) x));
14435 }
14436 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
14437 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
14438 }
14439 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
14440 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
14441 }
14442 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
14443 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
14444 }
14445 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
14446 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
14447 }
14448 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
14449 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14450 }
14451 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
14452 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
14453 }
14454 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
14455 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14456 }
14457 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
14458 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14459 }
14460 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
14461 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
14462 }
14463 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
14464 return (void *)((wxEvent *) ((wxFocusEvent *) x));
14465 }
14466 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
14467 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
14468 }
14469 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
14470 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
14471 }
14472 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
14473 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14474 }
14475 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
14476 return (void *)((wxEvent *) ((wxShowEvent *) x));
14477 }
14478 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
14479 return (void *)((wxEvent *) ((wxCommandEvent *) x));
14480 }
14481 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
14482 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
14483 }
14484 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
14485 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
14486 }
14487 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
14488 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
14489 }
14490 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
14491 return (void *)((wxEvent *) ((wxKeyEvent *) x));
14492 }
14493 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
14494 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
14495 }
14496 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
14497 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
14498 }
14499 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
14500 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
14501 }
14502 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
14503 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14504 }
14505 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
14506 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14507 }
14508 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
14509 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14510 }
14511 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
14512 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
14513 }
14514 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
14515 return (void *)((wxObject *) ((wxSizerItem *) x));
14516 }
14517 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
14518 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
14519 }
14520 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
14521 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
14522 }
14523 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
14524 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
14525 }
14526 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
14527 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
14528 }
14529 static void *_p_wxSizerTo_p_wxObject(void *x) {
14530 return (void *)((wxObject *) ((wxSizer *) x));
14531 }
14532 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
14533 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
14534 }
14535 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
14536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
14537 }
14538 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
14539 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
14540 }
14541 static void *_p_wxEventTo_p_wxObject(void *x) {
14542 return (void *)((wxObject *) ((wxEvent *) x));
14543 }
14544 static void *_p_wxFontDataTo_p_wxObject(void *x) {
14545 return (void *)((wxObject *) ((wxFontData *) x));
14546 }
14547 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
14548 return (void *)((wxObject *) ((wxPrintData *) x));
14549 }
14550 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
14551 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
14552 }
14553 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
14554 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
14555 }
14556 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
14557 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
14558 }
14559 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
14560 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
14561 }
14562 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
14563 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
14564 }
14565 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
14566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
14567 }
14568 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
14569 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
14570 }
14571 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
14572 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
14573 }
14574 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
14575 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
14576 }
14577 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
14578 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
14579 }
14580 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
14581 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
14582 }
14583 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
14584 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14585 }
14586 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
14587 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
14588 }
14589 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
14590 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14591 }
14592 static void *_p_wxGridEventTo_p_wxObject(void *x) {
14593 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14594 }
14595 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
14596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14597 }
14598 static void *_p_wxControlTo_p_wxObject(void *x) {
14599 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
14600 }
14601 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
14602 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
14603 }
14604 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
14605 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14606 }
14607 static void *_p_wxFSFileTo_p_wxObject(void *x) {
14608 return (void *)((wxObject *) ((wxFSFile *) x));
14609 }
14610 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
14611 return (void *)((wxObject *) ((wxFindReplaceData *) x));
14612 }
14613 static void *_p_wxGridTo_p_wxObject(void *x) {
14614 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14615 }
14616 static void *_p_wxPySizerTo_p_wxObject(void *x) {
14617 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
14618 }
14619 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
14620 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14621 }
14622 static void *_p_wxColourDataTo_p_wxObject(void *x) {
14623 return (void *)((wxObject *) ((wxColourData *) x));
14624 }
14625 static void *_p_wxPyEventTo_p_wxObject(void *x) {
14626 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
14627 }
14628 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
14629 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
14630 }
14631 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
14632 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
14633 }
14634 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
14635 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14636 }
14637 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
14638 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14639 }
14640 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
14641 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14642 }
14643 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
14644 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14645 }
14646 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
14647 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14648 }
14649 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
14650 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14651 }
14652 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
14653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14654 }
14655 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
14656 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14657 }
14658 static void *_p_wxShowEventTo_p_wxObject(void *x) {
14659 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
14660 }
14661 static void *_p_wxPrinterTo_p_wxObject(void *x) {
14662 return (void *)((wxObject *) ((wxPrinter *) x));
14663 }
14664 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
14665 return (void *)((wxObject *) ((wxMenuItem *) x));
14666 }
14667 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
14668 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
14669 }
14670 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
14671 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
14672 }
14673 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
14674 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
14675 }
14676 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
14677 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
14678 }
14679 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
14680 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
14681 }
14682 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
14683 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
14684 }
14685 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
14686 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
14687 }
14688 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
14689 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
14690 }
14691 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
14692 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
14693 }
14694 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
14695 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
14696 }
14697 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
14698 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
14699 }
14700 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
14701 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
14702 }
14703 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
14704 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
14705 }
14706 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
14707 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
14708 }
14709 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
14710 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
14711 }
14712 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
14713 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
14714 }
14715 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
14716 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
14717 }
14718 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
14719 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
14720 }
14721 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
14722 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
14723 }
14724 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
14725 return (void *)((wxObject *) ((wxImageHandler *) x));
14726 }
14727 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
14728 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
14729 }
14730 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
14731 return (void *)((wxObject *) ((wxEvtHandler *) x));
14732 }
14733 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
14734 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
14735 }
14736 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
14737 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14738 }
14739 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
14740 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14741 }
14742 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
14743 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14744 }
14745 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
14746 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
14747 }
14748 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
14749 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14750 }
14751 static void *_p_wxImageTo_p_wxObject(void *x) {
14752 return (void *)((wxObject *) ((wxImage *) x));
14753 }
14754 static void *_p_wxFrameTo_p_wxObject(void *x) {
14755 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
14756 }
14757 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
14758 return (void *)((wxObject *) ((wxPyPrintout *) x));
14759 }
14760 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
14761 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
14762 }
14763 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
14764 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
14765 }
14766 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
14767 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
14768 }
14769 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
14770 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
14771 }
14772 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
14773 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
14774 }
14775 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
14776 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
14777 }
14778 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
14779 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
14780 }
14781 static void *_p_wxWindowTo_p_wxObject(void *x) {
14782 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
14783 }
14784 static void *_p_wxMenuTo_p_wxObject(void *x) {
14785 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
14786 }
14787 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
14788 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
14789 }
14790 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
14791 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
14792 }
14793 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
14794 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
14795 }
14796 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
14797 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
14798 }
14799 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
14800 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
14801 }
14802 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
14803 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
14804 }
14805 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
14806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
14807 }
14808 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
14809 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
14810 }
14811 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
14812 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14813 }
14814 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
14815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14816 }
14817 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
14818 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
14819 }
14820 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
14821 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
14822 }
14823 static void *_p_wxSashEventTo_p_wxObject(void *x) {
14824 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
14825 }
14826 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
14827 return (void *)((wxObject *) ((wxPrintPreview *) x));
14828 }
14829 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
14830 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
14831 }
14832 static void *_p_wxPanelTo_p_wxObject(void *x) {
14833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
14834 }
14835 static void *_p_wxDialogTo_p_wxObject(void *x) {
14836 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
14837 }
14838 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
14839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
14840 }
14841 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
14842 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
14843 }
14844 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
14845 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
14846 }
14847 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
14848 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
14849 }
14850 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
14851 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
14852 }
14853 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
14854 return (void *)((wxObject *) ((wxFileSystem *) x));
14855 }
14856 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
14857 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
14858 }
14859 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
14860 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
14861 }
14862 static void *_p_wxPyAppTo_p_wxObject(void *x) {
14863 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
14864 }
14865 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
14866 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
14867 }
14868 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
14869 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
14870 }
14871 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
14872 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
14873 }
14874 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
14875 return (void *)((wxObject *) ((wxGridTableBase *) x));
14876 }
14877 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
14878 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
14879 }
14880 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
14881 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
14882 }
14883 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
14884 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
14885 }
14886 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
14887 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
14888 }
14889 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
14890 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14891 }
14892 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
14893 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
14894 }
14895 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
14896 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
14897 }
14898 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
14899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
14900 }
14901 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
14902 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
14903 }
14904 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
14905 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
14906 }
14907 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
14908 return (void *)((wxObject *) ((wxPrintDialogData *) x));
14909 }
14910 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
14911 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
14912 }
14913 static void *_p_wxValidatorTo_p_wxObject(void *x) {
14914 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
14915 }
14916 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
14917 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14918 }
14919 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
14920 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14921 }
14922 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
14923 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
14924 }
14925 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
14926 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
14927 }
14928 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
14929 return (void *)((wxEvtHandler *) ((wxValidator *) x));
14930 }
14931 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
14932 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
14933 }
14934 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
14935 return (void *)((wxEvtHandler *) ((wxMenu *) x));
14936 }
14937 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
14938 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14939 }
14940 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
14941 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14942 }
14943 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
14944 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14945 }
14946 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
14947 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14948 }
14949 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
14950 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14951 }
14952 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
14953 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14954 }
14955 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
14956 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14957 }
14958 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
14959 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
14960 }
14961 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
14962 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
14963 }
14964 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
14965 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
14966 }
14967 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
14968 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14969 }
14970 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
14971 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14972 }
14973 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
14974 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
14975 }
14976 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
14977 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
14978 }
14979 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
14980 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
14981 }
14982 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
14983 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
14984 }
14985 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
14986 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
14987 }
14988 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
14989 return (void *)((wxEvtHandler *) ((wxWindow *) x));
14990 }
14991 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
14992 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
14993 }
14994 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
14995 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
14996 }
14997 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
14998 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
14999 }
15000 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
15001 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
15002 }
15003 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
15004 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
15005 }
15006 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
15007 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
15008 }
15009 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
15010 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
15011 }
15012 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
15013 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
15014 }
15015 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
15016 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
15017 }
15018 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
15019 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
15020 }
15021 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
15022 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
15023 }
15024 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
15025 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
15026 }
15027 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
15028 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15029 }
15030 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
15031 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15032 }
15033 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
15034 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
15035 }
15036 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
15037 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15038 }
15039 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
15040 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
15041 }
15042 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
15043 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
15044 }
15045 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
15046 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
15047 }
15048 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
15049 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
15050 }
15051 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
15052 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
15053 }
15054 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
15055 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
15056 }
15057 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
15058 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
15059 }
15060 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
15061 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
15062 }
15063 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
15064 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
15065 }
15066 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
15067 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
15068 }
15069 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
15070 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
15071 }
15072 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
15073 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
15074 }
15075 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
15076 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
15077 }
15078 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
15079 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15080 }
15081 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
15082 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15083 }
15084 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
15085 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
15086 }
15087 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
15088 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
15089 }
15090 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
15091 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15092 }
15093 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
15094 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15095 }
15096 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
15097 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15098 }
15099 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
15100 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15101 }
15102 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
15103 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15104 }
15105 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
15106 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
15107 }
15108 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
15109 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
15110 }
15111 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
15112 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
15113 }
15114 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
15115 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
15116 }
15117 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
15118 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
15119 }
15120 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
15121 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
15122 }
15123 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
15124 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
15125 }
15126 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
15127 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15128 }
15129 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
15130 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
15131 }
15132 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
15133 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
15134 }
15135 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
15136 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
15137 }
15138 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
15139 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
15140 }
15141 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
15142 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
15143 }
15144 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
15145 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
15146 }
15147 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
15148 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
15149 }
15150 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
15151 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
15152 }
15153 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
15154 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15155 }
15156 static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}};
15157 static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}};
15158 static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}};
15159 static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}};
15160 static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}};
15161 static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}};
15162 static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}};
15163 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}};
15164 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}};
15165 static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}};
15166 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
15167 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
15168 static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}};
15169 static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}};
15170 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}};
15171 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}};
15172 static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}};
15173 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
15174 static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}};
15175 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}};
15176 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}};
15177 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
15178 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
15179 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}};
15180 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}};
15181 static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}};
15182 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
15183 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
15184 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
15185 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}};
15186 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
15187 static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}};
15188 static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}};
15189 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}};
15190 static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}};
15191 static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}};
15192 static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}};
15193 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}};
15194 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}};
15195 static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}};
15196 static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}};
15197 static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}};
15198 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
15199 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}};
15200 static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}};
15201 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
15202 static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}};
15203 static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}};
15204 static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}};
15205 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
15206 static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}};
15207
15208 static swig_type_info *swig_types_initial[] = {
15209 _swigt__p_wxGridCellAutoWrapStringRenderer,
15210 _swigt__p_wxGridCellEnumRenderer,
15211 _swigt__p_wxGridCellDateTimeRenderer,
15212 _swigt__p_wxGridCellBoolRenderer,
15213 _swigt__p_wxGridCellFloatRenderer,
15214 _swigt__p_wxGridCellNumberRenderer,
15215 _swigt__p_wxPyGridCellRenderer,
15216 _swigt__p_wxGridCellRenderer,
15217 _swigt__p_wxGridCellStringRenderer,
15218 _swigt__p_wxGridCellAttr,
15219 _swigt__p_wxColour,
15220 _swigt__p_wxDC,
15221 _swigt__p_wxGridTableMessage,
15222 _swigt__p_wxGrid,
15223 _swigt__p_wxPanel,
15224 _swigt__p_wxNotifyEvent,
15225 _swigt__p_wxGridRangeSelectEvent,
15226 _swigt__p_wxSize,
15227 _swigt__p_wxGridCellCoords,
15228 _swigt__p_wxScrolledWindow,
15229 _swigt__p_wxWindow,
15230 _swigt__p_wxFont,
15231 _swigt__p_wxControl,
15232 _swigt__p_wxEvent,
15233 _swigt__p_wxObject,
15234 _swigt__p_wxGridSizeEvent,
15235 _swigt__p_wxRect,
15236 _swigt__p_long,
15237 _swigt__p_wxString,
15238 _swigt__p_wxEvtHandler,
15239 _swigt__p_wxPoint,
15240 _swigt__p_wxGridEvent,
15241 _swigt__p_wxGridEditorCreatedEvent,
15242 _swigt__p_wxGridTableBase,
15243 _swigt__p_wxGridCellFloatEditor,
15244 _swigt__p_wxGridCellNumberEditor,
15245 _swigt__p_wxPyGridCellEditor,
15246 _swigt__p_wxGridCellEditor,
15247 _swigt__p_wxGridCellTextEditor,
15248 _swigt__p_wxGridCellBoolEditor,
15249 _swigt__p_wxPyGridTableBase,
15250 _swigt__p_wxGridStringTable,
15251 _swigt__p_wxArrayString,
15252 _swigt__p_wxCommandEvent,
15253 _swigt__p_wxGridCellAttrProvider,
15254 _swigt__p_wxKeyEvent,
15255 _swigt__p_wxGridCellChoiceEditor,
15256 _swigt__p_wxGridCellEnumEditor,
15257 _swigt__p_wxGridCellAutoWrapStringEditor,
15258 _swigt__p_int,
15259 _swigt__p_wxPyGridCellAttrProvider,
15260 0
15261 };
15262
15263
15264 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
15265
15266 static swig_const_info swig_const_table[] = {
15267 { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0},
15268 { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0},
15269 { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0},
15270 { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0},
15271 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0},
15272 { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0},
15273 { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0},
15274 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0},
15275 { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0},
15276 { SWIG_PY_INT, (char *)"GridCellAttr_Any", (long) wxGridCellAttr::Any, 0, 0, 0},
15277 { SWIG_PY_INT, (char *)"GridCellAttr_Default", (long) wxGridCellAttr::Default, 0, 0, 0},
15278 { SWIG_PY_INT, (char *)"GridCellAttr_Cell", (long) wxGridCellAttr::Cell, 0, 0, 0},
15279 { SWIG_PY_INT, (char *)"GridCellAttr_Row", (long) wxGridCellAttr::Row, 0, 0, 0},
15280 { SWIG_PY_INT, (char *)"GridCellAttr_Col", (long) wxGridCellAttr::Col, 0, 0, 0},
15281 { SWIG_PY_INT, (char *)"GridCellAttr_Merged", (long) wxGridCellAttr::Merged, 0, 0, 0},
15282 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_GET_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_GET_VALUES, 0, 0, 0},
15283 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES, 0, 0, 0},
15284 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_INSERTED", (long) wxGRIDTABLE_NOTIFY_ROWS_INSERTED, 0, 0, 0},
15285 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_APPENDED", (long) wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 0, 0, 0},
15286 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_DELETED", (long) wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, 0, 0},
15287 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_INSERTED", (long) wxGRIDTABLE_NOTIFY_COLS_INSERTED, 0, 0, 0},
15288 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_APPENDED", (long) wxGRIDTABLE_NOTIFY_COLS_APPENDED, 0, 0, 0},
15289 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_DELETED", (long) wxGRIDTABLE_NOTIFY_COLS_DELETED, 0, 0, 0},
15290 { SWIG_PY_INT, (char *)"Grid_wxGridSelectCells", (long) wxGrid::wxGridSelectCells, 0, 0, 0},
15291 { SWIG_PY_INT, (char *)"Grid_wxGridSelectRows", (long) wxGrid::wxGridSelectRows, 0, 0, 0},
15292 { SWIG_PY_INT, (char *)"Grid_wxGridSelectColumns", (long) wxGrid::wxGridSelectColumns, 0, 0, 0},
15293 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_CLICK", (long) wxEVT_GRID_CELL_LEFT_CLICK, 0, 0, 0},
15294 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_CLICK", (long) wxEVT_GRID_CELL_RIGHT_CLICK, 0, 0, 0},
15295 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_DCLICK", (long) wxEVT_GRID_CELL_LEFT_DCLICK, 0, 0, 0},
15296 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_DCLICK", (long) wxEVT_GRID_CELL_RIGHT_DCLICK, 0, 0, 0},
15297 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_CLICK", (long) wxEVT_GRID_LABEL_LEFT_CLICK, 0, 0, 0},
15298 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_CLICK", (long) wxEVT_GRID_LABEL_RIGHT_CLICK, 0, 0, 0},
15299 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_DCLICK", (long) wxEVT_GRID_LABEL_LEFT_DCLICK, 0, 0, 0},
15300 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_DCLICK", (long) wxEVT_GRID_LABEL_RIGHT_DCLICK, 0, 0, 0},
15301 { SWIG_PY_INT, (char *)"wxEVT_GRID_ROW_SIZE", (long) wxEVT_GRID_ROW_SIZE, 0, 0, 0},
15302 { SWIG_PY_INT, (char *)"wxEVT_GRID_COL_SIZE", (long) wxEVT_GRID_COL_SIZE, 0, 0, 0},
15303 { SWIG_PY_INT, (char *)"wxEVT_GRID_RANGE_SELECT", (long) wxEVT_GRID_RANGE_SELECT, 0, 0, 0},
15304 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_CHANGE", (long) wxEVT_GRID_CELL_CHANGE, 0, 0, 0},
15305 { SWIG_PY_INT, (char *)"wxEVT_GRID_SELECT_CELL", (long) wxEVT_GRID_SELECT_CELL, 0, 0, 0},
15306 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_SHOWN", (long) wxEVT_GRID_EDITOR_SHOWN, 0, 0, 0},
15307 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_HIDDEN", (long) wxEVT_GRID_EDITOR_HIDDEN, 0, 0, 0},
15308 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_CREATED", (long) wxEVT_GRID_EDITOR_CREATED, 0, 0, 0},
15309 {0}};
15310
15311 #ifdef __cplusplus
15312 }
15313 #endif
15314
15315 #ifdef __cplusplus
15316 extern "C"
15317 #endif
15318 SWIGEXPORT(void) SWIG_init(void) {
15319 static PyObject *SWIG_globals = 0;
15320 static int typeinit = 0;
15321 PyObject *m, *d;
15322 int i;
15323 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
15324 m = Py_InitModule((char *) SWIG_name, SwigMethods);
15325 d = PyModule_GetDict(m);
15326
15327 if (!typeinit) {
15328 for (i = 0; swig_types_initial[i]; i++) {
15329 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
15330 }
15331 typeinit = 1;
15332 }
15333 SWIG_InstallConstants(d,swig_const_table);
15334
15335 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
15336 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
15337 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
15338 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
15339 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
15340 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
15341 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
15342 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
15343 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
15344 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
15345 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
15346 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
15347 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
15348 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
15349 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
15350 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
15351 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
15352 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
15353 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
15354
15355
15356 }
15357