]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/grid_wrap.cpp
984761715f8ae0e02ada530f1ae6a891baa0cb76
[wxWidgets.git] / wxPython / src / mac / grid_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0]
210 #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1]
211 #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2]
212 #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3]
213 #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4]
214 #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5]
215 #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6]
216 #define SWIGTYPE_p_wxGridCellRenderer swig_types[7]
217 #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8]
218 #define SWIGTYPE_p_wxGridCellAttr swig_types[9]
219 #define SWIGTYPE_p_wxColour swig_types[10]
220 #define SWIGTYPE_p_wxDC swig_types[11]
221 #define SWIGTYPE_p_wxGridTableMessage swig_types[12]
222 #define SWIGTYPE_p_wxGrid swig_types[13]
223 #define SWIGTYPE_p_wxVisualAttributes swig_types[14]
224 #define SWIGTYPE_p_char swig_types[15]
225 #define SWIGTYPE_p_wxPanel swig_types[16]
226 #define SWIGTYPE_p_wxNotifyEvent swig_types[17]
227 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[18]
228 #define SWIGTYPE_p_wxSize swig_types[19]
229 #define SWIGTYPE_p_wxGridCellCoords swig_types[20]
230 #define SWIGTYPE_p_wxScrolledWindow swig_types[21]
231 #define SWIGTYPE_p_wxWindow swig_types[22]
232 #define SWIGTYPE_p_wxFont swig_types[23]
233 #define SWIGTYPE_p_wxControl swig_types[24]
234 #define SWIGTYPE_p_wxEvent swig_types[25]
235 #define SWIGTYPE_p_wxObject swig_types[26]
236 #define SWIGTYPE_p_wxGridSizeEvent swig_types[27]
237 #define SWIGTYPE_p_wxRect swig_types[28]
238 #define SWIGTYPE_p_long swig_types[29]
239 #define SWIGTYPE_p_wxString swig_types[30]
240 #define SWIGTYPE_p_wxEvtHandler swig_types[31]
241 #define SWIGTYPE_p_wxPoint swig_types[32]
242 #define SWIGTYPE_p_wxGridEvent swig_types[33]
243 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[34]
244 #define SWIGTYPE_p_wxGridTableBase swig_types[35]
245 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[36]
246 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[37]
247 #define SWIGTYPE_p_wxGridCellEditor swig_types[38]
248 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[39]
249 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[40]
250 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[41]
251 #define SWIGTYPE_p_wxPyGridTableBase swig_types[42]
252 #define SWIGTYPE_p_wxGridStringTable swig_types[43]
253 #define SWIGTYPE_p_wxArrayString swig_types[44]
254 #define SWIGTYPE_p_wxCommandEvent swig_types[45]
255 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[46]
256 #define SWIGTYPE_p_wxKeyEvent swig_types[47]
257 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[48]
258 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[49]
259 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[50]
260 #define SWIGTYPE_p_int swig_types[51]
261 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[52]
262 static swig_type_info *swig_types[54];
263
264 /* -------- TYPES TABLE (END) -------- */
265
266
267 /*-----------------------------------------------
268 @(target):= _grid.so
269 ------------------------------------------------*/
270 #define SWIG_init init_grid
271
272 #define SWIG_name "_grid"
273
274 /* Auxiliar swig macros */
275
276 #ifdef __cplusplus
277 #define SWIGSTATICINLINE(a) static inline a
278 #define SWIGSTATIC(a) static a
279 #define swig_new_array(type, size) (new type[(size)])
280 #define swig_delete_array(cptr) delete[] cptr
281 #define swig_const_cast(type,a) const_cast<type>(a)
282 #define swig_static_cast(type,a) static_cast<type>(a)
283 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
284
285 #ifdef HAVE_NUMERIC_CAST
286 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
287 #else
288 #define swig_numeric_cast(type,a) static_cast<type>(a)
289 #endif
290
291 #else /* C case */
292
293 #define SWIGSTATICINLINE(a) static a
294 #define SWIGSTATIC(a) static a
295 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
296 #define swig_delete_array(cptr) free((char*)cptr)
297 #define swig_const_cast(type,a) (type)(a)
298 #define swig_static_cast(type,a) (type)(a)
299 #define swig_reinterpret_cast(type,a) (type)(a)
300 #define swig_numeric_cast(type,a) (type)(a)
301
302 #endif /* __cplusplus */
303
304
305 #define SWIG_FromSignedChar PyInt_FromLong
306 #define SWIG_FromUnsignedChar PyInt_FromLong
307 #define SWIG_FromShort PyInt_FromLong
308 #define SWIG_FromUnsignedShort PyInt_FromLong
309 #define SWIG_FromInt PyInt_FromLong
310 #define SWIG_FromLong PyInt_FromLong
311 #define SWIG_FromFloat PyFloat_FromDouble
312 #define SWIG_FromDouble PyFloat_FromDouble
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315
316
317 #include "wx/wxPython/wxPython.h"
318 #include "wx/wxPython/pyclasses.h"
319 #include "wx/wxPython/printfw.h"
320
321 #include <wx/grid.h>
322 #include <wx/generic/gridctrl.h>
323
324
325 static const wxString wxPyEmptyString(wxEmptyString);
326 static const wxString wxPyPanelNameStr(wxPanelNameStr);
327 static const wxString wxPyDateTimeFormatStr(wxT("%c"));
328
329
330 #define wxPyMake_TEMPLATE(TYPE) \
331 PyObject* wxPyMake_##TYPE(TYPE* source, bool setThisOwn) { \
332 PyObject* target = NULL; \
333 if (source) { \
334 /* Check if there is already a pointer to a Python object in the \
335 OOR data that we can use. */ \
336 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
337 if (data) { \
338 target = data->m_obj; \
339 Py_INCREF(target); \
340 } \
341 /* Otherwise make a new wrapper for it the old fashioned way and \
342 give it the OOR treatment */ \
343 if (! target) { \
344 target = wxPyConstructObject(source, wxT(#TYPE), setThisOwn); \
345 if (target) \
346 source->SetClientObject(new wxPyOORClientData(target)); \
347 } \
348 } else { /* source was NULL so return None. */ \
349 Py_INCREF(Py_None); target = Py_None; \
350 } \
351 return target; \
352 } \
353
354
355 wxPyMake_TEMPLATE(wxGridCellRenderer)
356 wxPyMake_TEMPLATE(wxGridCellEditor)
357 wxPyMake_TEMPLATE(wxGridCellAttr)
358 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
359 wxPyMake_TEMPLATE(wxGridTableBase)
360
361
362
363 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
364 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
365 wxGridCellAttr* rval = NULL; \
366 bool found; \
367 bool blocked = wxPyBeginBlockThreads(); \
368 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
369 PyObject* ro; \
370 wxGridCellAttr* ptr; \
371 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
372 if (ro) { \
373 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
374 rval = ptr; \
375 Py_DECREF(ro); \
376 } \
377 } \
378 wxPyEndBlockThreads(blocked); \
379 if (! found) \
380 rval = PCLASS::CBNAME(a, b, c); \
381 return rval; \
382 } \
383 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
384 return PCLASS::CBNAME(a, b, c); \
385 }
386
387
388
389 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
390 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
391 bool blocked = wxPyBeginBlockThreads(); \
392 bool found; \
393 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
394 PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \
395 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
396 Py_DECREF(obj); \
397 } \
398 wxPyEndBlockThreads(blocked); \
399 if (! found) \
400 PCLASS::CBNAME(attr, a, b); \
401 } \
402 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
403 PCLASS::CBNAME(attr, a, b); \
404 }
405
406
407
408 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
409 void CBNAME(wxGridCellAttr *attr, int val) { \
410 bool blocked = wxPyBeginBlockThreads(); \
411 bool found; \
412 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
413 PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \
414 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
415 Py_DECREF(obj); \
416 } \
417 wxPyEndBlockThreads(blocked); \
418 if (! found) \
419 PCLASS::CBNAME(attr, val); \
420 } \
421 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
422 PCLASS::CBNAME(attr, val); \
423 }
424
425
426
427 #define PYCALLBACK_INT__pure(CBNAME) \
428 int CBNAME() { \
429 bool blocked = wxPyBeginBlockThreads(); \
430 int rval = 0; \
431 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
432 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
433 wxPyEndBlockThreads(blocked); \
434 return rval; \
435 }
436
437
438
439 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
440 bool CBNAME(int a, int b) { \
441 bool blocked = wxPyBeginBlockThreads(); \
442 bool rval = 0; \
443 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
444 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
445 wxPyEndBlockThreads(blocked); \
446 return rval; \
447 }
448
449
450 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
451 wxString CBNAME(int a, int b) { \
452 bool blocked = wxPyBeginBlockThreads(); \
453 wxString rval; \
454 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
455 PyObject* ro; \
456 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
457 if (ro) { \
458 rval = Py2wxString(ro); \
459 Py_DECREF(ro); \
460 } \
461 } \
462 wxPyEndBlockThreads(blocked); \
463 return rval; \
464 }
465
466
467 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
468 void CBNAME(int a, int b, const wxString& c) { \
469 bool blocked = wxPyBeginBlockThreads(); \
470 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
471 PyObject* s = wx2PyString(c); \
472 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
473 Py_DECREF(s); \
474 } \
475 wxPyEndBlockThreads(blocked); \
476 }
477
478
479 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
480 wxString CBNAME(int a, int b) { \
481 bool found; \
482 bool blocked = wxPyBeginBlockThreads(); \
483 wxString rval; \
484 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
485 PyObject* ro; \
486 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
487 if (ro) { \
488 rval = Py2wxString(ro); \
489 Py_DECREF(ro); \
490 } \
491 } \
492 wxPyEndBlockThreads(blocked); \
493 if (! found) \
494 rval = PCLASS::CBNAME(a, b); \
495 return rval; \
496 } \
497 wxString base_##CBNAME(int a, int b) { \
498 return PCLASS::CBNAME(a, b); \
499 }
500
501
502 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
503 bool CBNAME(int a, int b, const wxString& c) { \
504 bool rval = 0; \
505 bool found; \
506 bool blocked = wxPyBeginBlockThreads(); \
507 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
508 PyObject* s = wx2PyString(c); \
509 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
510 Py_DECREF(s); \
511 } \
512 wxPyEndBlockThreads(blocked); \
513 if (! found) \
514 rval = PCLASS::CBNAME(a,b,c); \
515 return rval; \
516 } \
517 bool base_##CBNAME(int a, int b, const wxString& c) { \
518 return PCLASS::CBNAME(a,b,c); \
519 }
520
521
522
523
524 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
525 long CBNAME(int a, int b) { \
526 long rval; \
527 bool found; \
528 bool blocked = wxPyBeginBlockThreads(); \
529 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
530 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
531 wxPyEndBlockThreads(blocked); \
532 if (! found) \
533 rval = PCLASS::CBNAME(a,b); \
534 return rval; \
535 } \
536 long base_##CBNAME(int a, int b) { \
537 return PCLASS::CBNAME(a,b); \
538 }
539
540
541
542 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
543 bool CBNAME(int a, int b) { \
544 bool rval = 0; \
545 bool found; \
546 bool blocked = wxPyBeginBlockThreads(); \
547 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
548 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
549 wxPyEndBlockThreads(blocked); \
550 if (! found) \
551 rval = PCLASS::CBNAME(a,b); \
552 return rval; \
553 } \
554 bool base_##CBNAME(int a, int b) { \
555 return PCLASS::CBNAME(a,b); \
556 }
557
558
559
560 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
561 double CBNAME(int a, int b) { \
562 bool found; \
563 bool blocked = wxPyBeginBlockThreads(); \
564 double rval; \
565 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
566 PyObject* ro; \
567 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
568 if (ro) { \
569 PyObject* str = PyObject_Str(ro); \
570 rval = PyFloat_AsDouble(str); \
571 Py_DECREF(ro); Py_DECREF(str); \
572 } \
573 } \
574 wxPyEndBlockThreads(blocked); \
575 if (! found) \
576 rval = PCLASS::CBNAME(a, b); \
577 return rval; \
578 } \
579 double base_##CBNAME(int a, int b) { \
580 return PCLASS::CBNAME(a, b); \
581 }
582
583
584
585 #define PYCALLBACK__(PCLASS, CBNAME) \
586 void CBNAME() { \
587 bool found; \
588 bool blocked = wxPyBeginBlockThreads(); \
589 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
590 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
591 wxPyEndBlockThreads(blocked); \
592 if (! found) \
593 PCLASS::CBNAME(); \
594 } \
595 void base_##CBNAME() { \
596 PCLASS::CBNAME(); \
597 }
598
599
600
601
602 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
603 bool CBNAME(size_t a, size_t b) { \
604 bool rval = 0; \
605 bool found; \
606 bool blocked = wxPyBeginBlockThreads(); \
607 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
608 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
609 wxPyEndBlockThreads(blocked); \
610 if (! found) \
611 rval = PCLASS::CBNAME(a,b); \
612 return rval; \
613 } \
614 bool base_##CBNAME(size_t a, size_t b) { \
615 return PCLASS::CBNAME(a,b); \
616 }
617
618
619
620 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
621 bool CBNAME(size_t a) { \
622 bool rval = 0; \
623 bool found; \
624 bool blocked = wxPyBeginBlockThreads(); \
625 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
626 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
627 wxPyEndBlockThreads(blocked); \
628 if (! found) \
629 rval = PCLASS::CBNAME(a); \
630 return rval; \
631 } \
632 bool base_##CBNAME(size_t a) { \
633 return PCLASS::CBNAME(a); \
634 }
635
636
637 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
638 wxString CBNAME(int a) { \
639 bool found; \
640 bool blocked = wxPyBeginBlockThreads(); \
641 wxString rval; \
642 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
643 PyObject* ro; \
644 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
645 if (ro) { \
646 rval = Py2wxString(ro); \
647 Py_DECREF(ro); \
648 } \
649 } \
650 wxPyEndBlockThreads(blocked); \
651 if (! found) \
652 rval = PCLASS::CBNAME(a); \
653 return rval; \
654 } \
655 wxString base_##CBNAME(int a) { \
656 return PCLASS::CBNAME(a); \
657 }
658
659
660 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
661 void CBNAME(int a, const wxString& c) { \
662 bool found; \
663 bool blocked = wxPyBeginBlockThreads(); \
664 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
665 PyObject* s = wx2PyString(c); \
666 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
667 Py_DECREF(s); \
668 } \
669 wxPyEndBlockThreads(blocked); \
670 if (! found) \
671 PCLASS::CBNAME(a,c); \
672 } \
673 void base_##CBNAME(int a, const wxString& c) { \
674 PCLASS::CBNAME(a,c); \
675 }
676
677
678
679
680 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
681 bool CBNAME() { \
682 bool rval = 0; \
683 bool found; \
684 bool blocked = wxPyBeginBlockThreads(); \
685 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
686 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
687 wxPyEndBlockThreads(blocked); \
688 if (! found) \
689 rval = PCLASS::CBNAME(); \
690 return rval; \
691 } \
692 bool base_##CBNAME() { \
693 return PCLASS::CBNAME(); \
694 }
695
696
697
698 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
699 void CBNAME(size_t a, int b) { \
700 bool found; \
701 bool blocked = wxPyBeginBlockThreads(); \
702 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
703 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
704 wxPyEndBlockThreads(blocked); \
705 if (! found) \
706 PCLASS::CBNAME(a,b); \
707 } \
708 void base_##CBNAME(size_t a, int b) { \
709 PCLASS::CBNAME(a,b); \
710 }
711
712
713
714
715 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
716 void CBNAME(int a, int b, long c) { \
717 bool found; \
718 bool blocked = wxPyBeginBlockThreads(); \
719 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
720 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
721 wxPyEndBlockThreads(blocked); \
722 if (! found) \
723 PCLASS::CBNAME(a,b,c); \
724 } \
725 void base_##CBNAME(int a, int b, long c) { \
726 PCLASS::CBNAME(a,b,c); \
727 }
728
729
730
731
732 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
733 void CBNAME(int a, int b, double c) { \
734 bool found; \
735 bool blocked = wxPyBeginBlockThreads(); \
736 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
737 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
738 wxPyEndBlockThreads(blocked); \
739 if (! found) \
740 PCLASS::CBNAME(a,b,c); \
741 } \
742 void base_##CBNAME(int a, int b, double c) { \
743 PCLASS::CBNAME(a,b,c); \
744 }
745
746
747
748 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
749 void CBNAME(int a, int b, bool c) { \
750 bool found; \
751 bool blocked = wxPyBeginBlockThreads(); \
752 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
753 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
754 wxPyEndBlockThreads(blocked); \
755 if (! found) \
756 PCLASS::CBNAME(a,b,c); \
757 } \
758 void base_##CBNAME(int a, int b, bool c) { \
759 PCLASS::CBNAME(a,b,c); \
760 }
761
762
763
764
765
766
767 SWIGSTATICINLINE(PyObject *)
768 SWIG_FromCharPtr(const char* cptr)
769 {
770 size_t size = cptr ? strlen(cptr) : 0;
771 if (cptr) {
772 if (size > INT_MAX) {
773 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
774 SWIG_TypeQuery("char *"), 0);
775 } else {
776 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
777 }
778 } else {
779 Py_INCREF(Py_None);
780 return Py_None;
781 }
782 }
783
784 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
785 self->SetClientObject(new wxPyOORClientData(_self));
786 }
787
788 #include <limits.h>
789
790
791 SWIGSTATICINLINE(long)
792 SWIG_CheckLongInRange(long value, const char* type,
793 long min_value, long max_value)
794 {
795 if (!PyErr_Occurred()) {
796 if (value < min_value) {
797 PyObject *err =
798 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
799 value, type, min_value);
800
801 PyErr_SetObject(PyExc_OverflowError, err);
802 Py_DECREF(err);
803 } else if (value > max_value) {
804 PyObject *err =
805 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
806 value, type, max_value);
807 PyErr_SetObject(PyExc_OverflowError, err);
808 Py_DECREF(err);
809 }
810 }
811 return value;
812 }
813
814
815 SWIGSTATICINLINE(long)
816 SWIG_AsLong(PyObject * obj)
817 {
818 if (PyNumber_Check(obj))
819 return PyInt_AsLong(obj);
820 else {
821 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
822 obj->ob_type->tp_name);
823 PyErr_SetObject(PyExc_TypeError, errmsg);
824 Py_DECREF(errmsg);
825 return 0;
826 }
827 }
828
829
830 #if INT_MAX != LONG_MAX
831 SWIGSTATICINLINE(int)
832 SWIG_AsInt(PyObject *obj)
833 {
834 return swig_numeric_cast(int,
835 SWIG_CheckLongInRange(SWIG_AsLong(obj),
836 "int", INT_MIN, INT_MAX));
837 }
838 #else
839 #define SWIG_AsInt SWIG_AsLong
840 #endif
841
842
843 SWIGSTATICINLINE(bool)
844 SWIG_AsBool(PyObject *obj)
845 {
846 return PyObject_IsTrue(obj) ? true : false;
847 }
848
849
850 SWIGSTATICINLINE(int)
851 SWIG_CheckInt(PyObject* obj)
852 {
853 SWIG_AsInt(obj);
854 if (PyErr_Occurred()) {
855 PyErr_Clear();
856 return 0;
857 } else {
858 return 1;
859 }
860 }
861
862
863 SWIGSTATICINLINE(int)
864 SWIG_CheckBool(PyObject* obj)
865 {
866 SWIG_AsBool(obj);
867 if (PyErr_Occurred()) {
868 PyErr_Clear();
869 return 0;
870 } else {
871 return 1;
872 }
873 }
874
875
876 class wxPyGridCellRenderer : public wxGridCellRenderer
877 {
878 public:
879 wxPyGridCellRenderer() : wxGridCellRenderer() {};
880
881 // Implement Python callback aware virtual methods
882 void Draw(wxGrid& grid, wxGridCellAttr& attr,
883 wxDC& dc, const wxRect& rect,
884 int row, int col, bool isSelected) {
885 bool blocked = wxPyBeginBlockThreads();
886 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
887 PyObject* go = wxPyMake_wxObject(&grid,false);
888 PyObject* dco = wxPyMake_wxObject(&dc,false);
889 PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false);
890 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
891
892 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
893 row, col, isSelected));
894 Py_DECREF(go);
895 Py_DECREF(ao);
896 Py_DECREF(dco);
897 Py_DECREF(ro);
898 }
899 wxPyEndBlockThreads(blocked);
900 }
901
902 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
903 int row, int col) {
904 wxSize rval;
905 bool blocked = wxPyBeginBlockThreads();
906 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
907 PyObject* ro;
908 wxSize* ptr;
909 PyObject* go = wxPyMake_wxObject(&grid,false);
910 PyObject* dco = wxPyMake_wxObject(&dc,false);
911 PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false);
912
913 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
914 go, ao, dco,
915 row, col));
916 Py_DECREF(go);
917 Py_DECREF(ao);
918 Py_DECREF(dco);
919
920 if (ro) {
921 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
922 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
923 rval = *ptr;
924 }
925 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
926 PyObject* o1 = PySequence_GetItem(ro, 0);
927 PyObject* o2 = PySequence_GetItem(ro, 1);
928 if (PyNumber_Check(o1) && PyNumber_Check(o2))
929 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
930 else
931 PyErr_SetString(PyExc_TypeError, errmsg);
932 Py_DECREF(o1);
933 Py_DECREF(o2);
934 }
935 else {
936 PyErr_SetString(PyExc_TypeError, errmsg);
937 }
938 Py_DECREF(ro);
939 }
940 }
941 wxPyEndBlockThreads(blocked);
942 return rval;
943 }
944
945
946 wxGridCellRenderer *Clone() const {
947 wxGridCellRenderer* rval = NULL;
948 bool blocked = wxPyBeginBlockThreads();
949 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
950 PyObject* ro;
951 wxGridCellRenderer* ptr;
952 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
953 if (ro) {
954 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
955 rval = ptr;
956 Py_DECREF(ro);
957 }
958 }
959 wxPyEndBlockThreads(blocked);
960 return rval;
961 }
962
963 DEC_PYCALLBACK__STRING(SetParameters);
964
965 PYPRIVATE;
966 };
967
968 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
969
970
971 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
972 self->SetClientObject(new wxPyOORClientData(_self));
973 }
974
975 class wxPyGridCellEditor : public wxGridCellEditor
976 {
977 public:
978 wxPyGridCellEditor() : wxGridCellEditor() {}
979
980 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
981 bool blocked = wxPyBeginBlockThreads();
982 if (wxPyCBH_findCallback(m_myInst, "Create")) {
983 PyObject* po = wxPyMake_wxObject(parent,false);
984 PyObject* eo = wxPyMake_wxObject(evtHandler,false);
985
986 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
987 Py_DECREF(po);
988 Py_DECREF(eo);
989 }
990 wxPyEndBlockThreads(blocked);
991 }
992
993
994 void BeginEdit(int row, int col, wxGrid* grid) {
995 bool blocked = wxPyBeginBlockThreads();
996 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
997 PyObject* go = wxPyMake_wxObject(grid,false);
998 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
999 Py_DECREF(go);
1000 }
1001 wxPyEndBlockThreads(blocked);
1002 }
1003
1004
1005 bool EndEdit(int row, int col, wxGrid* grid) {
1006 bool rv = False;
1007 bool blocked = wxPyBeginBlockThreads();
1008 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
1009 PyObject* go = wxPyMake_wxObject(grid,false);
1010 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
1011 Py_DECREF(go);
1012 }
1013 wxPyEndBlockThreads(blocked);
1014 return rv;
1015 }
1016
1017
1018 wxGridCellEditor* Clone() const {
1019 wxGridCellEditor* rval = NULL;
1020 bool blocked = wxPyBeginBlockThreads();
1021 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
1022 PyObject* ro;
1023 wxGridCellEditor* ptr;
1024 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1025 if (ro) {
1026 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
1027 rval = ptr;
1028 Py_DECREF(ro);
1029 }
1030 }
1031 wxPyEndBlockThreads(blocked);
1032 return rval;
1033 }
1034
1035
1036 void Show(bool show, wxGridCellAttr *attr) {
1037 bool found;
1038 bool blocked = wxPyBeginBlockThreads();
1039 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
1040 PyObject* ao = wxPyMake_wxGridCellAttr(attr,false);
1041 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
1042 Py_DECREF(ao);
1043 }
1044 wxPyEndBlockThreads(blocked);
1045 if (! found)
1046 wxGridCellEditor::Show(show, attr);
1047 }
1048 void base_Show(bool show, wxGridCellAttr *attr) {
1049 wxGridCellEditor::Show(show, attr);
1050 }
1051
1052
1053 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1054 bool found;
1055 bool blocked = wxPyBeginBlockThreads();
1056 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
1057 PyObject* ao = wxPyMake_wxGridCellAttr(attr,false);
1058 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
1059
1060 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
1061
1062 Py_DECREF(ro);
1063 Py_DECREF(ao);
1064 }
1065 wxPyEndBlockThreads(blocked);
1066 if (! found)
1067 wxGridCellEditor::PaintBackground(rectCell, attr);
1068 }
1069 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1070 wxGridCellEditor::PaintBackground(rectCell, attr);
1071 }
1072
1073
1074 DEC_PYCALLBACK___pure(Reset);
1075 DEC_PYCALLBACK__constany(SetSize, wxRect);
1076 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
1077 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
1078 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
1079 DEC_PYCALLBACK__(StartingClick);
1080 DEC_PYCALLBACK__(Destroy);
1081 DEC_PYCALLBACK__STRING(SetParameters);
1082 DEC_PYCALLBACK_STRING__constpure(GetValue);
1083
1084 PYPRIVATE;
1085 };
1086
1087
1088 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
1089 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
1090 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
1091 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
1092 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
1093 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
1094 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
1095 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
1096 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
1097
1098
1099 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
1100 self->SetClientObject(new wxPyOORClientData(_self));
1101 }
1102
1103 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1104 PyObject* o2;
1105 PyObject* o3;
1106
1107 if (!target) {
1108 target = o;
1109 } else if (target == Py_None) {
1110 Py_DECREF(Py_None);
1111 target = o;
1112 } else {
1113 if (!PyTuple_Check(target)) {
1114 o2 = target;
1115 target = PyTuple_New(1);
1116 PyTuple_SetItem(target, 0, o2);
1117 }
1118 o3 = PyTuple_New(1);
1119 PyTuple_SetItem(o3, 0, o);
1120
1121 o2 = target;
1122 target = PySequence_Concat(o2, o3);
1123 Py_DECREF(o2);
1124 Py_DECREF(o3);
1125 }
1126 return target;
1127 }
1128
1129 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
1130 self->SetClientObject(new wxPyOORClientData(_self));
1131 }
1132
1133 SWIGSTATICINLINE(unsigned long)
1134 SWIG_AsUnsignedLong(PyObject * obj)
1135 {
1136 if (PyLong_Check(obj)) {
1137 return PyLong_AsUnsignedLong(obj);
1138 } else {
1139 long i = SWIG_AsLong(obj);
1140 if ( !PyErr_Occurred() && (i < 0)) {
1141 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1142 }
1143 return i;
1144 }
1145 }
1146
1147
1148 SWIGSTATICINLINE(int)
1149 SWIG_CheckUnsignedLong(PyObject* obj)
1150 {
1151 SWIG_AsUnsignedLong(obj);
1152 if (PyErr_Occurred()) {
1153 PyErr_Clear();
1154 return 0;
1155 } else {
1156 return 1;
1157 }
1158 }
1159
1160
1161 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
1162 {
1163 public:
1164 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
1165
1166 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
1167 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
1168 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
1169 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
1170
1171 PYPRIVATE;
1172 };
1173
1174 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
1175 self->SetClientObject(new wxPyOORClientData(_self));
1176 }
1177
1178 SWIGSTATICINLINE(int)
1179 SWIG_CheckLong(PyObject* obj)
1180 {
1181 SWIG_AsLong(obj);
1182 if (PyErr_Occurred()) {
1183 PyErr_Clear();
1184 return 0;
1185 } else {
1186 return 1;
1187 }
1188 }
1189
1190
1191 SWIGSTATICINLINE(double)
1192 SWIG_AsDouble(PyObject *obj)
1193 {
1194 if (PyNumber_Check(obj))
1195 return PyFloat_AsDouble(obj);
1196 else {
1197 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1198 obj->ob_type->tp_name);
1199 PyErr_SetObject(PyExc_TypeError, errmsg);
1200 Py_DECREF(errmsg);
1201 return 0;
1202 }
1203 }
1204
1205
1206 SWIGSTATICINLINE(int)
1207 SWIG_CheckDouble(PyObject* obj)
1208 {
1209 SWIG_AsDouble(obj);
1210 if (PyErr_Occurred()) {
1211 PyErr_Clear();
1212 return 0;
1213 } else {
1214 return 1;
1215 }
1216 }
1217
1218
1219 class wxPyGridTableBase : public wxGridTableBase
1220 {
1221 public:
1222 wxPyGridTableBase() : wxGridTableBase() {}
1223
1224 PYCALLBACK_INT__pure(GetNumberRows);
1225 PYCALLBACK_INT__pure(GetNumberCols);
1226 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1227 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1228 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1229 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1230 PYCALLBACK__(wxGridTableBase, Clear);
1231 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1232 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1233 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1234 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1235 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1236 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1237 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1238 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1239 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1240 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1241 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1242 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1243 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1244 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1245 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1246
1247
1248 wxString GetValue(int row, int col) {
1249 bool blocked = wxPyBeginBlockThreads();
1250 wxString rval;
1251 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1252 PyObject* ro;
1253 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1254 if (ro) {
1255 if (!PyString_Check(ro) && !PyUnicode_Check(ro)) {
1256 PyObject* old = ro;
1257 ro = PyObject_Str(ro);
1258 Py_DECREF(old);
1259 }
1260 rval = Py2wxString(ro);
1261 Py_DECREF(ro);
1262 }
1263 }
1264 wxPyEndBlockThreads(blocked);
1265 return rval;
1266 }
1267
1268 void SetValue(int row, int col, const wxString& val) {
1269 bool blocked = wxPyBeginBlockThreads();
1270 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1271 PyObject* s = wx2PyString(val);
1272 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1273 Py_DECREF(s);
1274 }
1275 wxPyEndBlockThreads(blocked);
1276 }
1277
1278
1279 // Map the Get/Set methods for the standard non-string types to
1280 // the GetValue and SetValue python methods.
1281 long GetValueAsLong( int row, int col ) {
1282 long rval = 0;
1283 bool blocked = wxPyBeginBlockThreads();
1284 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1285 PyObject* ro;
1286 PyObject* num;
1287 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1288 if (ro && PyNumber_Check(ro)) {
1289 num = PyNumber_Int(ro);
1290 if (num) {
1291 rval = PyInt_AsLong(num);
1292 Py_DECREF(num);
1293 }
1294 Py_DECREF(ro);
1295 }
1296 }
1297 wxPyEndBlockThreads(blocked);
1298 return rval;
1299 }
1300
1301 double GetValueAsDouble( int row, int col ) {
1302 double rval = 0.0;
1303 bool blocked = wxPyBeginBlockThreads();
1304 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1305 PyObject* ro;
1306 PyObject* num;
1307 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1308 if (ro && PyNumber_Check(ro)) {
1309 num = PyNumber_Float(ro);
1310 if (num) {
1311 rval = PyFloat_AsDouble(num);
1312 Py_DECREF(num);
1313 }
1314 Py_DECREF(ro);
1315 }
1316 }
1317 wxPyEndBlockThreads(blocked);
1318 return rval;
1319 }
1320
1321 bool GetValueAsBool( int row, int col ) {
1322 return (bool)GetValueAsLong(row, col);
1323 }
1324
1325 void SetValueAsLong( int row, int col, long value ) {
1326 bool blocked = wxPyBeginBlockThreads();
1327 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1328 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1329 }
1330 wxPyEndBlockThreads(blocked);
1331 }
1332
1333 void SetValueAsDouble( int row, int col, double value ) {
1334 bool blocked = wxPyBeginBlockThreads();
1335 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1336 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1337 }
1338 wxPyEndBlockThreads(blocked);
1339 }
1340
1341 void SetValueAsBool( int row, int col, bool value ) {
1342 SetValueAsLong( row, col, (long)value );
1343 }
1344
1345
1346 PYPRIVATE;
1347 };
1348
1349 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1350
1351 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1352
1353 if (source == Py_None) {
1354 **obj = wxGridCellCoords(-1,-1);
1355 return True;
1356 }
1357
1358 // If source is an object instance then it may already be the right type
1359 if (wxPySwigInstance_Check(source)) {
1360 wxGridCellCoords* ptr;
1361 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1362 goto error;
1363 *obj = ptr;
1364 return True;
1365 }
1366 // otherwise a 2-tuple of integers is expected
1367 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1368 PyObject* o1 = PySequence_GetItem(source, 0);
1369 PyObject* o2 = PySequence_GetItem(source, 1);
1370 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1371 Py_DECREF(o1);
1372 Py_DECREF(o2);
1373 goto error;
1374 }
1375 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1376 Py_DECREF(o1);
1377 Py_DECREF(o2);
1378 return True;
1379 }
1380
1381 error:
1382 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1383 return False;
1384 }
1385
1386
1387 bool wxGridCellCoords_typecheck(PyObject* source) {
1388 void* ptr;
1389
1390 if (wxPySwigInstance_Check(source) &&
1391 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1392 return True;
1393
1394 PyErr_Clear();
1395 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1396 return True;
1397
1398 return False;
1399 }
1400
1401
1402 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1403 {
1404 PyObject* list = PyList_New(0);
1405 size_t idx;
1406 for (idx = 0; idx < source.GetCount(); idx += 1) {
1407 wxGridCellCoords& coord = source.Item(idx);
1408 PyObject* tup = PyTuple_New(2);
1409 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1410 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1411 PyList_Append(list, tup);
1412 Py_DECREF(tup);
1413 }
1414 return list;
1415 }
1416
1417 PyObject *wxGridCellCoords_Get(wxGridCellCoords *self){
1418 PyObject* tup = PyTuple_New(2);
1419 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1420 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1421 return tup;
1422 }
1423
1424 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1425
1426 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1427 wxGridCellCoords rv;
1428 self->XYToCell(x, y, rv);
1429 return rv;
1430 }
1431 #ifdef __cplusplus
1432 extern "C" {
1433 #endif
1434 static int _wrap_DateTimeFormatStr_set(PyObject *_val) {
1435 PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only.");
1436 return 1;
1437 }
1438
1439
1440 static PyObject *_wrap_DateTimeFormatStr_get() {
1441 PyObject *pyobj;
1442
1443 {
1444 #if wxUSE_UNICODE
1445 pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1446 #else
1447 pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1448 #endif
1449 }
1450 return pyobj;
1451 }
1452
1453
1454 static int _wrap_GridNoCellCoords_set(PyObject *_val) {
1455 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1456 return 1;
1457 }
1458
1459
1460 static PyObject *_wrap_GridNoCellCoords_get() {
1461 PyObject *pyobj;
1462
1463 pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0);
1464 return pyobj;
1465 }
1466
1467
1468 static int _wrap_GridNoCellRect_set(PyObject *_val) {
1469 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1470 return 1;
1471 }
1472
1473
1474 static PyObject *_wrap_GridNoCellRect_get() {
1475 PyObject *pyobj;
1476
1477 pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0);
1478 return pyobj;
1479 }
1480
1481
1482 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1483 PyObject *resultobj;
1484 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1485 PyObject *arg2 = (PyObject *) 0 ;
1486 PyObject * obj0 = 0 ;
1487 PyObject * obj1 = 0 ;
1488 char *kwnames[] = {
1489 (char *) "self",(char *) "_self", NULL
1490 };
1491
1492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1495 arg2 = obj1;
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 wxGridCellRenderer__setOORInfo(arg1,arg2);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 Py_INCREF(Py_None); resultobj = Py_None;
1504 return resultobj;
1505 fail:
1506 return NULL;
1507 }
1508
1509
1510 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1511 PyObject *resultobj;
1512 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1513 wxString *arg2 = 0 ;
1514 bool temp2 = False ;
1515 PyObject * obj0 = 0 ;
1516 PyObject * obj1 = 0 ;
1517 char *kwnames[] = {
1518 (char *) "self",(char *) "params", NULL
1519 };
1520
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1524 {
1525 arg2 = wxString_in_helper(obj1);
1526 if (arg2 == NULL) SWIG_fail;
1527 temp2 = True;
1528 }
1529 {
1530 PyThreadState* __tstate = wxPyBeginAllowThreads();
1531 (arg1)->SetParameters((wxString const &)*arg2);
1532
1533 wxPyEndAllowThreads(__tstate);
1534 if (PyErr_Occurred()) SWIG_fail;
1535 }
1536 Py_INCREF(Py_None); resultobj = Py_None;
1537 {
1538 if (temp2)
1539 delete arg2;
1540 }
1541 return resultobj;
1542 fail:
1543 {
1544 if (temp2)
1545 delete arg2;
1546 }
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1554 PyObject * obj0 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 {
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 (arg1)->IncRef();
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 Py_INCREF(Py_None); resultobj = Py_None;
1570 return resultobj;
1571 fail:
1572 return NULL;
1573 }
1574
1575
1576 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject *resultobj;
1578 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1579 PyObject * obj0 = 0 ;
1580 char *kwnames[] = {
1581 (char *) "self", NULL
1582 };
1583
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 (arg1)->DecRef();
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
1594 Py_INCREF(Py_None); resultobj = Py_None;
1595 return resultobj;
1596 fail:
1597 return NULL;
1598 }
1599
1600
1601 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject *resultobj;
1603 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1604 wxGrid *arg2 = 0 ;
1605 wxGridCellAttr *arg3 = 0 ;
1606 wxDC *arg4 = 0 ;
1607 wxRect *arg5 = 0 ;
1608 int arg6 ;
1609 int arg7 ;
1610 bool arg8 ;
1611 wxRect temp5 ;
1612 PyObject * obj0 = 0 ;
1613 PyObject * obj1 = 0 ;
1614 PyObject * obj2 = 0 ;
1615 PyObject * obj3 = 0 ;
1616 PyObject * obj4 = 0 ;
1617 PyObject * obj5 = 0 ;
1618 PyObject * obj6 = 0 ;
1619 PyObject * obj7 = 0 ;
1620 char *kwnames[] = {
1621 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1622 };
1623
1624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
1628 SWIG_POINTER_EXCEPTION | 0)) == -1)
1629 SWIG_fail;
1630 if (arg2 == NULL) {
1631 PyErr_SetString(PyExc_TypeError,"null reference");
1632 SWIG_fail;
1633 }
1634 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
1635 SWIG_POINTER_EXCEPTION | 0)) == -1)
1636 SWIG_fail;
1637 if (arg3 == NULL) {
1638 PyErr_SetString(PyExc_TypeError,"null reference");
1639 SWIG_fail;
1640 }
1641 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
1642 SWIG_POINTER_EXCEPTION | 0)) == -1)
1643 SWIG_fail;
1644 if (arg4 == NULL) {
1645 PyErr_SetString(PyExc_TypeError,"null reference");
1646 SWIG_fail;
1647 }
1648 {
1649 arg5 = &temp5;
1650 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1651 }
1652 arg6 = (int) SWIG_AsInt(obj5);
1653 if (PyErr_Occurred()) SWIG_fail;
1654 arg7 = (int) SWIG_AsInt(obj6);
1655 if (PyErr_Occurred()) SWIG_fail;
1656 arg8 = (bool) SWIG_AsBool(obj7);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 Py_INCREF(Py_None); resultobj = Py_None;
1666 return resultobj;
1667 fail:
1668 return NULL;
1669 }
1670
1671
1672 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1675 wxGrid *arg2 = 0 ;
1676 wxGridCellAttr *arg3 = 0 ;
1677 wxDC *arg4 = 0 ;
1678 int arg5 ;
1679 int arg6 ;
1680 wxSize result;
1681 PyObject * obj0 = 0 ;
1682 PyObject * obj1 = 0 ;
1683 PyObject * obj2 = 0 ;
1684 PyObject * obj3 = 0 ;
1685 PyObject * obj4 = 0 ;
1686 PyObject * obj5 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
1695 SWIG_POINTER_EXCEPTION | 0)) == -1)
1696 SWIG_fail;
1697 if (arg2 == NULL) {
1698 PyErr_SetString(PyExc_TypeError,"null reference");
1699 SWIG_fail;
1700 }
1701 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
1702 SWIG_POINTER_EXCEPTION | 0)) == -1)
1703 SWIG_fail;
1704 if (arg3 == NULL) {
1705 PyErr_SetString(PyExc_TypeError,"null reference");
1706 SWIG_fail;
1707 }
1708 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
1709 SWIG_POINTER_EXCEPTION | 0)) == -1)
1710 SWIG_fail;
1711 if (arg4 == NULL) {
1712 PyErr_SetString(PyExc_TypeError,"null reference");
1713 SWIG_fail;
1714 }
1715 arg5 = (int) SWIG_AsInt(obj4);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 arg6 = (int) SWIG_AsInt(obj5);
1718 if (PyErr_Occurred()) SWIG_fail;
1719 {
1720 PyThreadState* __tstate = wxPyBeginAllowThreads();
1721 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1722
1723 wxPyEndAllowThreads(__tstate);
1724 if (PyErr_Occurred()) SWIG_fail;
1725 }
1726 {
1727 wxSize * resultptr;
1728 resultptr = new wxSize((wxSize &) result);
1729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1730 }
1731 return resultobj;
1732 fail:
1733 return NULL;
1734 }
1735
1736
1737 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1738 PyObject *resultobj;
1739 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1740 wxGridCellRenderer *result;
1741 PyObject * obj0 = 0 ;
1742 char *kwnames[] = {
1743 (char *) "self", NULL
1744 };
1745
1746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1749 {
1750 PyThreadState* __tstate = wxPyBeginAllowThreads();
1751 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1752
1753 wxPyEndAllowThreads(__tstate);
1754 if (PyErr_Occurred()) SWIG_fail;
1755 }
1756 {
1757 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
1758 }
1759 return resultobj;
1760 fail:
1761 return NULL;
1762 }
1763
1764
1765 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1766 PyObject *obj;
1767 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1768 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1769 Py_INCREF(obj);
1770 return Py_BuildValue((char *)"");
1771 }
1772 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1773 PyObject *resultobj;
1774 wxPyGridCellRenderer *result;
1775 char *kwnames[] = {
1776 NULL
1777 };
1778
1779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1780 {
1781 PyThreadState* __tstate = wxPyBeginAllowThreads();
1782 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1783
1784 wxPyEndAllowThreads(__tstate);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 }
1787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1);
1788 return resultobj;
1789 fail:
1790 return NULL;
1791 }
1792
1793
1794 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1797 PyObject *arg2 = (PyObject *) 0 ;
1798 PyObject *arg3 = (PyObject *) 0 ;
1799 PyObject * obj0 = 0 ;
1800 PyObject * obj1 = 0 ;
1801 PyObject * obj2 = 0 ;
1802 char *kwnames[] = {
1803 (char *) "self",(char *) "self",(char *) "_class", NULL
1804 };
1805
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer,
1808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1809 arg2 = obj1;
1810 arg3 = obj2;
1811 {
1812 PyThreadState* __tstate = wxPyBeginAllowThreads();
1813 (arg1)->_setCallbackInfo(arg2,arg3);
1814
1815 wxPyEndAllowThreads(__tstate);
1816 if (PyErr_Occurred()) SWIG_fail;
1817 }
1818 Py_INCREF(Py_None); resultobj = Py_None;
1819 return resultobj;
1820 fail:
1821 return NULL;
1822 }
1823
1824
1825 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1826 PyObject *resultobj;
1827 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1828 wxString *arg2 = 0 ;
1829 bool temp2 = False ;
1830 PyObject * obj0 = 0 ;
1831 PyObject * obj1 = 0 ;
1832 char *kwnames[] = {
1833 (char *) "self",(char *) "params", NULL
1834 };
1835
1836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer,
1838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1839 {
1840 arg2 = wxString_in_helper(obj1);
1841 if (arg2 == NULL) SWIG_fail;
1842 temp2 = True;
1843 }
1844 {
1845 PyThreadState* __tstate = wxPyBeginAllowThreads();
1846 (arg1)->base_SetParameters((wxString const &)*arg2);
1847
1848 wxPyEndAllowThreads(__tstate);
1849 if (PyErr_Occurred()) SWIG_fail;
1850 }
1851 Py_INCREF(Py_None); resultobj = Py_None;
1852 {
1853 if (temp2)
1854 delete arg2;
1855 }
1856 return resultobj;
1857 fail:
1858 {
1859 if (temp2)
1860 delete arg2;
1861 }
1862 return NULL;
1863 }
1864
1865
1866 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1867 PyObject *obj;
1868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1869 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1870 Py_INCREF(obj);
1871 return Py_BuildValue((char *)"");
1872 }
1873 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 wxGridCellStringRenderer *result;
1876 char *kwnames[] = {
1877 NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1881 {
1882 PyThreadState* __tstate = wxPyBeginAllowThreads();
1883 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1884
1885 wxPyEndAllowThreads(__tstate);
1886 if (PyErr_Occurred()) SWIG_fail;
1887 }
1888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1);
1889 return resultobj;
1890 fail:
1891 return NULL;
1892 }
1893
1894
1895 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1896 PyObject *obj;
1897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1898 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1899 Py_INCREF(obj);
1900 return Py_BuildValue((char *)"");
1901 }
1902 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxGridCellNumberRenderer *result;
1905 char *kwnames[] = {
1906 NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
1917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1918 return resultobj;
1919 fail:
1920 return NULL;
1921 }
1922
1923
1924 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1925 PyObject *obj;
1926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1927 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1928 Py_INCREF(obj);
1929 return Py_BuildValue((char *)"");
1930 }
1931 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 int arg1 = (int) -1 ;
1934 int arg2 = (int) -1 ;
1935 wxGridCellFloatRenderer *result;
1936 PyObject * obj0 = 0 ;
1937 PyObject * obj1 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "width",(char *) "precision", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail;
1943 if (obj0) {
1944 arg1 = (int) SWIG_AsInt(obj0);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 if (obj1) {
1948 arg2 = (int) SWIG_AsInt(obj1);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 {
1952 PyThreadState* __tstate = wxPyBeginAllowThreads();
1953 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1954
1955 wxPyEndAllowThreads(__tstate);
1956 if (PyErr_Occurred()) SWIG_fail;
1957 }
1958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1959 return resultobj;
1960 fail:
1961 return NULL;
1962 }
1963
1964
1965 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject *resultobj;
1967 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1968 int result;
1969 PyObject * obj0 = 0 ;
1970 char *kwnames[] = {
1971 (char *) "self", NULL
1972 };
1973
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
1976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1977 {
1978 PyThreadState* __tstate = wxPyBeginAllowThreads();
1979 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1980
1981 wxPyEndAllowThreads(__tstate);
1982 if (PyErr_Occurred()) SWIG_fail;
1983 }
1984 resultobj = SWIG_FromInt((int)result);
1985 return resultobj;
1986 fail:
1987 return NULL;
1988 }
1989
1990
1991 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1992 PyObject *resultobj;
1993 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1994 int arg2 ;
1995 PyObject * obj0 = 0 ;
1996 PyObject * obj1 = 0 ;
1997 char *kwnames[] = {
1998 (char *) "self",(char *) "width", NULL
1999 };
2000
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
2003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2004 arg2 = (int) SWIG_AsInt(obj1);
2005 if (PyErr_Occurred()) SWIG_fail;
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 (arg1)->SetWidth(arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 Py_INCREF(Py_None); resultobj = Py_None;
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
2023 int result;
2024 PyObject * obj0 = 0 ;
2025 char *kwnames[] = {
2026 (char *) "self", NULL
2027 };
2028
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
2030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
2031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 resultobj = SWIG_FromInt((int)result);
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
2047 PyObject *resultobj;
2048 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
2049 int arg2 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self",(char *) "precision", NULL
2054 };
2055
2056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail;
2057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
2058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2059 arg2 = (int) SWIG_AsInt(obj1);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 (arg1)->SetPrecision(arg2);
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) SWIG_fail;
2067 }
2068 Py_INCREF(Py_None); resultobj = Py_None;
2069 return resultobj;
2070 fail:
2071 return NULL;
2072 }
2073
2074
2075 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
2076 PyObject *obj;
2077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2078 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
2079 Py_INCREF(obj);
2080 return Py_BuildValue((char *)"");
2081 }
2082 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2083 PyObject *resultobj;
2084 wxGridCellBoolRenderer *result;
2085 char *kwnames[] = {
2086 NULL
2087 };
2088
2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) SWIG_fail;
2096 }
2097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1);
2098 return resultobj;
2099 fail:
2100 return NULL;
2101 }
2102
2103
2104 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
2105 PyObject *obj;
2106 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2107 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
2108 Py_INCREF(obj);
2109 return Py_BuildValue((char *)"");
2110 }
2111 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
2114 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
2115 wxGridCellDateTimeRenderer *result;
2116 PyObject * obj0 = 0 ;
2117 PyObject * obj1 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "outformat",(char *) "informat", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
2123 if (obj0) {
2124 {
2125 wxString* sptr = wxString_in_helper(obj0);
2126 if (sptr == NULL) SWIG_fail;
2127 arg1 = *sptr;
2128 delete sptr;
2129 }
2130 }
2131 if (obj1) {
2132 {
2133 wxString* sptr = wxString_in_helper(obj1);
2134 if (sptr == NULL) SWIG_fail;
2135 arg2 = *sptr;
2136 delete sptr;
2137 }
2138 }
2139 {
2140 PyThreadState* __tstate = wxPyBeginAllowThreads();
2141 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
2142
2143 wxPyEndAllowThreads(__tstate);
2144 if (PyErr_Occurred()) SWIG_fail;
2145 }
2146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
2147 return resultobj;
2148 fail:
2149 return NULL;
2150 }
2151
2152
2153 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
2154 PyObject *obj;
2155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2156 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
2157 Py_INCREF(obj);
2158 return Py_BuildValue((char *)"");
2159 }
2160 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2161 PyObject *resultobj;
2162 wxString const &arg1_defvalue = wxPyEmptyString ;
2163 wxString *arg1 = (wxString *) &arg1_defvalue ;
2164 wxGridCellEnumRenderer *result;
2165 bool temp1 = False ;
2166 PyObject * obj0 = 0 ;
2167 char *kwnames[] = {
2168 (char *) "choices", NULL
2169 };
2170
2171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
2172 if (obj0) {
2173 {
2174 arg1 = wxString_in_helper(obj0);
2175 if (arg1 == NULL) SWIG_fail;
2176 temp1 = True;
2177 }
2178 }
2179 {
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) SWIG_fail;
2185 }
2186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1);
2187 {
2188 if (temp1)
2189 delete arg1;
2190 }
2191 return resultobj;
2192 fail:
2193 {
2194 if (temp1)
2195 delete arg1;
2196 }
2197 return NULL;
2198 }
2199
2200
2201 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
2202 PyObject *obj;
2203 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2204 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
2205 Py_INCREF(obj);
2206 return Py_BuildValue((char *)"");
2207 }
2208 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2209 PyObject *resultobj;
2210 wxGridCellAutoWrapStringRenderer *result;
2211 char *kwnames[] = {
2212 NULL
2213 };
2214
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
2224 return resultobj;
2225 fail:
2226 return NULL;
2227 }
2228
2229
2230 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
2231 PyObject *obj;
2232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2233 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
2234 Py_INCREF(obj);
2235 return Py_BuildValue((char *)"");
2236 }
2237 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2240 PyObject *arg2 = (PyObject *) 0 ;
2241 PyObject * obj0 = 0 ;
2242 PyObject * obj1 = 0 ;
2243 char *kwnames[] = {
2244 (char *) "self",(char *) "_self", NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
2248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2250 arg2 = obj1;
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 wxGridCellEditor__setOORInfo(arg1,arg2);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 Py_INCREF(Py_None); resultobj = Py_None;
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2268 bool result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 result = (bool)(arg1)->IsCreated();
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 {
2285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2286 }
2287 return resultobj;
2288 fail:
2289 return NULL;
2290 }
2291
2292
2293 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2296 wxControl *result;
2297 PyObject * obj0 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2305 {
2306 PyThreadState* __tstate = wxPyBeginAllowThreads();
2307 result = (wxControl *)(arg1)->GetControl();
2308
2309 wxPyEndAllowThreads(__tstate);
2310 if (PyErr_Occurred()) SWIG_fail;
2311 }
2312 {
2313 resultobj = wxPyMake_wxObject(result, 0);
2314 }
2315 return resultobj;
2316 fail:
2317 return NULL;
2318 }
2319
2320
2321 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2322 PyObject *resultobj;
2323 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2324 wxControl *arg2 = (wxControl *) 0 ;
2325 PyObject * obj0 = 0 ;
2326 PyObject * obj1 = 0 ;
2327 char *kwnames[] = {
2328 (char *) "self",(char *) "control", NULL
2329 };
2330
2331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
2335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2336 {
2337 PyThreadState* __tstate = wxPyBeginAllowThreads();
2338 (arg1)->SetControl(arg2);
2339
2340 wxPyEndAllowThreads(__tstate);
2341 if (PyErr_Occurred()) SWIG_fail;
2342 }
2343 Py_INCREF(Py_None); resultobj = Py_None;
2344 return resultobj;
2345 fail:
2346 return NULL;
2347 }
2348
2349
2350 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2351 PyObject *resultobj;
2352 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2353 wxGridCellAttr *result;
2354 PyObject * obj0 = 0 ;
2355 char *kwnames[] = {
2356 (char *) "self", NULL
2357 };
2358
2359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2362 {
2363 PyThreadState* __tstate = wxPyBeginAllowThreads();
2364 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2365
2366 wxPyEndAllowThreads(__tstate);
2367 if (PyErr_Occurred()) SWIG_fail;
2368 }
2369 {
2370 resultobj = wxPyMake_wxGridCellAttr(result, 0);
2371 }
2372 return resultobj;
2373 fail:
2374 return NULL;
2375 }
2376
2377
2378 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2379 PyObject *resultobj;
2380 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2381 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2382 PyObject * obj0 = 0 ;
2383 PyObject * obj1 = 0 ;
2384 char *kwnames[] = {
2385 (char *) "self",(char *) "attr", NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
2392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 (arg1)->SetCellAttr(arg2);
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) SWIG_fail;
2399 }
2400 Py_INCREF(Py_None); resultobj = Py_None;
2401 return resultobj;
2402 fail:
2403 return NULL;
2404 }
2405
2406
2407 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2408 PyObject *resultobj;
2409 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2410 wxString *arg2 = 0 ;
2411 bool temp2 = False ;
2412 PyObject * obj0 = 0 ;
2413 PyObject * obj1 = 0 ;
2414 char *kwnames[] = {
2415 (char *) "self",(char *) "params", NULL
2416 };
2417
2418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2421 {
2422 arg2 = wxString_in_helper(obj1);
2423 if (arg2 == NULL) SWIG_fail;
2424 temp2 = True;
2425 }
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 (arg1)->SetParameters((wxString const &)*arg2);
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 Py_INCREF(Py_None); resultobj = Py_None;
2434 {
2435 if (temp2)
2436 delete arg2;
2437 }
2438 return resultobj;
2439 fail:
2440 {
2441 if (temp2)
2442 delete arg2;
2443 }
2444 return NULL;
2445 }
2446
2447
2448 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject *resultobj;
2450 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2451 PyObject * obj0 = 0 ;
2452 char *kwnames[] = {
2453 (char *) "self", NULL
2454 };
2455
2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2459 {
2460 PyThreadState* __tstate = wxPyBeginAllowThreads();
2461 (arg1)->IncRef();
2462
2463 wxPyEndAllowThreads(__tstate);
2464 if (PyErr_Occurred()) SWIG_fail;
2465 }
2466 Py_INCREF(Py_None); resultobj = Py_None;
2467 return resultobj;
2468 fail:
2469 return NULL;
2470 }
2471
2472
2473 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2474 PyObject *resultobj;
2475 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2476 PyObject * obj0 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "self", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 (arg1)->DecRef();
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 Py_INCREF(Py_None); resultobj = Py_None;
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2501 wxWindow *arg2 = (wxWindow *) 0 ;
2502 int arg3 ;
2503 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2504 PyObject * obj0 = 0 ;
2505 PyObject * obj1 = 0 ;
2506 PyObject * obj2 = 0 ;
2507 PyObject * obj3 = 0 ;
2508 char *kwnames[] = {
2509 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2510 };
2511
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2515 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2517 arg3 = (int) SWIG_AsInt(obj2);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler,
2520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 (arg1)->Create(arg2,arg3,arg4);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 Py_INCREF(Py_None); resultobj = Py_None;
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2538 int arg2 ;
2539 int arg3 ;
2540 wxGrid *arg4 = (wxGrid *) 0 ;
2541 PyObject * obj0 = 0 ;
2542 PyObject * obj1 = 0 ;
2543 PyObject * obj2 = 0 ;
2544 PyObject * obj3 = 0 ;
2545 char *kwnames[] = {
2546 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2547 };
2548
2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2552 arg2 = (int) SWIG_AsInt(obj1);
2553 if (PyErr_Occurred()) SWIG_fail;
2554 arg3 = (int) SWIG_AsInt(obj2);
2555 if (PyErr_Occurred()) SWIG_fail;
2556 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid,
2557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2558 {
2559 PyThreadState* __tstate = wxPyBeginAllowThreads();
2560 (arg1)->BeginEdit(arg2,arg3,arg4);
2561
2562 wxPyEndAllowThreads(__tstate);
2563 if (PyErr_Occurred()) SWIG_fail;
2564 }
2565 Py_INCREF(Py_None); resultobj = Py_None;
2566 return resultobj;
2567 fail:
2568 return NULL;
2569 }
2570
2571
2572 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2575 int arg2 ;
2576 int arg3 ;
2577 wxGrid *arg4 = (wxGrid *) 0 ;
2578 bool result;
2579 PyObject * obj0 = 0 ;
2580 PyObject * obj1 = 0 ;
2581 PyObject * obj2 = 0 ;
2582 PyObject * obj3 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2590 arg2 = (int) SWIG_AsInt(obj1);
2591 if (PyErr_Occurred()) SWIG_fail;
2592 arg3 = (int) SWIG_AsInt(obj2);
2593 if (PyErr_Occurred()) SWIG_fail;
2594 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid,
2595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2596 {
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 {
2604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2605 }
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2615 PyObject * obj0 = 0 ;
2616 char *kwnames[] = {
2617 (char *) "self", NULL
2618 };
2619
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 (arg1)->Reset();
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 Py_INCREF(Py_None); resultobj = Py_None;
2631 return resultobj;
2632 fail:
2633 return NULL;
2634 }
2635
2636
2637 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject *resultobj;
2639 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2640 wxGridCellEditor *result;
2641 PyObject * obj0 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "self", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2649 {
2650 PyThreadState* __tstate = wxPyBeginAllowThreads();
2651 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2652
2653 wxPyEndAllowThreads(__tstate);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 {
2657 resultobj = wxPyMake_wxGridCellEditor(result, 0);
2658 }
2659 return resultobj;
2660 fail:
2661 return NULL;
2662 }
2663
2664
2665 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2666 PyObject *resultobj;
2667 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2668 wxRect *arg2 = 0 ;
2669 wxRect temp2 ;
2670 PyObject * obj0 = 0 ;
2671 PyObject * obj1 = 0 ;
2672 char *kwnames[] = {
2673 (char *) "self",(char *) "rect", NULL
2674 };
2675
2676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2679 {
2680 arg2 = &temp2;
2681 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2682 }
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 (arg1)->SetSize((wxRect const &)*arg2);
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 Py_INCREF(Py_None); resultobj = Py_None;
2691 return resultobj;
2692 fail:
2693 return NULL;
2694 }
2695
2696
2697 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2700 bool arg2 ;
2701 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2702 PyObject * obj0 = 0 ;
2703 PyObject * obj1 = 0 ;
2704 PyObject * obj2 = 0 ;
2705 char *kwnames[] = {
2706 (char *) "self",(char *) "show",(char *) "attr", NULL
2707 };
2708
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2712 arg2 = (bool) SWIG_AsBool(obj1);
2713 if (PyErr_Occurred()) SWIG_fail;
2714 if (obj2) {
2715 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
2716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2717 }
2718 {
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 (arg1)->Show(arg2,arg3);
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 Py_INCREF(Py_None); resultobj = Py_None;
2726 return resultobj;
2727 fail:
2728 return NULL;
2729 }
2730
2731
2732 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject *resultobj;
2734 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2735 wxRect *arg2 = 0 ;
2736 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2737 wxRect temp2 ;
2738 PyObject * obj0 = 0 ;
2739 PyObject * obj1 = 0 ;
2740 PyObject * obj2 = 0 ;
2741 char *kwnames[] = {
2742 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2748 {
2749 arg2 = &temp2;
2750 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2751 }
2752 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
2753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2754 {
2755 PyThreadState* __tstate = wxPyBeginAllowThreads();
2756 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2757
2758 wxPyEndAllowThreads(__tstate);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 Py_INCREF(Py_None); resultobj = Py_None;
2762 return resultobj;
2763 fail:
2764 return NULL;
2765 }
2766
2767
2768 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2771 wxKeyEvent *arg2 = 0 ;
2772 bool result;
2773 PyObject * obj0 = 0 ;
2774 PyObject * obj1 = 0 ;
2775 char *kwnames[] = {
2776 (char *) "self",(char *) "event", NULL
2777 };
2778
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2782 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2783 SWIG_POINTER_EXCEPTION | 0)) == -1)
2784 SWIG_fail;
2785 if (arg2 == NULL) {
2786 PyErr_SetString(PyExc_TypeError,"null reference");
2787 SWIG_fail;
2788 }
2789 {
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
2791 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
2796 {
2797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2798 }
2799 return resultobj;
2800 fail:
2801 return NULL;
2802 }
2803
2804
2805 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2806 PyObject *resultobj;
2807 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2808 wxKeyEvent *arg2 = 0 ;
2809 PyObject * obj0 = 0 ;
2810 PyObject * obj1 = 0 ;
2811 char *kwnames[] = {
2812 (char *) "self",(char *) "event", NULL
2813 };
2814
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2819 SWIG_POINTER_EXCEPTION | 0)) == -1)
2820 SWIG_fail;
2821 if (arg2 == NULL) {
2822 PyErr_SetString(PyExc_TypeError,"null reference");
2823 SWIG_fail;
2824 }
2825 {
2826 PyThreadState* __tstate = wxPyBeginAllowThreads();
2827 (arg1)->StartingKey(*arg2);
2828
2829 wxPyEndAllowThreads(__tstate);
2830 if (PyErr_Occurred()) SWIG_fail;
2831 }
2832 Py_INCREF(Py_None); resultobj = Py_None;
2833 return resultobj;
2834 fail:
2835 return NULL;
2836 }
2837
2838
2839 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2842 PyObject * obj0 = 0 ;
2843 char *kwnames[] = {
2844 (char *) "self", NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 (arg1)->StartingClick();
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 Py_INCREF(Py_None); resultobj = Py_None;
2858 return resultobj;
2859 fail:
2860 return NULL;
2861 }
2862
2863
2864 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2865 PyObject *resultobj;
2866 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2867 wxKeyEvent *arg2 = 0 ;
2868 PyObject * obj0 = 0 ;
2869 PyObject * obj1 = 0 ;
2870 char *kwnames[] = {
2871 (char *) "self",(char *) "event", NULL
2872 };
2873
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2878 SWIG_POINTER_EXCEPTION | 0)) == -1)
2879 SWIG_fail;
2880 if (arg2 == NULL) {
2881 PyErr_SetString(PyExc_TypeError,"null reference");
2882 SWIG_fail;
2883 }
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 (arg1)->HandleReturn(*arg2);
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) SWIG_fail;
2890 }
2891 Py_INCREF(Py_None); resultobj = Py_None;
2892 return resultobj;
2893 fail:
2894 return NULL;
2895 }
2896
2897
2898 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2901 PyObject * obj0 = 0 ;
2902 char *kwnames[] = {
2903 (char *) "self", NULL
2904 };
2905
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2909 {
2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
2911 (arg1)->Destroy();
2912
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 Py_INCREF(Py_None); resultobj = Py_None;
2917 return resultobj;
2918 fail:
2919 return NULL;
2920 }
2921
2922
2923 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2924 PyObject *obj;
2925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2926 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2927 Py_INCREF(obj);
2928 return Py_BuildValue((char *)"");
2929 }
2930 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject *resultobj;
2932 wxPyGridCellEditor *result;
2933 char *kwnames[] = {
2934 NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2938 {
2939 PyThreadState* __tstate = wxPyBeginAllowThreads();
2940 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2941
2942 wxPyEndAllowThreads(__tstate);
2943 if (PyErr_Occurred()) SWIG_fail;
2944 }
2945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1);
2946 return resultobj;
2947 fail:
2948 return NULL;
2949 }
2950
2951
2952 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2953 PyObject *resultobj;
2954 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2955 PyObject *arg2 = (PyObject *) 0 ;
2956 PyObject *arg3 = (PyObject *) 0 ;
2957 PyObject * obj0 = 0 ;
2958 PyObject * obj1 = 0 ;
2959 PyObject * obj2 = 0 ;
2960 char *kwnames[] = {
2961 (char *) "self",(char *) "self",(char *) "_class", NULL
2962 };
2963
2964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
2966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2967 arg2 = obj1;
2968 arg3 = obj2;
2969 {
2970 PyThreadState* __tstate = wxPyBeginAllowThreads();
2971 (arg1)->_setCallbackInfo(arg2,arg3);
2972
2973 wxPyEndAllowThreads(__tstate);
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 Py_INCREF(Py_None); resultobj = Py_None;
2977 return resultobj;
2978 fail:
2979 return NULL;
2980 }
2981
2982
2983 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2984 PyObject *resultobj;
2985 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2986 wxRect *arg2 = 0 ;
2987 wxRect temp2 ;
2988 PyObject * obj0 = 0 ;
2989 PyObject * obj1 = 0 ;
2990 char *kwnames[] = {
2991 (char *) "self",(char *) "rect", NULL
2992 };
2993
2994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
2996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2997 {
2998 arg2 = &temp2;
2999 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3000 }
3001 {
3002 PyThreadState* __tstate = wxPyBeginAllowThreads();
3003 (arg1)->base_SetSize((wxRect const &)*arg2);
3004
3005 wxPyEndAllowThreads(__tstate);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 Py_INCREF(Py_None); resultobj = Py_None;
3009 return resultobj;
3010 fail:
3011 return NULL;
3012 }
3013
3014
3015 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3016 PyObject *resultobj;
3017 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3018 bool arg2 ;
3019 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
3020 PyObject * obj0 = 0 ;
3021 PyObject * obj1 = 0 ;
3022 PyObject * obj2 = 0 ;
3023 char *kwnames[] = {
3024 (char *) "self",(char *) "show",(char *) "attr", NULL
3025 };
3026
3027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
3028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3030 arg2 = (bool) SWIG_AsBool(obj1);
3031 if (PyErr_Occurred()) SWIG_fail;
3032 if (obj2) {
3033 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
3034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3035 }
3036 {
3037 PyThreadState* __tstate = wxPyBeginAllowThreads();
3038 (arg1)->base_Show(arg2,arg3);
3039
3040 wxPyEndAllowThreads(__tstate);
3041 if (PyErr_Occurred()) SWIG_fail;
3042 }
3043 Py_INCREF(Py_None); resultobj = Py_None;
3044 return resultobj;
3045 fail:
3046 return NULL;
3047 }
3048
3049
3050 static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
3051 PyObject *resultobj;
3052 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3053 wxRect *arg2 = 0 ;
3054 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
3055 wxRect temp2 ;
3056 PyObject * obj0 = 0 ;
3057 PyObject * obj1 = 0 ;
3058 PyObject * obj2 = 0 ;
3059 char *kwnames[] = {
3060 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
3061 };
3062
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
3064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3066 {
3067 arg2 = &temp2;
3068 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3069 }
3070 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
3071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3072 {
3073 PyThreadState* __tstate = wxPyBeginAllowThreads();
3074 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
3075
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) SWIG_fail;
3078 }
3079 Py_INCREF(Py_None); resultobj = Py_None;
3080 return resultobj;
3081 fail:
3082 return NULL;
3083 }
3084
3085
3086 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
3087 PyObject *resultobj;
3088 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3089 wxKeyEvent *arg2 = 0 ;
3090 bool result;
3091 PyObject * obj0 = 0 ;
3092 PyObject * obj1 = 0 ;
3093 char *kwnames[] = {
3094 (char *) "self",(char *) "event", NULL
3095 };
3096
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
3098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3101 SWIG_POINTER_EXCEPTION | 0)) == -1)
3102 SWIG_fail;
3103 if (arg2 == NULL) {
3104 PyErr_SetString(PyExc_TypeError,"null reference");
3105 SWIG_fail;
3106 }
3107 {
3108 PyThreadState* __tstate = wxPyBeginAllowThreads();
3109 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
3110
3111 wxPyEndAllowThreads(__tstate);
3112 if (PyErr_Occurred()) SWIG_fail;
3113 }
3114 {
3115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3116 }
3117 return resultobj;
3118 fail:
3119 return NULL;
3120 }
3121
3122
3123 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
3124 PyObject *resultobj;
3125 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3126 wxKeyEvent *arg2 = 0 ;
3127 PyObject * obj0 = 0 ;
3128 PyObject * obj1 = 0 ;
3129 char *kwnames[] = {
3130 (char *) "self",(char *) "event", NULL
3131 };
3132
3133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
3134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3136 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3137 SWIG_POINTER_EXCEPTION | 0)) == -1)
3138 SWIG_fail;
3139 if (arg2 == NULL) {
3140 PyErr_SetString(PyExc_TypeError,"null reference");
3141 SWIG_fail;
3142 }
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 (arg1)->base_StartingKey(*arg2);
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 Py_INCREF(Py_None); resultobj = Py_None;
3151 return resultobj;
3152 fail:
3153 return NULL;
3154 }
3155
3156
3157 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj;
3159 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3160 PyObject * obj0 = 0 ;
3161 char *kwnames[] = {
3162 (char *) "self", NULL
3163 };
3164
3165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
3166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3168 {
3169 PyThreadState* __tstate = wxPyBeginAllowThreads();
3170 (arg1)->base_StartingClick();
3171
3172 wxPyEndAllowThreads(__tstate);
3173 if (PyErr_Occurred()) SWIG_fail;
3174 }
3175 Py_INCREF(Py_None); resultobj = Py_None;
3176 return resultobj;
3177 fail:
3178 return NULL;
3179 }
3180
3181
3182 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
3183 PyObject *resultobj;
3184 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3185 wxKeyEvent *arg2 = 0 ;
3186 PyObject * obj0 = 0 ;
3187 PyObject * obj1 = 0 ;
3188 char *kwnames[] = {
3189 (char *) "self",(char *) "event", NULL
3190 };
3191
3192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
3193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3196 SWIG_POINTER_EXCEPTION | 0)) == -1)
3197 SWIG_fail;
3198 if (arg2 == NULL) {
3199 PyErr_SetString(PyExc_TypeError,"null reference");
3200 SWIG_fail;
3201 }
3202 {
3203 PyThreadState* __tstate = wxPyBeginAllowThreads();
3204 (arg1)->base_HandleReturn(*arg2);
3205
3206 wxPyEndAllowThreads(__tstate);
3207 if (PyErr_Occurred()) SWIG_fail;
3208 }
3209 Py_INCREF(Py_None); resultobj = Py_None;
3210 return resultobj;
3211 fail:
3212 return NULL;
3213 }
3214
3215
3216 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
3217 PyObject *resultobj;
3218 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3219 PyObject * obj0 = 0 ;
3220 char *kwnames[] = {
3221 (char *) "self", NULL
3222 };
3223
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
3225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3227 {
3228 PyThreadState* __tstate = wxPyBeginAllowThreads();
3229 (arg1)->base_Destroy();
3230
3231 wxPyEndAllowThreads(__tstate);
3232 if (PyErr_Occurred()) SWIG_fail;
3233 }
3234 Py_INCREF(Py_None); resultobj = Py_None;
3235 return resultobj;
3236 fail:
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3244 wxString *arg2 = 0 ;
3245 bool temp2 = False ;
3246 PyObject * obj0 = 0 ;
3247 PyObject * obj1 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self",(char *) "params", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 {
3256 arg2 = wxString_in_helper(obj1);
3257 if (arg2 == NULL) SWIG_fail;
3258 temp2 = True;
3259 }
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 (arg1)->base_SetParameters((wxString const &)*arg2);
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) SWIG_fail;
3266 }
3267 Py_INCREF(Py_None); resultobj = Py_None;
3268 {
3269 if (temp2)
3270 delete arg2;
3271 }
3272 return resultobj;
3273 fail:
3274 {
3275 if (temp2)
3276 delete arg2;
3277 }
3278 return NULL;
3279 }
3280
3281
3282 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
3283 PyObject *obj;
3284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3285 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
3286 Py_INCREF(obj);
3287 return Py_BuildValue((char *)"");
3288 }
3289 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3290 PyObject *resultobj;
3291 wxGridCellTextEditor *result;
3292 char *kwnames[] = {
3293 NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
3297 {
3298 PyThreadState* __tstate = wxPyBeginAllowThreads();
3299 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
3300
3301 wxPyEndAllowThreads(__tstate);
3302 if (PyErr_Occurred()) SWIG_fail;
3303 }
3304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1);
3305 return resultobj;
3306 fail:
3307 return NULL;
3308 }
3309
3310
3311 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3312 PyObject *resultobj;
3313 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
3314 wxString result;
3315 PyObject * obj0 = 0 ;
3316 char *kwnames[] = {
3317 (char *) "self", NULL
3318 };
3319
3320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
3321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor,
3322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3323 {
3324 PyThreadState* __tstate = wxPyBeginAllowThreads();
3325 result = (arg1)->GetValue();
3326
3327 wxPyEndAllowThreads(__tstate);
3328 if (PyErr_Occurred()) SWIG_fail;
3329 }
3330 {
3331 #if wxUSE_UNICODE
3332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3333 #else
3334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3335 #endif
3336 }
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
3344 PyObject *obj;
3345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3346 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
3347 Py_INCREF(obj);
3348 return Py_BuildValue((char *)"");
3349 }
3350 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3351 PyObject *resultobj;
3352 int arg1 = (int) -1 ;
3353 int arg2 = (int) -1 ;
3354 wxGridCellNumberEditor *result;
3355 PyObject * obj0 = 0 ;
3356 PyObject * obj1 = 0 ;
3357 char *kwnames[] = {
3358 (char *) "min",(char *) "max", NULL
3359 };
3360
3361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail;
3362 if (obj0) {
3363 arg1 = (int) SWIG_AsInt(obj0);
3364 if (PyErr_Occurred()) SWIG_fail;
3365 }
3366 if (obj1) {
3367 arg2 = (int) SWIG_AsInt(obj1);
3368 if (PyErr_Occurred()) SWIG_fail;
3369 }
3370 {
3371 PyThreadState* __tstate = wxPyBeginAllowThreads();
3372 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
3373
3374 wxPyEndAllowThreads(__tstate);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1);
3378 return resultobj;
3379 fail:
3380 return NULL;
3381 }
3382
3383
3384 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
3387 wxString result;
3388 PyObject * obj0 = 0 ;
3389 char *kwnames[] = {
3390 (char *) "self", NULL
3391 };
3392
3393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
3394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor,
3395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 result = (arg1)->GetValue();
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
3403 {
3404 #if wxUSE_UNICODE
3405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3406 #else
3407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3408 #endif
3409 }
3410 return resultobj;
3411 fail:
3412 return NULL;
3413 }
3414
3415
3416 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3417 PyObject *obj;
3418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3419 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3420 Py_INCREF(obj);
3421 return Py_BuildValue((char *)"");
3422 }
3423 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3424 PyObject *resultobj;
3425 int arg1 = (int) -1 ;
3426 int arg2 = (int) -1 ;
3427 wxGridCellFloatEditor *result;
3428 PyObject * obj0 = 0 ;
3429 PyObject * obj1 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "width",(char *) "precision", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatEditor",kwnames,&obj0,&obj1)) goto fail;
3435 if (obj0) {
3436 arg1 = (int) SWIG_AsInt(obj0);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 if (obj1) {
3440 arg2 = (int) SWIG_AsInt(obj1);
3441 if (PyErr_Occurred()) SWIG_fail;
3442 }
3443 {
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(arg1,arg2);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 }
3450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1);
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3458 PyObject *resultobj;
3459 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3460 wxString result;
3461 PyObject * obj0 = 0 ;
3462 char *kwnames[] = {
3463 (char *) "self", NULL
3464 };
3465
3466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor,
3468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (arg1)->GetValue();
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 {
3477 #if wxUSE_UNICODE
3478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3479 #else
3480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3481 #endif
3482 }
3483 return resultobj;
3484 fail:
3485 return NULL;
3486 }
3487
3488
3489 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3490 PyObject *obj;
3491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3492 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3493 Py_INCREF(obj);
3494 return Py_BuildValue((char *)"");
3495 }
3496 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxGridCellBoolEditor *result;
3499 char *kwnames[] = {
3500 NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1);
3512 return resultobj;
3513 fail:
3514 return NULL;
3515 }
3516
3517
3518 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3519 PyObject *resultobj;
3520 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3521 wxString result;
3522 PyObject * obj0 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "self", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor,
3529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (arg1)->GetValue();
3533
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 {
3538 #if wxUSE_UNICODE
3539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3540 #else
3541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3542 #endif
3543 }
3544 return resultobj;
3545 fail:
3546 return NULL;
3547 }
3548
3549
3550 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3551 PyObject *obj;
3552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3553 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3554 Py_INCREF(obj);
3555 return Py_BuildValue((char *)"");
3556 }
3557 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3558 PyObject *resultobj;
3559 int arg1 = (int) 0 ;
3560 wxString *arg2 = (wxString *) NULL ;
3561 bool arg3 = (bool) False ;
3562 wxGridCellChoiceEditor *result;
3563 PyObject * obj0 = 0 ;
3564 PyObject * obj1 = 0 ;
3565 char *kwnames[] = {
3566 (char *) "choices",(char *) "allowOthers", NULL
3567 };
3568
3569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3570 if (obj0) {
3571 {
3572 arg1 = PyList_Size(obj0);
3573 arg2 = wxString_LIST_helper(obj0);
3574 if (arg2 == NULL) SWIG_fail;
3575 }
3576 }
3577 if (obj1) {
3578 arg3 = (bool) SWIG_AsBool(obj1);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 {
3582 PyThreadState* __tstate = wxPyBeginAllowThreads();
3583 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3584
3585 wxPyEndAllowThreads(__tstate);
3586 if (PyErr_Occurred()) SWIG_fail;
3587 }
3588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3589 {
3590 if (arg2) delete [] arg2;
3591 }
3592 return resultobj;
3593 fail:
3594 {
3595 if (arg2) delete [] arg2;
3596 }
3597 return NULL;
3598 }
3599
3600
3601 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3602 PyObject *resultobj;
3603 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3604 wxString result;
3605 PyObject * obj0 = 0 ;
3606 char *kwnames[] = {
3607 (char *) "self", NULL
3608 };
3609
3610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor,
3612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3613 {
3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
3615 result = (arg1)->GetValue();
3616
3617 wxPyEndAllowThreads(__tstate);
3618 if (PyErr_Occurred()) SWIG_fail;
3619 }
3620 {
3621 #if wxUSE_UNICODE
3622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3623 #else
3624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3625 #endif
3626 }
3627 return resultobj;
3628 fail:
3629 return NULL;
3630 }
3631
3632
3633 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3634 PyObject *obj;
3635 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3636 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3637 Py_INCREF(obj);
3638 return Py_BuildValue((char *)"");
3639 }
3640 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3641 PyObject *resultobj;
3642 wxString const &arg1_defvalue = wxPyEmptyString ;
3643 wxString *arg1 = (wxString *) &arg1_defvalue ;
3644 wxGridCellEnumEditor *result;
3645 bool temp1 = False ;
3646 PyObject * obj0 = 0 ;
3647 char *kwnames[] = {
3648 (char *) "choices", NULL
3649 };
3650
3651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3652 if (obj0) {
3653 {
3654 arg1 = wxString_in_helper(obj0);
3655 if (arg1 == NULL) SWIG_fail;
3656 temp1 = True;
3657 }
3658 }
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1);
3667 {
3668 if (temp1)
3669 delete arg1;
3670 }
3671 return resultobj;
3672 fail:
3673 {
3674 if (temp1)
3675 delete arg1;
3676 }
3677 return NULL;
3678 }
3679
3680
3681 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3682 PyObject *resultobj;
3683 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3684 wxString result;
3685 PyObject * obj0 = 0 ;
3686 char *kwnames[] = {
3687 (char *) "self", NULL
3688 };
3689
3690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor,
3692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (arg1)->GetValue();
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 {
3701 #if wxUSE_UNICODE
3702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3703 #else
3704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3705 #endif
3706 }
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3714 PyObject *obj;
3715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3716 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3717 Py_INCREF(obj);
3718 return Py_BuildValue((char *)"");
3719 }
3720 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3721 PyObject *resultobj;
3722 wxGridCellAutoWrapStringEditor *result;
3723 char *kwnames[] = {
3724 NULL
3725 };
3726
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3728 {
3729 PyThreadState* __tstate = wxPyBeginAllowThreads();
3730 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3731
3732 wxPyEndAllowThreads(__tstate);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 }
3735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3745 wxString result;
3746 PyObject * obj0 = 0 ;
3747 char *kwnames[] = {
3748 (char *) "self", NULL
3749 };
3750
3751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor,
3753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 result = (arg1)->GetValue();
3757
3758 wxPyEndAllowThreads(__tstate);
3759 if (PyErr_Occurred()) SWIG_fail;
3760 }
3761 {
3762 #if wxUSE_UNICODE
3763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3764 #else
3765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3766 #endif
3767 }
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3775 PyObject *obj;
3776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3777 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3778 Py_INCREF(obj);
3779 return Py_BuildValue((char *)"");
3780 }
3781 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3782 PyObject *resultobj;
3783 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3784 PyObject *arg2 = (PyObject *) 0 ;
3785 PyObject * obj0 = 0 ;
3786 PyObject * obj1 = 0 ;
3787 char *kwnames[] = {
3788 (char *) "self",(char *) "_self", NULL
3789 };
3790
3791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3794 arg2 = obj1;
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 wxGridCellAttr__setOORInfo(arg1,arg2);
3798
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 Py_INCREF(Py_None); resultobj = Py_None;
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3812 wxGridCellAttr *result;
3813 PyObject * obj0 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "attrDefault", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3819 if (obj0) {
3820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3822 }
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 {
3831 resultobj = wxPyMake_wxGridCellAttr(result, 1);
3832 }
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3842 wxGridCellAttr *result;
3843 PyObject * obj0 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "self", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 {
3859 resultobj = wxPyMake_wxGridCellAttr(result, 0);
3860 }
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3870 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3871 PyObject * obj0 = 0 ;
3872 PyObject * obj1 = 0 ;
3873 char *kwnames[] = {
3874 (char *) "self",(char *) "mergefrom", NULL
3875 };
3876
3877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
3881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 (arg1)->MergeWith(arg2);
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 Py_INCREF(Py_None); resultobj = Py_None;
3890 return resultobj;
3891 fail:
3892 return NULL;
3893 }
3894
3895
3896 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3899 PyObject * obj0 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "self", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 (arg1)->IncRef();
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 Py_INCREF(Py_None); resultobj = Py_None;
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3924 PyObject * obj0 = 0 ;
3925 char *kwnames[] = {
3926 (char *) "self", NULL
3927 };
3928
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 (arg1)->DecRef();
3935
3936 wxPyEndAllowThreads(__tstate);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 }
3939 Py_INCREF(Py_None); resultobj = Py_None;
3940 return resultobj;
3941 fail:
3942 return NULL;
3943 }
3944
3945
3946 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3947 PyObject *resultobj;
3948 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3949 wxColour *arg2 = 0 ;
3950 wxColour temp2 ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953 char *kwnames[] = {
3954 (char *) "self",(char *) "colText", NULL
3955 };
3956
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3960 {
3961 arg2 = &temp2;
3962 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3963 }
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 (arg1)->SetTextColour((wxColour const &)*arg2);
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 Py_INCREF(Py_None); resultobj = Py_None;
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj;
3980 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3981 wxColour *arg2 = 0 ;
3982 wxColour temp2 ;
3983 PyObject * obj0 = 0 ;
3984 PyObject * obj1 = 0 ;
3985 char *kwnames[] = {
3986 (char *) "self",(char *) "colBack", NULL
3987 };
3988
3989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
3990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3992 {
3993 arg2 = &temp2;
3994 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3995 }
3996 {
3997 PyThreadState* __tstate = wxPyBeginAllowThreads();
3998 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3999
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 Py_INCREF(Py_None); resultobj = Py_None;
4004 return resultobj;
4005 fail:
4006 return NULL;
4007 }
4008
4009
4010 static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4011 PyObject *resultobj;
4012 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4013 wxFont *arg2 = 0 ;
4014 PyObject * obj0 = 0 ;
4015 PyObject * obj1 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "self",(char *) "font", NULL
4018 };
4019
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
4021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
4024 SWIG_POINTER_EXCEPTION | 0)) == -1)
4025 SWIG_fail;
4026 if (arg2 == NULL) {
4027 PyErr_SetString(PyExc_TypeError,"null reference");
4028 SWIG_fail;
4029 }
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 (arg1)->SetFont((wxFont const &)*arg2);
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 Py_INCREF(Py_None); resultobj = Py_None;
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj;
4046 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4047 int arg2 ;
4048 int arg3 ;
4049 PyObject * obj0 = 0 ;
4050 PyObject * obj1 = 0 ;
4051 PyObject * obj2 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4059 arg2 = (int) SWIG_AsInt(obj1);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 arg3 = (int) SWIG_AsInt(obj2);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 (arg1)->SetAlignment(arg2,arg3);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 Py_INCREF(Py_None); resultobj = Py_None;
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4080 int arg2 ;
4081 int arg3 ;
4082 PyObject * obj0 = 0 ;
4083 PyObject * obj1 = 0 ;
4084 PyObject * obj2 = 0 ;
4085 char *kwnames[] = {
4086 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
4087 };
4088
4089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
4090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4092 arg2 = (int) SWIG_AsInt(obj1);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 arg3 = (int) SWIG_AsInt(obj2);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 (arg1)->SetSize(arg2,arg3);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 Py_INCREF(Py_None); resultobj = Py_None;
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj;
4112 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4113 bool arg2 = (bool) True ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 char *kwnames[] = {
4117 (char *) "self",(char *) "allow", NULL
4118 };
4119
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
4121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4123 if (obj1) {
4124 arg2 = (bool) SWIG_AsBool(obj1);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 (arg1)->SetOverflow(arg2);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4144 bool arg2 = (bool) True ;
4145 PyObject * obj0 = 0 ;
4146 PyObject * obj1 = 0 ;
4147 char *kwnames[] = {
4148 (char *) "self",(char *) "isReadOnly", NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
4152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4154 if (obj1) {
4155 arg2 = (bool) SWIG_AsBool(obj1);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 {
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
4160 (arg1)->SetReadOnly(arg2);
4161
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 Py_INCREF(Py_None); resultobj = Py_None;
4166 return resultobj;
4167 fail:
4168 return NULL;
4169 }
4170
4171
4172 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4173 PyObject *resultobj;
4174 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4175 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
4176 PyObject * obj0 = 0 ;
4177 PyObject * obj1 = 0 ;
4178 char *kwnames[] = {
4179 (char *) "self",(char *) "renderer", NULL
4180 };
4181
4182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
4183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 (arg1)->SetRenderer(arg2);
4190
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 Py_INCREF(Py_None); resultobj = Py_None;
4195 return resultobj;
4196 fail:
4197 return NULL;
4198 }
4199
4200
4201 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj;
4203 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4204 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 char *kwnames[] = {
4208 (char *) "self",(char *) "editor", NULL
4209 };
4210
4211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
4212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor,
4215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 (arg1)->SetEditor(arg2);
4219
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 Py_INCREF(Py_None); resultobj = Py_None;
4224 return resultobj;
4225 fail:
4226 return NULL;
4227 }
4228
4229
4230 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
4231 PyObject *resultobj;
4232 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4233 int arg2 ;
4234 PyObject * obj0 = 0 ;
4235 PyObject * obj1 = 0 ;
4236 char *kwnames[] = {
4237 (char *) "self",(char *) "kind", NULL
4238 };
4239
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail;
4241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4243 arg2 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj1);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
4248
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 Py_INCREF(Py_None); resultobj = Py_None;
4253 return resultobj;
4254 fail:
4255 return NULL;
4256 }
4257
4258
4259 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4262 bool result;
4263 PyObject * obj0 = 0 ;
4264 char *kwnames[] = {
4265 (char *) "self", NULL
4266 };
4267
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
4269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 {
4279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4280 }
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4290 bool result;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "self", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
4297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
4302
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 {
4307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4308 }
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4318 bool result;
4319 PyObject * obj0 = 0 ;
4320 char *kwnames[] = {
4321 (char *) "self", NULL
4322 };
4323
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
4325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 {
4335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4336 }
4337 return resultobj;
4338 fail:
4339 return NULL;
4340 }
4341
4342
4343 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj;
4345 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4346 bool result;
4347 PyObject * obj0 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "self", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
4358
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 {
4363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4364 }
4365 return resultobj;
4366 fail:
4367 return NULL;
4368 }
4369
4370
4371 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj;
4373 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4374 bool result;
4375 PyObject * obj0 = 0 ;
4376 char *kwnames[] = {
4377 (char *) "self", NULL
4378 };
4379
4380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
4381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 {
4391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4392 }
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4402 bool result;
4403 PyObject * obj0 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "self", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
4409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 {
4419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4420 }
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj;
4429 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4430 bool result;
4431 PyObject * obj0 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "self", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
4437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
4442
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 {
4447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4448 }
4449 return resultobj;
4450 fail:
4451 return NULL;
4452 }
4453
4454
4455 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4456 PyObject *resultobj;
4457 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4458 bool result;
4459 PyObject * obj0 = 0 ;
4460 char *kwnames[] = {
4461 (char *) "self", NULL
4462 };
4463
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
4465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
4470
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 {
4475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4476 }
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4486 wxColour result;
4487 PyObject * obj0 = 0 ;
4488 char *kwnames[] = {
4489 (char *) "self", NULL
4490 };
4491
4492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4495 {
4496 PyThreadState* __tstate = wxPyBeginAllowThreads();
4497 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4498
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 {
4503 wxColour * resultptr;
4504 resultptr = new wxColour((wxColour &) result);
4505 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4506 }
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4516 wxColour result;
4517 PyObject * obj0 = 0 ;
4518 char *kwnames[] = {
4519 (char *) "self", NULL
4520 };
4521
4522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 wxColour * resultptr;
4534 resultptr = new wxColour((wxColour &) result);
4535 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4536 }
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4544 PyObject *resultobj;
4545 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4546 wxFont result;
4547 PyObject * obj0 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "self", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 result = ((wxGridCellAttr const *)arg1)->GetFont();
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 {
4563 wxFont * resultptr;
4564 resultptr = new wxFont((wxFont &) result);
4565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
4566 }
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj;
4575 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4576 int *arg2 = (int *) 0 ;
4577 int *arg3 = (int *) 0 ;
4578 int temp2 ;
4579 int temp3 ;
4580 PyObject * obj0 = 0 ;
4581 char *kwnames[] = {
4582 (char *) "self", NULL
4583 };
4584
4585 arg2 = &temp2;
4586 arg3 = &temp3;
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4593
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 Py_INCREF(Py_None); resultobj = Py_None;
4598 {
4599 PyObject *o = PyInt_FromLong((long) (*arg2));
4600 resultobj = t_output_helper(resultobj,o);
4601 }
4602 {
4603 PyObject *o = PyInt_FromLong((long) (*arg3));
4604 resultobj = t_output_helper(resultobj,o);
4605 }
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj;
4614 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4615 int *arg2 = (int *) 0 ;
4616 int *arg3 = (int *) 0 ;
4617 int temp2 ;
4618 int temp3 ;
4619 PyObject * obj0 = 0 ;
4620 char *kwnames[] = {
4621 (char *) "self", NULL
4622 };
4623
4624 arg2 = &temp2;
4625 arg3 = &temp3;
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 Py_INCREF(Py_None); resultobj = Py_None;
4637 {
4638 PyObject *o = PyInt_FromLong((long) (*arg2));
4639 resultobj = t_output_helper(resultobj,o);
4640 }
4641 {
4642 PyObject *o = PyInt_FromLong((long) (*arg3));
4643 resultobj = t_output_helper(resultobj,o);
4644 }
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4654 bool result;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4672 }
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4682 wxGrid *arg2 = (wxGrid *) 0 ;
4683 int arg3 ;
4684 int arg4 ;
4685 wxGridCellRenderer *result;
4686 PyObject * obj0 = 0 ;
4687 PyObject * obj1 = 0 ;
4688 PyObject * obj2 = 0 ;
4689 PyObject * obj3 = 0 ;
4690 char *kwnames[] = {
4691 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4692 };
4693
4694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
4698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4699 arg3 = (int) SWIG_AsInt(obj2);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 arg4 = (int) SWIG_AsInt(obj3);
4702 if (PyErr_Occurred()) SWIG_fail;
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 {
4711 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
4712 }
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj;
4721 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4722 wxGrid *arg2 = (wxGrid *) 0 ;
4723 int arg3 ;
4724 int arg4 ;
4725 wxGridCellEditor *result;
4726 PyObject * obj0 = 0 ;
4727 PyObject * obj1 = 0 ;
4728 PyObject * obj2 = 0 ;
4729 PyObject * obj3 = 0 ;
4730 char *kwnames[] = {
4731 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4732 };
4733
4734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4739 arg3 = (int) SWIG_AsInt(obj2);
4740 if (PyErr_Occurred()) SWIG_fail;
4741 arg4 = (int) SWIG_AsInt(obj3);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4746
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = wxPyMake_wxGridCellEditor(result, 0);
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4762 bool result;
4763 PyObject * obj0 = 0 ;
4764 char *kwnames[] = {
4765 (char *) "self", NULL
4766 };
4767
4768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4771 {
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 {
4779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4780 }
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_GridCellAttr_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4790 int result;
4791 PyObject * obj0 = 0 ;
4792 char *kwnames[] = {
4793 (char *) "self", NULL
4794 };
4795
4796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetKind",kwnames,&obj0)) goto fail;
4797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4799 {
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 result = (int)(arg1)->GetKind();
4802
4803 wxPyEndAllowThreads(__tstate);
4804 if (PyErr_Occurred()) SWIG_fail;
4805 }
4806 resultobj = SWIG_FromInt((int)result);
4807 return resultobj;
4808 fail:
4809 return NULL;
4810 }
4811
4812
4813 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4814 PyObject *resultobj;
4815 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4816 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4817 PyObject * obj0 = 0 ;
4818 PyObject * obj1 = 0 ;
4819 char *kwnames[] = {
4820 (char *) "self",(char *) "defAttr", NULL
4821 };
4822
4823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4826 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 (arg1)->SetDefAttr(arg2);
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 Py_INCREF(Py_None); resultobj = Py_None;
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4843 PyObject *obj;
4844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4845 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4846 Py_INCREF(obj);
4847 return Py_BuildValue((char *)"");
4848 }
4849 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4850 PyObject *resultobj;
4851 wxGridCellAttrProvider *result;
4852 char *kwnames[] = {
4853 NULL
4854 };
4855
4856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4860
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 resultobj = wxPyMake_wxGridCellAttrProvider(result, 1);
4866 }
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj;
4875 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4876 PyObject *arg2 = (PyObject *) 0 ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 char *kwnames[] = {
4880 (char *) "self",(char *) "_self", NULL
4881 };
4882
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4886 arg2 = obj1;
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4890
4891 wxPyEndAllowThreads(__tstate);
4892 if (PyErr_Occurred()) SWIG_fail;
4893 }
4894 Py_INCREF(Py_None); resultobj = Py_None;
4895 return resultobj;
4896 fail:
4897 return NULL;
4898 }
4899
4900
4901 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4902 PyObject *resultobj;
4903 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4904 int arg2 ;
4905 int arg3 ;
4906 int arg4 ;
4907 wxGridCellAttr *result;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 PyObject * obj2 = 0 ;
4911 PyObject * obj3 = 0 ;
4912 char *kwnames[] = {
4913 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4914 };
4915
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4919 arg2 = (int) SWIG_AsInt(obj1);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 arg3 = (int) SWIG_AsInt(obj2);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4928
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 {
4933 resultobj = wxPyMake_wxGridCellAttr(result, 0);
4934 }
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4944 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4945 int arg3 ;
4946 int arg4 ;
4947 PyObject * obj0 = 0 ;
4948 PyObject * obj1 = 0 ;
4949 PyObject * obj2 = 0 ;
4950 PyObject * obj3 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4960 arg3 = (int) SWIG_AsInt(obj2);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 arg4 = (int) SWIG_AsInt(obj3);
4963 if (PyErr_Occurred()) SWIG_fail;
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 (arg1)->SetAttr(arg2,arg3,arg4);
4967
4968 wxPyEndAllowThreads(__tstate);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 }
4971 Py_INCREF(Py_None); resultobj = Py_None;
4972 return resultobj;
4973 fail:
4974 return NULL;
4975 }
4976
4977
4978 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4979 PyObject *resultobj;
4980 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4981 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4982 int arg3 ;
4983 PyObject * obj0 = 0 ;
4984 PyObject * obj1 = 0 ;
4985 PyObject * obj2 = 0 ;
4986 char *kwnames[] = {
4987 (char *) "self",(char *) "attr",(char *) "row", NULL
4988 };
4989
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
4991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4995 arg3 = (int) SWIG_AsInt(obj2);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 {
4998 PyThreadState* __tstate = wxPyBeginAllowThreads();
4999 (arg1)->SetRowAttr(arg2,arg3);
5000
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 Py_INCREF(Py_None); resultobj = Py_None;
5005 return resultobj;
5006 fail:
5007 return NULL;
5008 }
5009
5010
5011 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5012 PyObject *resultobj;
5013 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
5014 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5015 int arg3 ;
5016 PyObject * obj0 = 0 ;
5017 PyObject * obj1 = 0 ;
5018 PyObject * obj2 = 0 ;
5019 char *kwnames[] = {
5020 (char *) "self",(char *) "attr",(char *) "col", NULL
5021 };
5022
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
5025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5028 arg3 = (int) SWIG_AsInt(obj2);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 (arg1)->SetColAttr(arg2,arg3);
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 Py_INCREF(Py_None); resultobj = Py_None;
5038 return resultobj;
5039 fail:
5040 return NULL;
5041 }
5042
5043
5044 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject *resultobj;
5046 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
5047 size_t arg2 ;
5048 int arg3 ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 PyObject * obj2 = 0 ;
5052 char *kwnames[] = {
5053 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5054 };
5055
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
5058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5059 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 arg3 = (int) SWIG_AsInt(obj2);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 {
5064 PyThreadState* __tstate = wxPyBeginAllowThreads();
5065 (arg1)->UpdateAttrRows(arg2,arg3);
5066
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 Py_INCREF(Py_None); resultobj = Py_None;
5071 return resultobj;
5072 fail:
5073 return NULL;
5074 }
5075
5076
5077 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj;
5079 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
5080 size_t arg2 ;
5081 int arg3 ;
5082 PyObject * obj0 = 0 ;
5083 PyObject * obj1 = 0 ;
5084 PyObject * obj2 = 0 ;
5085 char *kwnames[] = {
5086 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5087 };
5088
5089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
5091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5092 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 arg3 = (int) SWIG_AsInt(obj2);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 (arg1)->UpdateAttrCols(arg2,arg3);
5099
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 Py_INCREF(Py_None); resultobj = Py_None;
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
5111 PyObject *obj;
5112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5113 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
5114 Py_INCREF(obj);
5115 return Py_BuildValue((char *)"");
5116 }
5117 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject *resultobj;
5119 wxPyGridCellAttrProvider *result;
5120 char *kwnames[] = {
5121 NULL
5122 };
5123
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
5133 return resultobj;
5134 fail:
5135 return NULL;
5136 }
5137
5138
5139 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj;
5141 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5142 PyObject *arg2 = (PyObject *) 0 ;
5143 PyObject *arg3 = (PyObject *) 0 ;
5144 PyObject * obj0 = 0 ;
5145 PyObject * obj1 = 0 ;
5146 PyObject * obj2 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "self",(char *) "self",(char *) "_class", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5154 arg2 = obj1;
5155 arg3 = obj2;
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 (arg1)->_setCallbackInfo(arg2,arg3);
5159
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 Py_INCREF(Py_None); resultobj = Py_None;
5164 return resultobj;
5165 fail:
5166 return NULL;
5167 }
5168
5169
5170 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj;
5172 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5173 int arg2 ;
5174 int arg3 ;
5175 int arg4 ;
5176 wxGridCellAttr *result;
5177 PyObject * obj0 = 0 ;
5178 PyObject * obj1 = 0 ;
5179 PyObject * obj2 = 0 ;
5180 PyObject * obj3 = 0 ;
5181 char *kwnames[] = {
5182 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
5183 };
5184
5185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5188 arg2 = (int) SWIG_AsInt(obj1);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 arg3 = (int) SWIG_AsInt(obj2);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
5197
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 {
5202 resultobj = wxPyMake_wxGridCellAttr(result, 0);
5203 }
5204 return resultobj;
5205 fail:
5206 return NULL;
5207 }
5208
5209
5210 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5213 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5214 int arg3 ;
5215 int arg4 ;
5216 PyObject * obj0 = 0 ;
5217 PyObject * obj1 = 0 ;
5218 PyObject * obj2 = 0 ;
5219 PyObject * obj3 = 0 ;
5220 char *kwnames[] = {
5221 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
5222 };
5223
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5227 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5229 arg3 = (int) SWIG_AsInt(obj2);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 arg4 = (int) SWIG_AsInt(obj3);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 (arg1)->base_SetAttr(arg2,arg3,arg4);
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 Py_INCREF(Py_None); resultobj = Py_None;
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj;
5249 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5250 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5251 int arg3 ;
5252 PyObject * obj0 = 0 ;
5253 PyObject * obj1 = 0 ;
5254 PyObject * obj2 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "self",(char *) "attr",(char *) "row", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5264 arg3 = (int) SWIG_AsInt(obj2);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 (arg1)->base_SetRowAttr(arg2,arg3);
5269
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 Py_INCREF(Py_None); resultobj = Py_None;
5274 return resultobj;
5275 fail:
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5283 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5284 int arg3 ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 PyObject * obj2 = 0 ;
5288 char *kwnames[] = {
5289 (char *) "self",(char *) "attr",(char *) "col", NULL
5290 };
5291
5292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 arg3 = (int) SWIG_AsInt(obj2);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 (arg1)->base_SetColAttr(arg2,arg3);
5302
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 Py_INCREF(Py_None); resultobj = Py_None;
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
5314 PyObject *obj;
5315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5316 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
5317 Py_INCREF(obj);
5318 return Py_BuildValue((char *)"");
5319 }
5320 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5323 PyObject *arg2 = (PyObject *) 0 ;
5324 PyObject * obj0 = 0 ;
5325 PyObject * obj1 = 0 ;
5326 char *kwnames[] = {
5327 (char *) "self",(char *) "_self", NULL
5328 };
5329
5330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
5331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5333 arg2 = obj1;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 wxGridTableBase__setOORInfo(arg1,arg2);
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 Py_INCREF(Py_None); resultobj = Py_None;
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5351 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char *kwnames[] = {
5355 (char *) "self",(char *) "attrProvider", NULL
5356 };
5357
5358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
5359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider,
5362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 (arg1)->SetAttrProvider(arg2);
5366
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 Py_INCREF(Py_None); resultobj = Py_None;
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj;
5379 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5380 wxGridCellAttrProvider *result;
5381 PyObject * obj0 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 {
5397 resultobj = wxPyMake_wxGridCellAttrProvider(result, 0);
5398 }
5399 return resultobj;
5400 fail:
5401 return NULL;
5402 }
5403
5404
5405 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj;
5407 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5408 wxGrid *arg2 = (wxGrid *) 0 ;
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "self",(char *) "grid", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
5416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
5419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 (arg1)->SetView(arg2);
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 Py_INCREF(Py_None); resultobj = Py_None;
5428 return resultobj;
5429 fail:
5430 return NULL;
5431 }
5432
5433
5434 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5435 PyObject *resultobj;
5436 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5437 wxGrid *result;
5438 PyObject * obj0 = 0 ;
5439 char *kwnames[] = {
5440 (char *) "self", NULL
5441 };
5442
5443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
5444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5446 {
5447 PyThreadState* __tstate = wxPyBeginAllowThreads();
5448 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
5449
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 {
5454 resultobj = wxPyMake_wxObject(result, 0);
5455 }
5456 return resultobj;
5457 fail:
5458 return NULL;
5459 }
5460
5461
5462 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj;
5464 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5465 int result;
5466 PyObject * obj0 = 0 ;
5467 char *kwnames[] = {
5468 (char *) "self", NULL
5469 };
5470
5471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
5472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (int)(arg1)->GetNumberRows();
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = SWIG_FromInt((int)result);
5482 return resultobj;
5483 fail:
5484 return NULL;
5485 }
5486
5487
5488 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj;
5490 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5491 int result;
5492 PyObject * obj0 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = (int)(arg1)->GetNumberCols();
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 resultobj = SWIG_FromInt((int)result);
5508 return resultobj;
5509 fail:
5510 return NULL;
5511 }
5512
5513
5514 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject *resultobj;
5516 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5517 int arg2 ;
5518 int arg3 ;
5519 bool result;
5520 PyObject * obj0 = 0 ;
5521 PyObject * obj1 = 0 ;
5522 PyObject * obj2 = 0 ;
5523 char *kwnames[] = {
5524 (char *) "self",(char *) "row",(char *) "col", NULL
5525 };
5526
5527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
5528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5530 arg2 = (int) SWIG_AsInt(obj1);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 arg3 = (int) SWIG_AsInt(obj2);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 {
5535 PyThreadState* __tstate = wxPyBeginAllowThreads();
5536 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
5537
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 {
5542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5543 }
5544 return resultobj;
5545 fail:
5546 return NULL;
5547 }
5548
5549
5550 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5551 PyObject *resultobj;
5552 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5553 int arg2 ;
5554 int arg3 ;
5555 wxString result;
5556 PyObject * obj0 = 0 ;
5557 PyObject * obj1 = 0 ;
5558 PyObject * obj2 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self",(char *) "row",(char *) "col", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
5564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5566 arg2 = (int) SWIG_AsInt(obj1);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 arg3 = (int) SWIG_AsInt(obj2);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = (arg1)->GetValue(arg2,arg3);
5573
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 {
5578 #if wxUSE_UNICODE
5579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5580 #else
5581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5582 #endif
5583 }
5584 return resultobj;
5585 fail:
5586 return NULL;
5587 }
5588
5589
5590 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5593 int arg2 ;
5594 int arg3 ;
5595 wxString *arg4 = 0 ;
5596 bool temp4 = False ;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 PyObject * obj2 = 0 ;
5600 PyObject * obj3 = 0 ;
5601 char *kwnames[] = {
5602 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5603 };
5604
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5608 arg2 = (int) SWIG_AsInt(obj1);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 arg3 = (int) SWIG_AsInt(obj2);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 {
5613 arg4 = wxString_in_helper(obj3);
5614 if (arg4 == NULL) SWIG_fail;
5615 temp4 = True;
5616 }
5617 {
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
5620
5621 wxPyEndAllowThreads(__tstate);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 Py_INCREF(Py_None); resultobj = Py_None;
5625 {
5626 if (temp4)
5627 delete arg4;
5628 }
5629 return resultobj;
5630 fail:
5631 {
5632 if (temp4)
5633 delete arg4;
5634 }
5635 return NULL;
5636 }
5637
5638
5639 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj;
5641 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5642 int arg2 ;
5643 int arg3 ;
5644 wxString result;
5645 PyObject * obj0 = 0 ;
5646 PyObject * obj1 = 0 ;
5647 PyObject * obj2 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self",(char *) "row",(char *) "col", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5655 arg2 = (int) SWIG_AsInt(obj1);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 arg3 = (int) SWIG_AsInt(obj2);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 result = (arg1)->GetTypeName(arg2,arg3);
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 {
5667 #if wxUSE_UNICODE
5668 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5669 #else
5670 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5671 #endif
5672 }
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5680 PyObject *resultobj;
5681 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5682 int arg2 ;
5683 int arg3 ;
5684 wxString *arg4 = 0 ;
5685 bool result;
5686 bool temp4 = False ;
5687 PyObject * obj0 = 0 ;
5688 PyObject * obj1 = 0 ;
5689 PyObject * obj2 = 0 ;
5690 PyObject * obj3 = 0 ;
5691 char *kwnames[] = {
5692 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5693 };
5694
5695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5698 arg2 = (int) SWIG_AsInt(obj1);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 arg3 = (int) SWIG_AsInt(obj2);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 {
5703 arg4 = wxString_in_helper(obj3);
5704 if (arg4 == NULL) SWIG_fail;
5705 temp4 = True;
5706 }
5707 {
5708 PyThreadState* __tstate = wxPyBeginAllowThreads();
5709 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5710
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 {
5715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5716 }
5717 {
5718 if (temp4)
5719 delete arg4;
5720 }
5721 return resultobj;
5722 fail:
5723 {
5724 if (temp4)
5725 delete arg4;
5726 }
5727 return NULL;
5728 }
5729
5730
5731 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj;
5733 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5734 int arg2 ;
5735 int arg3 ;
5736 wxString *arg4 = 0 ;
5737 bool result;
5738 bool temp4 = False ;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 PyObject * obj2 = 0 ;
5742 PyObject * obj3 = 0 ;
5743 char *kwnames[] = {
5744 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5745 };
5746
5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5750 arg2 = (int) SWIG_AsInt(obj1);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 arg3 = (int) SWIG_AsInt(obj2);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 {
5755 arg4 = wxString_in_helper(obj3);
5756 if (arg4 == NULL) SWIG_fail;
5757 temp4 = True;
5758 }
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 {
5767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5768 }
5769 {
5770 if (temp4)
5771 delete arg4;
5772 }
5773 return resultobj;
5774 fail:
5775 {
5776 if (temp4)
5777 delete arg4;
5778 }
5779 return NULL;
5780 }
5781
5782
5783 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj;
5785 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5786 int arg2 ;
5787 int arg3 ;
5788 long result;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 PyObject * obj2 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self",(char *) "row",(char *) "col", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 arg2 = (int) SWIG_AsInt(obj1);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 arg3 = (int) SWIG_AsInt(obj2);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 {
5804 PyThreadState* __tstate = wxPyBeginAllowThreads();
5805 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5806
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 resultobj = SWIG_FromLong((long)result);
5811 return resultobj;
5812 fail:
5813 return NULL;
5814 }
5815
5816
5817 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5820 int arg2 ;
5821 int arg3 ;
5822 double result;
5823 PyObject * obj0 = 0 ;
5824 PyObject * obj1 = 0 ;
5825 PyObject * obj2 = 0 ;
5826 char *kwnames[] = {
5827 (char *) "self",(char *) "row",(char *) "col", NULL
5828 };
5829
5830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail;
5831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5833 arg2 = (int) SWIG_AsInt(obj1);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 arg3 = (int) SWIG_AsInt(obj2);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 {
5838 PyThreadState* __tstate = wxPyBeginAllowThreads();
5839 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5840
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 resultobj = SWIG_FromDouble((double)result);
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj;
5853 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5854 int arg2 ;
5855 int arg3 ;
5856 bool result;
5857 PyObject * obj0 = 0 ;
5858 PyObject * obj1 = 0 ;
5859 PyObject * obj2 = 0 ;
5860 char *kwnames[] = {
5861 (char *) "self",(char *) "row",(char *) "col", NULL
5862 };
5863
5864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
5865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5867 arg2 = (int) SWIG_AsInt(obj1);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 arg3 = (int) SWIG_AsInt(obj2);
5870 if (PyErr_Occurred()) SWIG_fail;
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 {
5879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5880 }
5881 return resultobj;
5882 fail:
5883 return NULL;
5884 }
5885
5886
5887 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5888 PyObject *resultobj;
5889 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5890 int arg2 ;
5891 int arg3 ;
5892 long arg4 ;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
5895 PyObject * obj2 = 0 ;
5896 PyObject * obj3 = 0 ;
5897 char *kwnames[] = {
5898 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5899 };
5900
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5904 arg2 = (int) SWIG_AsInt(obj1);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 arg3 = (int) SWIG_AsInt(obj2);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 arg4 = (long) SWIG_AsLong(obj3);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 Py_INCREF(Py_None); resultobj = Py_None;
5918 return resultobj;
5919 fail:
5920 return NULL;
5921 }
5922
5923
5924 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5925 PyObject *resultobj;
5926 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5927 int arg2 ;
5928 int arg3 ;
5929 double arg4 ;
5930 PyObject * obj0 = 0 ;
5931 PyObject * obj1 = 0 ;
5932 PyObject * obj2 = 0 ;
5933 PyObject * obj3 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 arg2 = (int) SWIG_AsInt(obj1);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 arg3 = (int) SWIG_AsInt(obj2);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 arg4 = (double) SWIG_AsDouble(obj3);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 Py_INCREF(Py_None); resultobj = Py_None;
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5964 int arg2 ;
5965 int arg3 ;
5966 bool arg4 ;
5967 PyObject * obj0 = 0 ;
5968 PyObject * obj1 = 0 ;
5969 PyObject * obj2 = 0 ;
5970 PyObject * obj3 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 arg2 = (int) SWIG_AsInt(obj1);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 arg3 = (int) SWIG_AsInt(obj2);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 arg4 = (bool) SWIG_AsBool(obj3);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 Py_INCREF(Py_None); resultobj = Py_None;
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6001 PyObject * obj0 = 0 ;
6002 char *kwnames[] = {
6003 (char *) "self", NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
6007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->Clear();
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 Py_INCREF(Py_None); resultobj = Py_None;
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6024 PyObject *resultobj;
6025 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6026 size_t arg2 = (size_t) 0 ;
6027 size_t arg3 = (size_t) 1 ;
6028 bool result;
6029 PyObject * obj0 = 0 ;
6030 PyObject * obj1 = 0 ;
6031 PyObject * obj2 = 0 ;
6032 char *kwnames[] = {
6033 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6034 };
6035
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6039 if (obj1) {
6040 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 if (obj2) {
6044 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 result = (bool)(arg1)->InsertRows(arg2,arg3);
6050
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj;
6065 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6066 size_t arg2 = (size_t) 1 ;
6067 bool result;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 char *kwnames[] = {
6071 (char *) "self",(char *) "numRows", NULL
6072 };
6073
6074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6077 if (obj1) {
6078 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 {
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 result = (bool)(arg1)->AppendRows(arg2);
6084
6085 wxPyEndAllowThreads(__tstate);
6086 if (PyErr_Occurred()) SWIG_fail;
6087 }
6088 {
6089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6090 }
6091 return resultobj;
6092 fail:
6093 return NULL;
6094 }
6095
6096
6097 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6098 PyObject *resultobj;
6099 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6100 size_t arg2 = (size_t) 0 ;
6101 size_t arg3 = (size_t) 1 ;
6102 bool result;
6103 PyObject * obj0 = 0 ;
6104 PyObject * obj1 = 0 ;
6105 PyObject * obj2 = 0 ;
6106 char *kwnames[] = {
6107 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6108 };
6109
6110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6113 if (obj1) {
6114 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 if (obj2) {
6118 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 result = (bool)(arg1)->DeleteRows(arg2,arg3);
6124
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 {
6129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6130 }
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6140 size_t arg2 = (size_t) 0 ;
6141 size_t arg3 = (size_t) 1 ;
6142 bool result;
6143 PyObject * obj0 = 0 ;
6144 PyObject * obj1 = 0 ;
6145 PyObject * obj2 = 0 ;
6146 char *kwnames[] = {
6147 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6148 };
6149
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6153 if (obj1) {
6154 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6155 if (PyErr_Occurred()) SWIG_fail;
6156 }
6157 if (obj2) {
6158 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 result = (bool)(arg1)->InsertCols(arg2,arg3);
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 {
6169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6170 }
6171 return resultobj;
6172 fail:
6173 return NULL;
6174 }
6175
6176
6177 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj;
6179 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6180 size_t arg2 = (size_t) 1 ;
6181 bool result;
6182 PyObject * obj0 = 0 ;
6183 PyObject * obj1 = 0 ;
6184 char *kwnames[] = {
6185 (char *) "self",(char *) "numCols", NULL
6186 };
6187
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6191 if (obj1) {
6192 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6193 if (PyErr_Occurred()) SWIG_fail;
6194 }
6195 {
6196 PyThreadState* __tstate = wxPyBeginAllowThreads();
6197 result = (bool)(arg1)->AppendCols(arg2);
6198
6199 wxPyEndAllowThreads(__tstate);
6200 if (PyErr_Occurred()) SWIG_fail;
6201 }
6202 {
6203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6204 }
6205 return resultobj;
6206 fail:
6207 return NULL;
6208 }
6209
6210
6211 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6212 PyObject *resultobj;
6213 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6214 size_t arg2 = (size_t) 0 ;
6215 size_t arg3 = (size_t) 1 ;
6216 bool result;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219 PyObject * obj2 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6227 if (obj1) {
6228 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 if (obj2) {
6232 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 }
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 result = (bool)(arg1)->DeleteCols(arg2,arg3);
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 {
6243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6244 }
6245 return resultobj;
6246 fail:
6247 return NULL;
6248 }
6249
6250
6251 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6252 PyObject *resultobj;
6253 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6254 int arg2 ;
6255 wxString result;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self",(char *) "row", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 arg2 = (int) SWIG_AsInt(obj1);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 result = (arg1)->GetRowLabelValue(arg2);
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 {
6275 #if wxUSE_UNICODE
6276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6277 #else
6278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6279 #endif
6280 }
6281 return resultobj;
6282 fail:
6283 return NULL;
6284 }
6285
6286
6287 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj;
6289 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6290 int arg2 ;
6291 wxString result;
6292 PyObject * obj0 = 0 ;
6293 PyObject * obj1 = 0 ;
6294 char *kwnames[] = {
6295 (char *) "self",(char *) "col", NULL
6296 };
6297
6298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
6299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6301 arg2 = (int) SWIG_AsInt(obj1);
6302 if (PyErr_Occurred()) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 result = (arg1)->GetColLabelValue(arg2);
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 {
6311 #if wxUSE_UNICODE
6312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6313 #else
6314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6315 #endif
6316 }
6317 return resultobj;
6318 fail:
6319 return NULL;
6320 }
6321
6322
6323 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj;
6325 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6326 int arg2 ;
6327 wxString *arg3 = 0 ;
6328 bool temp3 = False ;
6329 PyObject * obj0 = 0 ;
6330 PyObject * obj1 = 0 ;
6331 PyObject * obj2 = 0 ;
6332 char *kwnames[] = {
6333 (char *) "self",(char *) "row",(char *) "value", NULL
6334 };
6335
6336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6339 arg2 = (int) SWIG_AsInt(obj1);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 {
6342 arg3 = wxString_in_helper(obj2);
6343 if (arg3 == NULL) SWIG_fail;
6344 temp3 = True;
6345 }
6346 {
6347 PyThreadState* __tstate = wxPyBeginAllowThreads();
6348 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
6349
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 Py_INCREF(Py_None); resultobj = Py_None;
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return resultobj;
6359 fail:
6360 {
6361 if (temp3)
6362 delete arg3;
6363 }
6364 return NULL;
6365 }
6366
6367
6368 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj;
6370 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6371 int arg2 ;
6372 wxString *arg3 = 0 ;
6373 bool temp3 = False ;
6374 PyObject * obj0 = 0 ;
6375 PyObject * obj1 = 0 ;
6376 PyObject * obj2 = 0 ;
6377 char *kwnames[] = {
6378 (char *) "self",(char *) "col",(char *) "value", NULL
6379 };
6380
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6384 arg2 = (int) SWIG_AsInt(obj1);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 {
6387 arg3 = wxString_in_helper(obj2);
6388 if (arg3 == NULL) SWIG_fail;
6389 temp3 = True;
6390 }
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
6394
6395 wxPyEndAllowThreads(__tstate);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 Py_INCREF(Py_None); resultobj = Py_None;
6399 {
6400 if (temp3)
6401 delete arg3;
6402 }
6403 return resultobj;
6404 fail:
6405 {
6406 if (temp3)
6407 delete arg3;
6408 }
6409 return NULL;
6410 }
6411
6412
6413 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6416 bool result;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (bool)(arg1)->CanHaveAttributes();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6434 }
6435 return resultobj;
6436 fail:
6437 return NULL;
6438 }
6439
6440
6441 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6442 PyObject *resultobj;
6443 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6444 int arg2 ;
6445 int arg3 ;
6446 int arg4 ;
6447 wxGridCellAttr *result;
6448 PyObject * obj0 = 0 ;
6449 PyObject * obj1 = 0 ;
6450 PyObject * obj2 = 0 ;
6451 PyObject * obj3 = 0 ;
6452 char *kwnames[] = {
6453 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6454 };
6455
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6459 arg2 = (int) SWIG_AsInt(obj1);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 arg3 = (int) SWIG_AsInt(obj2);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 {
6473 resultobj = wxPyMake_wxGridCellAttr(result, 0);
6474 }
6475 return resultobj;
6476 fail:
6477 return NULL;
6478 }
6479
6480
6481 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6482 PyObject *resultobj;
6483 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6484 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6485 int arg3 ;
6486 int arg4 ;
6487 PyObject * obj0 = 0 ;
6488 PyObject * obj1 = 0 ;
6489 PyObject * obj2 = 0 ;
6490 PyObject * obj3 = 0 ;
6491 char *kwnames[] = {
6492 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6493 };
6494
6495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6500 arg3 = (int) SWIG_AsInt(obj2);
6501 if (PyErr_Occurred()) SWIG_fail;
6502 arg4 = (int) SWIG_AsInt(obj3);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 {
6505 PyThreadState* __tstate = wxPyBeginAllowThreads();
6506 (arg1)->SetAttr(arg2,arg3,arg4);
6507
6508 wxPyEndAllowThreads(__tstate);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 Py_INCREF(Py_None); resultobj = Py_None;
6512 return resultobj;
6513 fail:
6514 return NULL;
6515 }
6516
6517
6518 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj;
6520 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6521 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6522 int arg3 ;
6523 PyObject * obj0 = 0 ;
6524 PyObject * obj1 = 0 ;
6525 PyObject * obj2 = 0 ;
6526 char *kwnames[] = {
6527 (char *) "self",(char *) "attr",(char *) "row", NULL
6528 };
6529
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6533 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 arg3 = (int) SWIG_AsInt(obj2);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 (arg1)->SetRowAttr(arg2,arg3);
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 Py_INCREF(Py_None); resultobj = Py_None;
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6554 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6555 int arg3 ;
6556 PyObject * obj0 = 0 ;
6557 PyObject * obj1 = 0 ;
6558 PyObject * obj2 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self",(char *) "attr",(char *) "col", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6568 arg3 = (int) SWIG_AsInt(obj2);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 {
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 (arg1)->SetColAttr(arg2,arg3);
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 Py_INCREF(Py_None); resultobj = Py_None;
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
6585 PyObject *obj;
6586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6587 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
6588 Py_INCREF(obj);
6589 return Py_BuildValue((char *)"");
6590 }
6591 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
6592 PyObject *resultobj;
6593 wxPyGridTableBase *result;
6594 char *kwnames[] = {
6595 NULL
6596 };
6597
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (wxPyGridTableBase *)new wxPyGridTableBase();
6602
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1);
6607 return resultobj;
6608 fail:
6609 return NULL;
6610 }
6611
6612
6613 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6614 PyObject *resultobj;
6615 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6616 PyObject *arg2 = (PyObject *) 0 ;
6617 PyObject *arg3 = (PyObject *) 0 ;
6618 PyObject * obj0 = 0 ;
6619 PyObject * obj1 = 0 ;
6620 PyObject * obj2 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "self",(char *) "_class", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 arg2 = obj1;
6629 arg3 = obj2;
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 (arg1)->_setCallbackInfo(arg2,arg3);
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 Py_INCREF(Py_None); resultobj = Py_None;
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj;
6646 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6647 PyObject * obj0 = 0 ;
6648 char *kwnames[] = {
6649 (char *) "self", NULL
6650 };
6651
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
6653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6655 {
6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
6657 wxPyGridTableBase_Destroy(arg1);
6658
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 Py_INCREF(Py_None); resultobj = Py_None;
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6672 int arg2 ;
6673 int arg3 ;
6674 wxString result;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 PyObject * obj2 = 0 ;
6678 char *kwnames[] = {
6679 (char *) "self",(char *) "row",(char *) "col", NULL
6680 };
6681
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
6683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6685 arg2 = (int) SWIG_AsInt(obj1);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 arg3 = (int) SWIG_AsInt(obj2);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (arg1)->base_GetTypeName(arg2,arg3);
6692
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 #if wxUSE_UNICODE
6698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6699 #else
6700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6701 #endif
6702 }
6703 return resultobj;
6704 fail:
6705 return NULL;
6706 }
6707
6708
6709 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj;
6711 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6712 int arg2 ;
6713 int arg3 ;
6714 wxString *arg4 = 0 ;
6715 bool result;
6716 bool temp4 = False ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 PyObject * obj2 = 0 ;
6720 PyObject * obj3 = 0 ;
6721 char *kwnames[] = {
6722 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6723 };
6724
6725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6728 arg2 = (int) SWIG_AsInt(obj1);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 arg3 = (int) SWIG_AsInt(obj2);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 {
6733 arg4 = wxString_in_helper(obj3);
6734 if (arg4 == NULL) SWIG_fail;
6735 temp4 = True;
6736 }
6737 {
6738 PyThreadState* __tstate = wxPyBeginAllowThreads();
6739 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
6740
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 {
6745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6746 }
6747 {
6748 if (temp4)
6749 delete arg4;
6750 }
6751 return resultobj;
6752 fail:
6753 {
6754 if (temp4)
6755 delete arg4;
6756 }
6757 return NULL;
6758 }
6759
6760
6761 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj;
6763 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6764 int arg2 ;
6765 int arg3 ;
6766 wxString *arg4 = 0 ;
6767 bool result;
6768 bool temp4 = False ;
6769 PyObject * obj0 = 0 ;
6770 PyObject * obj1 = 0 ;
6771 PyObject * obj2 = 0 ;
6772 PyObject * obj3 = 0 ;
6773 char *kwnames[] = {
6774 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6775 };
6776
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6780 arg2 = (int) SWIG_AsInt(obj1);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 arg3 = (int) SWIG_AsInt(obj2);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 {
6785 arg4 = wxString_in_helper(obj3);
6786 if (arg4 == NULL) SWIG_fail;
6787 temp4 = True;
6788 }
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
6796 {
6797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6798 }
6799 {
6800 if (temp4)
6801 delete arg4;
6802 }
6803 return resultobj;
6804 fail:
6805 {
6806 if (temp4)
6807 delete arg4;
6808 }
6809 return NULL;
6810 }
6811
6812
6813 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj;
6815 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6816 PyObject * obj0 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6824 {
6825 PyThreadState* __tstate = wxPyBeginAllowThreads();
6826 (arg1)->base_Clear();
6827
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 Py_INCREF(Py_None); resultobj = Py_None;
6832 return resultobj;
6833 fail:
6834 return NULL;
6835 }
6836
6837
6838 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj;
6840 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6841 size_t arg2 = (size_t) 0 ;
6842 size_t arg3 = (size_t) 1 ;
6843 bool result;
6844 PyObject * obj0 = 0 ;
6845 PyObject * obj1 = 0 ;
6846 PyObject * obj2 = 0 ;
6847 char *kwnames[] = {
6848 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6849 };
6850
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6854 if (obj1) {
6855 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 if (obj2) {
6859 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 {
6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
6864 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6865
6866 wxPyEndAllowThreads(__tstate);
6867 if (PyErr_Occurred()) SWIG_fail;
6868 }
6869 {
6870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6871 }
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj;
6880 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6881 size_t arg2 = (size_t) 1 ;
6882 bool result;
6883 PyObject * obj0 = 0 ;
6884 PyObject * obj1 = 0 ;
6885 char *kwnames[] = {
6886 (char *) "self",(char *) "numRows", NULL
6887 };
6888
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6892 if (obj1) {
6893 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (bool)(arg1)->base_AppendRows(arg2);
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 {
6904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6905 }
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6915 size_t arg2 = (size_t) 0 ;
6916 size_t arg3 = (size_t) 1 ;
6917 bool result;
6918 PyObject * obj0 = 0 ;
6919 PyObject * obj1 = 0 ;
6920 PyObject * obj2 = 0 ;
6921 char *kwnames[] = {
6922 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6923 };
6924
6925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6928 if (obj1) {
6929 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 if (obj2) {
6933 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 {
6937 PyThreadState* __tstate = wxPyBeginAllowThreads();
6938 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6939
6940 wxPyEndAllowThreads(__tstate);
6941 if (PyErr_Occurred()) SWIG_fail;
6942 }
6943 {
6944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6945 }
6946 return resultobj;
6947 fail:
6948 return NULL;
6949 }
6950
6951
6952 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj;
6954 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6955 size_t arg2 = (size_t) 0 ;
6956 size_t arg3 = (size_t) 1 ;
6957 bool result;
6958 PyObject * obj0 = 0 ;
6959 PyObject * obj1 = 0 ;
6960 PyObject * obj2 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6968 if (obj1) {
6969 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 if (obj2) {
6973 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
6976 {
6977 PyThreadState* __tstate = wxPyBeginAllowThreads();
6978 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6979
6980 wxPyEndAllowThreads(__tstate);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 {
6984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6985 }
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj;
6994 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6995 size_t arg2 = (size_t) 1 ;
6996 bool result;
6997 PyObject * obj0 = 0 ;
6998 PyObject * obj1 = 0 ;
6999 char *kwnames[] = {
7000 (char *) "self",(char *) "numCols", NULL
7001 };
7002
7003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
7004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7006 if (obj1) {
7007 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (bool)(arg1)->base_AppendCols(arg2);
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 {
7018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7019 }
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7029 size_t arg2 = (size_t) 0 ;
7030 size_t arg3 = (size_t) 1 ;
7031 bool result;
7032 PyObject * obj0 = 0 ;
7033 PyObject * obj1 = 0 ;
7034 PyObject * obj2 = 0 ;
7035 char *kwnames[] = {
7036 (char *) "self",(char *) "pos",(char *) "numCols", NULL
7037 };
7038
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
7040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7042 if (obj1) {
7043 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 if (obj2) {
7047 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 {
7051 PyThreadState* __tstate = wxPyBeginAllowThreads();
7052 result = (bool)(arg1)->base_DeleteCols(arg2,arg3);
7053
7054 wxPyEndAllowThreads(__tstate);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 }
7057 {
7058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7059 }
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj;
7068 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7069 int arg2 ;
7070 wxString result;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "self",(char *) "row", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
7078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7080 arg2 = (int) SWIG_AsInt(obj1);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 result = (arg1)->base_GetRowLabelValue(arg2);
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
7089 {
7090 #if wxUSE_UNICODE
7091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7092 #else
7093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7094 #endif
7095 }
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7103 PyObject *resultobj;
7104 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7105 int arg2 ;
7106 wxString result;
7107 PyObject * obj0 = 0 ;
7108 PyObject * obj1 = 0 ;
7109 char *kwnames[] = {
7110 (char *) "self",(char *) "col", NULL
7111 };
7112
7113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
7114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7116 arg2 = (int) SWIG_AsInt(obj1);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 {
7119 PyThreadState* __tstate = wxPyBeginAllowThreads();
7120 result = (arg1)->base_GetColLabelValue(arg2);
7121
7122 wxPyEndAllowThreads(__tstate);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 }
7125 {
7126 #if wxUSE_UNICODE
7127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7128 #else
7129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7130 #endif
7131 }
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7141 int arg2 ;
7142 wxString *arg3 = 0 ;
7143 bool temp3 = False ;
7144 PyObject * obj0 = 0 ;
7145 PyObject * obj1 = 0 ;
7146 PyObject * obj2 = 0 ;
7147 char *kwnames[] = {
7148 (char *) "self",(char *) "row",(char *) "value", NULL
7149 };
7150
7151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
7152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7154 arg2 = (int) SWIG_AsInt(obj1);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 {
7157 arg3 = wxString_in_helper(obj2);
7158 if (arg3 == NULL) SWIG_fail;
7159 temp3 = True;
7160 }
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 Py_INCREF(Py_None); resultobj = Py_None;
7169 {
7170 if (temp3)
7171 delete arg3;
7172 }
7173 return resultobj;
7174 fail:
7175 {
7176 if (temp3)
7177 delete arg3;
7178 }
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7186 int arg2 ;
7187 wxString *arg3 = 0 ;
7188 bool temp3 = False ;
7189 PyObject * obj0 = 0 ;
7190 PyObject * obj1 = 0 ;
7191 PyObject * obj2 = 0 ;
7192 char *kwnames[] = {
7193 (char *) "self",(char *) "col",(char *) "value", NULL
7194 };
7195
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
7197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7199 arg2 = (int) SWIG_AsInt(obj1);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 {
7202 arg3 = wxString_in_helper(obj2);
7203 if (arg3 == NULL) SWIG_fail;
7204 temp3 = True;
7205 }
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 Py_INCREF(Py_None); resultobj = Py_None;
7214 {
7215 if (temp3)
7216 delete arg3;
7217 }
7218 return resultobj;
7219 fail:
7220 {
7221 if (temp3)
7222 delete arg3;
7223 }
7224 return NULL;
7225 }
7226
7227
7228 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
7229 PyObject *resultobj;
7230 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7231 bool result;
7232 PyObject * obj0 = 0 ;
7233 char *kwnames[] = {
7234 (char *) "self", NULL
7235 };
7236
7237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
7238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 result = (bool)(arg1)->base_CanHaveAttributes();
7243
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 {
7248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7249 }
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7259 int arg2 ;
7260 int arg3 ;
7261 int arg4 ;
7262 wxGridCellAttr *result;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 PyObject * obj2 = 0 ;
7266 PyObject * obj3 = 0 ;
7267 char *kwnames[] = {
7268 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
7269 };
7270
7271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7274 arg2 = (int) SWIG_AsInt(obj1);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 arg3 = (int) SWIG_AsInt(obj2);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 {
7281 PyThreadState* __tstate = wxPyBeginAllowThreads();
7282 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
7283
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 {
7288 resultobj = wxPyMake_wxGridCellAttr(result, 0);
7289 }
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj;
7298 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7299 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7300 int arg3 ;
7301 int arg4 ;
7302 PyObject * obj0 = 0 ;
7303 PyObject * obj1 = 0 ;
7304 PyObject * obj2 = 0 ;
7305 PyObject * obj3 = 0 ;
7306 char *kwnames[] = {
7307 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
7308 };
7309
7310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7315 arg3 = (int) SWIG_AsInt(obj2);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 arg4 = (int) SWIG_AsInt(obj3);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 (arg1)->base_SetAttr(arg2,arg3,arg4);
7322
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 Py_INCREF(Py_None); resultobj = Py_None;
7327 return resultobj;
7328 fail:
7329 return NULL;
7330 }
7331
7332
7333 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7334 PyObject *resultobj;
7335 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7336 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7337 int arg3 ;
7338 PyObject * obj0 = 0 ;
7339 PyObject * obj1 = 0 ;
7340 PyObject * obj2 = 0 ;
7341 char *kwnames[] = {
7342 (char *) "self",(char *) "attr",(char *) "row", NULL
7343 };
7344
7345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7350 arg3 = (int) SWIG_AsInt(obj2);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 (arg1)->base_SetRowAttr(arg2,arg3);
7355
7356 wxPyEndAllowThreads(__tstate);
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 Py_INCREF(Py_None); resultobj = Py_None;
7360 return resultobj;
7361 fail:
7362 return NULL;
7363 }
7364
7365
7366 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj;
7368 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7369 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7370 int arg3 ;
7371 PyObject * obj0 = 0 ;
7372 PyObject * obj1 = 0 ;
7373 PyObject * obj2 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "self",(char *) "attr",(char *) "col", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7383 arg3 = (int) SWIG_AsInt(obj2);
7384 if (PyErr_Occurred()) SWIG_fail;
7385 {
7386 PyThreadState* __tstate = wxPyBeginAllowThreads();
7387 (arg1)->base_SetColAttr(arg2,arg3);
7388
7389 wxPyEndAllowThreads(__tstate);
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 Py_INCREF(Py_None); resultobj = Py_None;
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
7400 PyObject *obj;
7401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7402 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
7403 Py_INCREF(obj);
7404 return Py_BuildValue((char *)"");
7405 }
7406 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7407 PyObject *resultobj;
7408 int arg1 = (int) 0 ;
7409 int arg2 = (int) 0 ;
7410 wxGridStringTable *result;
7411 PyObject * obj0 = 0 ;
7412 PyObject * obj1 = 0 ;
7413 char *kwnames[] = {
7414 (char *) "numRows",(char *) "numCols", NULL
7415 };
7416
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail;
7418 if (obj0) {
7419 arg1 = (int) SWIG_AsInt(obj0);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 if (obj1) {
7423 arg2 = (int) SWIG_AsInt(obj1);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1);
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
7441 PyObject *obj;
7442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7443 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
7444 Py_INCREF(obj);
7445 return Py_BuildValue((char *)"");
7446 }
7447 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
7450 int arg2 ;
7451 int arg3 = (int) -1 ;
7452 int arg4 = (int) -1 ;
7453 wxGridTableMessage *result;
7454 PyObject * obj0 = 0 ;
7455 PyObject * obj1 = 0 ;
7456 PyObject * obj2 = 0 ;
7457 PyObject * obj3 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
7460 };
7461
7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
7464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7465 arg2 = (int) SWIG_AsInt(obj1);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 if (obj2) {
7468 arg3 = (int) SWIG_AsInt(obj2);
7469 if (PyErr_Occurred()) SWIG_fail;
7470 }
7471 if (obj3) {
7472 arg4 = (int) SWIG_AsInt(obj3);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1);
7483 return resultobj;
7484 fail:
7485 return NULL;
7486 }
7487
7488
7489 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj;
7491 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7492 PyObject * obj0 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 {
7501 PyThreadState* __tstate = wxPyBeginAllowThreads();
7502 delete arg1;
7503
7504 wxPyEndAllowThreads(__tstate);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
7507 Py_INCREF(Py_None); resultobj = Py_None;
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7517 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj1 = 0 ;
7520 char *kwnames[] = {
7521 (char *) "self",(char *) "table", NULL
7522 };
7523
7524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
7525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7527 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase,
7528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 (arg1)->SetTableObject(arg2);
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 Py_INCREF(Py_None); resultobj = Py_None;
7537 return resultobj;
7538 fail:
7539 return NULL;
7540 }
7541
7542
7543 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj;
7545 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7546 wxGridTableBase *result;
7547 PyObject * obj0 = 0 ;
7548 char *kwnames[] = {
7549 (char *) "self", NULL
7550 };
7551
7552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
7553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 {
7563 resultobj = wxPyMake_wxGridTableBase(result, 0);
7564 }
7565 return resultobj;
7566 fail:
7567 return NULL;
7568 }
7569
7570
7571 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7572 PyObject *resultobj;
7573 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7574 int arg2 ;
7575 PyObject * obj0 = 0 ;
7576 PyObject * obj1 = 0 ;
7577 char *kwnames[] = {
7578 (char *) "self",(char *) "id", NULL
7579 };
7580
7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail;
7582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7584 arg2 = (int) SWIG_AsInt(obj1);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 (arg1)->SetId(arg2);
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 Py_INCREF(Py_None); resultobj = Py_None;
7594 return resultobj;
7595 fail:
7596 return NULL;
7597 }
7598
7599
7600 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7603 int result;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "self", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
7610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (int)(arg1)->GetId();
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_FromInt((int)result);
7620 return resultobj;
7621 fail:
7622 return NULL;
7623 }
7624
7625
7626 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7627 PyObject *resultobj;
7628 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7629 int arg2 ;
7630 PyObject * obj0 = 0 ;
7631 PyObject * obj1 = 0 ;
7632 char *kwnames[] = {
7633 (char *) "self",(char *) "comInt1", NULL
7634 };
7635
7636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail;
7637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7639 arg2 = (int) SWIG_AsInt(obj1);
7640 if (PyErr_Occurred()) SWIG_fail;
7641 {
7642 PyThreadState* __tstate = wxPyBeginAllowThreads();
7643 (arg1)->SetCommandInt(arg2);
7644
7645 wxPyEndAllowThreads(__tstate);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 Py_INCREF(Py_None); resultobj = Py_None;
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj;
7657 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7658 int result;
7659 PyObject * obj0 = 0 ;
7660 char *kwnames[] = {
7661 (char *) "self", NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
7665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7667 {
7668 PyThreadState* __tstate = wxPyBeginAllowThreads();
7669 result = (int)(arg1)->GetCommandInt();
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 resultobj = SWIG_FromInt((int)result);
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7682 PyObject *resultobj;
7683 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7684 int arg2 ;
7685 PyObject * obj0 = 0 ;
7686 PyObject * obj1 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "self",(char *) "comInt2", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail;
7692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7694 arg2 = (int) SWIG_AsInt(obj1);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 {
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 (arg1)->SetCommandInt2(arg2);
7699
7700 wxPyEndAllowThreads(__tstate);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 Py_INCREF(Py_None); resultobj = Py_None;
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj;
7712 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7713 int result;
7714 PyObject * obj0 = 0 ;
7715 char *kwnames[] = {
7716 (char *) "self", NULL
7717 };
7718
7719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
7720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7722 {
7723 PyThreadState* __tstate = wxPyBeginAllowThreads();
7724 result = (int)(arg1)->GetCommandInt2();
7725
7726 wxPyEndAllowThreads(__tstate);
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 resultobj = SWIG_FromInt((int)result);
7730 return resultobj;
7731 fail:
7732 return NULL;
7733 }
7734
7735
7736 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
7737 PyObject *obj;
7738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7739 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
7740 Py_INCREF(obj);
7741 return Py_BuildValue((char *)"");
7742 }
7743 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 int arg1 = (int) -1 ;
7746 int arg2 = (int) -1 ;
7747 wxGridCellCoords *result;
7748 PyObject * obj0 = 0 ;
7749 PyObject * obj1 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "r",(char *) "c", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail;
7755 if (obj0) {
7756 arg1 = (int) SWIG_AsInt(obj0);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 if (obj1) {
7760 arg2 = (int) SWIG_AsInt(obj1);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 {
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
7766
7767 wxPyEndAllowThreads(__tstate);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1);
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject *resultobj;
7779 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7780 PyObject * obj0 = 0 ;
7781 char *kwnames[] = {
7782 (char *) "self", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
7786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7788 {
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 delete arg1;
7791
7792 wxPyEndAllowThreads(__tstate);
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 Py_INCREF(Py_None); resultobj = Py_None;
7796 return resultobj;
7797 fail:
7798 return NULL;
7799 }
7800
7801
7802 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7805 int result;
7806 PyObject * obj0 = 0 ;
7807 char *kwnames[] = {
7808 (char *) "self", NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
7812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7814 {
7815 PyThreadState* __tstate = wxPyBeginAllowThreads();
7816 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
7817
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_FromInt((int)result);
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj;
7830 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7831 int arg2 ;
7832 PyObject * obj0 = 0 ;
7833 PyObject * obj1 = 0 ;
7834 char *kwnames[] = {
7835 (char *) "self",(char *) "n", NULL
7836 };
7837
7838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail;
7839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7841 arg2 = (int) SWIG_AsInt(obj1);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 (arg1)->SetRow(arg2);
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) SWIG_fail;
7849 }
7850 Py_INCREF(Py_None); resultobj = Py_None;
7851 return resultobj;
7852 fail:
7853 return NULL;
7854 }
7855
7856
7857 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7858 PyObject *resultobj;
7859 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7860 int result;
7861 PyObject * obj0 = 0 ;
7862 char *kwnames[] = {
7863 (char *) "self", NULL
7864 };
7865
7866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
7867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7869 {
7870 PyThreadState* __tstate = wxPyBeginAllowThreads();
7871 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
7872
7873 wxPyEndAllowThreads(__tstate);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_FromInt((int)result);
7877 return resultobj;
7878 fail:
7879 return NULL;
7880 }
7881
7882
7883 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7884 PyObject *resultobj;
7885 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7886 int arg2 ;
7887 PyObject * obj0 = 0 ;
7888 PyObject * obj1 = 0 ;
7889 char *kwnames[] = {
7890 (char *) "self",(char *) "n", NULL
7891 };
7892
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail;
7894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7896 arg2 = (int) SWIG_AsInt(obj1);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 (arg1)->SetCol(arg2);
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 Py_INCREF(Py_None); resultobj = Py_None;
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7915 int arg2 ;
7916 int arg3 ;
7917 PyObject * obj0 = 0 ;
7918 PyObject * obj1 = 0 ;
7919 PyObject * obj2 = 0 ;
7920 char *kwnames[] = {
7921 (char *) "self",(char *) "row",(char *) "col", NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
7925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7927 arg2 = (int) SWIG_AsInt(obj1);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 arg3 = (int) SWIG_AsInt(obj2);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 (arg1)->Set(arg2,arg3);
7934
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 Py_INCREF(Py_None); resultobj = Py_None;
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7948 wxGridCellCoords *arg2 = 0 ;
7949 bool result;
7950 wxGridCellCoords temp2 ;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 char *kwnames[] = {
7954 (char *) "self",(char *) "other", NULL
7955 };
7956
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7960 {
7961 arg2 = &temp2;
7962 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
7963 }
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7967
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj;
7982 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7983 wxGridCellCoords *arg2 = 0 ;
7984 bool result;
7985 wxGridCellCoords temp2 ;
7986 PyObject * obj0 = 0 ;
7987 PyObject * obj1 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "self",(char *) "other", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7995 {
7996 arg2 = &temp2;
7997 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
7998 }
7999 {
8000 PyThreadState* __tstate = wxPyBeginAllowThreads();
8001 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
8002
8003 wxPyEndAllowThreads(__tstate);
8004 if (PyErr_Occurred()) SWIG_fail;
8005 }
8006 {
8007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8008 }
8009 return resultobj;
8010 fail:
8011 return NULL;
8012 }
8013
8014
8015 static PyObject *_wrap_GridCellCoords_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj;
8017 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
8018 PyObject *result;
8019 PyObject * obj0 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "self", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_Get",kwnames,&obj0)) goto fail;
8025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
8026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (PyObject *)wxGridCellCoords_Get(arg1);
8030
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 resultobj = result;
8035 return resultobj;
8036 fail:
8037 return NULL;
8038 }
8039
8040
8041 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
8042 PyObject *obj;
8043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8044 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
8045 Py_INCREF(obj);
8046 return Py_BuildValue((char *)"");
8047 }
8048 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj;
8050 wxWindow *arg1 = (wxWindow *) 0 ;
8051 int arg2 = (int) -1 ;
8052 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8053 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8054 wxSize const &arg4_defvalue = wxDefaultSize ;
8055 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8056 long arg5 = (long) wxWANTS_CHARS ;
8057 wxString const &arg6_defvalue = wxPyPanelNameStr ;
8058 wxString *arg6 = (wxString *) &arg6_defvalue ;
8059 wxGrid *result;
8060 wxPoint temp3 ;
8061 wxSize temp4 ;
8062 bool temp6 = False ;
8063 PyObject * obj0 = 0 ;
8064 PyObject * obj1 = 0 ;
8065 PyObject * obj2 = 0 ;
8066 PyObject * obj3 = 0 ;
8067 PyObject * obj4 = 0 ;
8068 PyObject * obj5 = 0 ;
8069 char *kwnames[] = {
8070 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8071 };
8072
8073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8076 if (obj1) {
8077 arg2 = (int) SWIG_AsInt(obj1);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 if (obj2) {
8081 {
8082 arg3 = &temp3;
8083 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8084 }
8085 }
8086 if (obj3) {
8087 {
8088 arg4 = &temp4;
8089 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8090 }
8091 }
8092 if (obj4) {
8093 arg5 = (long) SWIG_AsLong(obj4);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 if (obj5) {
8097 {
8098 arg6 = wxString_in_helper(obj5);
8099 if (arg6 == NULL) SWIG_fail;
8100 temp6 = True;
8101 }
8102 }
8103 {
8104 if (!wxPyCheckForApp()) SWIG_fail;
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 {
8112 resultobj = wxPyMake_wxObject(result, 1);
8113 }
8114 {
8115 if (temp6)
8116 delete arg6;
8117 }
8118 return resultobj;
8119 fail:
8120 {
8121 if (temp6)
8122 delete arg6;
8123 }
8124 return NULL;
8125 }
8126
8127
8128 static PyObject *_wrap_new_PreGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8129 PyObject *resultobj;
8130 wxGrid *result;
8131 char *kwnames[] = {
8132 NULL
8133 };
8134
8135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGrid",kwnames)) goto fail;
8136 {
8137 if (!wxPyCheckForApp()) SWIG_fail;
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 result = (wxGrid *)new wxGrid();
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 {
8145 resultobj = wxPyMake_wxObject(result, 1);
8146 }
8147 return resultobj;
8148 fail:
8149 return NULL;
8150 }
8151
8152
8153 static PyObject *_wrap_Grid_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj;
8155 wxGrid *arg1 = (wxGrid *) 0 ;
8156 wxWindow *arg2 = (wxWindow *) 0 ;
8157 int arg3 = (int) -1 ;
8158 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8159 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8160 wxSize const &arg5_defvalue = wxDefaultSize ;
8161 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8162 long arg6 = (long) wxWANTS_CHARS ;
8163 wxString const &arg7_defvalue = wxPyPanelNameStr ;
8164 wxString *arg7 = (wxString *) &arg7_defvalue ;
8165 bool result;
8166 wxPoint temp4 ;
8167 wxSize temp5 ;
8168 bool temp7 = False ;
8169 PyObject * obj0 = 0 ;
8170 PyObject * obj1 = 0 ;
8171 PyObject * obj2 = 0 ;
8172 PyObject * obj3 = 0 ;
8173 PyObject * obj4 = 0 ;
8174 PyObject * obj5 = 0 ;
8175 PyObject * obj6 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Grid_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8183 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8185 if (obj2) {
8186 arg3 = (int) SWIG_AsInt(obj2);
8187 if (PyErr_Occurred()) SWIG_fail;
8188 }
8189 if (obj3) {
8190 {
8191 arg4 = &temp4;
8192 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8193 }
8194 }
8195 if (obj4) {
8196 {
8197 arg5 = &temp5;
8198 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8199 }
8200 }
8201 if (obj5) {
8202 arg6 = (long) SWIG_AsLong(obj5);
8203 if (PyErr_Occurred()) SWIG_fail;
8204 }
8205 if (obj6) {
8206 {
8207 arg7 = wxString_in_helper(obj6);
8208 if (arg7 == NULL) SWIG_fail;
8209 temp7 = True;
8210 }
8211 }
8212 {
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8215
8216 wxPyEndAllowThreads(__tstate);
8217 if (PyErr_Occurred()) SWIG_fail;
8218 }
8219 {
8220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8221 }
8222 {
8223 if (temp7)
8224 delete arg7;
8225 }
8226 return resultobj;
8227 fail:
8228 {
8229 if (temp7)
8230 delete arg7;
8231 }
8232 return NULL;
8233 }
8234
8235
8236 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8237 PyObject *resultobj;
8238 wxGrid *arg1 = (wxGrid *) 0 ;
8239 int arg2 ;
8240 int arg3 ;
8241 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
8242 bool result;
8243 PyObject * obj0 = 0 ;
8244 PyObject * obj1 = 0 ;
8245 PyObject * obj2 = 0 ;
8246 PyObject * obj3 = 0 ;
8247 char *kwnames[] = {
8248 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
8249 };
8250
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8254 arg2 = (int) SWIG_AsInt(obj1);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 arg3 = (int) SWIG_AsInt(obj2);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 if (obj3) {
8259 arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 }
8269 {
8270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8271 }
8272 return resultobj;
8273 fail:
8274 return NULL;
8275 }
8276
8277
8278 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8279 PyObject *resultobj;
8280 wxGrid *arg1 = (wxGrid *) 0 ;
8281 WXGRIDSELECTIONMODES arg2 ;
8282 PyObject * obj0 = 0 ;
8283 PyObject * obj1 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "self",(char *) "selmode", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail;
8289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8291 arg2 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj1);
8292 if (PyErr_Occurred()) SWIG_fail;
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 (arg1)->SetSelectionMode(arg2);
8296
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 Py_INCREF(Py_None); resultobj = Py_None;
8301 return resultobj;
8302 fail:
8303 return NULL;
8304 }
8305
8306
8307 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8308 PyObject *resultobj;
8309 wxGrid *arg1 = (wxGrid *) 0 ;
8310 WXGRIDSELECTIONMODES result;
8311 PyObject * obj0 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_FromInt((int)result);
8327 return resultobj;
8328 fail:
8329 return NULL;
8330 }
8331
8332
8333 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj;
8335 wxGrid *arg1 = (wxGrid *) 0 ;
8336 int result;
8337 PyObject * obj0 = 0 ;
8338 char *kwnames[] = {
8339 (char *) "self", NULL
8340 };
8341
8342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
8343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8345 {
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 result = (int)(arg1)->GetNumberRows();
8348
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 resultobj = SWIG_FromInt((int)result);
8353 return resultobj;
8354 fail:
8355 return NULL;
8356 }
8357
8358
8359 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj;
8361 wxGrid *arg1 = (wxGrid *) 0 ;
8362 int result;
8363 PyObject * obj0 = 0 ;
8364 char *kwnames[] = {
8365 (char *) "self", NULL
8366 };
8367
8368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
8369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8371 {
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 result = (int)(arg1)->GetNumberCols();
8374
8375 wxPyEndAllowThreads(__tstate);
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 resultobj = SWIG_FromInt((int)result);
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8386 PyObject *resultobj;
8387 wxGrid *arg1 = (wxGrid *) 0 ;
8388 wxGridTableMessage *arg2 = 0 ;
8389 bool result;
8390 PyObject * obj0 = 0 ;
8391 PyObject * obj1 = 0 ;
8392 char *kwnames[] = {
8393 (char *) "self","arg2", NULL
8394 };
8395
8396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
8397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage,
8400 SWIG_POINTER_EXCEPTION | 0)) == -1)
8401 SWIG_fail;
8402 if (arg2 == NULL) {
8403 PyErr_SetString(PyExc_TypeError,"null reference");
8404 SWIG_fail;
8405 }
8406 {
8407 PyThreadState* __tstate = wxPyBeginAllowThreads();
8408 result = (bool)(arg1)->ProcessTableMessage(*arg2);
8409
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 {
8414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8415 }
8416 return resultobj;
8417 fail:
8418 return NULL;
8419 }
8420
8421
8422 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxGrid *arg1 = (wxGrid *) 0 ;
8425 wxGridTableBase *result;
8426 PyObject * obj0 = 0 ;
8427 char *kwnames[] = {
8428 (char *) "self", NULL
8429 };
8430
8431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
8432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8434 {
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
8437
8438 wxPyEndAllowThreads(__tstate);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 {
8442 resultobj = wxPyMake_wxGridTableBase(result, 0);
8443 }
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxGrid *arg1 = (wxGrid *) 0 ;
8453 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
8454 bool arg3 = (bool) False ;
8455 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
8456 bool result;
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 PyObject * obj2 = 0 ;
8460 PyObject * obj3 = 0 ;
8461 char *kwnames[] = {
8462 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
8463 };
8464
8465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase,
8469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8470 if (obj2) {
8471 arg3 = (bool) SWIG_AsBool(obj2);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 if (obj3) {
8475 arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 {
8479 PyThreadState* __tstate = wxPyBeginAllowThreads();
8480 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
8481
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 {
8486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8487 }
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj;
8496 wxGrid *arg1 = (wxGrid *) 0 ;
8497 PyObject * obj0 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
8503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 (arg1)->ClearGrid();
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 Py_INCREF(Py_None); resultobj = Py_None;
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj;
8521 wxGrid *arg1 = (wxGrid *) 0 ;
8522 int arg2 = (int) 0 ;
8523 int arg3 = (int) 1 ;
8524 bool arg4 = (bool) True ;
8525 bool result;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 PyObject * obj2 = 0 ;
8529 PyObject * obj3 = 0 ;
8530 char *kwnames[] = {
8531 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8532 };
8533
8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8537 if (obj1) {
8538 arg2 = (int) SWIG_AsInt(obj1);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 if (obj2) {
8542 arg3 = (int) SWIG_AsInt(obj2);
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 if (obj3) {
8546 arg4 = (bool) SWIG_AsBool(obj3);
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 {
8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
8551 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
8552
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 {
8557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8558 }
8559 return resultobj;
8560 fail:
8561 return NULL;
8562 }
8563
8564
8565 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8566 PyObject *resultobj;
8567 wxGrid *arg1 = (wxGrid *) 0 ;
8568 int arg2 = (int) 1 ;
8569 bool arg3 = (bool) True ;
8570 bool result;
8571 PyObject * obj0 = 0 ;
8572 PyObject * obj1 = 0 ;
8573 PyObject * obj2 = 0 ;
8574 char *kwnames[] = {
8575 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
8576 };
8577
8578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
8579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8581 if (obj1) {
8582 arg2 = (int) SWIG_AsInt(obj1);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 if (obj2) {
8586 arg3 = (bool) SWIG_AsBool(obj2);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 {
8590 PyThreadState* __tstate = wxPyBeginAllowThreads();
8591 result = (bool)(arg1)->AppendRows(arg2,arg3);
8592
8593 wxPyEndAllowThreads(__tstate);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 }
8596 {
8597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8598 }
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxGrid *arg1 = (wxGrid *) 0 ;
8608 int arg2 = (int) 0 ;
8609 int arg3 = (int) 1 ;
8610 bool arg4 = (bool) True ;
8611 bool result;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 PyObject * obj2 = 0 ;
8615 PyObject * obj3 = 0 ;
8616 char *kwnames[] = {
8617 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8618 };
8619
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8623 if (obj1) {
8624 arg2 = (int) SWIG_AsInt(obj1);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 if (obj2) {
8628 arg3 = (int) SWIG_AsInt(obj2);
8629 if (PyErr_Occurred()) SWIG_fail;
8630 }
8631 if (obj3) {
8632 arg4 = (bool) SWIG_AsBool(obj3);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 {
8636 PyThreadState* __tstate = wxPyBeginAllowThreads();
8637 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
8638
8639 wxPyEndAllowThreads(__tstate);
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 {
8643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8644 }
8645 return resultobj;
8646 fail:
8647 return NULL;
8648 }
8649
8650
8651 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8652 PyObject *resultobj;
8653 wxGrid *arg1 = (wxGrid *) 0 ;
8654 int arg2 = (int) 0 ;
8655 int arg3 = (int) 1 ;
8656 bool arg4 = (bool) True ;
8657 bool result;
8658 PyObject * obj0 = 0 ;
8659 PyObject * obj1 = 0 ;
8660 PyObject * obj2 = 0 ;
8661 PyObject * obj3 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8664 };
8665
8666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8669 if (obj1) {
8670 arg2 = (int) SWIG_AsInt(obj1);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 if (obj2) {
8674 arg3 = (int) SWIG_AsInt(obj2);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 if (obj3) {
8678 arg4 = (bool) SWIG_AsBool(obj3);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 {
8682 PyThreadState* __tstate = wxPyBeginAllowThreads();
8683 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
8684
8685 wxPyEndAllowThreads(__tstate);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 {
8689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8690 }
8691 return resultobj;
8692 fail:
8693 return NULL;
8694 }
8695
8696
8697 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8698 PyObject *resultobj;
8699 wxGrid *arg1 = (wxGrid *) 0 ;
8700 int arg2 = (int) 1 ;
8701 bool arg3 = (bool) True ;
8702 bool result;
8703 PyObject * obj0 = 0 ;
8704 PyObject * obj1 = 0 ;
8705 PyObject * obj2 = 0 ;
8706 char *kwnames[] = {
8707 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
8708 };
8709
8710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
8711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8713 if (obj1) {
8714 arg2 = (int) SWIG_AsInt(obj1);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 if (obj2) {
8718 arg3 = (bool) SWIG_AsBool(obj2);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = (bool)(arg1)->AppendCols(arg2,arg3);
8724
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 {
8729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8730 }
8731 return resultobj;
8732 fail:
8733 return NULL;
8734 }
8735
8736
8737 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj;
8739 wxGrid *arg1 = (wxGrid *) 0 ;
8740 int arg2 = (int) 0 ;
8741 int arg3 = (int) 1 ;
8742 bool arg4 = (bool) True ;
8743 bool result;
8744 PyObject * obj0 = 0 ;
8745 PyObject * obj1 = 0 ;
8746 PyObject * obj2 = 0 ;
8747 PyObject * obj3 = 0 ;
8748 char *kwnames[] = {
8749 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8750 };
8751
8752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8755 if (obj1) {
8756 arg2 = (int) SWIG_AsInt(obj1);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 if (obj2) {
8760 arg3 = (int) SWIG_AsInt(obj2);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 if (obj3) {
8764 arg4 = (bool) SWIG_AsBool(obj3);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 }
8767 {
8768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8769 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
8770
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 {
8775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8776 }
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
8784 PyObject *resultobj;
8785 wxGrid *arg1 = (wxGrid *) 0 ;
8786 wxDC *arg2 = 0 ;
8787 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
8788 PyObject * obj0 = 0 ;
8789 PyObject * obj1 = 0 ;
8790 PyObject * obj2 = 0 ;
8791 char *kwnames[] = {
8792 (char *) "self",(char *) "dc",(char *) "attr", NULL
8793 };
8794
8795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
8796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8799 SWIG_POINTER_EXCEPTION | 0)) == -1)
8800 SWIG_fail;
8801 if (arg2 == NULL) {
8802 PyErr_SetString(PyExc_TypeError,"null reference");
8803 SWIG_fail;
8804 }
8805 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
8806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 Py_INCREF(Py_None); resultobj = Py_None;
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxGrid *arg1 = (wxGrid *) 0 ;
8824 wxDC *arg2 = 0 ;
8825 wxString *arg3 = 0 ;
8826 wxRect *arg4 = 0 ;
8827 int arg5 = (int) wxLEFT ;
8828 int arg6 = (int) wxTOP ;
8829 int arg7 = (int) wxHORIZONTAL ;
8830 bool temp3 = False ;
8831 wxRect temp4 ;
8832 PyObject * obj0 = 0 ;
8833 PyObject * obj1 = 0 ;
8834 PyObject * obj2 = 0 ;
8835 PyObject * obj3 = 0 ;
8836 PyObject * obj4 = 0 ;
8837 PyObject * obj5 = 0 ;
8838 PyObject * obj6 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8847 SWIG_POINTER_EXCEPTION | 0)) == -1)
8848 SWIG_fail;
8849 if (arg2 == NULL) {
8850 PyErr_SetString(PyExc_TypeError,"null reference");
8851 SWIG_fail;
8852 }
8853 {
8854 arg3 = wxString_in_helper(obj2);
8855 if (arg3 == NULL) SWIG_fail;
8856 temp3 = True;
8857 }
8858 {
8859 arg4 = &temp4;
8860 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
8861 }
8862 if (obj4) {
8863 arg5 = (int) SWIG_AsInt(obj4);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 if (obj5) {
8867 arg6 = (int) SWIG_AsInt(obj5);
8868 if (PyErr_Occurred()) SWIG_fail;
8869 }
8870 if (obj6) {
8871 arg7 = (int) SWIG_AsInt(obj6);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 Py_INCREF(Py_None); resultobj = Py_None;
8882 {
8883 if (temp3)
8884 delete arg3;
8885 }
8886 return resultobj;
8887 fail:
8888 {
8889 if (temp3)
8890 delete arg3;
8891 }
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj;
8898 wxGrid *arg1 = (wxGrid *) 0 ;
8899 wxDC *arg2 = 0 ;
8900 wxArrayString *arg3 = 0 ;
8901 long *arg4 = (long *) 0 ;
8902 long *arg5 = (long *) 0 ;
8903 bool temp3 = False ;
8904 long temp4 ;
8905 long temp5 ;
8906 PyObject * obj0 = 0 ;
8907 PyObject * obj1 = 0 ;
8908 PyObject * obj2 = 0 ;
8909 char *kwnames[] = {
8910 (char *) "self",(char *) "dc",(char *) "lines", NULL
8911 };
8912
8913 arg4 = &temp4;
8914 arg5 = &temp5;
8915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
8916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8919 SWIG_POINTER_EXCEPTION | 0)) == -1)
8920 SWIG_fail;
8921 if (arg2 == NULL) {
8922 PyErr_SetString(PyExc_TypeError,"null reference");
8923 SWIG_fail;
8924 }
8925 {
8926 if (! PySequence_Check(obj2)) {
8927 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8928 SWIG_fail;
8929 }
8930 arg3 = new wxArrayString;
8931 temp3 = True;
8932 int i, len=PySequence_Length(obj2);
8933 for (i=0; i<len; i++) {
8934 PyObject* item = PySequence_GetItem(obj2, i);
8935 #if wxUSE_UNICODE
8936 PyObject* str = PyObject_Unicode(item);
8937 #else
8938 PyObject* str = PyObject_Str(item);
8939 #endif
8940 if (PyErr_Occurred()) SWIG_fail;
8941 arg3->Add(Py2wxString(str));
8942 Py_DECREF(item);
8943 Py_DECREF(str);
8944 }
8945 }
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 Py_INCREF(Py_None); resultobj = Py_None;
8954 {
8955 PyObject *o = PyInt_FromLong((long) (*arg4));
8956 resultobj = t_output_helper(resultobj,o);
8957 }
8958 {
8959 PyObject *o = PyInt_FromLong((long) (*arg5));
8960 resultobj = t_output_helper(resultobj,o);
8961 }
8962 {
8963 if (temp3) delete arg3;
8964 }
8965 return resultobj;
8966 fail:
8967 {
8968 if (temp3) delete arg3;
8969 }
8970 return NULL;
8971 }
8972
8973
8974 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8975 PyObject *resultobj;
8976 wxGrid *arg1 = (wxGrid *) 0 ;
8977 PyObject * obj0 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 (arg1)->BeginBatch();
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 Py_INCREF(Py_None); resultobj = Py_None;
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxGrid *arg1 = (wxGrid *) 0 ;
9002 PyObject * obj0 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9010 {
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 (arg1)->EndBatch();
9013
9014 wxPyEndAllowThreads(__tstate);
9015 if (PyErr_Occurred()) SWIG_fail;
9016 }
9017 Py_INCREF(Py_None); resultobj = Py_None;
9018 return resultobj;
9019 fail:
9020 return NULL;
9021 }
9022
9023
9024 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9025 PyObject *resultobj;
9026 wxGrid *arg1 = (wxGrid *) 0 ;
9027 int result;
9028 PyObject * obj0 = 0 ;
9029 char *kwnames[] = {
9030 (char *) "self", NULL
9031 };
9032
9033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
9034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9036 {
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = (int)(arg1)->GetBatchCount();
9039
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 resultobj = SWIG_FromInt((int)result);
9044 return resultobj;
9045 fail:
9046 return NULL;
9047 }
9048
9049
9050 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
9051 PyObject *resultobj;
9052 wxGrid *arg1 = (wxGrid *) 0 ;
9053 PyObject * obj0 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
9059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 (arg1)->ForceRefresh();
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 Py_INCREF(Py_None); resultobj = Py_None;
9069 return resultobj;
9070 fail:
9071 return NULL;
9072 }
9073
9074
9075 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject *resultobj;
9077 wxGrid *arg1 = (wxGrid *) 0 ;
9078 bool result;
9079 PyObject * obj0 = 0 ;
9080 char *kwnames[] = {
9081 (char *) "self", NULL
9082 };
9083
9084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
9085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (bool)(arg1)->IsEditable();
9090
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 {
9095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9096 }
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj;
9105 wxGrid *arg1 = (wxGrid *) 0 ;
9106 bool arg2 ;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 char *kwnames[] = {
9110 (char *) "self",(char *) "edit", NULL
9111 };
9112
9113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
9114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9116 arg2 = (bool) SWIG_AsBool(obj1);
9117 if (PyErr_Occurred()) SWIG_fail;
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 (arg1)->EnableEditing(arg2);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 Py_INCREF(Py_None); resultobj = Py_None;
9126 return resultobj;
9127 fail:
9128 return NULL;
9129 }
9130
9131
9132 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject *resultobj;
9134 wxGrid *arg1 = (wxGrid *) 0 ;
9135 bool arg2 = (bool) True ;
9136 PyObject * obj0 = 0 ;
9137 PyObject * obj1 = 0 ;
9138 char *kwnames[] = {
9139 (char *) "self",(char *) "enable", NULL
9140 };
9141
9142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
9143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9145 if (obj1) {
9146 arg2 = (bool) SWIG_AsBool(obj1);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 (arg1)->EnableCellEditControl(arg2);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 Py_INCREF(Py_None); resultobj = Py_None;
9157 return resultobj;
9158 fail:
9159 return NULL;
9160 }
9161
9162
9163 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxGrid *arg1 = (wxGrid *) 0 ;
9166 PyObject * obj0 = 0 ;
9167 char *kwnames[] = {
9168 (char *) "self", NULL
9169 };
9170
9171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
9172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9174 {
9175 PyThreadState* __tstate = wxPyBeginAllowThreads();
9176 (arg1)->DisableCellEditControl();
9177
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 Py_INCREF(Py_None); resultobj = Py_None;
9182 return resultobj;
9183 fail:
9184 return NULL;
9185 }
9186
9187
9188 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj;
9190 wxGrid *arg1 = (wxGrid *) 0 ;
9191 bool result;
9192 PyObject * obj0 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
9203
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 {
9208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9209 }
9210 return resultobj;
9211 fail:
9212 return NULL;
9213 }
9214
9215
9216 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj;
9218 wxGrid *arg1 = (wxGrid *) 0 ;
9219 bool result;
9220 PyObject * obj0 = 0 ;
9221 char *kwnames[] = {
9222 (char *) "self", NULL
9223 };
9224
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
9226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 }
9235 {
9236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9237 }
9238 return resultobj;
9239 fail:
9240 return NULL;
9241 }
9242
9243
9244 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj;
9246 wxGrid *arg1 = (wxGrid *) 0 ;
9247 bool result;
9248 PyObject * obj0 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 {
9264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9265 }
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
9273 PyObject *resultobj;
9274 wxGrid *arg1 = (wxGrid *) 0 ;
9275 bool result;
9276 PyObject * obj0 = 0 ;
9277 char *kwnames[] = {
9278 (char *) "self", NULL
9279 };
9280
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail;
9282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
9287
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 {
9292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9293 }
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9301 PyObject *resultobj;
9302 wxGrid *arg1 = (wxGrid *) 0 ;
9303 PyObject * obj0 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 (arg1)->ShowCellEditControl();
9314
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 Py_INCREF(Py_None); resultobj = Py_None;
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj;
9327 wxGrid *arg1 = (wxGrid *) 0 ;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 (arg1)->HideCellEditControl();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 Py_INCREF(Py_None); resultobj = Py_None;
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxGrid *arg1 = (wxGrid *) 0 ;
9353 PyObject * obj0 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 (arg1)->SaveEditControlValue();
9364
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 Py_INCREF(Py_None); resultobj = Py_None;
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj;
9377 wxGrid *arg1 = (wxGrid *) 0 ;
9378 int arg2 ;
9379 int arg3 ;
9380 wxGridCellCoords result;
9381 PyObject * obj0 = 0 ;
9382 PyObject * obj1 = 0 ;
9383 PyObject * obj2 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "self",(char *) "x",(char *) "y", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
9389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9391 arg2 = (int) SWIG_AsInt(obj1);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 arg3 = (int) SWIG_AsInt(obj2);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 result = wxGrid_XYToCell(arg1,arg2,arg3);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 wxGridCellCoords * resultptr;
9404 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
9405 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
9406 }
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 wxGrid *arg1 = (wxGrid *) 0 ;
9416 int arg2 ;
9417 int result;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char *kwnames[] = {
9421 (char *) "self",(char *) "y", NULL
9422 };
9423
9424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail;
9425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9427 arg2 = (int) SWIG_AsInt(obj1);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (int)(arg1)->YToRow(arg2);
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 resultobj = SWIG_FromInt((int)result);
9437 return resultobj;
9438 fail:
9439 return NULL;
9440 }
9441
9442
9443 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj;
9445 wxGrid *arg1 = (wxGrid *) 0 ;
9446 int arg2 ;
9447 int result;
9448 PyObject * obj0 = 0 ;
9449 PyObject * obj1 = 0 ;
9450 char *kwnames[] = {
9451 (char *) "self",(char *) "x", NULL
9452 };
9453
9454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail;
9455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9457 arg2 = (int) SWIG_AsInt(obj1);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = (int)(arg1)->XToCol(arg2);
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 resultobj = SWIG_FromInt((int)result);
9467 return resultobj;
9468 fail:
9469 return NULL;
9470 }
9471
9472
9473 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9474 PyObject *resultobj;
9475 wxGrid *arg1 = (wxGrid *) 0 ;
9476 int arg2 ;
9477 int result;
9478 PyObject * obj0 = 0 ;
9479 PyObject * obj1 = 0 ;
9480 char *kwnames[] = {
9481 (char *) "self",(char *) "y", NULL
9482 };
9483
9484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail;
9485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9487 arg2 = (int) SWIG_AsInt(obj1);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 result = (int)(arg1)->YToEdgeOfRow(arg2);
9492
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 resultobj = SWIG_FromInt((int)result);
9497 return resultobj;
9498 fail:
9499 return NULL;
9500 }
9501
9502
9503 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj;
9505 wxGrid *arg1 = (wxGrid *) 0 ;
9506 int arg2 ;
9507 int result;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 char *kwnames[] = {
9511 (char *) "self",(char *) "x", NULL
9512 };
9513
9514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail;
9515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9517 arg2 = (int) SWIG_AsInt(obj1);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (int)(arg1)->XToEdgeOfCol(arg2);
9522
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_FromInt((int)result);
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 wxGrid *arg1 = (wxGrid *) 0 ;
9536 int arg2 ;
9537 int arg3 ;
9538 wxRect result;
9539 PyObject * obj0 = 0 ;
9540 PyObject * obj1 = 0 ;
9541 PyObject * obj2 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self",(char *) "row",(char *) "col", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9549 arg2 = (int) SWIG_AsInt(obj1);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 arg3 = (int) SWIG_AsInt(obj2);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (arg1)->CellToRect(arg2,arg3);
9556
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 {
9561 wxRect * resultptr;
9562 resultptr = new wxRect((wxRect &) result);
9563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
9564 }
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9572 PyObject *resultobj;
9573 wxGrid *arg1 = (wxGrid *) 0 ;
9574 int result;
9575 PyObject * obj0 = 0 ;
9576 char *kwnames[] = {
9577 (char *) "self", NULL
9578 };
9579
9580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
9581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 result = (int)(arg1)->GetGridCursorRow();
9586
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 resultobj = SWIG_FromInt((int)result);
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxGrid *arg1 = (wxGrid *) 0 ;
9600 int result;
9601 PyObject * obj0 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 result = (int)(arg1)->GetGridCursorCol();
9612
9613 wxPyEndAllowThreads(__tstate);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 resultobj = SWIG_FromInt((int)result);
9617 return resultobj;
9618 fail:
9619 return NULL;
9620 }
9621
9622
9623 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9624 PyObject *resultobj;
9625 wxGrid *arg1 = (wxGrid *) 0 ;
9626 int arg2 ;
9627 int arg3 ;
9628 bool arg4 = (bool) True ;
9629 bool result;
9630 PyObject * obj0 = 0 ;
9631 PyObject * obj1 = 0 ;
9632 PyObject * obj2 = 0 ;
9633 PyObject * obj3 = 0 ;
9634 char *kwnames[] = {
9635 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
9636 };
9637
9638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9641 arg2 = (int) SWIG_AsInt(obj1);
9642 if (PyErr_Occurred()) SWIG_fail;
9643 arg3 = (int) SWIG_AsInt(obj2);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 if (obj3) {
9646 arg4 = (bool) SWIG_AsBool(obj3);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 {
9657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9658 }
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 wxGrid *arg1 = (wxGrid *) 0 ;
9668 int arg2 ;
9669 int arg3 ;
9670 PyObject * obj0 = 0 ;
9671 PyObject * obj1 = 0 ;
9672 PyObject * obj2 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "self",(char *) "row",(char *) "col", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail;
9678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9680 arg2 = (int) SWIG_AsInt(obj1);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 arg3 = (int) SWIG_AsInt(obj2);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 (arg1)->MakeCellVisible(arg2,arg3);
9687
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 Py_INCREF(Py_None); resultobj = Py_None;
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxGrid *arg1 = (wxGrid *) 0 ;
9701 int arg2 ;
9702 int arg3 ;
9703 PyObject * obj0 = 0 ;
9704 PyObject * obj1 = 0 ;
9705 PyObject * obj2 = 0 ;
9706 char *kwnames[] = {
9707 (char *) "self",(char *) "row",(char *) "col", NULL
9708 };
9709
9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
9711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9713 arg2 = (int) SWIG_AsInt(obj1);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 arg3 = (int) SWIG_AsInt(obj2);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 (arg1)->SetGridCursor(arg2,arg3);
9720
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 Py_INCREF(Py_None); resultobj = Py_None;
9725 return resultobj;
9726 fail:
9727 return NULL;
9728 }
9729
9730
9731 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj;
9733 wxGrid *arg1 = (wxGrid *) 0 ;
9734 bool arg2 ;
9735 bool result;
9736 PyObject * obj0 = 0 ;
9737 PyObject * obj1 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "self",(char *) "expandSelection", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9745 arg2 = (bool) SWIG_AsBool(obj1);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 result = (bool)(arg1)->MoveCursorUp(arg2);
9750
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 {
9755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9756 }
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj;
9765 wxGrid *arg1 = (wxGrid *) 0 ;
9766 bool arg2 ;
9767 bool result;
9768 PyObject * obj0 = 0 ;
9769 PyObject * obj1 = 0 ;
9770 char *kwnames[] = {
9771 (char *) "self",(char *) "expandSelection", NULL
9772 };
9773
9774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
9775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9777 arg2 = (bool) SWIG_AsBool(obj1);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 result = (bool)(arg1)->MoveCursorDown(arg2);
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 {
9787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9788 }
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj;
9797 wxGrid *arg1 = (wxGrid *) 0 ;
9798 bool arg2 ;
9799 bool result;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "self",(char *) "expandSelection", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
9807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9809 arg2 = (bool) SWIG_AsBool(obj1);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 result = (bool)(arg1)->MoveCursorLeft(arg2);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 {
9819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9820 }
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj;
9829 wxGrid *arg1 = (wxGrid *) 0 ;
9830 bool arg2 ;
9831 bool result;
9832 PyObject * obj0 = 0 ;
9833 PyObject * obj1 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self",(char *) "expandSelection", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
9839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9841 arg2 = (bool) SWIG_AsBool(obj1);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 result = (bool)(arg1)->MoveCursorRight(arg2);
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 {
9851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9852 }
9853 return resultobj;
9854 fail:
9855 return NULL;
9856 }
9857
9858
9859 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj;
9861 wxGrid *arg1 = (wxGrid *) 0 ;
9862 bool result;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 result = (bool)(arg1)->MovePageDown();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 {
9879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9880 }
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxGrid *arg1 = (wxGrid *) 0 ;
9890 bool result;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = (bool)(arg1)->MovePageUp();
9902
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 {
9907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9908 }
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxGrid *arg1 = (wxGrid *) 0 ;
9918 bool arg2 ;
9919 bool result;
9920 PyObject * obj0 = 0 ;
9921 PyObject * obj1 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self",(char *) "expandSelection", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9929 arg2 = (bool) SWIG_AsBool(obj1);
9930 if (PyErr_Occurred()) SWIG_fail;
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
9934
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 {
9939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9940 }
9941 return resultobj;
9942 fail:
9943 return NULL;
9944 }
9945
9946
9947 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9948 PyObject *resultobj;
9949 wxGrid *arg1 = (wxGrid *) 0 ;
9950 bool arg2 ;
9951 bool result;
9952 PyObject * obj0 = 0 ;
9953 PyObject * obj1 = 0 ;
9954 char *kwnames[] = {
9955 (char *) "self",(char *) "expandSelection", NULL
9956 };
9957
9958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9961 arg2 = (bool) SWIG_AsBool(obj1);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
9966
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 {
9971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9972 }
9973 return resultobj;
9974 fail:
9975 return NULL;
9976 }
9977
9978
9979 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9980 PyObject *resultobj;
9981 wxGrid *arg1 = (wxGrid *) 0 ;
9982 bool arg2 ;
9983 bool result;
9984 PyObject * obj0 = 0 ;
9985 PyObject * obj1 = 0 ;
9986 char *kwnames[] = {
9987 (char *) "self",(char *) "expandSelection", NULL
9988 };
9989
9990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
9991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9993 arg2 = (bool) SWIG_AsBool(obj1);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
9998
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 {
10003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10004 }
10005 return resultobj;
10006 fail:
10007 return NULL;
10008 }
10009
10010
10011 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
10012 PyObject *resultobj;
10013 wxGrid *arg1 = (wxGrid *) 0 ;
10014 bool arg2 ;
10015 bool result;
10016 PyObject * obj0 = 0 ;
10017 PyObject * obj1 = 0 ;
10018 char *kwnames[] = {
10019 (char *) "self",(char *) "expandSelection", NULL
10020 };
10021
10022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
10023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10025 arg2 = (bool) SWIG_AsBool(obj1);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
10030
10031 wxPyEndAllowThreads(__tstate);
10032 if (PyErr_Occurred()) SWIG_fail;
10033 }
10034 {
10035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10036 }
10037 return resultobj;
10038 fail:
10039 return NULL;
10040 }
10041
10042
10043 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj;
10045 wxGrid *arg1 = (wxGrid *) 0 ;
10046 int result;
10047 PyObject * obj0 = 0 ;
10048 char *kwnames[] = {
10049 (char *) "self", NULL
10050 };
10051
10052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
10053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 result = (int)(arg1)->GetDefaultRowLabelSize();
10058
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 resultobj = SWIG_FromInt((int)result);
10063 return resultobj;
10064 fail:
10065 return NULL;
10066 }
10067
10068
10069 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj;
10071 wxGrid *arg1 = (wxGrid *) 0 ;
10072 int result;
10073 PyObject * obj0 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (int)(arg1)->GetRowLabelSize();
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 resultobj = SWIG_FromInt((int)result);
10089 return resultobj;
10090 fail:
10091 return NULL;
10092 }
10093
10094
10095 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10096 PyObject *resultobj;
10097 wxGrid *arg1 = (wxGrid *) 0 ;
10098 int result;
10099 PyObject * obj0 = 0 ;
10100 char *kwnames[] = {
10101 (char *) "self", NULL
10102 };
10103
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
10105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 result = (int)(arg1)->GetDefaultColLabelSize();
10110
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 resultobj = SWIG_FromInt((int)result);
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject *resultobj;
10123 wxGrid *arg1 = (wxGrid *) 0 ;
10124 int result;
10125 PyObject * obj0 = 0 ;
10126 char *kwnames[] = {
10127 (char *) "self", NULL
10128 };
10129
10130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
10131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10133 {
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = (int)(arg1)->GetColLabelSize();
10136
10137 wxPyEndAllowThreads(__tstate);
10138 if (PyErr_Occurred()) SWIG_fail;
10139 }
10140 resultobj = SWIG_FromInt((int)result);
10141 return resultobj;
10142 fail:
10143 return NULL;
10144 }
10145
10146
10147 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10148 PyObject *resultobj;
10149 wxGrid *arg1 = (wxGrid *) 0 ;
10150 wxColour result;
10151 PyObject * obj0 = 0 ;
10152 char *kwnames[] = {
10153 (char *) "self", NULL
10154 };
10155
10156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
10157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (arg1)->GetLabelBackgroundColour();
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 {
10167 wxColour * resultptr;
10168 resultptr = new wxColour((wxColour &) result);
10169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10170 }
10171 return resultobj;
10172 fail:
10173 return NULL;
10174 }
10175
10176
10177 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10178 PyObject *resultobj;
10179 wxGrid *arg1 = (wxGrid *) 0 ;
10180 wxColour result;
10181 PyObject * obj0 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (arg1)->GetLabelTextColour();
10192
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 {
10197 wxColour * resultptr;
10198 resultptr = new wxColour((wxColour &) result);
10199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10200 }
10201 return resultobj;
10202 fail:
10203 return NULL;
10204 }
10205
10206
10207 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10208 PyObject *resultobj;
10209 wxGrid *arg1 = (wxGrid *) 0 ;
10210 wxFont result;
10211 PyObject * obj0 = 0 ;
10212 char *kwnames[] = {
10213 (char *) "self", NULL
10214 };
10215
10216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
10217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10219 {
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 result = (arg1)->GetLabelFont();
10222
10223 wxPyEndAllowThreads(__tstate);
10224 if (PyErr_Occurred()) SWIG_fail;
10225 }
10226 {
10227 wxFont * resultptr;
10228 resultptr = new wxFont((wxFont &) result);
10229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
10230 }
10231 return resultobj;
10232 fail:
10233 return NULL;
10234 }
10235
10236
10237 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10238 PyObject *resultobj;
10239 wxGrid *arg1 = (wxGrid *) 0 ;
10240 int *arg2 = (int *) 0 ;
10241 int *arg3 = (int *) 0 ;
10242 int temp2 ;
10243 int temp3 ;
10244 PyObject * obj0 = 0 ;
10245 char *kwnames[] = {
10246 (char *) "self", NULL
10247 };
10248
10249 arg2 = &temp2;
10250 arg3 = &temp3;
10251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
10252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10254 {
10255 PyThreadState* __tstate = wxPyBeginAllowThreads();
10256 (arg1)->GetRowLabelAlignment(arg2,arg3);
10257
10258 wxPyEndAllowThreads(__tstate);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 }
10261 Py_INCREF(Py_None); resultobj = Py_None;
10262 {
10263 PyObject *o = PyInt_FromLong((long) (*arg2));
10264 resultobj = t_output_helper(resultobj,o);
10265 }
10266 {
10267 PyObject *o = PyInt_FromLong((long) (*arg3));
10268 resultobj = t_output_helper(resultobj,o);
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj;
10278 wxGrid *arg1 = (wxGrid *) 0 ;
10279 int *arg2 = (int *) 0 ;
10280 int *arg3 = (int *) 0 ;
10281 int temp2 ;
10282 int temp3 ;
10283 PyObject * obj0 = 0 ;
10284 char *kwnames[] = {
10285 (char *) "self", NULL
10286 };
10287
10288 arg2 = &temp2;
10289 arg3 = &temp3;
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
10291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 (arg1)->GetColLabelAlignment(arg2,arg3);
10296
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 Py_INCREF(Py_None); resultobj = Py_None;
10301 {
10302 PyObject *o = PyInt_FromLong((long) (*arg2));
10303 resultobj = t_output_helper(resultobj,o);
10304 }
10305 {
10306 PyObject *o = PyInt_FromLong((long) (*arg3));
10307 resultobj = t_output_helper(resultobj,o);
10308 }
10309 return resultobj;
10310 fail:
10311 return NULL;
10312 }
10313
10314
10315 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj;
10317 wxGrid *arg1 = (wxGrid *) 0 ;
10318 int result;
10319 PyObject * obj0 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = (int)(arg1)->GetColLabelTextOrientation();
10330
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_FromInt((int)result);
10335 return resultobj;
10336 fail:
10337 return NULL;
10338 }
10339
10340
10341 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj;
10343 wxGrid *arg1 = (wxGrid *) 0 ;
10344 int arg2 ;
10345 wxString result;
10346 PyObject * obj0 = 0 ;
10347 PyObject * obj1 = 0 ;
10348 char *kwnames[] = {
10349 (char *) "self",(char *) "row", NULL
10350 };
10351
10352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
10353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10355 arg2 = (int) SWIG_AsInt(obj1);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 result = (arg1)->GetRowLabelValue(arg2);
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 #if wxUSE_UNICODE
10366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10367 #else
10368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10369 #endif
10370 }
10371 return resultobj;
10372 fail:
10373 return NULL;
10374 }
10375
10376
10377 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10378 PyObject *resultobj;
10379 wxGrid *arg1 = (wxGrid *) 0 ;
10380 int arg2 ;
10381 wxString result;
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 char *kwnames[] = {
10385 (char *) "self",(char *) "col", NULL
10386 };
10387
10388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
10389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10391 arg2 = (int) SWIG_AsInt(obj1);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 {
10394 PyThreadState* __tstate = wxPyBeginAllowThreads();
10395 result = (arg1)->GetColLabelValue(arg2);
10396
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 {
10401 #if wxUSE_UNICODE
10402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10403 #else
10404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10405 #endif
10406 }
10407 return resultobj;
10408 fail:
10409 return NULL;
10410 }
10411
10412
10413 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10414 PyObject *resultobj;
10415 wxGrid *arg1 = (wxGrid *) 0 ;
10416 wxColour result;
10417 PyObject * obj0 = 0 ;
10418 char *kwnames[] = {
10419 (char *) "self", NULL
10420 };
10421
10422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
10423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10425 {
10426 PyThreadState* __tstate = wxPyBeginAllowThreads();
10427 result = (arg1)->GetGridLineColour();
10428
10429 wxPyEndAllowThreads(__tstate);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 }
10432 {
10433 wxColour * resultptr;
10434 resultptr = new wxColour((wxColour &) result);
10435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10436 }
10437 return resultobj;
10438 fail:
10439 return NULL;
10440 }
10441
10442
10443 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10444 PyObject *resultobj;
10445 wxGrid *arg1 = (wxGrid *) 0 ;
10446 wxColour result;
10447 PyObject * obj0 = 0 ;
10448 char *kwnames[] = {
10449 (char *) "self", NULL
10450 };
10451
10452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
10453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (arg1)->GetCellHighlightColour();
10458
10459 wxPyEndAllowThreads(__tstate);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 {
10463 wxColour * resultptr;
10464 resultptr = new wxColour((wxColour &) result);
10465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10466 }
10467 return resultobj;
10468 fail:
10469 return NULL;
10470 }
10471
10472
10473 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10474 PyObject *resultobj;
10475 wxGrid *arg1 = (wxGrid *) 0 ;
10476 int result;
10477 PyObject * obj0 = 0 ;
10478 char *kwnames[] = {
10479 (char *) "self", NULL
10480 };
10481
10482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
10483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = (int)(arg1)->GetCellHighlightPenWidth();
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 resultobj = SWIG_FromInt((int)result);
10493 return resultobj;
10494 fail:
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxGrid *arg1 = (wxGrid *) 0 ;
10502 int result;
10503 PyObject * obj0 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "self", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 result = (int)(arg1)->GetCellHighlightROPenWidth();
10514
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 resultobj = SWIG_FromInt((int)result);
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj;
10527 wxGrid *arg1 = (wxGrid *) 0 ;
10528 int arg2 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 char *kwnames[] = {
10532 (char *) "self",(char *) "width", NULL
10533 };
10534
10535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
10536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10538 arg2 = (int) SWIG_AsInt(obj1);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->SetRowLabelSize(arg2);
10543
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 Py_INCREF(Py_None); resultobj = Py_None;
10548 return resultobj;
10549 fail:
10550 return NULL;
10551 }
10552
10553
10554 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj;
10556 wxGrid *arg1 = (wxGrid *) 0 ;
10557 int arg2 ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self",(char *) "height", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 arg2 = (int) SWIG_AsInt(obj1);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 (arg1)->SetColLabelSize(arg2);
10572
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 Py_INCREF(Py_None); resultobj = Py_None;
10577 return resultobj;
10578 fail:
10579 return NULL;
10580 }
10581
10582
10583 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10584 PyObject *resultobj;
10585 wxGrid *arg1 = (wxGrid *) 0 ;
10586 wxColour *arg2 = 0 ;
10587 wxColour temp2 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 char *kwnames[] = {
10591 (char *) "self","arg2", NULL
10592 };
10593
10594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
10595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10597 {
10598 arg2 = &temp2;
10599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 Py_INCREF(Py_None); resultobj = Py_None;
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxGrid *arg1 = (wxGrid *) 0 ;
10618 wxColour *arg2 = 0 ;
10619 wxColour temp2 ;
10620 PyObject * obj0 = 0 ;
10621 PyObject * obj1 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self","arg2", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10629 {
10630 arg2 = &temp2;
10631 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10632 }
10633 {
10634 PyThreadState* __tstate = wxPyBeginAllowThreads();
10635 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
10636
10637 wxPyEndAllowThreads(__tstate);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 }
10640 Py_INCREF(Py_None); resultobj = Py_None;
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj;
10649 wxGrid *arg1 = (wxGrid *) 0 ;
10650 wxFont *arg2 = 0 ;
10651 PyObject * obj0 = 0 ;
10652 PyObject * obj1 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self","arg2", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
10661 SWIG_POINTER_EXCEPTION | 0)) == -1)
10662 SWIG_fail;
10663 if (arg2 == NULL) {
10664 PyErr_SetString(PyExc_TypeError,"null reference");
10665 SWIG_fail;
10666 }
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 (arg1)->SetLabelFont((wxFont const &)*arg2);
10670
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 Py_INCREF(Py_None); resultobj = Py_None;
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj;
10683 wxGrid *arg1 = (wxGrid *) 0 ;
10684 int arg2 ;
10685 int arg3 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 PyObject * obj2 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 arg2 = (int) SWIG_AsInt(obj1);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 arg3 = (int) SWIG_AsInt(obj2);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 (arg1)->SetRowLabelAlignment(arg2,arg3);
10703
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 Py_INCREF(Py_None); resultobj = Py_None;
10708 return resultobj;
10709 fail:
10710 return NULL;
10711 }
10712
10713
10714 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10715 PyObject *resultobj;
10716 wxGrid *arg1 = (wxGrid *) 0 ;
10717 int arg2 ;
10718 int arg3 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 PyObject * obj2 = 0 ;
10722 char *kwnames[] = {
10723 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10724 };
10725
10726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10729 arg2 = (int) SWIG_AsInt(obj1);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 arg3 = (int) SWIG_AsInt(obj2);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 (arg1)->SetColLabelAlignment(arg2,arg3);
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 Py_INCREF(Py_None); resultobj = Py_None;
10741 return resultobj;
10742 fail:
10743 return NULL;
10744 }
10745
10746
10747 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj;
10749 wxGrid *arg1 = (wxGrid *) 0 ;
10750 int arg2 ;
10751 PyObject * obj0 = 0 ;
10752 PyObject * obj1 = 0 ;
10753 char *kwnames[] = {
10754 (char *) "self",(char *) "textOrientation", NULL
10755 };
10756
10757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail;
10758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10760 arg2 = (int) SWIG_AsInt(obj1);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 (arg1)->SetColLabelTextOrientation(arg2);
10765
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 Py_INCREF(Py_None); resultobj = Py_None;
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj;
10778 wxGrid *arg1 = (wxGrid *) 0 ;
10779 int arg2 ;
10780 wxString *arg3 = 0 ;
10781 bool temp3 = False ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 PyObject * obj2 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "row","arg3", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10792 arg2 = (int) SWIG_AsInt(obj1);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 {
10795 arg3 = wxString_in_helper(obj2);
10796 if (arg3 == NULL) SWIG_fail;
10797 temp3 = True;
10798 }
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
10802
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 Py_INCREF(Py_None); resultobj = Py_None;
10807 {
10808 if (temp3)
10809 delete arg3;
10810 }
10811 return resultobj;
10812 fail:
10813 {
10814 if (temp3)
10815 delete arg3;
10816 }
10817 return NULL;
10818 }
10819
10820
10821 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj;
10823 wxGrid *arg1 = (wxGrid *) 0 ;
10824 int arg2 ;
10825 wxString *arg3 = 0 ;
10826 bool temp3 = False ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 PyObject * obj2 = 0 ;
10830 char *kwnames[] = {
10831 (char *) "self",(char *) "col","arg3", NULL
10832 };
10833
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10837 arg2 = (int) SWIG_AsInt(obj1);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 {
10840 arg3 = wxString_in_helper(obj2);
10841 if (arg3 == NULL) SWIG_fail;
10842 temp3 = True;
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
10847
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 Py_INCREF(Py_None); resultobj = Py_None;
10852 {
10853 if (temp3)
10854 delete arg3;
10855 }
10856 return resultobj;
10857 fail:
10858 {
10859 if (temp3)
10860 delete arg3;
10861 }
10862 return NULL;
10863 }
10864
10865
10866 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxGrid *arg1 = (wxGrid *) 0 ;
10869 wxColour *arg2 = 0 ;
10870 wxColour temp2 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 char *kwnames[] = {
10874 (char *) "self","arg2", NULL
10875 };
10876
10877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
10878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10880 {
10881 arg2 = &temp2;
10882 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10883 }
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 (arg1)->SetGridLineColour((wxColour const &)*arg2);
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 Py_INCREF(Py_None); resultobj = Py_None;
10892 return resultobj;
10893 fail:
10894 return NULL;
10895 }
10896
10897
10898 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10899 PyObject *resultobj;
10900 wxGrid *arg1 = (wxGrid *) 0 ;
10901 wxColour *arg2 = 0 ;
10902 wxColour temp2 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 char *kwnames[] = {
10906 (char *) "self","arg2", NULL
10907 };
10908
10909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
10910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10912 {
10913 arg2 = &temp2;
10914 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10915 }
10916 {
10917 PyThreadState* __tstate = wxPyBeginAllowThreads();
10918 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
10919
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 Py_INCREF(Py_None); resultobj = Py_None;
10924 return resultobj;
10925 fail:
10926 return NULL;
10927 }
10928
10929
10930 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj;
10932 wxGrid *arg1 = (wxGrid *) 0 ;
10933 int arg2 ;
10934 PyObject * obj0 = 0 ;
10935 PyObject * obj1 = 0 ;
10936 char *kwnames[] = {
10937 (char *) "self",(char *) "width", NULL
10938 };
10939
10940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail;
10941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10943 arg2 = (int) SWIG_AsInt(obj1);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 (arg1)->SetCellHighlightPenWidth(arg2);
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 Py_INCREF(Py_None); resultobj = Py_None;
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxGrid *arg1 = (wxGrid *) 0 ;
10962 int arg2 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char *kwnames[] = {
10966 (char *) "self",(char *) "width", NULL
10967 };
10968
10969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail;
10970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10972 arg2 = (int) SWIG_AsInt(obj1);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 (arg1)->SetCellHighlightROPenWidth(arg2);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 Py_INCREF(Py_None); resultobj = Py_None;
10982 return resultobj;
10983 fail:
10984 return NULL;
10985 }
10986
10987
10988 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10989 PyObject *resultobj;
10990 wxGrid *arg1 = (wxGrid *) 0 ;
10991 bool arg2 = (bool) True ;
10992 PyObject * obj0 = 0 ;
10993 PyObject * obj1 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self",(char *) "enable", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 if (obj1) {
11002 arg2 = (bool) SWIG_AsBool(obj1);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 (arg1)->EnableDragRowSize(arg2);
11008
11009 wxPyEndAllowThreads(__tstate);
11010 if (PyErr_Occurred()) SWIG_fail;
11011 }
11012 Py_INCREF(Py_None); resultobj = Py_None;
11013 return resultobj;
11014 fail:
11015 return NULL;
11016 }
11017
11018
11019 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11020 PyObject *resultobj;
11021 wxGrid *arg1 = (wxGrid *) 0 ;
11022 PyObject * obj0 = 0 ;
11023 char *kwnames[] = {
11024 (char *) "self", NULL
11025 };
11026
11027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
11028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11030 {
11031 PyThreadState* __tstate = wxPyBeginAllowThreads();
11032 (arg1)->DisableDragRowSize();
11033
11034 wxPyEndAllowThreads(__tstate);
11035 if (PyErr_Occurred()) SWIG_fail;
11036 }
11037 Py_INCREF(Py_None); resultobj = Py_None;
11038 return resultobj;
11039 fail:
11040 return NULL;
11041 }
11042
11043
11044 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11045 PyObject *resultobj;
11046 wxGrid *arg1 = (wxGrid *) 0 ;
11047 bool result;
11048 PyObject * obj0 = 0 ;
11049 char *kwnames[] = {
11050 (char *) "self", NULL
11051 };
11052
11053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
11054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (bool)(arg1)->CanDragRowSize();
11059
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 }
11063 {
11064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11065 }
11066 return resultobj;
11067 fail:
11068 return NULL;
11069 }
11070
11071
11072 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11073 PyObject *resultobj;
11074 wxGrid *arg1 = (wxGrid *) 0 ;
11075 bool arg2 = (bool) True ;
11076 PyObject * obj0 = 0 ;
11077 PyObject * obj1 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self",(char *) "enable", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 if (obj1) {
11086 arg2 = (bool) SWIG_AsBool(obj1);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 (arg1)->EnableDragColSize(arg2);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 Py_INCREF(Py_None); resultobj = Py_None;
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxGrid *arg1 = (wxGrid *) 0 ;
11106 PyObject * obj0 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "self", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
11112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 (arg1)->DisableDragColSize();
11117
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 Py_INCREF(Py_None); resultobj = Py_None;
11122 return resultobj;
11123 fail:
11124 return NULL;
11125 }
11126
11127
11128 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj;
11130 wxGrid *arg1 = (wxGrid *) 0 ;
11131 bool result;
11132 PyObject * obj0 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)(arg1)->CanDragColSize();
11143
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11157 PyObject *resultobj;
11158 wxGrid *arg1 = (wxGrid *) 0 ;
11159 bool arg2 = (bool) True ;
11160 PyObject * obj0 = 0 ;
11161 PyObject * obj1 = 0 ;
11162 char *kwnames[] = {
11163 (char *) "self",(char *) "enable", NULL
11164 };
11165
11166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
11167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11169 if (obj1) {
11170 arg2 = (bool) SWIG_AsBool(obj1);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 (arg1)->EnableDragGridSize(arg2);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 Py_INCREF(Py_None); resultobj = Py_None;
11181 return resultobj;
11182 fail:
11183 return NULL;
11184 }
11185
11186
11187 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11188 PyObject *resultobj;
11189 wxGrid *arg1 = (wxGrid *) 0 ;
11190 PyObject * obj0 = 0 ;
11191 char *kwnames[] = {
11192 (char *) "self", NULL
11193 };
11194
11195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
11196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 (arg1)->DisableDragGridSize();
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 Py_INCREF(Py_None); resultobj = Py_None;
11206 return resultobj;
11207 fail:
11208 return NULL;
11209 }
11210
11211
11212 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj;
11214 wxGrid *arg1 = (wxGrid *) 0 ;
11215 bool result;
11216 PyObject * obj0 = 0 ;
11217 char *kwnames[] = {
11218 (char *) "self", NULL
11219 };
11220
11221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
11222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 result = (bool)(arg1)->CanDragGridSize();
11227
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 {
11232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11233 }
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11241 PyObject *resultobj;
11242 wxGrid *arg1 = (wxGrid *) 0 ;
11243 int arg2 ;
11244 int arg3 ;
11245 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 PyObject * obj2 = 0 ;
11249 PyObject * obj3 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
11252 };
11253
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11257 arg2 = (int) SWIG_AsInt(obj1);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 arg3 = (int) SWIG_AsInt(obj2);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr,
11262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 (arg1)->SetAttr(arg2,arg3,arg4);
11266
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 Py_INCREF(Py_None); resultobj = Py_None;
11271 return resultobj;
11272 fail:
11273 return NULL;
11274 }
11275
11276
11277 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj;
11279 wxGrid *arg1 = (wxGrid *) 0 ;
11280 int arg2 ;
11281 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
11282 PyObject * obj0 = 0 ;
11283 PyObject * obj1 = 0 ;
11284 PyObject * obj2 = 0 ;
11285 char *kwnames[] = {
11286 (char *) "self",(char *) "row",(char *) "attr", NULL
11287 };
11288
11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
11290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11292 arg2 = (int) SWIG_AsInt(obj1);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
11295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 (arg1)->SetRowAttr(arg2,arg3);
11299
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 Py_INCREF(Py_None); resultobj = Py_None;
11304 return resultobj;
11305 fail:
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11311 PyObject *resultobj;
11312 wxGrid *arg1 = (wxGrid *) 0 ;
11313 int arg2 ;
11314 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
11315 PyObject * obj0 = 0 ;
11316 PyObject * obj1 = 0 ;
11317 PyObject * obj2 = 0 ;
11318 char *kwnames[] = {
11319 (char *) "self",(char *) "col",(char *) "attr", NULL
11320 };
11321
11322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
11323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11325 arg2 = (int) SWIG_AsInt(obj1);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
11328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 (arg1)->SetColAttr(arg2,arg3);
11332
11333 wxPyEndAllowThreads(__tstate);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 }
11336 Py_INCREF(Py_None); resultobj = Py_None;
11337 return resultobj;
11338 fail:
11339 return NULL;
11340 }
11341
11342
11343 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
11344 PyObject *resultobj;
11345 wxGrid *arg1 = (wxGrid *) 0 ;
11346 int arg2 ;
11347 PyObject * obj0 = 0 ;
11348 PyObject * obj1 = 0 ;
11349 char *kwnames[] = {
11350 (char *) "self",(char *) "col", NULL
11351 };
11352
11353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail;
11354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11356 arg2 = (int) SWIG_AsInt(obj1);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 {
11359 PyThreadState* __tstate = wxPyBeginAllowThreads();
11360 (arg1)->SetColFormatBool(arg2);
11361
11362 wxPyEndAllowThreads(__tstate);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 }
11365 Py_INCREF(Py_None); resultobj = Py_None;
11366 return resultobj;
11367 fail:
11368 return NULL;
11369 }
11370
11371
11372 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
11373 PyObject *resultobj;
11374 wxGrid *arg1 = (wxGrid *) 0 ;
11375 int arg2 ;
11376 PyObject * obj0 = 0 ;
11377 PyObject * obj1 = 0 ;
11378 char *kwnames[] = {
11379 (char *) "self",(char *) "col", NULL
11380 };
11381
11382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail;
11383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11385 arg2 = (int) SWIG_AsInt(obj1);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 (arg1)->SetColFormatNumber(arg2);
11390
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 Py_INCREF(Py_None); resultobj = Py_None;
11395 return resultobj;
11396 fail:
11397 return NULL;
11398 }
11399
11400
11401 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
11402 PyObject *resultobj;
11403 wxGrid *arg1 = (wxGrid *) 0 ;
11404 int arg2 ;
11405 int arg3 = (int) -1 ;
11406 int arg4 = (int) -1 ;
11407 PyObject * obj0 = 0 ;
11408 PyObject * obj1 = 0 ;
11409 PyObject * obj2 = 0 ;
11410 PyObject * obj3 = 0 ;
11411 char *kwnames[] = {
11412 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
11413 };
11414
11415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11418 arg2 = (int) SWIG_AsInt(obj1);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 if (obj2) {
11421 arg3 = (int) SWIG_AsInt(obj2);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 if (obj3) {
11425 arg4 = (int) SWIG_AsInt(obj3);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
11431
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 Py_INCREF(Py_None); resultobj = Py_None;
11436 return resultobj;
11437 fail:
11438 return NULL;
11439 }
11440
11441
11442 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
11443 PyObject *resultobj;
11444 wxGrid *arg1 = (wxGrid *) 0 ;
11445 int arg2 ;
11446 wxString *arg3 = 0 ;
11447 bool temp3 = False ;
11448 PyObject * obj0 = 0 ;
11449 PyObject * obj1 = 0 ;
11450 PyObject * obj2 = 0 ;
11451 char *kwnames[] = {
11452 (char *) "self",(char *) "col",(char *) "typeName", NULL
11453 };
11454
11455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail;
11456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11458 arg2 = (int) SWIG_AsInt(obj1);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 {
11461 arg3 = wxString_in_helper(obj2);
11462 if (arg3 == NULL) SWIG_fail;
11463 temp3 = True;
11464 }
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 Py_INCREF(Py_None); resultobj = Py_None;
11473 {
11474 if (temp3)
11475 delete arg3;
11476 }
11477 return resultobj;
11478 fail:
11479 {
11480 if (temp3)
11481 delete arg3;
11482 }
11483 return NULL;
11484 }
11485
11486
11487 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11488 PyObject *resultobj;
11489 wxGrid *arg1 = (wxGrid *) 0 ;
11490 bool arg2 = (bool) True ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self",(char *) "enable", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 if (obj1) {
11501 arg2 = (bool) SWIG_AsBool(obj1);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 (arg1)->EnableGridLines(arg2);
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 Py_INCREF(Py_None); resultobj = Py_None;
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxGrid *arg1 = (wxGrid *) 0 ;
11521 bool result;
11522 PyObject * obj0 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (bool)(arg1)->GridLinesEnabled();
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 {
11538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11539 }
11540 return resultobj;
11541 fail:
11542 return NULL;
11543 }
11544
11545
11546 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11547 PyObject *resultobj;
11548 wxGrid *arg1 = (wxGrid *) 0 ;
11549 int result;
11550 PyObject * obj0 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 result = (int)(arg1)->GetDefaultRowSize();
11561
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 resultobj = SWIG_FromInt((int)result);
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj;
11574 wxGrid *arg1 = (wxGrid *) 0 ;
11575 int arg2 ;
11576 int result;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 char *kwnames[] = {
11580 (char *) "self",(char *) "row", NULL
11581 };
11582
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail;
11584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11586 arg2 = (int) SWIG_AsInt(obj1);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (int)(arg1)->GetRowSize(arg2);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 resultobj = SWIG_FromInt((int)result);
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj;
11604 wxGrid *arg1 = (wxGrid *) 0 ;
11605 int result;
11606 PyObject * obj0 = 0 ;
11607 char *kwnames[] = {
11608 (char *) "self", NULL
11609 };
11610
11611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
11612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11614 {
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 result = (int)(arg1)->GetDefaultColSize();
11617
11618 wxPyEndAllowThreads(__tstate);
11619 if (PyErr_Occurred()) SWIG_fail;
11620 }
11621 resultobj = SWIG_FromInt((int)result);
11622 return resultobj;
11623 fail:
11624 return NULL;
11625 }
11626
11627
11628 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11629 PyObject *resultobj;
11630 wxGrid *arg1 = (wxGrid *) 0 ;
11631 int arg2 ;
11632 int result;
11633 PyObject * obj0 = 0 ;
11634 PyObject * obj1 = 0 ;
11635 char *kwnames[] = {
11636 (char *) "self",(char *) "col", NULL
11637 };
11638
11639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail;
11640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11642 arg2 = (int) SWIG_AsInt(obj1);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 result = (int)(arg1)->GetColSize(arg2);
11647
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 resultobj = SWIG_FromInt((int)result);
11652 return resultobj;
11653 fail:
11654 return NULL;
11655 }
11656
11657
11658 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11659 PyObject *resultobj;
11660 wxGrid *arg1 = (wxGrid *) 0 ;
11661 wxColour result;
11662 PyObject * obj0 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 result = (arg1)->GetDefaultCellBackgroundColour();
11673
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 {
11678 wxColour * resultptr;
11679 resultptr = new wxColour((wxColour &) result);
11680 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11681 }
11682 return resultobj;
11683 fail:
11684 return NULL;
11685 }
11686
11687
11688 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11689 PyObject *resultobj;
11690 wxGrid *arg1 = (wxGrid *) 0 ;
11691 int arg2 ;
11692 int arg3 ;
11693 wxColour result;
11694 PyObject * obj0 = 0 ;
11695 PyObject * obj1 = 0 ;
11696 PyObject * obj2 = 0 ;
11697 char *kwnames[] = {
11698 (char *) "self",(char *) "row",(char *) "col", NULL
11699 };
11700
11701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11704 arg2 = (int) SWIG_AsInt(obj1);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 arg3 = (int) SWIG_AsInt(obj2);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
11711
11712 wxPyEndAllowThreads(__tstate);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
11715 {
11716 wxColour * resultptr;
11717 resultptr = new wxColour((wxColour &) result);
11718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11719 }
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11727 PyObject *resultobj;
11728 wxGrid *arg1 = (wxGrid *) 0 ;
11729 wxColour result;
11730 PyObject * obj0 = 0 ;
11731 char *kwnames[] = {
11732 (char *) "self", NULL
11733 };
11734
11735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
11736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (arg1)->GetDefaultCellTextColour();
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 {
11746 wxColour * resultptr;
11747 resultptr = new wxColour((wxColour &) result);
11748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11749 }
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj;
11758 wxGrid *arg1 = (wxGrid *) 0 ;
11759 int arg2 ;
11760 int arg3 ;
11761 wxColour result;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 PyObject * obj2 = 0 ;
11765 char *kwnames[] = {
11766 (char *) "self",(char *) "row",(char *) "col", NULL
11767 };
11768
11769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11772 arg2 = (int) SWIG_AsInt(obj1);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 arg3 = (int) SWIG_AsInt(obj2);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 result = (arg1)->GetCellTextColour(arg2,arg3);
11779
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 {
11784 wxColour * resultptr;
11785 resultptr = new wxColour((wxColour &) result);
11786 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11787 }
11788 return resultobj;
11789 fail:
11790 return NULL;
11791 }
11792
11793
11794 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj;
11796 wxGrid *arg1 = (wxGrid *) 0 ;
11797 wxFont result;
11798 PyObject * obj0 = 0 ;
11799 char *kwnames[] = {
11800 (char *) "self", NULL
11801 };
11802
11803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
11804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (arg1)->GetDefaultCellFont();
11809
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 wxFont * resultptr;
11815 resultptr = new wxFont((wxFont &) result);
11816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
11817 }
11818 return resultobj;
11819 fail:
11820 return NULL;
11821 }
11822
11823
11824 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11825 PyObject *resultobj;
11826 wxGrid *arg1 = (wxGrid *) 0 ;
11827 int arg2 ;
11828 int arg3 ;
11829 wxFont result;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 PyObject * obj2 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "self",(char *) "row",(char *) "col", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
11838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11840 arg2 = (int) SWIG_AsInt(obj1);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 arg3 = (int) SWIG_AsInt(obj2);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = (arg1)->GetCellFont(arg2,arg3);
11847
11848 wxPyEndAllowThreads(__tstate);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 {
11852 wxFont * resultptr;
11853 resultptr = new wxFont((wxFont &) result);
11854 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
11855 }
11856 return resultobj;
11857 fail:
11858 return NULL;
11859 }
11860
11861
11862 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11863 PyObject *resultobj;
11864 wxGrid *arg1 = (wxGrid *) 0 ;
11865 int *arg2 = (int *) 0 ;
11866 int *arg3 = (int *) 0 ;
11867 int temp2 ;
11868 int temp3 ;
11869 PyObject * obj0 = 0 ;
11870 char *kwnames[] = {
11871 (char *) "self", NULL
11872 };
11873
11874 arg2 = &temp2;
11875 arg3 = &temp3;
11876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
11877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 (arg1)->GetDefaultCellAlignment(arg2,arg3);
11882
11883 wxPyEndAllowThreads(__tstate);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 Py_INCREF(Py_None); resultobj = Py_None;
11887 {
11888 PyObject *o = PyInt_FromLong((long) (*arg2));
11889 resultobj = t_output_helper(resultobj,o);
11890 }
11891 {
11892 PyObject *o = PyInt_FromLong((long) (*arg3));
11893 resultobj = t_output_helper(resultobj,o);
11894 }
11895 return resultobj;
11896 fail:
11897 return NULL;
11898 }
11899
11900
11901 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11902 PyObject *resultobj;
11903 wxGrid *arg1 = (wxGrid *) 0 ;
11904 int arg2 ;
11905 int arg3 ;
11906 int *arg4 = (int *) 0 ;
11907 int *arg5 = (int *) 0 ;
11908 int temp4 ;
11909 int temp5 ;
11910 PyObject * obj0 = 0 ;
11911 PyObject * obj1 = 0 ;
11912 PyObject * obj2 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "self",(char *) "row",(char *) "col", NULL
11915 };
11916
11917 arg4 = &temp4;
11918 arg5 = &temp5;
11919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
11920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11922 arg2 = (int) SWIG_AsInt(obj1);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 arg3 = (int) SWIG_AsInt(obj2);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 Py_INCREF(Py_None); resultobj = Py_None;
11934 {
11935 PyObject *o = PyInt_FromLong((long) (*arg4));
11936 resultobj = t_output_helper(resultobj,o);
11937 }
11938 {
11939 PyObject *o = PyInt_FromLong((long) (*arg5));
11940 resultobj = t_output_helper(resultobj,o);
11941 }
11942 return resultobj;
11943 fail:
11944 return NULL;
11945 }
11946
11947
11948 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11949 PyObject *resultobj;
11950 wxGrid *arg1 = (wxGrid *) 0 ;
11951 bool result;
11952 PyObject * obj0 = 0 ;
11953 char *kwnames[] = {
11954 (char *) "self", NULL
11955 };
11956
11957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
11958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = (bool)(arg1)->GetDefaultCellOverflow();
11963
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11969 }
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11977 PyObject *resultobj;
11978 wxGrid *arg1 = (wxGrid *) 0 ;
11979 int arg2 ;
11980 int arg3 ;
11981 bool result;
11982 PyObject * obj0 = 0 ;
11983 PyObject * obj1 = 0 ;
11984 PyObject * obj2 = 0 ;
11985 char *kwnames[] = {
11986 (char *) "self",(char *) "row",(char *) "col", NULL
11987 };
11988
11989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail;
11990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11992 arg2 = (int) SWIG_AsInt(obj1);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 arg3 = (int) SWIG_AsInt(obj2);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
11999
12000 wxPyEndAllowThreads(__tstate);
12001 if (PyErr_Occurred()) SWIG_fail;
12002 }
12003 {
12004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12005 }
12006 return resultobj;
12007 fail:
12008 return NULL;
12009 }
12010
12011
12012 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj;
12014 wxGrid *arg1 = (wxGrid *) 0 ;
12015 int arg2 ;
12016 int arg3 ;
12017 int *arg4 = (int *) 0 ;
12018 int *arg5 = (int *) 0 ;
12019 int temp4 ;
12020 int temp5 ;
12021 PyObject * obj0 = 0 ;
12022 PyObject * obj1 = 0 ;
12023 PyObject * obj2 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self",(char *) "row",(char *) "col", NULL
12026 };
12027
12028 arg4 = &temp4;
12029 arg5 = &temp5;
12030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12033 arg2 = (int) SWIG_AsInt(obj1);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 arg3 = (int) SWIG_AsInt(obj2);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 {
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
12039 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
12040
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 Py_INCREF(Py_None); resultobj = Py_None;
12045 {
12046 PyObject *o = PyInt_FromLong((long) (*arg4));
12047 resultobj = t_output_helper(resultobj,o);
12048 }
12049 {
12050 PyObject *o = PyInt_FromLong((long) (*arg5));
12051 resultobj = t_output_helper(resultobj,o);
12052 }
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj;
12061 wxGrid *arg1 = (wxGrid *) 0 ;
12062 int arg2 ;
12063 bool arg3 = (bool) False ;
12064 PyObject * obj0 = 0 ;
12065 PyObject * obj1 = 0 ;
12066 PyObject * obj2 = 0 ;
12067 char *kwnames[] = {
12068 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
12069 };
12070
12071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12074 arg2 = (int) SWIG_AsInt(obj1);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 if (obj2) {
12077 arg3 = (bool) SWIG_AsBool(obj2);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 (arg1)->SetDefaultRowSize(arg2,arg3);
12083
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 Py_INCREF(Py_None); resultobj = Py_None;
12088 return resultobj;
12089 fail:
12090 return NULL;
12091 }
12092
12093
12094 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12095 PyObject *resultobj;
12096 wxGrid *arg1 = (wxGrid *) 0 ;
12097 int arg2 ;
12098 int arg3 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 PyObject * obj2 = 0 ;
12102 char *kwnames[] = {
12103 (char *) "self",(char *) "row",(char *) "height", NULL
12104 };
12105
12106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12109 arg2 = (int) SWIG_AsInt(obj1);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 arg3 = (int) SWIG_AsInt(obj2);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 (arg1)->SetRowSize(arg2,arg3);
12116
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 Py_INCREF(Py_None); resultobj = Py_None;
12121 return resultobj;
12122 fail:
12123 return NULL;
12124 }
12125
12126
12127 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12128 PyObject *resultobj;
12129 wxGrid *arg1 = (wxGrid *) 0 ;
12130 int arg2 ;
12131 bool arg3 = (bool) False ;
12132 PyObject * obj0 = 0 ;
12133 PyObject * obj1 = 0 ;
12134 PyObject * obj2 = 0 ;
12135 char *kwnames[] = {
12136 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
12137 };
12138
12139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12142 arg2 = (int) SWIG_AsInt(obj1);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 if (obj2) {
12145 arg3 = (bool) SWIG_AsBool(obj2);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 (arg1)->SetDefaultColSize(arg2,arg3);
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 Py_INCREF(Py_None); resultobj = Py_None;
12156 return resultobj;
12157 fail:
12158 return NULL;
12159 }
12160
12161
12162 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12163 PyObject *resultobj;
12164 wxGrid *arg1 = (wxGrid *) 0 ;
12165 int arg2 ;
12166 int arg3 ;
12167 PyObject * obj0 = 0 ;
12168 PyObject * obj1 = 0 ;
12169 PyObject * obj2 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "col",(char *) "width", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12177 arg2 = (int) SWIG_AsInt(obj1);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 arg3 = (int) SWIG_AsInt(obj2);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 (arg1)->SetColSize(arg2,arg3);
12184
12185 wxPyEndAllowThreads(__tstate);
12186 if (PyErr_Occurred()) SWIG_fail;
12187 }
12188 Py_INCREF(Py_None); resultobj = Py_None;
12189 return resultobj;
12190 fail:
12191 return NULL;
12192 }
12193
12194
12195 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
12196 PyObject *resultobj;
12197 wxGrid *arg1 = (wxGrid *) 0 ;
12198 int arg2 ;
12199 bool arg3 = (bool) True ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 PyObject * obj2 = 0 ;
12203 char *kwnames[] = {
12204 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
12205 };
12206
12207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
12208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12210 arg2 = (int) SWIG_AsInt(obj1);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 if (obj2) {
12213 arg3 = (bool) SWIG_AsBool(obj2);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->AutoSizeColumn(arg2,arg3);
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 Py_INCREF(Py_None); resultobj = Py_None;
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxGrid *arg1 = (wxGrid *) 0 ;
12233 int arg2 ;
12234 bool arg3 = (bool) True ;
12235 PyObject * obj0 = 0 ;
12236 PyObject * obj1 = 0 ;
12237 PyObject * obj2 = 0 ;
12238 char *kwnames[] = {
12239 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
12240 };
12241
12242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
12243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12245 arg2 = (int) SWIG_AsInt(obj1);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 if (obj2) {
12248 arg3 = (bool) SWIG_AsBool(obj2);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 (arg1)->AutoSizeRow(arg2,arg3);
12254
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 Py_INCREF(Py_None); resultobj = Py_None;
12259 return resultobj;
12260 fail:
12261 return NULL;
12262 }
12263
12264
12265 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj;
12267 wxGrid *arg1 = (wxGrid *) 0 ;
12268 bool arg2 = (bool) True ;
12269 PyObject * obj0 = 0 ;
12270 PyObject * obj1 = 0 ;
12271 char *kwnames[] = {
12272 (char *) "self",(char *) "setAsMin", NULL
12273 };
12274
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
12276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12278 if (obj1) {
12279 arg2 = (bool) SWIG_AsBool(obj1);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 (arg1)->AutoSizeColumns(arg2);
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 Py_INCREF(Py_None); resultobj = Py_None;
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj;
12298 wxGrid *arg1 = (wxGrid *) 0 ;
12299 bool arg2 = (bool) True ;
12300 PyObject * obj0 = 0 ;
12301 PyObject * obj1 = 0 ;
12302 char *kwnames[] = {
12303 (char *) "self",(char *) "setAsMin", NULL
12304 };
12305
12306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
12307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12309 if (obj1) {
12310 arg2 = (bool) SWIG_AsBool(obj1);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 (arg1)->AutoSizeRows(arg2);
12316
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 Py_INCREF(Py_None); resultobj = Py_None;
12321 return resultobj;
12322 fail:
12323 return NULL;
12324 }
12325
12326
12327 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12328 PyObject *resultobj;
12329 wxGrid *arg1 = (wxGrid *) 0 ;
12330 PyObject * obj0 = 0 ;
12331 char *kwnames[] = {
12332 (char *) "self", NULL
12333 };
12334
12335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
12336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 (arg1)->AutoSize();
12341
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 Py_INCREF(Py_None); resultobj = Py_None;
12346 return resultobj;
12347 fail:
12348 return NULL;
12349 }
12350
12351
12352 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12353 PyObject *resultobj;
12354 wxGrid *arg1 = (wxGrid *) 0 ;
12355 int arg2 ;
12356 PyObject * obj0 = 0 ;
12357 PyObject * obj1 = 0 ;
12358 char *kwnames[] = {
12359 (char *) "self",(char *) "row", NULL
12360 };
12361
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
12363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12365 arg2 = (int) SWIG_AsInt(obj1);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 (arg1)->AutoSizeRowLabelSize(arg2);
12370
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 Py_INCREF(Py_None); resultobj = Py_None;
12375 return resultobj;
12376 fail:
12377 return NULL;
12378 }
12379
12380
12381 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12382 PyObject *resultobj;
12383 wxGrid *arg1 = (wxGrid *) 0 ;
12384 int arg2 ;
12385 PyObject * obj0 = 0 ;
12386 PyObject * obj1 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "self",(char *) "col", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail;
12392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12394 arg2 = (int) SWIG_AsInt(obj1);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
12398 (arg1)->AutoSizeColLabelSize(arg2);
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 Py_INCREF(Py_None); resultobj = Py_None;
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj;
12412 wxGrid *arg1 = (wxGrid *) 0 ;
12413 int arg2 ;
12414 int arg3 ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 PyObject * obj2 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self",(char *) "col",(char *) "width", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12425 arg2 = (int) SWIG_AsInt(obj1);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 arg3 = (int) SWIG_AsInt(obj2);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 {
12430 PyThreadState* __tstate = wxPyBeginAllowThreads();
12431 (arg1)->SetColMinimalWidth(arg2,arg3);
12432
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 Py_INCREF(Py_None); resultobj = Py_None;
12437 return resultobj;
12438 fail:
12439 return NULL;
12440 }
12441
12442
12443 static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12444 PyObject *resultobj;
12445 wxGrid *arg1 = (wxGrid *) 0 ;
12446 int arg2 ;
12447 int arg3 ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 PyObject * obj2 = 0 ;
12451 char *kwnames[] = {
12452 (char *) "self",(char *) "row",(char *) "width", NULL
12453 };
12454
12455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail;
12456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12458 arg2 = (int) SWIG_AsInt(obj1);
12459 if (PyErr_Occurred()) SWIG_fail;
12460 arg3 = (int) SWIG_AsInt(obj2);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->SetRowMinimalHeight(arg2,arg3);
12465
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 Py_INCREF(Py_None); resultobj = Py_None;
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12477 PyObject *resultobj;
12478 wxGrid *arg1 = (wxGrid *) 0 ;
12479 int arg2 ;
12480 PyObject * obj0 = 0 ;
12481 PyObject * obj1 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self",(char *) "width", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 arg2 = (int) SWIG_AsInt(obj1);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 (arg1)->SetColMinimalAcceptableWidth(arg2);
12494
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 Py_INCREF(Py_None); resultobj = Py_None;
12499 return resultobj;
12500 fail:
12501 return NULL;
12502 }
12503
12504
12505 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj;
12507 wxGrid *arg1 = (wxGrid *) 0 ;
12508 int arg2 ;
12509 PyObject * obj0 = 0 ;
12510 PyObject * obj1 = 0 ;
12511 char *kwnames[] = {
12512 (char *) "self",(char *) "width", NULL
12513 };
12514
12515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail;
12516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12518 arg2 = (int) SWIG_AsInt(obj1);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 (arg1)->SetRowMinimalAcceptableHeight(arg2);
12523
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 Py_INCREF(Py_None); resultobj = Py_None;
12528 return resultobj;
12529 fail:
12530 return NULL;
12531 }
12532
12533
12534 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12535 PyObject *resultobj;
12536 wxGrid *arg1 = (wxGrid *) 0 ;
12537 int result;
12538 PyObject * obj0 = 0 ;
12539 char *kwnames[] = {
12540 (char *) "self", NULL
12541 };
12542
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
12544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 resultobj = SWIG_FromInt((int)result);
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxGrid *arg1 = (wxGrid *) 0 ;
12563 int result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 resultobj = SWIG_FromInt((int)result);
12580 return resultobj;
12581 fail:
12582 return NULL;
12583 }
12584
12585
12586 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12587 PyObject *resultobj;
12588 wxGrid *arg1 = (wxGrid *) 0 ;
12589 wxColour *arg2 = 0 ;
12590 wxColour temp2 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self","arg2", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 {
12601 arg2 = &temp2;
12602 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12603 }
12604 {
12605 PyThreadState* __tstate = wxPyBeginAllowThreads();
12606 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
12607
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 Py_INCREF(Py_None); resultobj = Py_None;
12612 return resultobj;
12613 fail:
12614 return NULL;
12615 }
12616
12617
12618 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12619 PyObject *resultobj;
12620 wxGrid *arg1 = (wxGrid *) 0 ;
12621 int arg2 ;
12622 int arg3 ;
12623 wxColour *arg4 = 0 ;
12624 wxColour temp4 ;
12625 PyObject * obj0 = 0 ;
12626 PyObject * obj1 = 0 ;
12627 PyObject * obj2 = 0 ;
12628 PyObject * obj3 = 0 ;
12629 char *kwnames[] = {
12630 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12636 arg2 = (int) SWIG_AsInt(obj1);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 arg3 = (int) SWIG_AsInt(obj2);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 {
12641 arg4 = &temp4;
12642 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12643 }
12644 {
12645 PyThreadState* __tstate = wxPyBeginAllowThreads();
12646 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
12647
12648 wxPyEndAllowThreads(__tstate);
12649 if (PyErr_Occurred()) SWIG_fail;
12650 }
12651 Py_INCREF(Py_None); resultobj = Py_None;
12652 return resultobj;
12653 fail:
12654 return NULL;
12655 }
12656
12657
12658 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12659 PyObject *resultobj;
12660 wxGrid *arg1 = (wxGrid *) 0 ;
12661 wxColour *arg2 = 0 ;
12662 wxColour temp2 ;
12663 PyObject * obj0 = 0 ;
12664 PyObject * obj1 = 0 ;
12665 char *kwnames[] = {
12666 (char *) "self","arg2", NULL
12667 };
12668
12669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
12670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12672 {
12673 arg2 = &temp2;
12674 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12675 }
12676 {
12677 PyThreadState* __tstate = wxPyBeginAllowThreads();
12678 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
12679
12680 wxPyEndAllowThreads(__tstate);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 Py_INCREF(Py_None); resultobj = Py_None;
12684 return resultobj;
12685 fail:
12686 return NULL;
12687 }
12688
12689
12690 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12691 PyObject *resultobj;
12692 wxGrid *arg1 = (wxGrid *) 0 ;
12693 int arg2 ;
12694 int arg3 ;
12695 wxColour *arg4 = 0 ;
12696 wxColour temp4 ;
12697 PyObject * obj0 = 0 ;
12698 PyObject * obj1 = 0 ;
12699 PyObject * obj2 = 0 ;
12700 PyObject * obj3 = 0 ;
12701 char *kwnames[] = {
12702 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12703 };
12704
12705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12708 arg2 = (int) SWIG_AsInt(obj1);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 arg3 = (int) SWIG_AsInt(obj2);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 {
12713 arg4 = &temp4;
12714 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
12719
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 Py_INCREF(Py_None); resultobj = Py_None;
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj;
12732 wxGrid *arg1 = (wxGrid *) 0 ;
12733 wxFont *arg2 = 0 ;
12734 PyObject * obj0 = 0 ;
12735 PyObject * obj1 = 0 ;
12736 char *kwnames[] = {
12737 (char *) "self","arg2", NULL
12738 };
12739
12740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
12741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12743 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12744 SWIG_POINTER_EXCEPTION | 0)) == -1)
12745 SWIG_fail;
12746 if (arg2 == NULL) {
12747 PyErr_SetString(PyExc_TypeError,"null reference");
12748 SWIG_fail;
12749 }
12750 {
12751 PyThreadState* __tstate = wxPyBeginAllowThreads();
12752 (arg1)->SetDefaultCellFont((wxFont const &)*arg2);
12753
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 Py_INCREF(Py_None); resultobj = Py_None;
12758 return resultobj;
12759 fail:
12760 return NULL;
12761 }
12762
12763
12764 static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj;
12766 wxGrid *arg1 = (wxGrid *) 0 ;
12767 int arg2 ;
12768 int arg3 ;
12769 wxFont *arg4 = 0 ;
12770 PyObject * obj0 = 0 ;
12771 PyObject * obj1 = 0 ;
12772 PyObject * obj2 = 0 ;
12773 PyObject * obj3 = 0 ;
12774 char *kwnames[] = {
12775 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12776 };
12777
12778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12781 arg2 = (int) SWIG_AsInt(obj1);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 arg3 = (int) SWIG_AsInt(obj2);
12784 if (PyErr_Occurred()) SWIG_fail;
12785 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont,
12786 SWIG_POINTER_EXCEPTION | 0)) == -1)
12787 SWIG_fail;
12788 if (arg4 == NULL) {
12789 PyErr_SetString(PyExc_TypeError,"null reference");
12790 SWIG_fail;
12791 }
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
12795
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 Py_INCREF(Py_None); resultobj = Py_None;
12800 return resultobj;
12801 fail:
12802 return NULL;
12803 }
12804
12805
12806 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj;
12808 wxGrid *arg1 = (wxGrid *) 0 ;
12809 int arg2 ;
12810 int arg3 ;
12811 PyObject * obj0 = 0 ;
12812 PyObject * obj1 = 0 ;
12813 PyObject * obj2 = 0 ;
12814 char *kwnames[] = {
12815 (char *) "self",(char *) "horiz",(char *) "vert", NULL
12816 };
12817
12818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
12819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12821 arg2 = (int) SWIG_AsInt(obj1);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 arg3 = (int) SWIG_AsInt(obj2);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 (arg1)->SetDefaultCellAlignment(arg2,arg3);
12828
12829 wxPyEndAllowThreads(__tstate);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 Py_INCREF(Py_None); resultobj = Py_None;
12833 return resultobj;
12834 fail:
12835 return NULL;
12836 }
12837
12838
12839 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12840 PyObject *resultobj;
12841 wxGrid *arg1 = (wxGrid *) 0 ;
12842 int arg2 ;
12843 int arg3 ;
12844 int arg4 ;
12845 int arg5 ;
12846 PyObject * obj0 = 0 ;
12847 PyObject * obj1 = 0 ;
12848 PyObject * obj2 = 0 ;
12849 PyObject * obj3 = 0 ;
12850 PyObject * obj4 = 0 ;
12851 char *kwnames[] = {
12852 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
12853 };
12854
12855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12858 arg2 = (int) SWIG_AsInt(obj1);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 arg3 = (int) SWIG_AsInt(obj2);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 arg4 = (int) SWIG_AsInt(obj3);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 arg5 = (int) SWIG_AsInt(obj4);
12865 if (PyErr_Occurred()) SWIG_fail;
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
12869
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 Py_INCREF(Py_None); resultobj = Py_None;
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj;
12882 wxGrid *arg1 = (wxGrid *) 0 ;
12883 bool arg2 ;
12884 PyObject * obj0 = 0 ;
12885 PyObject * obj1 = 0 ;
12886 char *kwnames[] = {
12887 (char *) "self",(char *) "allow", NULL
12888 };
12889
12890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
12891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12893 arg2 = (bool) SWIG_AsBool(obj1);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 {
12896 PyThreadState* __tstate = wxPyBeginAllowThreads();
12897 (arg1)->SetDefaultCellOverflow(arg2);
12898
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 Py_INCREF(Py_None); resultobj = Py_None;
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj;
12911 wxGrid *arg1 = (wxGrid *) 0 ;
12912 int arg2 ;
12913 int arg3 ;
12914 bool arg4 ;
12915 PyObject * obj0 = 0 ;
12916 PyObject * obj1 = 0 ;
12917 PyObject * obj2 = 0 ;
12918 PyObject * obj3 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12926 arg2 = (int) SWIG_AsInt(obj1);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 arg3 = (int) SWIG_AsInt(obj2);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 arg4 = (bool) SWIG_AsBool(obj3);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 {
12933 PyThreadState* __tstate = wxPyBeginAllowThreads();
12934 (arg1)->SetCellOverflow(arg2,arg3,arg4);
12935
12936 wxPyEndAllowThreads(__tstate);
12937 if (PyErr_Occurred()) SWIG_fail;
12938 }
12939 Py_INCREF(Py_None); resultobj = Py_None;
12940 return resultobj;
12941 fail:
12942 return NULL;
12943 }
12944
12945
12946 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12947 PyObject *resultobj;
12948 wxGrid *arg1 = (wxGrid *) 0 ;
12949 int arg2 ;
12950 int arg3 ;
12951 int arg4 ;
12952 int arg5 ;
12953 PyObject * obj0 = 0 ;
12954 PyObject * obj1 = 0 ;
12955 PyObject * obj2 = 0 ;
12956 PyObject * obj3 = 0 ;
12957 PyObject * obj4 = 0 ;
12958 char *kwnames[] = {
12959 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
12960 };
12961
12962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12965 arg2 = (int) SWIG_AsInt(obj1);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 arg3 = (int) SWIG_AsInt(obj2);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 arg4 = (int) SWIG_AsInt(obj3);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 arg5 = (int) SWIG_AsInt(obj4);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
12976
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 Py_INCREF(Py_None); resultobj = Py_None;
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxGrid *arg1 = (wxGrid *) 0 ;
12990 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
12991 PyObject * obj0 = 0 ;
12992 PyObject * obj1 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self",(char *) "renderer", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer,
13001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 (arg1)->SetDefaultRenderer(arg2);
13005
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 Py_INCREF(Py_None); resultobj = Py_None;
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxGrid *arg1 = (wxGrid *) 0 ;
13019 int arg2 ;
13020 int arg3 ;
13021 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 PyObject * obj2 = 0 ;
13025 PyObject * obj3 = 0 ;
13026 char *kwnames[] = {
13027 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
13028 };
13029
13030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13033 arg2 = (int) SWIG_AsInt(obj1);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 arg3 = (int) SWIG_AsInt(obj2);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer,
13038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 (arg1)->SetCellRenderer(arg2,arg3,arg4);
13042
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 Py_INCREF(Py_None); resultobj = Py_None;
13047 return resultobj;
13048 fail:
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxGrid *arg1 = (wxGrid *) 0 ;
13056 wxGridCellRenderer *result;
13057 PyObject * obj0 = 0 ;
13058 char *kwnames[] = {
13059 (char *) "self", NULL
13060 };
13061
13062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
13063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
13068
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 {
13073 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
13074 }
13075 return resultobj;
13076 fail:
13077 return NULL;
13078 }
13079
13080
13081 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
13082 PyObject *resultobj;
13083 wxGrid *arg1 = (wxGrid *) 0 ;
13084 int arg2 ;
13085 int arg3 ;
13086 wxGridCellRenderer *result;
13087 PyObject * obj0 = 0 ;
13088 PyObject * obj1 = 0 ;
13089 PyObject * obj2 = 0 ;
13090 char *kwnames[] = {
13091 (char *) "self",(char *) "row",(char *) "col", NULL
13092 };
13093
13094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail;
13095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13097 arg2 = (int) SWIG_AsInt(obj1);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 arg3 = (int) SWIG_AsInt(obj2);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 {
13109 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
13110 }
13111 return resultobj;
13112 fail:
13113 return NULL;
13114 }
13115
13116
13117 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
13118 PyObject *resultobj;
13119 wxGrid *arg1 = (wxGrid *) 0 ;
13120 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
13121 PyObject * obj0 = 0 ;
13122 PyObject * obj1 = 0 ;
13123 char *kwnames[] = {
13124 (char *) "self",(char *) "editor", NULL
13125 };
13126
13127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
13128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor,
13131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 (arg1)->SetDefaultEditor(arg2);
13135
13136 wxPyEndAllowThreads(__tstate);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 Py_INCREF(Py_None); resultobj = Py_None;
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
13147 PyObject *resultobj;
13148 wxGrid *arg1 = (wxGrid *) 0 ;
13149 int arg2 ;
13150 int arg3 ;
13151 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
13152 PyObject * obj0 = 0 ;
13153 PyObject * obj1 = 0 ;
13154 PyObject * obj2 = 0 ;
13155 PyObject * obj3 = 0 ;
13156 char *kwnames[] = {
13157 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
13158 };
13159
13160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13163 arg2 = (int) SWIG_AsInt(obj1);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 arg3 = (int) SWIG_AsInt(obj2);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor,
13168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 (arg1)->SetCellEditor(arg2,arg3,arg4);
13172
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 Py_INCREF(Py_None); resultobj = Py_None;
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj;
13185 wxGrid *arg1 = (wxGrid *) 0 ;
13186 wxGridCellEditor *result;
13187 PyObject * obj0 = 0 ;
13188 char *kwnames[] = {
13189 (char *) "self", NULL
13190 };
13191
13192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
13193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
13198
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 {
13203 resultobj = wxPyMake_wxGridCellEditor(result, 0);
13204 }
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
13212 PyObject *resultobj;
13213 wxGrid *arg1 = (wxGrid *) 0 ;
13214 int arg2 ;
13215 int arg3 ;
13216 wxGridCellEditor *result;
13217 PyObject * obj0 = 0 ;
13218 PyObject * obj1 = 0 ;
13219 PyObject * obj2 = 0 ;
13220 char *kwnames[] = {
13221 (char *) "self",(char *) "row",(char *) "col", NULL
13222 };
13223
13224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail;
13225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13227 arg2 = (int) SWIG_AsInt(obj1);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 arg3 = (int) SWIG_AsInt(obj2);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
13234
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239 resultobj = wxPyMake_wxGridCellEditor(result, 0);
13240 }
13241 return resultobj;
13242 fail:
13243 return NULL;
13244 }
13245
13246
13247 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13248 PyObject *resultobj;
13249 wxGrid *arg1 = (wxGrid *) 0 ;
13250 int arg2 ;
13251 int arg3 ;
13252 wxString result;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 PyObject * obj2 = 0 ;
13256 char *kwnames[] = {
13257 (char *) "self",(char *) "row",(char *) "col", NULL
13258 };
13259
13260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
13261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13263 arg2 = (int) SWIG_AsInt(obj1);
13264 if (PyErr_Occurred()) SWIG_fail;
13265 arg3 = (int) SWIG_AsInt(obj2);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (arg1)->GetCellValue(arg2,arg3);
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 {
13275 #if wxUSE_UNICODE
13276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13277 #else
13278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13279 #endif
13280 }
13281 return resultobj;
13282 fail:
13283 return NULL;
13284 }
13285
13286
13287 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13288 PyObject *resultobj;
13289 wxGrid *arg1 = (wxGrid *) 0 ;
13290 int arg2 ;
13291 int arg3 ;
13292 wxString *arg4 = 0 ;
13293 bool temp4 = False ;
13294 PyObject * obj0 = 0 ;
13295 PyObject * obj1 = 0 ;
13296 PyObject * obj2 = 0 ;
13297 PyObject * obj3 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13305 arg2 = (int) SWIG_AsInt(obj1);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 arg3 = (int) SWIG_AsInt(obj2);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 {
13310 arg4 = wxString_in_helper(obj3);
13311 if (arg4 == NULL) SWIG_fail;
13312 temp4 = True;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 Py_INCREF(Py_None); resultobj = Py_None;
13322 {
13323 if (temp4)
13324 delete arg4;
13325 }
13326 return resultobj;
13327 fail:
13328 {
13329 if (temp4)
13330 delete arg4;
13331 }
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxGrid *arg1 = (wxGrid *) 0 ;
13339 int arg2 ;
13340 int arg3 ;
13341 bool result;
13342 PyObject * obj0 = 0 ;
13343 PyObject * obj1 = 0 ;
13344 PyObject * obj2 = 0 ;
13345 char *kwnames[] = {
13346 (char *) "self",(char *) "row",(char *) "col", NULL
13347 };
13348
13349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail;
13350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13352 arg2 = (int) SWIG_AsInt(obj1);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 arg3 = (int) SWIG_AsInt(obj2);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
13359
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 {
13364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13365 }
13366 return resultobj;
13367 fail:
13368 return NULL;
13369 }
13370
13371
13372 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13373 PyObject *resultobj;
13374 wxGrid *arg1 = (wxGrid *) 0 ;
13375 int arg2 ;
13376 int arg3 ;
13377 bool arg4 = (bool) True ;
13378 PyObject * obj0 = 0 ;
13379 PyObject * obj1 = 0 ;
13380 PyObject * obj2 = 0 ;
13381 PyObject * obj3 = 0 ;
13382 char *kwnames[] = {
13383 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
13384 };
13385
13386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13389 arg2 = (int) SWIG_AsInt(obj1);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 arg3 = (int) SWIG_AsInt(obj2);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 if (obj3) {
13394 arg4 = (bool) SWIG_AsBool(obj3);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 (arg1)->SetReadOnly(arg2,arg3,arg4);
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 Py_INCREF(Py_None); resultobj = Py_None;
13405 return resultobj;
13406 fail:
13407 return NULL;
13408 }
13409
13410
13411 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj;
13413 wxGrid *arg1 = (wxGrid *) 0 ;
13414 int arg2 ;
13415 bool arg3 = (bool) False ;
13416 PyObject * obj0 = 0 ;
13417 PyObject * obj1 = 0 ;
13418 PyObject * obj2 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13426 arg2 = (int) SWIG_AsInt(obj1);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 if (obj2) {
13429 arg3 = (bool) SWIG_AsBool(obj2);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 (arg1)->SelectRow(arg2,arg3);
13435
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 Py_INCREF(Py_None); resultobj = Py_None;
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj;
13448 wxGrid *arg1 = (wxGrid *) 0 ;
13449 int arg2 ;
13450 bool arg3 = (bool) False ;
13451 PyObject * obj0 = 0 ;
13452 PyObject * obj1 = 0 ;
13453 PyObject * obj2 = 0 ;
13454 char *kwnames[] = {
13455 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
13456 };
13457
13458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
13459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13461 arg2 = (int) SWIG_AsInt(obj1);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 if (obj2) {
13464 arg3 = (bool) SWIG_AsBool(obj2);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 (arg1)->SelectCol(arg2,arg3);
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 Py_INCREF(Py_None); resultobj = Py_None;
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxGrid *arg1 = (wxGrid *) 0 ;
13484 int arg2 ;
13485 int arg3 ;
13486 int arg4 ;
13487 int arg5 ;
13488 bool arg6 = (bool) False ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 PyObject * obj2 = 0 ;
13492 PyObject * obj3 = 0 ;
13493 PyObject * obj4 = 0 ;
13494 PyObject * obj5 = 0 ;
13495 char *kwnames[] = {
13496 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
13497 };
13498
13499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13502 arg2 = (int) SWIG_AsInt(obj1);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 arg3 = (int) SWIG_AsInt(obj2);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 arg4 = (int) SWIG_AsInt(obj3);
13507 if (PyErr_Occurred()) SWIG_fail;
13508 arg5 = (int) SWIG_AsInt(obj4);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 if (obj5) {
13511 arg6 = (bool) SWIG_AsBool(obj5);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 Py_INCREF(Py_None); resultobj = Py_None;
13522 return resultobj;
13523 fail:
13524 return NULL;
13525 }
13526
13527
13528 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj;
13530 wxGrid *arg1 = (wxGrid *) 0 ;
13531 PyObject * obj0 = 0 ;
13532 char *kwnames[] = {
13533 (char *) "self", NULL
13534 };
13535
13536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
13537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 (arg1)->SelectAll();
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 wxGrid *arg1 = (wxGrid *) 0 ;
13556 bool result;
13557 PyObject * obj0 = 0 ;
13558 char *kwnames[] = {
13559 (char *) "self", NULL
13560 };
13561
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
13563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 result = (bool)(arg1)->IsSelection();
13568
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 {
13573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13574 }
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj;
13583 wxGrid *arg1 = (wxGrid *) 0 ;
13584 PyObject * obj0 = 0 ;
13585 char *kwnames[] = {
13586 (char *) "self", NULL
13587 };
13588
13589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
13590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13592 {
13593 PyThreadState* __tstate = wxPyBeginAllowThreads();
13594 (arg1)->ClearSelection();
13595
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 Py_INCREF(Py_None); resultobj = Py_None;
13600 return resultobj;
13601 fail:
13602 return NULL;
13603 }
13604
13605
13606 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj;
13608 wxGrid *arg1 = (wxGrid *) 0 ;
13609 int arg2 ;
13610 int arg3 ;
13611 bool result;
13612 PyObject * obj0 = 0 ;
13613 PyObject * obj1 = 0 ;
13614 PyObject * obj2 = 0 ;
13615 char *kwnames[] = {
13616 (char *) "self",(char *) "row",(char *) "col", NULL
13617 };
13618
13619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13622 arg2 = (int) SWIG_AsInt(obj1);
13623 if (PyErr_Occurred()) SWIG_fail;
13624 arg3 = (int) SWIG_AsInt(obj2);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (bool)(arg1)->IsInSelection(arg2,arg3);
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13635 }
13636 return resultobj;
13637 fail:
13638 return NULL;
13639 }
13640
13641
13642 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj;
13644 wxGrid *arg1 = (wxGrid *) 0 ;
13645 wxGridCellCoordsArray result;
13646 PyObject * obj0 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 result = ((wxGrid const *)arg1)->GetSelectedCells();
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 {
13662 resultobj = wxGridCellCoordsArray_helper(result);
13663 }
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
13671 PyObject *resultobj;
13672 wxGrid *arg1 = (wxGrid *) 0 ;
13673 wxGridCellCoordsArray result;
13674 PyObject * obj0 = 0 ;
13675 char *kwnames[] = {
13676 (char *) "self", NULL
13677 };
13678
13679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
13680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
13685
13686 wxPyEndAllowThreads(__tstate);
13687 if (PyErr_Occurred()) SWIG_fail;
13688 }
13689 {
13690 resultobj = wxGridCellCoordsArray_helper(result);
13691 }
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj;
13700 wxGrid *arg1 = (wxGrid *) 0 ;
13701 wxGridCellCoordsArray result;
13702 PyObject * obj0 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
13713
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 resultobj = wxGridCellCoordsArray_helper(result);
13719 }
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxGrid *arg1 = (wxGrid *) 0 ;
13729 wxArrayInt result;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = ((wxGrid const *)arg1)->GetSelectedRows();
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 resultobj = PyList_New(0);
13747 size_t idx;
13748 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13749 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13750 PyList_Append(resultobj, val);
13751 Py_DECREF(val);
13752 }
13753 }
13754 return resultobj;
13755 fail:
13756 return NULL;
13757 }
13758
13759
13760 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj;
13762 wxGrid *arg1 = (wxGrid *) 0 ;
13763 wxArrayInt result;
13764 PyObject * obj0 = 0 ;
13765 char *kwnames[] = {
13766 (char *) "self", NULL
13767 };
13768
13769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
13770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 result = ((wxGrid const *)arg1)->GetSelectedCols();
13775
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 {
13780 resultobj = PyList_New(0);
13781 size_t idx;
13782 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13783 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13784 PyList_Append(resultobj, val);
13785 Py_DECREF(val);
13786 }
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj;
13796 wxGrid *arg1 = (wxGrid *) 0 ;
13797 int arg2 ;
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 char *kwnames[] = {
13801 (char *) "self",(char *) "row", NULL
13802 };
13803
13804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail;
13805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13807 arg2 = (int) SWIG_AsInt(obj1);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 {
13810 PyThreadState* __tstate = wxPyBeginAllowThreads();
13811 (arg1)->DeselectRow(arg2);
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 Py_INCREF(Py_None); resultobj = Py_None;
13817 return resultobj;
13818 fail:
13819 return NULL;
13820 }
13821
13822
13823 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj;
13825 wxGrid *arg1 = (wxGrid *) 0 ;
13826 int arg2 ;
13827 PyObject * obj0 = 0 ;
13828 PyObject * obj1 = 0 ;
13829 char *kwnames[] = {
13830 (char *) "self",(char *) "col", NULL
13831 };
13832
13833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail;
13834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13836 arg2 = (int) SWIG_AsInt(obj1);
13837 if (PyErr_Occurred()) SWIG_fail;
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 (arg1)->DeselectCol(arg2);
13841
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 Py_INCREF(Py_None); resultobj = Py_None;
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj;
13854 wxGrid *arg1 = (wxGrid *) 0 ;
13855 int arg2 ;
13856 int arg3 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 PyObject * obj2 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self",(char *) "row",(char *) "col", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13867 arg2 = (int) SWIG_AsInt(obj1);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 arg3 = (int) SWIG_AsInt(obj2);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 {
13872 PyThreadState* __tstate = wxPyBeginAllowThreads();
13873 (arg1)->DeselectCell(arg2,arg3);
13874
13875 wxPyEndAllowThreads(__tstate);
13876 if (PyErr_Occurred()) SWIG_fail;
13877 }
13878 Py_INCREF(Py_None); resultobj = Py_None;
13879 return resultobj;
13880 fail:
13881 return NULL;
13882 }
13883
13884
13885 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13886 PyObject *resultobj;
13887 wxGrid *arg1 = (wxGrid *) 0 ;
13888 wxGridCellCoords *arg2 = 0 ;
13889 wxGridCellCoords *arg3 = 0 ;
13890 wxRect result;
13891 wxGridCellCoords temp2 ;
13892 wxGridCellCoords temp3 ;
13893 PyObject * obj0 = 0 ;
13894 PyObject * obj1 = 0 ;
13895 PyObject * obj2 = 0 ;
13896 char *kwnames[] = {
13897 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
13898 };
13899
13900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13903 {
13904 arg2 = &temp2;
13905 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
13906 }
13907 {
13908 arg3 = &temp3;
13909 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
13910 }
13911 {
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
13914
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 {
13919 wxRect * resultptr;
13920 resultptr = new wxRect((wxRect &) result);
13921 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13922 }
13923 return resultobj;
13924 fail:
13925 return NULL;
13926 }
13927
13928
13929 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13930 PyObject *resultobj;
13931 wxGrid *arg1 = (wxGrid *) 0 ;
13932 wxColour result;
13933 PyObject * obj0 = 0 ;
13934 char *kwnames[] = {
13935 (char *) "self", NULL
13936 };
13937
13938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
13939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13941 {
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = ((wxGrid const *)arg1)->GetSelectionBackground();
13944
13945 wxPyEndAllowThreads(__tstate);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 }
13948 {
13949 wxColour * resultptr;
13950 resultptr = new wxColour((wxColour &) result);
13951 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13952 }
13953 return resultobj;
13954 fail:
13955 return NULL;
13956 }
13957
13958
13959 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13960 PyObject *resultobj;
13961 wxGrid *arg1 = (wxGrid *) 0 ;
13962 wxColour result;
13963 PyObject * obj0 = 0 ;
13964 char *kwnames[] = {
13965 (char *) "self", NULL
13966 };
13967
13968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
13969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13971 {
13972 PyThreadState* __tstate = wxPyBeginAllowThreads();
13973 result = ((wxGrid const *)arg1)->GetSelectionForeground();
13974
13975 wxPyEndAllowThreads(__tstate);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 }
13978 {
13979 wxColour * resultptr;
13980 resultptr = new wxColour((wxColour &) result);
13981 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13982 }
13983 return resultobj;
13984 fail:
13985 return NULL;
13986 }
13987
13988
13989 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13990 PyObject *resultobj;
13991 wxGrid *arg1 = (wxGrid *) 0 ;
13992 wxColour *arg2 = 0 ;
13993 wxColour temp2 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 char *kwnames[] = {
13997 (char *) "self",(char *) "c", NULL
13998 };
13999
14000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
14001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14003 {
14004 arg2 = &temp2;
14005 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14006 }
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
14010
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 Py_INCREF(Py_None); resultobj = Py_None;
14015 return resultobj;
14016 fail:
14017 return NULL;
14018 }
14019
14020
14021 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14022 PyObject *resultobj;
14023 wxGrid *arg1 = (wxGrid *) 0 ;
14024 wxColour *arg2 = 0 ;
14025 wxColour temp2 ;
14026 PyObject * obj0 = 0 ;
14027 PyObject * obj1 = 0 ;
14028 char *kwnames[] = {
14029 (char *) "self",(char *) "c", NULL
14030 };
14031
14032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
14033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14035 {
14036 arg2 = &temp2;
14037 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14038 }
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
14042
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 Py_INCREF(Py_None); resultobj = Py_None;
14047 return resultobj;
14048 fail:
14049 return NULL;
14050 }
14051
14052
14053 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
14054 PyObject *resultobj;
14055 wxGrid *arg1 = (wxGrid *) 0 ;
14056 wxString *arg2 = 0 ;
14057 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
14058 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
14059 bool temp2 = False ;
14060 PyObject * obj0 = 0 ;
14061 PyObject * obj1 = 0 ;
14062 PyObject * obj2 = 0 ;
14063 PyObject * obj3 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
14066 };
14067
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14071 {
14072 arg2 = wxString_in_helper(obj1);
14073 if (arg2 == NULL) SWIG_fail;
14074 temp2 = True;
14075 }
14076 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer,
14077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14078 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor,
14079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14080 {
14081 PyThreadState* __tstate = wxPyBeginAllowThreads();
14082 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
14083
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 Py_INCREF(Py_None); resultobj = Py_None;
14088 {
14089 if (temp2)
14090 delete arg2;
14091 }
14092 return resultobj;
14093 fail:
14094 {
14095 if (temp2)
14096 delete arg2;
14097 }
14098 return NULL;
14099 }
14100
14101
14102 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
14103 PyObject *resultobj;
14104 wxGrid *arg1 = (wxGrid *) 0 ;
14105 int arg2 ;
14106 int arg3 ;
14107 wxGridCellEditor *result;
14108 PyObject * obj0 = 0 ;
14109 PyObject * obj1 = 0 ;
14110 PyObject * obj2 = 0 ;
14111 char *kwnames[] = {
14112 (char *) "self",(char *) "row",(char *) "col", NULL
14113 };
14114
14115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
14116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14118 arg2 = (int) SWIG_AsInt(obj1);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 arg3 = (int) SWIG_AsInt(obj2);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
14125
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 {
14130 resultobj = wxPyMake_wxGridCellEditor(result, 0);
14131 }
14132 return resultobj;
14133 fail:
14134 return NULL;
14135 }
14136
14137
14138 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
14139 PyObject *resultobj;
14140 wxGrid *arg1 = (wxGrid *) 0 ;
14141 int arg2 ;
14142 int arg3 ;
14143 wxGridCellRenderer *result;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 PyObject * obj2 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self",(char *) "row",(char *) "col", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 arg2 = (int) SWIG_AsInt(obj1);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 arg3 = (int) SWIG_AsInt(obj2);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
14161
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 {
14166 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
14167 }
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj;
14176 wxGrid *arg1 = (wxGrid *) 0 ;
14177 wxString *arg2 = 0 ;
14178 wxGridCellEditor *result;
14179 bool temp2 = False ;
14180 PyObject * obj0 = 0 ;
14181 PyObject * obj1 = 0 ;
14182 char *kwnames[] = {
14183 (char *) "self",(char *) "typeName", NULL
14184 };
14185
14186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
14187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14189 {
14190 arg2 = wxString_in_helper(obj1);
14191 if (arg2 == NULL) SWIG_fail;
14192 temp2 = True;
14193 }
14194 {
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
14197
14198 wxPyEndAllowThreads(__tstate);
14199 if (PyErr_Occurred()) SWIG_fail;
14200 }
14201 {
14202 resultobj = wxPyMake_wxGridCellEditor(result, 0);
14203 }
14204 {
14205 if (temp2)
14206 delete arg2;
14207 }
14208 return resultobj;
14209 fail:
14210 {
14211 if (temp2)
14212 delete arg2;
14213 }
14214 return NULL;
14215 }
14216
14217
14218 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
14219 PyObject *resultobj;
14220 wxGrid *arg1 = (wxGrid *) 0 ;
14221 wxString *arg2 = 0 ;
14222 wxGridCellRenderer *result;
14223 bool temp2 = False ;
14224 PyObject * obj0 = 0 ;
14225 PyObject * obj1 = 0 ;
14226 char *kwnames[] = {
14227 (char *) "self",(char *) "typeName", NULL
14228 };
14229
14230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
14231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14233 {
14234 arg2 = wxString_in_helper(obj1);
14235 if (arg2 == NULL) SWIG_fail;
14236 temp2 = True;
14237 }
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
14241
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 {
14246 resultobj = wxPyMake_wxGridCellRenderer(result, 0);
14247 }
14248 {
14249 if (temp2)
14250 delete arg2;
14251 }
14252 return resultobj;
14253 fail:
14254 {
14255 if (temp2)
14256 delete arg2;
14257 }
14258 return NULL;
14259 }
14260
14261
14262 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxGrid *arg1 = (wxGrid *) 0 ;
14265 int arg2 ;
14266 int arg3 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 PyObject * obj2 = 0 ;
14270 char *kwnames[] = {
14271 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
14272 };
14273
14274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
14275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14277 arg2 = (int) SWIG_AsInt(obj1);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 arg3 = (int) SWIG_AsInt(obj2);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 (arg1)->SetMargins(arg2,arg3);
14284
14285 wxPyEndAllowThreads(__tstate);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 }
14288 Py_INCREF(Py_None); resultobj = Py_None;
14289 return resultobj;
14290 fail:
14291 return NULL;
14292 }
14293
14294
14295 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14296 PyObject *resultobj;
14297 wxGrid *arg1 = (wxGrid *) 0 ;
14298 wxWindow *result;
14299 PyObject * obj0 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = (wxWindow *)(arg1)->GetGridWindow();
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 resultobj = wxPyMake_wxObject(result, 0);
14316 }
14317 return resultobj;
14318 fail:
14319 return NULL;
14320 }
14321
14322
14323 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14324 PyObject *resultobj;
14325 wxGrid *arg1 = (wxGrid *) 0 ;
14326 wxWindow *result;
14327 PyObject * obj0 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
14338
14339 wxPyEndAllowThreads(__tstate);
14340 if (PyErr_Occurred()) SWIG_fail;
14341 }
14342 {
14343 resultobj = wxPyMake_wxObject(result, 0);
14344 }
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14352 PyObject *resultobj;
14353 wxGrid *arg1 = (wxGrid *) 0 ;
14354 wxWindow *result;
14355 PyObject * obj0 = 0 ;
14356 char *kwnames[] = {
14357 (char *) "self", NULL
14358 };
14359
14360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
14361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14363 {
14364 PyThreadState* __tstate = wxPyBeginAllowThreads();
14365 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
14366
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 {
14371 resultobj = wxPyMake_wxObject(result, 0);
14372 }
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 wxGrid *arg1 = (wxGrid *) 0 ;
14382 wxWindow *result;
14383 PyObject * obj0 = 0 ;
14384 char *kwnames[] = {
14385 (char *) "self", NULL
14386 };
14387
14388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
14389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 {
14399 resultobj = wxPyMake_wxObject(result, 0);
14400 }
14401 return resultobj;
14402 fail:
14403 return NULL;
14404 }
14405
14406
14407 static PyObject *_wrap_Grid_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj;
14409 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14410 wxVisualAttributes result;
14411 PyObject * obj0 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "variant", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Grid_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14417 if (obj0) {
14418 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 {
14422 if (!wxPyCheckForApp()) SWIG_fail;
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = wxGrid::GetClassDefaultAttributes((wxWindowVariant )arg1);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 {
14430 wxVisualAttributes * resultptr;
14431 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14433 }
14434 return resultobj;
14435 fail:
14436 return NULL;
14437 }
14438
14439
14440 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
14441 PyObject *obj;
14442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14443 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
14444 Py_INCREF(obj);
14445 return Py_BuildValue((char *)"");
14446 }
14447 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 int arg1 ;
14450 wxEventType arg2 ;
14451 wxGrid *arg3 = (wxGrid *) 0 ;
14452 int arg4 = (int) -1 ;
14453 int arg5 = (int) -1 ;
14454 int arg6 = (int) -1 ;
14455 int arg7 = (int) -1 ;
14456 bool arg8 = (bool) True ;
14457 bool arg9 = (bool) False ;
14458 bool arg10 = (bool) False ;
14459 bool arg11 = (bool) False ;
14460 bool arg12 = (bool) False ;
14461 wxGridEvent *result;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 PyObject * obj2 = 0 ;
14465 PyObject * obj3 = 0 ;
14466 PyObject * obj4 = 0 ;
14467 PyObject * obj5 = 0 ;
14468 PyObject * obj6 = 0 ;
14469 PyObject * obj7 = 0 ;
14470 PyObject * obj8 = 0 ;
14471 PyObject * obj9 = 0 ;
14472 PyObject * obj10 = 0 ;
14473 PyObject * obj11 = 0 ;
14474 char *kwnames[] = {
14475 (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
14476 };
14477
14478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOOO:new_GridEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
14479 arg1 = (int) SWIG_AsInt(obj0);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 arg2 = (wxEventType) SWIG_AsInt(obj1);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
14484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14485 if (obj3) {
14486 arg4 = (int) SWIG_AsInt(obj3);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 if (obj4) {
14490 arg5 = (int) SWIG_AsInt(obj4);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 if (obj5) {
14494 arg6 = (int) SWIG_AsInt(obj5);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 if (obj6) {
14498 arg7 = (int) SWIG_AsInt(obj6);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 if (obj7) {
14502 arg8 = (bool) SWIG_AsBool(obj7);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 if (obj8) {
14506 arg9 = (bool) SWIG_AsBool(obj8);
14507 if (PyErr_Occurred()) SWIG_fail;
14508 }
14509 if (obj9) {
14510 arg10 = (bool) SWIG_AsBool(obj9);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 if (obj10) {
14514 arg11 = (bool) SWIG_AsBool(obj10);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 if (obj11) {
14518 arg12 = (bool) SWIG_AsBool(obj11);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1);
14529 return resultobj;
14530 fail:
14531 return NULL;
14532 }
14533
14534
14535 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14536 PyObject *resultobj;
14537 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14538 int result;
14539 PyObject * obj0 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 result = (int)(arg1)->GetRow();
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_FromInt((int)result);
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14564 int result;
14565 PyObject * obj0 = 0 ;
14566 char *kwnames[] = {
14567 (char *) "self", NULL
14568 };
14569
14570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
14571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 result = (int)(arg1)->GetCol();
14576
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_FromInt((int)result);
14581 return resultobj;
14582 fail:
14583 return NULL;
14584 }
14585
14586
14587 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj;
14589 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14590 wxPoint result;
14591 PyObject * obj0 = 0 ;
14592 char *kwnames[] = {
14593 (char *) "self", NULL
14594 };
14595
14596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
14597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 result = (arg1)->GetPosition();
14602
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 {
14607 wxPoint * resultptr;
14608 resultptr = new wxPoint((wxPoint &) result);
14609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14610 }
14611 return resultobj;
14612 fail:
14613 return NULL;
14614 }
14615
14616
14617 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
14618 PyObject *resultobj;
14619 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14620 bool result;
14621 PyObject * obj0 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14629 {
14630 PyThreadState* __tstate = wxPyBeginAllowThreads();
14631 result = (bool)(arg1)->Selecting();
14632
14633 wxPyEndAllowThreads(__tstate);
14634 if (PyErr_Occurred()) SWIG_fail;
14635 }
14636 {
14637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14638 }
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14648 bool result;
14649 PyObject * obj0 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = (bool)(arg1)->ControlDown();
14660
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 {
14665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14666 }
14667 return resultobj;
14668 fail:
14669 return NULL;
14670 }
14671
14672
14673 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14676 bool result;
14677 PyObject * obj0 = 0 ;
14678 char *kwnames[] = {
14679 (char *) "self", NULL
14680 };
14681
14682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
14683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14685 {
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 result = (bool)(arg1)->MetaDown();
14688
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 {
14693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14694 }
14695 return resultobj;
14696 fail:
14697 return NULL;
14698 }
14699
14700
14701 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14702 PyObject *resultobj;
14703 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14704 bool result;
14705 PyObject * obj0 = 0 ;
14706 char *kwnames[] = {
14707 (char *) "self", NULL
14708 };
14709
14710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
14711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 result = (bool)(arg1)->ShiftDown();
14716
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 {
14721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14722 }
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj;
14731 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14732 bool result;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 result = (bool)(arg1)->AltDown();
14744
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 {
14749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14750 }
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
14758 PyObject *obj;
14759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14760 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
14761 Py_INCREF(obj);
14762 return Py_BuildValue((char *)"");
14763 }
14764 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj;
14766 int arg1 ;
14767 wxEventType arg2 ;
14768 wxGrid *arg3 = (wxGrid *) 0 ;
14769 int arg4 = (int) -1 ;
14770 int arg5 = (int) -1 ;
14771 int arg6 = (int) -1 ;
14772 bool arg7 = (bool) False ;
14773 bool arg8 = (bool) False ;
14774 bool arg9 = (bool) False ;
14775 bool arg10 = (bool) False ;
14776 wxGridSizeEvent *result;
14777 PyObject * obj0 = 0 ;
14778 PyObject * obj1 = 0 ;
14779 PyObject * obj2 = 0 ;
14780 PyObject * obj3 = 0 ;
14781 PyObject * obj4 = 0 ;
14782 PyObject * obj5 = 0 ;
14783 PyObject * obj6 = 0 ;
14784 PyObject * obj7 = 0 ;
14785 PyObject * obj8 = 0 ;
14786 PyObject * obj9 = 0 ;
14787 char *kwnames[] = {
14788 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
14789 };
14790
14791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
14792 arg1 = (int) SWIG_AsInt(obj0);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 arg2 = (wxEventType) SWIG_AsInt(obj1);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
14797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14798 if (obj3) {
14799 arg4 = (int) SWIG_AsInt(obj3);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 if (obj4) {
14803 arg5 = (int) SWIG_AsInt(obj4);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 if (obj5) {
14807 arg6 = (int) SWIG_AsInt(obj5);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 if (obj6) {
14811 arg7 = (bool) SWIG_AsBool(obj6);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 if (obj7) {
14815 arg8 = (bool) SWIG_AsBool(obj7);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 if (obj8) {
14819 arg9 = (bool) SWIG_AsBool(obj8);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 if (obj9) {
14823 arg10 = (bool) SWIG_AsBool(obj9);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1);
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj;
14842 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14843 int result;
14844 PyObject * obj0 = 0 ;
14845 char *kwnames[] = {
14846 (char *) "self", NULL
14847 };
14848
14849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
14850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 result = (int)(arg1)->GetRowOrCol();
14855
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_FromInt((int)result);
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj;
14868 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14869 wxPoint result;
14870 PyObject * obj0 = 0 ;
14871 char *kwnames[] = {
14872 (char *) "self", NULL
14873 };
14874
14875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
14876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14878 {
14879 PyThreadState* __tstate = wxPyBeginAllowThreads();
14880 result = (arg1)->GetPosition();
14881
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 {
14886 wxPoint * resultptr;
14887 resultptr = new wxPoint((wxPoint &) result);
14888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14889 }
14890 return resultobj;
14891 fail:
14892 return NULL;
14893 }
14894
14895
14896 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14897 PyObject *resultobj;
14898 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14899 bool result;
14900 PyObject * obj0 = 0 ;
14901 char *kwnames[] = {
14902 (char *) "self", NULL
14903 };
14904
14905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
14906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = (bool)(arg1)->ControlDown();
14911
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14917 }
14918 return resultobj;
14919 fail:
14920 return NULL;
14921 }
14922
14923
14924 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14925 PyObject *resultobj;
14926 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14927 bool result;
14928 PyObject * obj0 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (bool)(arg1)->MetaDown();
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 {
14944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14945 }
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj;
14954 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14955 bool result;
14956 PyObject * obj0 = 0 ;
14957 char *kwnames[] = {
14958 (char *) "self", NULL
14959 };
14960
14961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
14962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 result = (bool)(arg1)->ShiftDown();
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 {
14972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14973 }
14974 return resultobj;
14975 fail:
14976 return NULL;
14977 }
14978
14979
14980 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14981 PyObject *resultobj;
14982 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14983 bool result;
14984 PyObject * obj0 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
14990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 result = (bool)(arg1)->AltDown();
14995
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 {
15000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15001 }
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
15009 PyObject *obj;
15010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15011 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
15012 Py_INCREF(obj);
15013 return Py_BuildValue((char *)"");
15014 }
15015 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj;
15017 int arg1 ;
15018 wxEventType arg2 ;
15019 wxGrid *arg3 = (wxGrid *) 0 ;
15020 wxGridCellCoords *arg4 = 0 ;
15021 wxGridCellCoords *arg5 = 0 ;
15022 bool arg6 = (bool) True ;
15023 bool arg7 = (bool) False ;
15024 bool arg8 = (bool) False ;
15025 bool arg9 = (bool) False ;
15026 bool arg10 = (bool) False ;
15027 wxGridRangeSelectEvent *result;
15028 wxGridCellCoords temp4 ;
15029 wxGridCellCoords temp5 ;
15030 PyObject * obj0 = 0 ;
15031 PyObject * obj1 = 0 ;
15032 PyObject * obj2 = 0 ;
15033 PyObject * obj3 = 0 ;
15034 PyObject * obj4 = 0 ;
15035 PyObject * obj5 = 0 ;
15036 PyObject * obj6 = 0 ;
15037 PyObject * obj7 = 0 ;
15038 PyObject * obj8 = 0 ;
15039 PyObject * obj9 = 0 ;
15040 char *kwnames[] = {
15041 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
15042 };
15043
15044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
15045 arg1 = (int) SWIG_AsInt(obj0);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 arg2 = (wxEventType) SWIG_AsInt(obj1);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
15050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15051 {
15052 arg4 = &temp4;
15053 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
15054 }
15055 {
15056 arg5 = &temp5;
15057 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
15058 }
15059 if (obj5) {
15060 arg6 = (bool) SWIG_AsBool(obj5);
15061 if (PyErr_Occurred()) SWIG_fail;
15062 }
15063 if (obj6) {
15064 arg7 = (bool) SWIG_AsBool(obj6);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 if (obj7) {
15068 arg8 = (bool) SWIG_AsBool(obj7);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 if (obj8) {
15072 arg9 = (bool) SWIG_AsBool(obj8);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 }
15075 if (obj9) {
15076 arg10 = (bool) SWIG_AsBool(obj9);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1);
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
15094 PyObject *resultobj;
15095 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15096 wxGridCellCoords result;
15097 PyObject * obj0 = 0 ;
15098 char *kwnames[] = {
15099 (char *) "self", NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (arg1)->GetTopLeftCoords();
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 {
15113 wxGridCellCoords * resultptr;
15114 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
15115 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
15116 }
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj;
15125 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15126 wxGridCellCoords result;
15127 PyObject * obj0 = 0 ;
15128 char *kwnames[] = {
15129 (char *) "self", NULL
15130 };
15131
15132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
15133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 result = (arg1)->GetBottomRightCoords();
15138
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
15142 {
15143 wxGridCellCoords * resultptr;
15144 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
15145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
15146 }
15147 return resultobj;
15148 fail:
15149 return NULL;
15150 }
15151
15152
15153 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj;
15155 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15156 int result;
15157 PyObject * obj0 = 0 ;
15158 char *kwnames[] = {
15159 (char *) "self", NULL
15160 };
15161
15162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
15163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15165 {
15166 PyThreadState* __tstate = wxPyBeginAllowThreads();
15167 result = (int)(arg1)->GetTopRow();
15168
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 resultobj = SWIG_FromInt((int)result);
15173 return resultobj;
15174 fail:
15175 return NULL;
15176 }
15177
15178
15179 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15180 PyObject *resultobj;
15181 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15182 int result;
15183 PyObject * obj0 = 0 ;
15184 char *kwnames[] = {
15185 (char *) "self", NULL
15186 };
15187
15188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
15189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (int)(arg1)->GetBottomRow();
15194
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 resultobj = SWIG_FromInt((int)result);
15199 return resultobj;
15200 fail:
15201 return NULL;
15202 }
15203
15204
15205 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj;
15207 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15208 int result;
15209 PyObject * obj0 = 0 ;
15210 char *kwnames[] = {
15211 (char *) "self", NULL
15212 };
15213
15214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
15215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = (int)(arg1)->GetLeftCol();
15220
15221 wxPyEndAllowThreads(__tstate);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 resultobj = SWIG_FromInt((int)result);
15225 return resultobj;
15226 fail:
15227 return NULL;
15228 }
15229
15230
15231 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15232 PyObject *resultobj;
15233 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15234 int result;
15235 PyObject * obj0 = 0 ;
15236 char *kwnames[] = {
15237 (char *) "self", NULL
15238 };
15239
15240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
15241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15243 {
15244 PyThreadState* __tstate = wxPyBeginAllowThreads();
15245 result = (int)(arg1)->GetRightCol();
15246
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 resultobj = SWIG_FromInt((int)result);
15251 return resultobj;
15252 fail:
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15260 bool result;
15261 PyObject * obj0 = 0 ;
15262 char *kwnames[] = {
15263 (char *) "self", NULL
15264 };
15265
15266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
15267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15269 {
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 result = (bool)(arg1)->Selecting();
15272
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 {
15277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15278 }
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj;
15287 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15288 bool result;
15289 PyObject * obj0 = 0 ;
15290 char *kwnames[] = {
15291 (char *) "self", NULL
15292 };
15293
15294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
15295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 result = (bool)(arg1)->ControlDown();
15300
15301 wxPyEndAllowThreads(__tstate);
15302 if (PyErr_Occurred()) SWIG_fail;
15303 }
15304 {
15305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15306 }
15307 return resultobj;
15308 fail:
15309 return NULL;
15310 }
15311
15312
15313 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15314 PyObject *resultobj;
15315 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15316 bool result;
15317 PyObject * obj0 = 0 ;
15318 char *kwnames[] = {
15319 (char *) "self", NULL
15320 };
15321
15322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
15323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15325 {
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = (bool)(arg1)->MetaDown();
15328
15329 wxPyEndAllowThreads(__tstate);
15330 if (PyErr_Occurred()) SWIG_fail;
15331 }
15332 {
15333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15334 }
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15344 bool result;
15345 PyObject * obj0 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
15355 result = (bool)(arg1)->ShiftDown();
15356
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 {
15361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15362 }
15363 return resultobj;
15364 fail:
15365 return NULL;
15366 }
15367
15368
15369 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15370 PyObject *resultobj;
15371 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15372 bool result;
15373 PyObject * obj0 = 0 ;
15374 char *kwnames[] = {
15375 (char *) "self", NULL
15376 };
15377
15378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
15379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15381 {
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = (bool)(arg1)->AltDown();
15384
15385 wxPyEndAllowThreads(__tstate);
15386 if (PyErr_Occurred()) SWIG_fail;
15387 }
15388 {
15389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15390 }
15391 return resultobj;
15392 fail:
15393 return NULL;
15394 }
15395
15396
15397 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
15398 PyObject *obj;
15399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15400 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
15401 Py_INCREF(obj);
15402 return Py_BuildValue((char *)"");
15403 }
15404 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15405 PyObject *resultobj;
15406 int arg1 ;
15407 wxEventType arg2 ;
15408 wxObject *arg3 = (wxObject *) 0 ;
15409 int arg4 ;
15410 int arg5 ;
15411 wxControl *arg6 = (wxControl *) 0 ;
15412 wxGridEditorCreatedEvent *result;
15413 PyObject * obj0 = 0 ;
15414 PyObject * obj1 = 0 ;
15415 PyObject * obj2 = 0 ;
15416 PyObject * obj3 = 0 ;
15417 PyObject * obj4 = 0 ;
15418 PyObject * obj5 = 0 ;
15419 char *kwnames[] = {
15420 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
15421 };
15422
15423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15424 arg1 = (int) SWIG_AsInt(obj0);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 arg2 = (wxEventType) SWIG_AsInt(obj1);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject,
15429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15430 arg4 = (int) SWIG_AsInt(obj3);
15431 if (PyErr_Occurred()) SWIG_fail;
15432 arg5 = (int) SWIG_AsInt(obj4);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl,
15435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
15439
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
15444 return resultobj;
15445 fail:
15446 return NULL;
15447 }
15448
15449
15450 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj;
15452 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15453 int result;
15454 PyObject * obj0 = 0 ;
15455 char *kwnames[] = {
15456 (char *) "self", NULL
15457 };
15458
15459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
15460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 result = (int)(arg1)->GetRow();
15465
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 resultobj = SWIG_FromInt((int)result);
15470 return resultobj;
15471 fail:
15472 return NULL;
15473 }
15474
15475
15476 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj;
15478 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15479 int result;
15480 PyObject * obj0 = 0 ;
15481 char *kwnames[] = {
15482 (char *) "self", NULL
15483 };
15484
15485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
15486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15488 {
15489 PyThreadState* __tstate = wxPyBeginAllowThreads();
15490 result = (int)(arg1)->GetCol();
15491
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_FromInt((int)result);
15496 return resultobj;
15497 fail:
15498 return NULL;
15499 }
15500
15501
15502 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj;
15504 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15505 wxControl *result;
15506 PyObject * obj0 = 0 ;
15507 char *kwnames[] = {
15508 (char *) "self", NULL
15509 };
15510
15511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
15512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = (wxControl *)(arg1)->GetControl();
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 {
15522 resultobj = wxPyMake_wxObject(result, 0);
15523 }
15524 return resultobj;
15525 fail:
15526 return NULL;
15527 }
15528
15529
15530 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15531 PyObject *resultobj;
15532 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15533 int arg2 ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 char *kwnames[] = {
15537 (char *) "self",(char *) "row", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail;
15541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 arg2 = (int) SWIG_AsInt(obj1);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 {
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 (arg1)->SetRow(arg2);
15548
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 Py_INCREF(Py_None); resultobj = Py_None;
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj;
15561 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15562 int arg2 ;
15563 PyObject * obj0 = 0 ;
15564 PyObject * obj1 = 0 ;
15565 char *kwnames[] = {
15566 (char *) "self",(char *) "col", NULL
15567 };
15568
15569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail;
15570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15572 arg2 = (int) SWIG_AsInt(obj1);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 {
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 (arg1)->SetCol(arg2);
15577
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 Py_INCREF(Py_None); resultobj = Py_None;
15582 return resultobj;
15583 fail:
15584 return NULL;
15585 }
15586
15587
15588 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj;
15590 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15591 wxControl *arg2 = (wxControl *) 0 ;
15592 PyObject * obj0 = 0 ;
15593 PyObject * obj1 = 0 ;
15594 char *kwnames[] = {
15595 (char *) "self",(char *) "ctrl", NULL
15596 };
15597
15598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
15599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
15602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 (arg1)->SetControl(arg2);
15606
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 Py_INCREF(Py_None); resultobj = Py_None;
15611 return resultobj;
15612 fail:
15613 return NULL;
15614 }
15615
15616
15617 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
15618 PyObject *obj;
15619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15620 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
15621 Py_INCREF(obj);
15622 return Py_BuildValue((char *)"");
15623 }
15624 static PyMethodDef SwigMethods[] = {
15625 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15626 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
15627 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
15628 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
15629 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
15630 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
15631 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
15632 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
15633 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
15634 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15635 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15636 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
15637 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
15638 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
15639 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
15640 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
15641 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
15642 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
15643 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
15644 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
15645 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
15646 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
15647 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
15648 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
15649 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
15650 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
15651 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
15652 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
15653 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
15654 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
15655 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15656 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
15657 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
15658 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
15659 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
15660 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
15661 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
15662 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
15663 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
15664 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
15665 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
15666 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
15667 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
15668 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
15669 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
15670 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
15671 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15672 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15673 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
15674 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
15675 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15676 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
15677 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
15678 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
15679 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15680 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
15681 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
15682 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15683 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15684 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
15685 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
15686 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15687 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
15688 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15689 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
15690 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
15691 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15692 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
15693 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
15694 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15695 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
15696 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
15697 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15698 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
15699 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
15700 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15701 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
15702 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
15703 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15704 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
15705 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
15706 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15707 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
15708 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
15709 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15710 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
15711 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15712 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
15713 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
15714 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
15715 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
15716 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
15717 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
15718 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15719 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
15720 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
15721 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
15722 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
15723 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
15724 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
15725 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
15726 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
15727 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
15728 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15729 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
15730 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
15731 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
15732 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
15733 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
15734 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
15735 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
15736 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15737 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
15738 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
15739 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
15740 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
15741 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
15742 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
15743 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
15744 { (char *)"GridCellAttr_GetKind", (PyCFunction) _wrap_GridCellAttr_GetKind, METH_VARARGS | METH_KEYWORDS },
15745 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
15746 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
15747 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15748 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15749 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
15750 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
15751 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15752 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15753 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
15754 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
15755 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
15756 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15757 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15758 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15759 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15760 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15761 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15762 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
15763 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15764 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15765 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15766 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
15767 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
15768 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15769 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15770 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
15771 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
15772 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
15773 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15774 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15775 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15776 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15777 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15778 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15779 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15780 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15781 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15782 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
15783 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
15784 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
15785 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15786 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
15787 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
15788 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15789 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15790 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15791 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15792 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15793 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15794 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
15795 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
15796 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15797 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15798 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
15799 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
15800 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15801 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
15802 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15803 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15804 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15805 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
15806 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
15807 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
15808 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15809 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
15810 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
15811 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15814 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15815 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15816 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15817 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15821 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
15822 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
15823 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
15824 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15825 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15826 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
15827 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
15828 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
15829 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
15830 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
15831 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
15832 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15833 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15834 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
15835 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15836 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15837 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
15838 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
15839 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
15840 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
15841 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
15842 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
15843 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
15844 { (char *)"GridCellCoords_Get", (PyCFunction) _wrap_GridCellCoords_Get, METH_VARARGS | METH_KEYWORDS },
15845 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
15846 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"new_PreGrid", (PyCFunction) _wrap_new_PreGrid, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"Grid_Create", (PyCFunction) _wrap_Grid_Create, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15851 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15852 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15854 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
15855 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
15858 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
15867 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
15877 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
15888 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
15893 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
15896 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15904 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15911 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15969 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"Grid_GetClassDefaultAttributes", (PyCFunction) _wrap_Grid_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
16038 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
16048 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
16056 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
16069 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
16077 { NULL, NULL }
16078 };
16079
16080
16081 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16082
16083 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
16084 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
16085 }
16086 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
16087 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
16088 }
16089 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
16090 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
16091 }
16092 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
16093 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
16094 }
16095 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
16096 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
16097 }
16098 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
16099 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
16100 }
16101 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
16102 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
16103 }
16104 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
16105 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
16106 }
16107 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
16108 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
16109 }
16110 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
16111 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
16112 }
16113 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
16114 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
16115 }
16116 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
16117 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
16118 }
16119 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
16120 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
16121 }
16122 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
16123 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
16124 }
16125 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
16126 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
16127 }
16128 static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
16129 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
16130 }
16131 static void *_p_wxGridTo_p_wxPanel(void *x) {
16132 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
16133 }
16134 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
16135 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16136 }
16137 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
16138 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16139 }
16140 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
16141 return (void *)((wxPanel *) ((wxPyPanel *) x));
16142 }
16143 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
16144 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
16145 }
16146 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
16147 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
16148 }
16149 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
16150 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16151 }
16152 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
16153 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
16154 }
16155 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
16156 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16157 }
16158 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
16159 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
16160 }
16161 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
16162 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
16163 }
16164 static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
16165 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
16166 }
16167 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
16168 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
16169 }
16170 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
16171 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
16172 }
16173 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
16174 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16175 }
16176 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
16177 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16178 }
16179 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
16180 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
16181 }
16182 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16183 return (void *)((wxWindow *) ((wxMenuBar *) x));
16184 }
16185 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
16186 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16187 }
16188 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
16189 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16190 }
16191 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
16192 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16193 }
16194 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
16195 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16196 }
16197 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
16198 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16199 }
16200 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
16201 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16202 }
16203 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
16204 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16205 }
16206 static void *_p_wxPanelTo_p_wxWindow(void *x) {
16207 return (void *)((wxWindow *) ((wxPanel *) x));
16208 }
16209 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
16210 return (void *)((wxWindow *) ((wxStatusBar *) x));
16211 }
16212 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
16213 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
16214 }
16215 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
16216 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
16217 }
16218 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
16219 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
16220 }
16221 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
16222 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16223 }
16224 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
16225 return (void *)((wxWindow *) ((wxPopupWindow *) x));
16226 }
16227 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
16228 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
16229 }
16230 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
16231 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
16232 }
16233 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
16234 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
16235 }
16236 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
16237 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
16238 }
16239 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
16240 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
16241 }
16242 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
16243 return (void *)((wxWindow *) ((wxSashWindow *) x));
16244 }
16245 static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
16246 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
16247 }
16248 static void *_p_wxControlTo_p_wxWindow(void *x) {
16249 return (void *)((wxWindow *) ((wxControl *) x));
16250 }
16251 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
16252 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16253 }
16254 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
16255 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16256 }
16257 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
16258 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16259 }
16260 static void *_p_wxGridTo_p_wxWindow(void *x) {
16261 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16262 }
16263 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16264 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16265 }
16266 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
16267 return (void *)((wxWindow *) ((wxPyWindow *) x));
16268 }
16269 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
16270 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16271 }
16272 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
16273 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16274 }
16275 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
16276 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16277 }
16278 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
16279 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
16280 }
16281 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
16282 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16283 }
16284 static void *_p_wxFrameTo_p_wxWindow(void *x) {
16285 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
16286 }
16287 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
16288 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16289 }
16290 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
16291 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16292 }
16293 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
16294 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16295 }
16296 static void *_p_wxDialogTo_p_wxWindow(void *x) {
16297 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
16298 }
16299 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
16300 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16301 }
16302 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
16303 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16304 }
16305 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
16306 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16307 }
16308 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
16309 return (void *)((wxControl *) ((wxControlWithItems *) x));
16310 }
16311 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
16312 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
16313 }
16314 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
16315 return (void *)((wxEvent *) ((wxMenuEvent *) x));
16316 }
16317 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
16318 return (void *)((wxEvent *) ((wxCloseEvent *) x));
16319 }
16320 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
16321 return (void *)((wxEvent *) ((wxMouseEvent *) x));
16322 }
16323 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
16324 return (void *)((wxEvent *) ((wxEraseEvent *) x));
16325 }
16326 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
16327 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
16328 }
16329 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
16330 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
16331 }
16332 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
16333 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
16334 }
16335 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
16336 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
16337 }
16338 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
16339 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
16340 }
16341 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
16342 return (void *)((wxEvent *) ((wxPyEvent *) x));
16343 }
16344 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
16345 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
16346 }
16347 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
16348 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
16349 }
16350 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
16351 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16352 }
16353 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
16354 return (void *)((wxEvent *) ((wxIdleEvent *) x));
16355 }
16356 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
16357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
16358 }
16359 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
16360 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
16361 }
16362 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
16363 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
16364 }
16365 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
16366 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
16367 }
16368 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
16369 return (void *)((wxEvent *) ((wxActivateEvent *) x));
16370 }
16371 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
16372 return (void *)((wxEvent *) ((wxSizeEvent *) x));
16373 }
16374 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
16375 return (void *)((wxEvent *) ((wxMoveEvent *) x));
16376 }
16377 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
16378 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16379 }
16380 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
16381 return (void *)((wxEvent *) ((wxPaintEvent *) x));
16382 }
16383 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
16384 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
16385 }
16386 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
16387 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
16388 }
16389 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
16390 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
16391 }
16392 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
16393 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
16394 }
16395 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
16396 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16397 }
16398 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
16399 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
16400 }
16401 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
16402 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16403 }
16404 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
16405 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16406 }
16407 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
16408 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
16409 }
16410 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
16411 return (void *)((wxEvent *) ((wxFocusEvent *) x));
16412 }
16413 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
16414 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
16415 }
16416 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
16417 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
16418 }
16419 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
16420 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16421 }
16422 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
16423 return (void *)((wxEvent *) ((wxShowEvent *) x));
16424 }
16425 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
16426 return (void *)((wxEvent *) ((wxCommandEvent *) x));
16427 }
16428 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
16429 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
16430 }
16431 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
16432 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16433 }
16434 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
16435 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
16436 }
16437 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
16438 return (void *)((wxEvent *) ((wxKeyEvent *) x));
16439 }
16440 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
16441 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
16442 }
16443 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
16444 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
16445 }
16446 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16447 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16448 }
16449 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
16450 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16451 }
16452 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
16453 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16454 }
16455 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
16456 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16457 }
16458 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16459 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16460 }
16461 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16462 return (void *)((wxObject *) ((wxSizerItem *) x));
16463 }
16464 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16466 }
16467 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16468 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16469 }
16470 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16471 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16472 }
16473 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16474 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16475 }
16476 static void *_p_wxSizerTo_p_wxObject(void *x) {
16477 return (void *)((wxObject *) ((wxSizer *) x));
16478 }
16479 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16480 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16481 }
16482 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16483 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16484 }
16485 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
16486 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16487 }
16488 static void *_p_wxEventTo_p_wxObject(void *x) {
16489 return (void *)((wxObject *) ((wxEvent *) x));
16490 }
16491 static void *_p_wxFontDataTo_p_wxObject(void *x) {
16492 return (void *)((wxObject *) ((wxFontData *) x));
16493 }
16494 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
16495 return (void *)((wxObject *) ((wxPrintData *) x));
16496 }
16497 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16498 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16499 }
16500 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16501 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16502 }
16503 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16504 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16505 }
16506 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
16507 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
16508 }
16509 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
16510 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
16511 }
16512 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
16513 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
16514 }
16515 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
16516 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
16517 }
16518 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16519 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16520 }
16521 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16522 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16523 }
16524 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16525 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16526 }
16527 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16528 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16529 }
16530 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16531 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16532 }
16533 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16534 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16535 }
16536 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
16537 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16538 }
16539 static void *_p_wxGridEventTo_p_wxObject(void *x) {
16540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16541 }
16542 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
16543 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16544 }
16545 static void *_p_wxControlTo_p_wxObject(void *x) {
16546 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16547 }
16548 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16549 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16550 }
16551 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
16552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
16553 }
16554 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16555 return (void *)((wxObject *) ((wxFSFile *) x));
16556 }
16557 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
16558 return (void *)((wxObject *) ((wxFindReplaceData *) x));
16559 }
16560 static void *_p_wxGridTo_p_wxObject(void *x) {
16561 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16562 }
16563 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16564 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16565 }
16566 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
16567 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16568 }
16569 static void *_p_wxColourDataTo_p_wxObject(void *x) {
16570 return (void *)((wxObject *) ((wxColourData *) x));
16571 }
16572 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16573 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16574 }
16575 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16577 }
16578 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
16579 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
16580 }
16581 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
16582 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16583 }
16584 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
16585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16586 }
16587 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
16588 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16589 }
16590 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
16591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16592 }
16593 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
16594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16595 }
16596 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
16597 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16598 }
16599 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
16600 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16601 }
16602 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
16603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16604 }
16605 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16606 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16607 }
16608 static void *_p_wxPrinterTo_p_wxObject(void *x) {
16609 return (void *)((wxObject *) ((wxPrinter *) x));
16610 }
16611 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16612 return (void *)((wxObject *) ((wxMenuItem *) x));
16613 }
16614 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16615 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16616 }
16617 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16619 }
16620 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16621 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16622 }
16623 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16624 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16625 }
16626 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16627 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16628 }
16629 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16630 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16631 }
16632 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16633 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16634 }
16635 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16636 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16637 }
16638 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
16639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16640 }
16641 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16642 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16643 }
16644 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16645 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16646 }
16647 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16648 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16649 }
16650 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16651 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16652 }
16653 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16654 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16655 }
16656 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16657 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16658 }
16659 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16660 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16661 }
16662 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16663 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16664 }
16665 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16666 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16667 }
16668 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16669 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16670 }
16671 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16672 return (void *)((wxObject *) ((wxImageHandler *) x));
16673 }
16674 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16675 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16676 }
16677 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16678 return (void *)((wxObject *) ((wxEvtHandler *) x));
16679 }
16680 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
16681 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
16682 }
16683 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
16684 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16685 }
16686 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
16687 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16688 }
16689 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
16690 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16691 }
16692 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16693 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16694 }
16695 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
16696 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16697 }
16698 static void *_p_wxImageTo_p_wxObject(void *x) {
16699 return (void *)((wxObject *) ((wxImage *) x));
16700 }
16701 static void *_p_wxFrameTo_p_wxObject(void *x) {
16702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16703 }
16704 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
16705 return (void *)((wxObject *) ((wxPyPrintout *) x));
16706 }
16707 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16708 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16709 }
16710 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
16711 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
16712 }
16713 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
16714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
16715 }
16716 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
16717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16718 }
16719 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16720 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16721 }
16722 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16723 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16724 }
16725 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16726 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16727 }
16728 static void *_p_wxWindowTo_p_wxObject(void *x) {
16729 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16730 }
16731 static void *_p_wxMenuTo_p_wxObject(void *x) {
16732 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16733 }
16734 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16735 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16736 }
16737 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
16738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16739 }
16740 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
16741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
16742 }
16743 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
16744 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
16745 }
16746 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
16747 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
16748 }
16749 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
16750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
16751 }
16752 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
16753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16754 }
16755 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
16756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
16757 }
16758 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
16759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16760 }
16761 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
16762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
16763 }
16764 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
16765 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16766 }
16767 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
16768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
16769 }
16770 static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
16771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
16772 }
16773 static void *_p_wxSashEventTo_p_wxObject(void *x) {
16774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
16775 }
16776 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
16777 return (void *)((wxObject *) ((wxPrintPreview *) x));
16778 }
16779 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
16780 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
16781 }
16782 static void *_p_wxPanelTo_p_wxObject(void *x) {
16783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
16784 }
16785 static void *_p_wxDialogTo_p_wxObject(void *x) {
16786 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
16787 }
16788 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
16789 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16790 }
16791 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
16792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16793 }
16794 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
16795 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16796 }
16797 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
16798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16799 }
16800 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
16801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16802 }
16803 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16804 return (void *)((wxObject *) ((wxFileSystem *) x));
16805 }
16806 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16808 }
16809 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16810 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16811 }
16812 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16813 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16814 }
16815 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16816 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16817 }
16818 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16819 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16820 }
16821 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16822 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16823 }
16824 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
16825 return (void *)((wxObject *) ((wxGridTableBase *) x));
16826 }
16827 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
16828 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
16829 }
16830 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16832 }
16833 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16834 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16835 }
16836 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
16837 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16838 }
16839 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
16840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16841 }
16842 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16843 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16844 }
16845 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16846 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16847 }
16848 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16849 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16850 }
16851 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16853 }
16854 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
16855 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
16856 }
16857 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
16858 return (void *)((wxObject *) ((wxPrintDialogData *) x));
16859 }
16860 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16861 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16862 }
16863 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16864 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16865 }
16866 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
16867 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16868 }
16869 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
16870 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16871 }
16872 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
16873 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16874 }
16875 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
16876 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
16877 }
16878 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
16879 return (void *)((wxEvtHandler *) ((wxValidator *) x));
16880 }
16881 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
16882 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
16883 }
16884 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
16885 return (void *)((wxEvtHandler *) ((wxMenu *) x));
16886 }
16887 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
16888 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16889 }
16890 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
16891 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16892 }
16893 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
16894 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16895 }
16896 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
16897 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16898 }
16899 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
16900 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16901 }
16902 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
16903 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16904 }
16905 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
16906 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16907 }
16908 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
16909 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
16910 }
16911 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
16912 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
16913 }
16914 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
16915 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16916 }
16917 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
16918 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
16919 }
16920 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
16921 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16922 }
16923 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
16924 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
16925 }
16926 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
16927 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16928 }
16929 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
16930 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
16931 }
16932 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
16933 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
16934 }
16935 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
16936 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
16937 }
16938 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
16939 return (void *)((wxEvtHandler *) ((wxWindow *) x));
16940 }
16941 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
16942 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16943 }
16944 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
16945 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
16946 }
16947 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
16948 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
16949 }
16950 static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
16951 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
16952 }
16953 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
16954 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
16955 }
16956 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
16957 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16958 }
16959 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
16960 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16961 }
16962 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
16963 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16964 }
16965 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
16966 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
16967 }
16968 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
16969 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16970 }
16971 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
16972 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16973 }
16974 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
16975 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
16976 }
16977 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
16978 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16979 }
16980 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
16981 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16982 }
16983 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
16984 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16985 }
16986 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
16987 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16988 }
16989 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
16990 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16991 }
16992 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
16993 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
16994 }
16995 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
16996 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16997 }
16998 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
16999 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
17000 }
17001 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
17002 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
17003 }
17004 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
17005 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
17006 }
17007 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
17008 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
17009 }
17010 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
17011 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
17012 }
17013 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
17014 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
17015 }
17016 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
17017 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
17018 }
17019 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
17020 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
17021 }
17022 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
17023 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
17024 }
17025 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
17026 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
17027 }
17028 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
17029 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
17030 }
17031 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
17032 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
17033 }
17034 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
17035 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
17036 }
17037 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
17038 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
17039 }
17040 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
17041 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
17042 }
17043 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
17044 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
17045 }
17046 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
17047 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
17048 }
17049 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
17050 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
17051 }
17052 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
17053 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
17054 }
17055 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
17056 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
17057 }
17058 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
17059 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
17060 }
17061 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
17062 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
17063 }
17064 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
17065 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
17066 }
17067 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
17068 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
17069 }
17070 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
17071 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
17072 }
17073 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
17074 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
17075 }
17076 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
17077 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
17078 }
17079 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
17080 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
17081 }
17082 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
17083 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
17084 }
17085 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
17086 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
17087 }
17088 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
17089 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
17090 }
17091 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
17092 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
17093 }
17094 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
17095 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
17096 }
17097 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
17098 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
17099 }
17100 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
17101 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
17102 }
17103 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
17104 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
17105 }
17106 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
17107 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
17108 }
17109 static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17110 static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17111 static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17112 static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17113 static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17114 static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17115 static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17116 static swig_type_info _swigt__p_wxGridCellRenderer[] = {{"_p_wxGridCellRenderer", 0, "wxGridCellRenderer *", 0, 0, 0, 0},{"_p_wxGridCellRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", _p_wxPyGridCellRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", _p_wxGridCellStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", _p_wxGridCellBoolRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17117 static swig_type_info _swigt__p_wxGridCellStringRenderer[] = {{"_p_wxGridCellStringRenderer", 0, "wxGridCellStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17118 static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0, 0, 0, 0},{"_p_wxGridCellAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17119 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17120 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17121 static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0, 0, 0, 0},{"_p_wxGridTableMessage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17122 static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0, 0, 0, 0},{"_p_wxGrid", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17123 static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17124 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17125 static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17126 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17127 static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17128 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17129 static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0, 0, 0, 0},{"_p_wxGridCellCoords", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17130 static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17131 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17132 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17133 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17134 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17135 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", _p_wxGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17136 static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17137 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17138 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17139 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17140 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17141 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17142 static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0, 0, 0, 0},{"_p_wxGridEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17143 static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17144 static swig_type_info _swigt__p_wxGridTableBase[] = {{"_p_wxGridTableBase", 0, "wxGridTableBase *", 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17145 static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17146 static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0, 0, 0, 0},{"_p_wxPyGridCellEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17147 static swig_type_info _swigt__p_wxGridCellEditor[] = {{"_p_wxGridCellEditor", 0, "wxGridCellEditor *", 0, 0, 0, 0},{"_p_wxGridCellEditor", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellEditor", _p_wxPyGridCellEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellTextEditor", _p_wxGridCellTextEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", _p_wxGridCellBoolEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", _p_wxGridCellChoiceEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17148 static swig_type_info _swigt__p_wxGridCellTextEditor[] = {{"_p_wxGridCellTextEditor", 0, "wxGridCellTextEditor *", 0, 0, 0, 0},{"_p_wxGridCellTextEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17149 static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17150 static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17151 static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0, 0, 0, 0},{"_p_wxPyGridTableBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17152 static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0, 0, 0, 0},{"_p_wxGridStringTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17153 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17154 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17155 static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17156 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17157 static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17158 static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17159 static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17160 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17161 static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
17162
17163 static swig_type_info *swig_types_initial[] = {
17164 _swigt__p_wxGridCellAutoWrapStringRenderer,
17165 _swigt__p_wxGridCellEnumRenderer,
17166 _swigt__p_wxGridCellDateTimeRenderer,
17167 _swigt__p_wxGridCellBoolRenderer,
17168 _swigt__p_wxGridCellFloatRenderer,
17169 _swigt__p_wxGridCellNumberRenderer,
17170 _swigt__p_wxPyGridCellRenderer,
17171 _swigt__p_wxGridCellRenderer,
17172 _swigt__p_wxGridCellStringRenderer,
17173 _swigt__p_wxGridCellAttr,
17174 _swigt__p_wxColour,
17175 _swigt__p_wxDC,
17176 _swigt__p_wxGridTableMessage,
17177 _swigt__p_wxGrid,
17178 _swigt__p_wxVisualAttributes,
17179 _swigt__p_char,
17180 _swigt__p_wxPanel,
17181 _swigt__p_wxNotifyEvent,
17182 _swigt__p_wxGridRangeSelectEvent,
17183 _swigt__p_wxSize,
17184 _swigt__p_wxGridCellCoords,
17185 _swigt__p_wxScrolledWindow,
17186 _swigt__p_wxWindow,
17187 _swigt__p_wxFont,
17188 _swigt__p_wxControl,
17189 _swigt__p_wxEvent,
17190 _swigt__p_wxObject,
17191 _swigt__p_wxGridSizeEvent,
17192 _swigt__p_wxRect,
17193 _swigt__p_long,
17194 _swigt__p_wxString,
17195 _swigt__p_wxEvtHandler,
17196 _swigt__p_wxPoint,
17197 _swigt__p_wxGridEvent,
17198 _swigt__p_wxGridEditorCreatedEvent,
17199 _swigt__p_wxGridTableBase,
17200 _swigt__p_wxGridCellNumberEditor,
17201 _swigt__p_wxPyGridCellEditor,
17202 _swigt__p_wxGridCellEditor,
17203 _swigt__p_wxGridCellTextEditor,
17204 _swigt__p_wxGridCellFloatEditor,
17205 _swigt__p_wxGridCellBoolEditor,
17206 _swigt__p_wxPyGridTableBase,
17207 _swigt__p_wxGridStringTable,
17208 _swigt__p_wxArrayString,
17209 _swigt__p_wxCommandEvent,
17210 _swigt__p_wxGridCellAttrProvider,
17211 _swigt__p_wxKeyEvent,
17212 _swigt__p_wxGridCellChoiceEditor,
17213 _swigt__p_wxGridCellEnumEditor,
17214 _swigt__p_wxGridCellAutoWrapStringEditor,
17215 _swigt__p_int,
17216 _swigt__p_wxPyGridCellAttrProvider,
17217 0
17218 };
17219
17220
17221 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17222
17223 static swig_const_info swig_const_table[] = {
17224 { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char},
17225 { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char},
17226 { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char},
17227 { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char},
17228 { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char},
17229 { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char},
17230 { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char},
17231 { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char},
17232 { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char},
17233 {0}};
17234
17235 #ifdef __cplusplus
17236 }
17237 #endif
17238
17239 #ifdef __cplusplus
17240 extern "C"
17241 #endif
17242 SWIGEXPORT(void) SWIG_init(void) {
17243 static PyObject *SWIG_globals = 0;
17244 static int typeinit = 0;
17245 PyObject *m, *d;
17246 int i;
17247 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17248 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17249 d = PyModule_GetDict(m);
17250
17251 if (!typeinit) {
17252 for (i = 0; swig_types_initial[i]; i++) {
17253 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17254 }
17255 typeinit = 1;
17256 }
17257 SWIG_InstallConstants(d,swig_const_table);
17258
17259 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17260 SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set);
17261 PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string"));
17262 PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool"));
17263 PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long"));
17264 PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double"));
17265 PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice"));
17266 PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string"));
17267 PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long"));
17268 PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint"));
17269 PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime"));
17270 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
17271 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
17272 PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_ROWS", SWIG_FromInt((int)WXGRID_DEFAULT_NUMBER_ROWS));
17273 PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_COLS", SWIG_FromInt((int)WXGRID_DEFAULT_NUMBER_COLS));
17274 PyDict_SetItemString(d,"GRID_DEFAULT_ROW_HEIGHT", SWIG_FromInt((int)WXGRID_DEFAULT_ROW_HEIGHT));
17275 PyDict_SetItemString(d,"GRID_DEFAULT_COL_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_COL_WIDTH));
17276 PyDict_SetItemString(d,"GRID_DEFAULT_COL_LABEL_HEIGHT", SWIG_FromInt((int)WXGRID_DEFAULT_COL_LABEL_HEIGHT));
17277 PyDict_SetItemString(d,"GRID_DEFAULT_ROW_LABEL_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_ROW_LABEL_WIDTH));
17278 PyDict_SetItemString(d,"GRID_LABEL_EDGE_ZONE", SWIG_FromInt((int)WXGRID_LABEL_EDGE_ZONE));
17279 PyDict_SetItemString(d,"GRID_MIN_ROW_HEIGHT", SWIG_FromInt((int)WXGRID_MIN_ROW_HEIGHT));
17280 PyDict_SetItemString(d,"GRID_MIN_COL_WIDTH", SWIG_FromInt((int)WXGRID_MIN_COL_WIDTH));
17281 PyDict_SetItemString(d,"GRID_DEFAULT_SCROLLBAR_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_SCROLLBAR_WIDTH));
17282 PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any));
17283 PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default));
17284 PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell));
17285 PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_FromInt((int)wxGridCellAttr::Row));
17286 PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_FromInt((int)wxGridCellAttr::Col));
17287 PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_FromInt((int)wxGridCellAttr::Merged));
17288 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES));
17289 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES));
17290 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED));
17291 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED));
17292 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED));
17293 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED));
17294 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED));
17295 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED));
17296 PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_FromInt((int)wxGrid::wxGridSelectCells));
17297 PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_FromInt((int)wxGrid::wxGridSelectRows));
17298 PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_FromInt((int)wxGrid::wxGridSelectColumns));
17299 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
17300 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
17301 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
17302 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
17303 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
17304 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
17305 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
17306 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
17307 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
17308 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
17309 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
17310 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
17311 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
17312 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
17313 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
17314 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
17315
17316
17317 }
17318