]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/grid_wrap.cpp
Added wxDisplay and wxVideoMode
[wxWidgets.git] / wxPython / src / msw / grid_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * 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_char swig_types[14]
224 #define SWIGTYPE_p_wxPanel swig_types[15]
225 #define SWIGTYPE_p_wxNotifyEvent swig_types[16]
226 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[17]
227 #define SWIGTYPE_p_wxSize swig_types[18]
228 #define SWIGTYPE_p_wxGridCellCoords swig_types[19]
229 #define SWIGTYPE_p_wxScrolledWindow swig_types[20]
230 #define SWIGTYPE_p_wxWindow swig_types[21]
231 #define SWIGTYPE_p_wxFont swig_types[22]
232 #define SWIGTYPE_p_wxControl swig_types[23]
233 #define SWIGTYPE_p_wxEvent swig_types[24]
234 #define SWIGTYPE_p_wxObject swig_types[25]
235 #define SWIGTYPE_p_wxGridSizeEvent swig_types[26]
236 #define SWIGTYPE_p_wxRect swig_types[27]
237 #define SWIGTYPE_p_long swig_types[28]
238 #define SWIGTYPE_p_wxString swig_types[29]
239 #define SWIGTYPE_p_wxEvtHandler swig_types[30]
240 #define SWIGTYPE_p_wxPoint swig_types[31]
241 #define SWIGTYPE_p_wxGridEvent swig_types[32]
242 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[33]
243 #define SWIGTYPE_p_wxGridTableBase swig_types[34]
244 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35]
245 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36]
246 #define SWIGTYPE_p_wxGridCellEditor swig_types[37]
247 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38]
248 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[39]
249 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[40]
250 #define SWIGTYPE_p_wxPyGridTableBase swig_types[41]
251 #define SWIGTYPE_p_wxGridStringTable swig_types[42]
252 #define SWIGTYPE_p_wxArrayString swig_types[43]
253 #define SWIGTYPE_p_wxCommandEvent swig_types[44]
254 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[45]
255 #define SWIGTYPE_p_wxKeyEvent swig_types[46]
256 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[47]
257 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[48]
258 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[51]
261 static swig_type_info *swig_types[53];
262
263 /* -------- TYPES TABLE (END) -------- */
264
265
266 /*-----------------------------------------------
267 @(target):= _grid.so
268 ------------------------------------------------*/
269 #define SWIG_init init_grid
270
271 #define SWIG_name "_grid"
272
273 /* Auxiliar swig macros */
274
275 #ifdef __cplusplus
276 #define SWIGSTATICINLINE(a) static inline a
277 #define SWIGSTATIC(a) static a
278 #define swig_new_array(type, size) (new type[(size)])
279 #define swig_delete_array(cptr) delete[] cptr
280 #define swig_const_cast(type,a) const_cast<type>(a)
281 #define swig_static_cast(type,a) static_cast<type>(a)
282 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
283
284 #ifdef HAVE_NUMERIC_CAST
285 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
286 #else
287 #define swig_numeric_cast(type,a) static_cast<type>(a)
288 #endif
289
290 #else /* C case */
291
292 #define SWIGSTATICINLINE(a) static a
293 #define SWIGSTATIC(a) static a
294 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
295 #define swig_delete_array(cptr) free((char*)cptr)
296 #define swig_const_cast(type,a) (type)(a)
297 #define swig_static_cast(type,a) (type)(a)
298 #define swig_reinterpret_cast(type,a) (type)(a)
299 #define swig_numeric_cast(type,a) (type)(a)
300
301 #endif /* __cplusplus */
302
303
304 #define SWIG_FromSignedChar PyInt_FromLong
305 #define SWIG_FromUnsignedChar PyInt_FromLong
306 #define SWIG_FromShort PyInt_FromLong
307 #define SWIG_FromUnsignedShort PyInt_FromLong
308 #define SWIG_FromInt PyInt_FromLong
309 #define SWIG_FromLong PyInt_FromLong
310 #define SWIG_FromFloat PyFloat_FromDouble
311 #define SWIG_FromDouble PyFloat_FromDouble
312 #define SWIG_FromFloat PyFloat_FromDouble
313 #define SWIG_FromDouble PyFloat_FromDouble
314
315
316 #include "wx/wxPython/wxPython.h"
317 #include "wx/wxPython/pyclasses.h"
318 #include "wx/wxPython/printfw.h"
319
320 #include <wx/grid.h>
321 #include <wx/generic/gridctrl.h>
322
323
324 static const wxString wxPyEmptyString(wxEmptyString);
325 static const wxString wxPyPanelNameStr(wxPanelNameStr);
326 static const wxString wxPyDateTimeFormatStr(wxT("%c"));
327
328
329 #define wxPyMake_TEMPLATE(TYPE) \
330 PyObject* wxPyMake_##TYPE(TYPE* source) { \
331 PyObject* target = NULL; \
332 if (source) { \
333 /* Check if there is already a pointer to a Python object in the \
334 OOR data that we can use. */ \
335 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
336 if (data) { \
337 target = data->m_obj; \
338 Py_INCREF(target); \
339 } \
340 /* Otherwise make a new wrapper for it the old fashioned way and \
341 give it the OOR treatment */ \
342 if (! target) { \
343 target = wxPyConstructObject(source, wxT(#TYPE), False); \
344 if (target) \
345 source->SetClientObject(new wxPyOORClientData(target)); \
346 } \
347 } else { /* source was NULL so return None. */ \
348 Py_INCREF(Py_None); target = Py_None; \
349 } \
350 return target; \
351 } \
352
353
354 wxPyMake_TEMPLATE(wxGridCellRenderer)
355 wxPyMake_TEMPLATE(wxGridCellEditor)
356 wxPyMake_TEMPLATE(wxGridCellAttr)
357 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
358 wxPyMake_TEMPLATE(wxGridTableBase)
359
360
361
362 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
363 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
364 wxGridCellAttr* rval = NULL; \
365 bool found; \
366 wxPyBeginBlockThreads(); \
367 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
368 PyObject* ro; \
369 wxGridCellAttr* ptr; \
370 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
371 if (ro) { \
372 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
373 rval = ptr; \
374 Py_DECREF(ro); \
375 } \
376 } \
377 wxPyEndBlockThreads(); \
378 if (! found) \
379 rval = PCLASS::CBNAME(a, b, c); \
380 return rval; \
381 } \
382 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
383 return PCLASS::CBNAME(a, b, c); \
384 }
385
386
387
388 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
389 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
390 wxPyBeginBlockThreads(); \
391 bool found; \
392 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
393 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
394 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
395 Py_DECREF(obj); \
396 } \
397 wxPyEndBlockThreads(); \
398 if (! found) \
399 PCLASS::CBNAME(attr, a, b); \
400 } \
401 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
402 PCLASS::CBNAME(attr, a, b); \
403 }
404
405
406
407 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
408 void CBNAME(wxGridCellAttr *attr, int val) { \
409 wxPyBeginBlockThreads(); \
410 bool found; \
411 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
412 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
413 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
414 Py_DECREF(obj); \
415 } \
416 wxPyEndBlockThreads(); \
417 if (! found) \
418 PCLASS::CBNAME(attr, val); \
419 } \
420 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
421 PCLASS::CBNAME(attr, val); \
422 }
423
424
425
426 #define PYCALLBACK_INT__pure(CBNAME) \
427 int CBNAME() { \
428 wxPyBeginBlockThreads(); \
429 int rval = 0; \
430 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
431 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
432 wxPyEndBlockThreads(); \
433 return rval; \
434 }
435
436
437
438 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
439 bool CBNAME(int a, int b) { \
440 wxPyBeginBlockThreads(); \
441 bool rval = 0; \
442 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
443 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
444 wxPyEndBlockThreads(); \
445 return rval; \
446 }
447
448
449 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
450 wxString CBNAME(int a, int b) { \
451 wxPyBeginBlockThreads(); \
452 wxString rval; \
453 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
454 PyObject* ro; \
455 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
456 if (ro) { \
457 rval = Py2wxString(ro); \
458 Py_DECREF(ro); \
459 } \
460 } \
461 wxPyEndBlockThreads(); \
462 return rval; \
463 }
464
465
466 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
467 void CBNAME(int a, int b, const wxString& c) { \
468 wxPyBeginBlockThreads(); \
469 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
470 PyObject* s = wx2PyString(c); \
471 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
472 Py_DECREF(s); \
473 } \
474 wxPyEndBlockThreads(); \
475 }
476
477
478 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
479 wxString CBNAME(int a, int b) { \
480 bool found; \
481 wxPyBeginBlockThreads(); \
482 wxString rval; \
483 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
484 PyObject* ro; \
485 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
486 if (ro) { \
487 rval = Py2wxString(ro); \
488 Py_DECREF(ro); \
489 } \
490 } \
491 wxPyEndBlockThreads(); \
492 if (! found) \
493 rval = PCLASS::CBNAME(a, b); \
494 return rval; \
495 } \
496 wxString base_##CBNAME(int a, int b) { \
497 return PCLASS::CBNAME(a, b); \
498 }
499
500
501 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
502 bool CBNAME(int a, int b, const wxString& c) { \
503 bool rval = 0; \
504 bool found; \
505 wxPyBeginBlockThreads(); \
506 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
507 PyObject* s = wx2PyString(c); \
508 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
509 Py_DECREF(s); \
510 } \
511 wxPyEndBlockThreads(); \
512 if (! found) \
513 rval = PCLASS::CBNAME(a,b,c); \
514 return rval; \
515 } \
516 bool base_##CBNAME(int a, int b, const wxString& c) { \
517 return PCLASS::CBNAME(a,b,c); \
518 }
519
520
521
522
523 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
524 long CBNAME(int a, int b) { \
525 long rval; \
526 bool found; \
527 wxPyBeginBlockThreads(); \
528 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
529 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
530 wxPyEndBlockThreads(); \
531 if (! found) \
532 rval = PCLASS::CBNAME(a,b); \
533 return rval; \
534 } \
535 long base_##CBNAME(int a, int b) { \
536 return PCLASS::CBNAME(a,b); \
537 }
538
539
540
541 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
542 bool CBNAME(int a, int b) { \
543 bool rval = 0; \
544 bool found; \
545 wxPyBeginBlockThreads(); \
546 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
547 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
548 wxPyEndBlockThreads(); \
549 if (! found) \
550 rval = PCLASS::CBNAME(a,b); \
551 return rval; \
552 } \
553 bool base_##CBNAME(int a, int b) { \
554 return PCLASS::CBNAME(a,b); \
555 }
556
557
558
559 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
560 double CBNAME(int a, int b) { \
561 bool found; \
562 wxPyBeginBlockThreads(); \
563 double rval; \
564 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
565 PyObject* ro; \
566 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
567 if (ro) { \
568 PyObject* str = PyObject_Str(ro); \
569 rval = PyFloat_AsDouble(str); \
570 Py_DECREF(ro); Py_DECREF(str); \
571 } \
572 } \
573 wxPyEndBlockThreads(); \
574 if (! found) \
575 rval = PCLASS::CBNAME(a, b); \
576 return rval; \
577 } \
578 double base_##CBNAME(int a, int b) { \
579 return PCLASS::CBNAME(a, b); \
580 }
581
582
583
584 #define PYCALLBACK__(PCLASS, CBNAME) \
585 void CBNAME() { \
586 bool found; \
587 wxPyBeginBlockThreads(); \
588 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
589 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
590 wxPyEndBlockThreads(); \
591 if (! found) \
592 PCLASS::CBNAME(); \
593 } \
594 void base_##CBNAME() { \
595 PCLASS::CBNAME(); \
596 }
597
598
599
600
601 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
602 bool CBNAME(size_t a, size_t b) { \
603 bool rval = 0; \
604 bool found; \
605 wxPyBeginBlockThreads(); \
606 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
607 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
608 wxPyEndBlockThreads(); \
609 if (! found) \
610 rval = PCLASS::CBNAME(a,b); \
611 return rval; \
612 } \
613 bool base_##CBNAME(size_t a, size_t b) { \
614 return PCLASS::CBNAME(a,b); \
615 }
616
617
618
619 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
620 bool CBNAME(size_t a) { \
621 bool rval = 0; \
622 bool found; \
623 wxPyBeginBlockThreads(); \
624 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
625 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
626 wxPyEndBlockThreads(); \
627 if (! found) \
628 rval = PCLASS::CBNAME(a); \
629 return rval; \
630 } \
631 bool base_##CBNAME(size_t a) { \
632 return PCLASS::CBNAME(a); \
633 }
634
635
636 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
637 wxString CBNAME(int a) { \
638 bool found; \
639 wxPyBeginBlockThreads(); \
640 wxString rval; \
641 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
642 PyObject* ro; \
643 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
644 if (ro) { \
645 rval = Py2wxString(ro); \
646 Py_DECREF(ro); \
647 } \
648 } \
649 wxPyEndBlockThreads(); \
650 if (! found) \
651 rval = PCLASS::CBNAME(a); \
652 return rval; \
653 } \
654 wxString base_##CBNAME(int a) { \
655 return PCLASS::CBNAME(a); \
656 }
657
658
659 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
660 void CBNAME(int a, const wxString& c) { \
661 bool found; \
662 wxPyBeginBlockThreads(); \
663 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
664 PyObject* s = wx2PyString(c); \
665 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
666 Py_DECREF(s); \
667 } \
668 wxPyEndBlockThreads(); \
669 if (! found) \
670 PCLASS::CBNAME(a,c); \
671 } \
672 void base_##CBNAME(int a, const wxString& c) { \
673 PCLASS::CBNAME(a,c); \
674 }
675
676
677
678
679 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
680 bool CBNAME() { \
681 bool rval = 0; \
682 bool found; \
683 wxPyBeginBlockThreads(); \
684 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
685 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
686 wxPyEndBlockThreads(); \
687 if (! found) \
688 rval = PCLASS::CBNAME(); \
689 return rval; \
690 } \
691 bool base_##CBNAME() { \
692 return PCLASS::CBNAME(); \
693 }
694
695
696
697 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
698 void CBNAME(size_t a, int b) { \
699 bool found; \
700 wxPyBeginBlockThreads(); \
701 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
702 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
703 wxPyEndBlockThreads(); \
704 if (! found) \
705 PCLASS::CBNAME(a,b); \
706 } \
707 void base_##CBNAME(size_t a, int b) { \
708 PCLASS::CBNAME(a,b); \
709 }
710
711
712
713
714 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
715 void CBNAME(int a, int b, long c) { \
716 bool found; \
717 wxPyBeginBlockThreads(); \
718 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
719 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
720 wxPyEndBlockThreads(); \
721 if (! found) \
722 PCLASS::CBNAME(a,b,c); \
723 } \
724 void base_##CBNAME(int a, int b, long c) { \
725 PCLASS::CBNAME(a,b,c); \
726 }
727
728
729
730
731 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
732 void CBNAME(int a, int b, double c) { \
733 bool found; \
734 wxPyBeginBlockThreads(); \
735 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
736 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
737 wxPyEndBlockThreads(); \
738 if (! found) \
739 PCLASS::CBNAME(a,b,c); \
740 } \
741 void base_##CBNAME(int a, int b, double c) { \
742 PCLASS::CBNAME(a,b,c); \
743 }
744
745
746
747 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
748 void CBNAME(int a, int b, bool c) { \
749 bool found; \
750 wxPyBeginBlockThreads(); \
751 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
752 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
753 wxPyEndBlockThreads(); \
754 if (! found) \
755 PCLASS::CBNAME(a,b,c); \
756 } \
757 void base_##CBNAME(int a, int b, bool c) { \
758 PCLASS::CBNAME(a,b,c); \
759 }
760
761
762
763
764
765
766 SWIGSTATICINLINE(PyObject *)
767 SWIG_FromCharPtr(const char* cptr)
768 {
769 size_t size = cptr ? strlen(cptr) : 0;
770 if (cptr) {
771 if (size > INT_MAX) {
772 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
773 SWIG_TypeQuery("char *"), 0);
774 } else {
775 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
776 }
777 } else {
778 Py_INCREF(Py_None);
779 return Py_None;
780 }
781 }
782
783 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
784 self->SetClientObject(new wxPyOORClientData(_self));
785 }
786
787 #include <limits.h>
788
789
790 SWIGSTATICINLINE(long)
791 SWIG_CheckLongInRange(long value, const char* type,
792 long min_value, long max_value)
793 {
794 if (!PyErr_Occurred()) {
795 if (value < min_value) {
796 PyObject *err =
797 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
798 value, type, min_value);
799
800 PyErr_SetObject(PyExc_OverflowError, err);
801 Py_DECREF(err);
802 } else if (value > max_value) {
803 PyObject *err =
804 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
805 value, type, max_value);
806 PyErr_SetObject(PyExc_OverflowError, err);
807 Py_DECREF(err);
808 }
809 }
810 return value;
811 }
812
813
814 SWIGSTATICINLINE(long)
815 SWIG_AsLong(PyObject * obj)
816 {
817 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
818 }
819
820
821 #if INT_MAX != LONG_MAX
822 SWIGSTATICINLINE(int)
823 SWIG_AsInt(PyObject *obj)
824 {
825 return swig_numeric_cast(int,
826 SWIG_CheckLongInRange(SWIG_AsLong(obj),
827 "int", INT_MIN, INT_MAX));
828 }
829 #else
830 #define SWIG_AsInt SWIG_AsLong
831 #endif
832
833
834 SWIGSTATICINLINE(bool)
835 SWIG_AsBool(PyObject *obj)
836 {
837 return PyObject_IsTrue(obj) ? true : false;
838 }
839
840
841 SWIGSTATICINLINE(int)
842 SWIG_CheckInt(PyObject* obj)
843 {
844 SWIG_AsInt(obj);
845 if (PyErr_Occurred()) {
846 PyErr_Clear();
847 return 0;
848 } else {
849 return 1;
850 }
851 }
852
853
854 SWIGSTATICINLINE(int)
855 SWIG_CheckBool(PyObject* obj)
856 {
857 SWIG_AsBool(obj);
858 if (PyErr_Occurred()) {
859 PyErr_Clear();
860 return 0;
861 } else {
862 return 1;
863 }
864 }
865
866
867 class wxPyGridCellRenderer : public wxGridCellRenderer
868 {
869 public:
870 wxPyGridCellRenderer() : wxGridCellRenderer() {};
871
872 // Implement Python callback aware virtual methods
873 void Draw(wxGrid& grid, wxGridCellAttr& attr,
874 wxDC& dc, const wxRect& rect,
875 int row, int col, bool isSelected) {
876 wxPyBeginBlockThreads();
877 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
878 PyObject* go = wxPyMake_wxObject(&grid);
879 PyObject* dco = wxPyMake_wxObject(&dc);
880 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
881 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
882
883 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
884 row, col, isSelected));
885 Py_DECREF(go);
886 Py_DECREF(ao);
887 Py_DECREF(dco);
888 Py_DECREF(ro);
889 }
890 wxPyEndBlockThreads();
891 }
892
893 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
894 int row, int col) {
895 wxSize rval;
896 wxPyBeginBlockThreads();
897 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
898 PyObject* ro;
899 wxSize* ptr;
900 PyObject* go = wxPyMake_wxObject(&grid);
901 PyObject* dco = wxPyMake_wxObject(&dc);
902 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
903
904 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
905 go, ao, dco,
906 row, col));
907 Py_DECREF(go);
908 Py_DECREF(ao);
909 Py_DECREF(dco);
910
911 if (ro) {
912 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
913 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
914 rval = *ptr;
915 }
916 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
917 PyObject* o1 = PySequence_GetItem(ro, 0);
918 PyObject* o2 = PySequence_GetItem(ro, 1);
919 if (PyNumber_Check(o1) && PyNumber_Check(o2))
920 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
921 else
922 PyErr_SetString(PyExc_TypeError, errmsg);
923 Py_DECREF(o1);
924 Py_DECREF(o2);
925 }
926 else {
927 PyErr_SetString(PyExc_TypeError, errmsg);
928 }
929 Py_DECREF(ro);
930 }
931 }
932 wxPyEndBlockThreads();
933 return rval;
934 }
935
936
937 wxGridCellRenderer *Clone() const {
938 wxGridCellRenderer* rval = NULL;
939 wxPyBeginBlockThreads();
940 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
941 PyObject* ro;
942 wxGridCellRenderer* ptr;
943 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
944 if (ro) {
945 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
946 rval = ptr;
947 Py_DECREF(ro);
948 }
949 }
950 wxPyEndBlockThreads();
951 return rval;
952 }
953
954 DEC_PYCALLBACK__STRING(SetParameters);
955
956 PYPRIVATE;
957 };
958
959 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
960
961
962 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
963 self->SetClientObject(new wxPyOORClientData(_self));
964 }
965
966 class wxPyGridCellEditor : public wxGridCellEditor
967 {
968 public:
969 wxPyGridCellEditor() : wxGridCellEditor() {}
970
971 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
972 wxPyBeginBlockThreads();
973 if (wxPyCBH_findCallback(m_myInst, "Create")) {
974 PyObject* po = wxPyMake_wxObject(parent);
975 PyObject* eo = wxPyMake_wxObject(evtHandler);
976
977 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
978 Py_DECREF(po);
979 Py_DECREF(eo);
980 }
981 wxPyEndBlockThreads();
982 }
983
984
985 void BeginEdit(int row, int col, wxGrid* grid) {
986 wxPyBeginBlockThreads();
987 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
988 PyObject* go = wxPyMake_wxObject(grid);
989 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
990 Py_DECREF(go);
991 }
992 wxPyEndBlockThreads();
993 }
994
995
996 bool EndEdit(int row, int col, wxGrid* grid) {
997 bool rv = False;
998 wxPyBeginBlockThreads();
999 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
1000 PyObject* go = wxPyMake_wxObject(grid);
1001 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
1002 Py_DECREF(go);
1003 }
1004 wxPyEndBlockThreads();
1005 return rv;
1006 }
1007
1008
1009 wxGridCellEditor* Clone() const {
1010 wxGridCellEditor* rval = NULL;
1011 wxPyBeginBlockThreads();
1012 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
1013 PyObject* ro;
1014 wxGridCellEditor* ptr;
1015 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1016 if (ro) {
1017 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
1018 rval = ptr;
1019 Py_DECREF(ro);
1020 }
1021 }
1022 wxPyEndBlockThreads();
1023 return rval;
1024 }
1025
1026
1027 void Show(bool show, wxGridCellAttr *attr) {
1028 bool found;
1029 wxPyBeginBlockThreads();
1030 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
1031 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
1032 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
1033 Py_DECREF(ao);
1034 }
1035 wxPyEndBlockThreads();
1036 if (! found)
1037 wxGridCellEditor::Show(show, attr);
1038 }
1039 void base_Show(bool show, wxGridCellAttr *attr) {
1040 wxGridCellEditor::Show(show, attr);
1041 }
1042
1043
1044 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1045 bool found;
1046 wxPyBeginBlockThreads();
1047 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
1048 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
1049 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
1050
1051 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
1052
1053 Py_DECREF(ro);
1054 Py_DECREF(ao);
1055 }
1056 wxPyEndBlockThreads();
1057 if (! found)
1058 wxGridCellEditor::PaintBackground(rectCell, attr);
1059 }
1060 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1061 wxGridCellEditor::PaintBackground(rectCell, attr);
1062 }
1063
1064
1065 DEC_PYCALLBACK___pure(Reset);
1066 DEC_PYCALLBACK__constany(SetSize, wxRect);
1067 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
1068 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
1069 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
1070 DEC_PYCALLBACK__(StartingClick);
1071 DEC_PYCALLBACK__(Destroy);
1072 DEC_PYCALLBACK__STRING(SetParameters);
1073 DEC_PYCALLBACK_STRING__constpure(GetValue);
1074
1075 PYPRIVATE;
1076 };
1077
1078
1079 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
1080 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
1081 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
1082 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
1083 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
1084 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
1085 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
1086 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
1087 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
1088
1089
1090 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
1091 self->SetClientObject(new wxPyOORClientData(_self));
1092 }
1093
1094 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1095 PyObject* o2;
1096 PyObject* o3;
1097
1098 if (!target) {
1099 target = o;
1100 } else if (target == Py_None) {
1101 Py_DECREF(Py_None);
1102 target = o;
1103 } else {
1104 if (!PyTuple_Check(target)) {
1105 o2 = target;
1106 target = PyTuple_New(1);
1107 PyTuple_SetItem(target, 0, o2);
1108 }
1109 o3 = PyTuple_New(1);
1110 PyTuple_SetItem(o3, 0, o);
1111
1112 o2 = target;
1113 target = PySequence_Concat(o2, o3);
1114 Py_DECREF(o2);
1115 Py_DECREF(o3);
1116 }
1117 return target;
1118 }
1119
1120 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
1121 self->SetClientObject(new wxPyOORClientData(_self));
1122 }
1123
1124 SWIGSTATICINLINE(unsigned long)
1125 SWIG_AsUnsignedLong(PyObject * obj)
1126 {
1127 if (PyLong_Check(obj)) {
1128 return PyLong_AsUnsignedLong(obj);
1129 } else {
1130 long i = PyInt_AsLong(obj);
1131 if ( !PyErr_Occurred() && (i < 0)) {
1132 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
1133 }
1134 return i;
1135 }
1136 }
1137
1138
1139 SWIGSTATICINLINE(int)
1140 SWIG_CheckUnsignedLong(PyObject* obj)
1141 {
1142 SWIG_AsUnsignedLong(obj);
1143 if (PyErr_Occurred()) {
1144 PyErr_Clear();
1145 return 0;
1146 } else {
1147 return 1;
1148 }
1149 }
1150
1151
1152 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
1153 {
1154 public:
1155 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
1156
1157 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
1158 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
1159 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
1160 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
1161
1162 PYPRIVATE;
1163 };
1164
1165 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
1166 self->SetClientObject(new wxPyOORClientData(_self));
1167 }
1168
1169 SWIGSTATICINLINE(int)
1170 SWIG_CheckLong(PyObject* obj)
1171 {
1172 SWIG_AsLong(obj);
1173 if (PyErr_Occurred()) {
1174 PyErr_Clear();
1175 return 0;
1176 } else {
1177 return 1;
1178 }
1179 }
1180
1181
1182 SWIGSTATICINLINE(double)
1183 SWIG_AsDouble(PyObject *obj)
1184 {
1185 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
1186 #if HAVE_LONG_LONG
1187 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
1188 #else
1189 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
1190 #endif
1191 if (PyErr_Occurred()) {
1192 PyErr_Clear();
1193 PyErr_SetString(PyExc_TypeError, "a double is expected");
1194 }
1195 return val;
1196 }
1197
1198
1199 SWIGSTATICINLINE(int)
1200 SWIG_CheckDouble(PyObject* obj)
1201 {
1202 SWIG_AsDouble(obj);
1203 if (PyErr_Occurred()) {
1204 PyErr_Clear();
1205 return 0;
1206 } else {
1207 return 1;
1208 }
1209 }
1210
1211
1212 class wxPyGridTableBase : public wxGridTableBase
1213 {
1214 public:
1215 wxPyGridTableBase() : wxGridTableBase() {}
1216
1217 PYCALLBACK_INT__pure(GetNumberRows);
1218 PYCALLBACK_INT__pure(GetNumberCols);
1219 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1220 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1221 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1222 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1223 PYCALLBACK__(wxGridTableBase, Clear);
1224 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1225 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1226 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1227 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1228 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1229 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1230 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1231 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1232 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1233 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1234 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1235 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1236 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1237 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1238 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1239
1240
1241 wxString GetValue(int row, int col) {
1242 wxPyBeginBlockThreads();
1243 wxString rval;
1244 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1245 PyObject* ro;
1246 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1247 if (ro) {
1248 rval = Py2wxString(ro);
1249 Py_DECREF(ro);
1250 }
1251 }
1252 wxPyEndBlockThreads();
1253 return rval;
1254 }
1255
1256 void SetValue(int row, int col, const wxString& val) {
1257 wxPyBeginBlockThreads();
1258 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1259 PyObject* s = wx2PyString(val);
1260 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1261 Py_DECREF(s);
1262 }
1263 wxPyEndBlockThreads();
1264 }
1265
1266
1267 // Map the Get/Set methods for the standard non-string types to
1268 // the GetValue and SetValue python methods.
1269 long GetValueAsLong( int row, int col ) {
1270 long rval = 0;
1271 wxPyBeginBlockThreads();
1272 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1273 PyObject* ro;
1274 PyObject* num;
1275 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1276 if (ro && PyNumber_Check(ro)) {
1277 num = PyNumber_Int(ro);
1278 if (num) {
1279 rval = PyInt_AsLong(num);
1280 Py_DECREF(num);
1281 }
1282 Py_DECREF(ro);
1283 }
1284 }
1285 wxPyEndBlockThreads();
1286 return rval;
1287 }
1288
1289 double GetValueAsDouble( int row, int col ) {
1290 double rval = 0.0;
1291 wxPyBeginBlockThreads();
1292 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1293 PyObject* ro;
1294 PyObject* num;
1295 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1296 if (ro && PyNumber_Check(ro)) {
1297 num = PyNumber_Float(ro);
1298 if (num) {
1299 rval = PyFloat_AsDouble(num);
1300 Py_DECREF(num);
1301 }
1302 Py_DECREF(ro);
1303 }
1304 }
1305 wxPyEndBlockThreads();
1306 return rval;
1307 }
1308
1309 bool GetValueAsBool( int row, int col ) {
1310 return (bool)GetValueAsLong(row, col);
1311 }
1312
1313 void SetValueAsLong( int row, int col, long value ) {
1314 wxPyBeginBlockThreads();
1315 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1316 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1317 }
1318 wxPyEndBlockThreads();
1319 }
1320
1321 void SetValueAsDouble( int row, int col, double value ) {
1322 wxPyBeginBlockThreads();
1323 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1324 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1325 }
1326 wxPyEndBlockThreads();
1327 }
1328
1329 void SetValueAsBool( int row, int col, bool value ) {
1330 SetValueAsLong( row, col, (long)value );
1331 }
1332
1333
1334 PYPRIVATE;
1335 };
1336
1337 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1338
1339 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1340
1341 if (source == Py_None) {
1342 **obj = wxGridCellCoords(-1,-1);
1343 return True;
1344 }
1345
1346 // If source is an object instance then it may already be the right type
1347 if (wxPySwigInstance_Check(source)) {
1348 wxGridCellCoords* ptr;
1349 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1350 goto error;
1351 *obj = ptr;
1352 return True;
1353 }
1354 // otherwise a 2-tuple of integers is expected
1355 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1356 PyObject* o1 = PySequence_GetItem(source, 0);
1357 PyObject* o2 = PySequence_GetItem(source, 1);
1358 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1359 Py_DECREF(o1);
1360 Py_DECREF(o2);
1361 goto error;
1362 }
1363 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1364 Py_DECREF(o1);
1365 Py_DECREF(o2);
1366 return True;
1367 }
1368
1369 error:
1370 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1371 return False;
1372 }
1373
1374
1375 bool wxGridCellCoords_typecheck(PyObject* source) {
1376 void* ptr;
1377
1378 if (wxPySwigInstance_Check(source) &&
1379 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1380 return True;
1381
1382 PyErr_Clear();
1383 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1384 return True;
1385
1386 return False;
1387 }
1388
1389
1390 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1391 {
1392 PyObject* list = PyList_New(0);
1393 size_t idx;
1394 for (idx = 0; idx < source.GetCount(); idx += 1) {
1395 wxGridCellCoords& coord = source.Item(idx);
1396 PyObject* tup = PyTuple_New(2);
1397 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1398 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1399 PyList_Append(list, tup);
1400 Py_DECREF(tup);
1401 }
1402 return list;
1403 }
1404
1405 PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
1406 PyObject* tup = PyTuple_New(2);
1407 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1408 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1409 return tup;
1410 }
1411
1412 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1413
1414 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1415 wxGridCellCoords rv;
1416 self->XYToCell(x, y, rv);
1417 return rv;
1418 }
1419 #ifdef __cplusplus
1420 extern "C" {
1421 #endif
1422 static int _wrap_DateTimeFormatStr_set(PyObject *_val) {
1423 PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only.");
1424 return 1;
1425 }
1426
1427
1428 static PyObject *_wrap_DateTimeFormatStr_get() {
1429 PyObject *pyobj;
1430
1431 {
1432 #if wxUSE_UNICODE
1433 pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1434 #else
1435 pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1436 #endif
1437 }
1438 return pyobj;
1439 }
1440
1441
1442 static int _wrap_GridNoCellCoords_set(PyObject *_val) {
1443 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1444 return 1;
1445 }
1446
1447
1448 static PyObject *_wrap_GridNoCellCoords_get() {
1449 PyObject *pyobj;
1450
1451 pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0);
1452 return pyobj;
1453 }
1454
1455
1456 static int _wrap_GridNoCellRect_set(PyObject *_val) {
1457 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1458 return 1;
1459 }
1460
1461
1462 static PyObject *_wrap_GridNoCellRect_get() {
1463 PyObject *pyobj;
1464
1465 pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0);
1466 return pyobj;
1467 }
1468
1469
1470 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1471 PyObject *resultobj;
1472 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1473 PyObject *arg2 = (PyObject *) 0 ;
1474 PyObject * obj0 = 0 ;
1475 PyObject * obj1 = 0 ;
1476 char *kwnames[] = {
1477 (char *) "self",(char *) "_self", NULL
1478 };
1479
1480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1483 arg2 = obj1;
1484 {
1485 PyThreadState* __tstate = wxPyBeginAllowThreads();
1486 wxGridCellRenderer__setOORInfo(arg1,arg2);
1487
1488 wxPyEndAllowThreads(__tstate);
1489 if (PyErr_Occurred()) SWIG_fail;
1490 }
1491 Py_INCREF(Py_None); resultobj = Py_None;
1492 return resultobj;
1493 fail:
1494 return NULL;
1495 }
1496
1497
1498 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1499 PyObject *resultobj;
1500 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1501 wxString *arg2 = 0 ;
1502 bool temp2 = False ;
1503 PyObject * obj0 = 0 ;
1504 PyObject * obj1 = 0 ;
1505 char *kwnames[] = {
1506 (char *) "self",(char *) "params", NULL
1507 };
1508
1509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1512 {
1513 arg2 = wxString_in_helper(obj1);
1514 if (arg2 == NULL) SWIG_fail;
1515 temp2 = True;
1516 }
1517 {
1518 PyThreadState* __tstate = wxPyBeginAllowThreads();
1519 (arg1)->SetParameters((wxString const &)*arg2);
1520
1521 wxPyEndAllowThreads(__tstate);
1522 if (PyErr_Occurred()) SWIG_fail;
1523 }
1524 Py_INCREF(Py_None); resultobj = Py_None;
1525 {
1526 if (temp2)
1527 delete arg2;
1528 }
1529 return resultobj;
1530 fail:
1531 {
1532 if (temp2)
1533 delete arg2;
1534 }
1535 return NULL;
1536 }
1537
1538
1539 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1540 PyObject *resultobj;
1541 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1542 PyObject * obj0 = 0 ;
1543 char *kwnames[] = {
1544 (char *) "self", NULL
1545 };
1546
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
1552 (arg1)->IncRef();
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 }
1557 Py_INCREF(Py_None); resultobj = Py_None;
1558 return resultobj;
1559 fail:
1560 return NULL;
1561 }
1562
1563
1564 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1565 PyObject *resultobj;
1566 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1567 PyObject * obj0 = 0 ;
1568 char *kwnames[] = {
1569 (char *) "self", NULL
1570 };
1571
1572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1575 {
1576 PyThreadState* __tstate = wxPyBeginAllowThreads();
1577 (arg1)->DecRef();
1578
1579 wxPyEndAllowThreads(__tstate);
1580 if (PyErr_Occurred()) SWIG_fail;
1581 }
1582 Py_INCREF(Py_None); resultobj = Py_None;
1583 return resultobj;
1584 fail:
1585 return NULL;
1586 }
1587
1588
1589 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1590 PyObject *resultobj;
1591 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1592 wxGrid *arg2 = 0 ;
1593 wxGridCellAttr *arg3 = 0 ;
1594 wxDC *arg4 = 0 ;
1595 wxRect *arg5 = 0 ;
1596 int arg6 ;
1597 int arg7 ;
1598 bool arg8 ;
1599 wxRect temp5 ;
1600 PyObject * obj0 = 0 ;
1601 PyObject * obj1 = 0 ;
1602 PyObject * obj2 = 0 ;
1603 PyObject * obj3 = 0 ;
1604 PyObject * obj4 = 0 ;
1605 PyObject * obj5 = 0 ;
1606 PyObject * obj6 = 0 ;
1607 PyObject * obj7 = 0 ;
1608 char *kwnames[] = {
1609 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1610 };
1611
1612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
1616 SWIG_POINTER_EXCEPTION | 0)) == -1)
1617 SWIG_fail;
1618 if (arg2 == NULL) {
1619 PyErr_SetString(PyExc_TypeError,"null reference");
1620 SWIG_fail;
1621 }
1622 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
1623 SWIG_POINTER_EXCEPTION | 0)) == -1)
1624 SWIG_fail;
1625 if (arg3 == NULL) {
1626 PyErr_SetString(PyExc_TypeError,"null reference");
1627 SWIG_fail;
1628 }
1629 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
1630 SWIG_POINTER_EXCEPTION | 0)) == -1)
1631 SWIG_fail;
1632 if (arg4 == NULL) {
1633 PyErr_SetString(PyExc_TypeError,"null reference");
1634 SWIG_fail;
1635 }
1636 {
1637 arg5 = &temp5;
1638 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1639 }
1640 arg6 = (int) SWIG_AsInt(obj5);
1641 if (PyErr_Occurred()) SWIG_fail;
1642 arg7 = (int) SWIG_AsInt(obj6);
1643 if (PyErr_Occurred()) SWIG_fail;
1644 arg8 = (bool) SWIG_AsBool(obj7);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 {
1647 PyThreadState* __tstate = wxPyBeginAllowThreads();
1648 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1649
1650 wxPyEndAllowThreads(__tstate);
1651 if (PyErr_Occurred()) SWIG_fail;
1652 }
1653 Py_INCREF(Py_None); resultobj = Py_None;
1654 return resultobj;
1655 fail:
1656 return NULL;
1657 }
1658
1659
1660 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1661 PyObject *resultobj;
1662 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1663 wxGrid *arg2 = 0 ;
1664 wxGridCellAttr *arg3 = 0 ;
1665 wxDC *arg4 = 0 ;
1666 int arg5 ;
1667 int arg6 ;
1668 wxSize result;
1669 PyObject * obj0 = 0 ;
1670 PyObject * obj1 = 0 ;
1671 PyObject * obj2 = 0 ;
1672 PyObject * obj3 = 0 ;
1673 PyObject * obj4 = 0 ;
1674 PyObject * obj5 = 0 ;
1675 char *kwnames[] = {
1676 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1677 };
1678
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
1680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
1683 SWIG_POINTER_EXCEPTION | 0)) == -1)
1684 SWIG_fail;
1685 if (arg2 == NULL) {
1686 PyErr_SetString(PyExc_TypeError,"null reference");
1687 SWIG_fail;
1688 }
1689 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1)
1691 SWIG_fail;
1692 if (arg3 == NULL) {
1693 PyErr_SetString(PyExc_TypeError,"null reference");
1694 SWIG_fail;
1695 }
1696 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
1697 SWIG_POINTER_EXCEPTION | 0)) == -1)
1698 SWIG_fail;
1699 if (arg4 == NULL) {
1700 PyErr_SetString(PyExc_TypeError,"null reference");
1701 SWIG_fail;
1702 }
1703 arg5 = (int) SWIG_AsInt(obj4);
1704 if (PyErr_Occurred()) SWIG_fail;
1705 arg6 = (int) SWIG_AsInt(obj5);
1706 if (PyErr_Occurred()) SWIG_fail;
1707 {
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
1714 {
1715 wxSize * resultptr;
1716 resultptr = new wxSize((wxSize &) result);
1717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1718 }
1719 return resultobj;
1720 fail:
1721 return NULL;
1722 }
1723
1724
1725 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1728 wxGridCellRenderer *result;
1729 PyObject * obj0 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer,
1736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1737 {
1738 PyThreadState* __tstate = wxPyBeginAllowThreads();
1739 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1740
1741 wxPyEndAllowThreads(__tstate);
1742 if (PyErr_Occurred()) SWIG_fail;
1743 }
1744 {
1745 resultobj = wxPyMake_wxGridCellRenderer(result);
1746 }
1747 return resultobj;
1748 fail:
1749 return NULL;
1750 }
1751
1752
1753 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1754 PyObject *obj;
1755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1756 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1757 Py_INCREF(obj);
1758 return Py_BuildValue((char *)"");
1759 }
1760 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 wxPyGridCellRenderer *result;
1763 char *kwnames[] = {
1764 NULL
1765 };
1766
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1768 {
1769 PyThreadState* __tstate = wxPyBeginAllowThreads();
1770 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1771
1772 wxPyEndAllowThreads(__tstate);
1773 if (PyErr_Occurred()) SWIG_fail;
1774 }
1775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1);
1776 return resultobj;
1777 fail:
1778 return NULL;
1779 }
1780
1781
1782 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1783 PyObject *resultobj;
1784 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1785 PyObject *arg2 = (PyObject *) 0 ;
1786 PyObject *arg3 = (PyObject *) 0 ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 PyObject * obj2 = 0 ;
1790 char *kwnames[] = {
1791 (char *) "self",(char *) "self",(char *) "_class", NULL
1792 };
1793
1794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer,
1796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1797 arg2 = obj1;
1798 arg3 = obj2;
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 (arg1)->_setCallbackInfo(arg2,arg3);
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 Py_INCREF(Py_None); resultobj = Py_None;
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1816 wxString *arg2 = 0 ;
1817 bool temp2 = False ;
1818 PyObject * obj0 = 0 ;
1819 PyObject * obj1 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self",(char *) "params", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer,
1826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1827 {
1828 arg2 = wxString_in_helper(obj1);
1829 if (arg2 == NULL) SWIG_fail;
1830 temp2 = True;
1831 }
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 (arg1)->base_SetParameters((wxString const &)*arg2);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 Py_INCREF(Py_None); resultobj = Py_None;
1840 {
1841 if (temp2)
1842 delete arg2;
1843 }
1844 return resultobj;
1845 fail:
1846 {
1847 if (temp2)
1848 delete arg2;
1849 }
1850 return NULL;
1851 }
1852
1853
1854 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1855 PyObject *obj;
1856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1857 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1858 Py_INCREF(obj);
1859 return Py_BuildValue((char *)"");
1860 }
1861 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1862 PyObject *resultobj;
1863 wxGridCellStringRenderer *result;
1864 char *kwnames[] = {
1865 NULL
1866 };
1867
1868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1869 {
1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
1871 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1872
1873 wxPyEndAllowThreads(__tstate);
1874 if (PyErr_Occurred()) SWIG_fail;
1875 }
1876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1);
1877 return resultobj;
1878 fail:
1879 return NULL;
1880 }
1881
1882
1883 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1884 PyObject *obj;
1885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1886 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1887 Py_INCREF(obj);
1888 return Py_BuildValue((char *)"");
1889 }
1890 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1891 PyObject *resultobj;
1892 wxGridCellNumberRenderer *result;
1893 char *kwnames[] = {
1894 NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1906 return resultobj;
1907 fail:
1908 return NULL;
1909 }
1910
1911
1912 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1913 PyObject *obj;
1914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1915 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1916 Py_INCREF(obj);
1917 return Py_BuildValue((char *)"");
1918 }
1919 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject *resultobj;
1921 int arg1 = (int) -1 ;
1922 int arg2 = (int) -1 ;
1923 wxGridCellFloatRenderer *result;
1924 PyObject * obj0 = 0 ;
1925 PyObject * obj1 = 0 ;
1926 char *kwnames[] = {
1927 (char *) "width",(char *) "precision", NULL
1928 };
1929
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail;
1931 if (obj0) {
1932 arg1 = (int) SWIG_AsInt(obj0);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 }
1935 if (obj1) {
1936 arg2 = (int) SWIG_AsInt(obj1);
1937 if (PyErr_Occurred()) SWIG_fail;
1938 }
1939 {
1940 PyThreadState* __tstate = wxPyBeginAllowThreads();
1941 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1942
1943 wxPyEndAllowThreads(__tstate);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 }
1946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1947 return resultobj;
1948 fail:
1949 return NULL;
1950 }
1951
1952
1953 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1954 PyObject *resultobj;
1955 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1956 int result;
1957 PyObject * obj0 = 0 ;
1958 char *kwnames[] = {
1959 (char *) "self", NULL
1960 };
1961
1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
1964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1965 {
1966 PyThreadState* __tstate = wxPyBeginAllowThreads();
1967 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1968
1969 wxPyEndAllowThreads(__tstate);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 }
1972 resultobj = SWIG_FromInt((int)result);
1973 return resultobj;
1974 fail:
1975 return NULL;
1976 }
1977
1978
1979 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1980 PyObject *resultobj;
1981 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1982 int arg2 ;
1983 PyObject * obj0 = 0 ;
1984 PyObject * obj1 = 0 ;
1985 char *kwnames[] = {
1986 (char *) "self",(char *) "width", NULL
1987 };
1988
1989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
1991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1992 arg2 = (int) SWIG_AsInt(obj1);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 {
1995 PyThreadState* __tstate = wxPyBeginAllowThreads();
1996 (arg1)->SetWidth(arg2);
1997
1998 wxPyEndAllowThreads(__tstate);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
2001 Py_INCREF(Py_None); resultobj = Py_None;
2002 return resultobj;
2003 fail:
2004 return NULL;
2005 }
2006
2007
2008 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
2009 PyObject *resultobj;
2010 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
2011 int result;
2012 PyObject * obj0 = 0 ;
2013 char *kwnames[] = {
2014 (char *) "self", NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
2018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
2019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 resultobj = SWIG_FromInt((int)result);
2028 return resultobj;
2029 fail:
2030 return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
2037 int arg2 ;
2038 PyObject * obj0 = 0 ;
2039 PyObject * obj1 = 0 ;
2040 char *kwnames[] = {
2041 (char *) "self",(char *) "precision", NULL
2042 };
2043
2044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail;
2045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer,
2046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2047 arg2 = (int) SWIG_AsInt(obj1);
2048 if (PyErr_Occurred()) SWIG_fail;
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 (arg1)->SetPrecision(arg2);
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 Py_INCREF(Py_None); resultobj = Py_None;
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
2064 PyObject *obj;
2065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2066 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
2067 Py_INCREF(obj);
2068 return Py_BuildValue((char *)"");
2069 }
2070 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 wxGridCellBoolRenderer *result;
2073 char *kwnames[] = {
2074 NULL
2075 };
2076
2077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1);
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
2093 PyObject *obj;
2094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2095 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
2096 Py_INCREF(obj);
2097 return Py_BuildValue((char *)"");
2098 }
2099 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2100 PyObject *resultobj;
2101 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
2102 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
2103 wxGridCellDateTimeRenderer *result;
2104 PyObject * obj0 = 0 ;
2105 PyObject * obj1 = 0 ;
2106 char *kwnames[] = {
2107 (char *) "outformat",(char *) "informat", NULL
2108 };
2109
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
2111 if (obj0) {
2112 {
2113 wxString* sptr = wxString_in_helper(obj0);
2114 if (sptr == NULL) SWIG_fail;
2115 arg1 = *sptr;
2116 delete sptr;
2117 }
2118 }
2119 if (obj1) {
2120 {
2121 wxString* sptr = wxString_in_helper(obj1);
2122 if (sptr == NULL) SWIG_fail;
2123 arg2 = *sptr;
2124 delete sptr;
2125 }
2126 }
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
2142 PyObject *obj;
2143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2144 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
2145 Py_INCREF(obj);
2146 return Py_BuildValue((char *)"");
2147 }
2148 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject *resultobj;
2150 wxString const &arg1_defvalue = wxPyEmptyString ;
2151 wxString *arg1 = (wxString *) &arg1_defvalue ;
2152 wxGridCellEnumRenderer *result;
2153 bool temp1 = False ;
2154 PyObject * obj0 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "choices", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
2160 if (obj0) {
2161 {
2162 arg1 = wxString_in_helper(obj0);
2163 if (arg1 == NULL) SWIG_fail;
2164 temp1 = True;
2165 }
2166 }
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1);
2175 {
2176 if (temp1)
2177 delete arg1;
2178 }
2179 return resultobj;
2180 fail:
2181 {
2182 if (temp1)
2183 delete arg1;
2184 }
2185 return NULL;
2186 }
2187
2188
2189 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
2190 PyObject *obj;
2191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2192 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
2193 Py_INCREF(obj);
2194 return Py_BuildValue((char *)"");
2195 }
2196 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2197 PyObject *resultobj;
2198 wxGridCellAutoWrapStringRenderer *result;
2199 char *kwnames[] = {
2200 NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
2204 {
2205 PyThreadState* __tstate = wxPyBeginAllowThreads();
2206 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
2207
2208 wxPyEndAllowThreads(__tstate);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 }
2211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
2212 return resultobj;
2213 fail:
2214 return NULL;
2215 }
2216
2217
2218 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
2219 PyObject *obj;
2220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2221 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
2222 Py_INCREF(obj);
2223 return Py_BuildValue((char *)"");
2224 }
2225 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject *resultobj;
2227 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2228 PyObject *arg2 = (PyObject *) 0 ;
2229 PyObject * obj0 = 0 ;
2230 PyObject * obj1 = 0 ;
2231 char *kwnames[] = {
2232 (char *) "self",(char *) "_self", NULL
2233 };
2234
2235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
2236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2238 arg2 = obj1;
2239 {
2240 PyThreadState* __tstate = wxPyBeginAllowThreads();
2241 wxGridCellEditor__setOORInfo(arg1,arg2);
2242
2243 wxPyEndAllowThreads(__tstate);
2244 if (PyErr_Occurred()) SWIG_fail;
2245 }
2246 Py_INCREF(Py_None); resultobj = Py_None;
2247 return resultobj;
2248 fail:
2249 return NULL;
2250 }
2251
2252
2253 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
2254 PyObject *resultobj;
2255 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2256 bool result;
2257 PyObject * obj0 = 0 ;
2258 char *kwnames[] = {
2259 (char *) "self", NULL
2260 };
2261
2262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
2263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 result = (bool)(arg1)->IsCreated();
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2282 wxControl *result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 result = (wxControl *)(arg1)->GetControl();
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 {
2299 resultobj = wxPyMake_wxObject(result);
2300 }
2301 return resultobj;
2302 fail:
2303 return NULL;
2304 }
2305
2306
2307 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2308 PyObject *resultobj;
2309 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2310 wxControl *arg2 = (wxControl *) 0 ;
2311 PyObject * obj0 = 0 ;
2312 PyObject * obj1 = 0 ;
2313 char *kwnames[] = {
2314 (char *) "self",(char *) "control", NULL
2315 };
2316
2317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2320 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
2321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2322 {
2323 PyThreadState* __tstate = wxPyBeginAllowThreads();
2324 (arg1)->SetControl(arg2);
2325
2326 wxPyEndAllowThreads(__tstate);
2327 if (PyErr_Occurred()) SWIG_fail;
2328 }
2329 Py_INCREF(Py_None); resultobj = Py_None;
2330 return resultobj;
2331 fail:
2332 return NULL;
2333 }
2334
2335
2336 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2337 PyObject *resultobj;
2338 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2339 wxGridCellAttr *result;
2340 PyObject * obj0 = 0 ;
2341 char *kwnames[] = {
2342 (char *) "self", NULL
2343 };
2344
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2348 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
2350 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 }
2355 {
2356 resultobj = wxPyMake_wxGridCellAttr(result);
2357 }
2358 return resultobj;
2359 fail:
2360 return NULL;
2361 }
2362
2363
2364 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2367 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2368 PyObject * obj0 = 0 ;
2369 PyObject * obj1 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self",(char *) "attr", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
2378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 (arg1)->SetCellAttr(arg2);
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 Py_INCREF(Py_None); resultobj = Py_None;
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2396 wxString *arg2 = 0 ;
2397 bool temp2 = False ;
2398 PyObject * obj0 = 0 ;
2399 PyObject * obj1 = 0 ;
2400 char *kwnames[] = {
2401 (char *) "self",(char *) "params", NULL
2402 };
2403
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2407 {
2408 arg2 = wxString_in_helper(obj1);
2409 if (arg2 == NULL) SWIG_fail;
2410 temp2 = True;
2411 }
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 (arg1)->SetParameters((wxString const &)*arg2);
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 Py_INCREF(Py_None); resultobj = Py_None;
2420 {
2421 if (temp2)
2422 delete arg2;
2423 }
2424 return resultobj;
2425 fail:
2426 {
2427 if (temp2)
2428 delete arg2;
2429 }
2430 return NULL;
2431 }
2432
2433
2434 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2435 PyObject *resultobj;
2436 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2437 PyObject * obj0 = 0 ;
2438 char *kwnames[] = {
2439 (char *) "self", NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2445 {
2446 PyThreadState* __tstate = wxPyBeginAllowThreads();
2447 (arg1)->IncRef();
2448
2449 wxPyEndAllowThreads(__tstate);
2450 if (PyErr_Occurred()) SWIG_fail;
2451 }
2452 Py_INCREF(Py_None); resultobj = Py_None;
2453 return resultobj;
2454 fail:
2455 return NULL;
2456 }
2457
2458
2459 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2460 PyObject *resultobj;
2461 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2462 PyObject * obj0 = 0 ;
2463 char *kwnames[] = {
2464 (char *) "self", NULL
2465 };
2466
2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 (arg1)->DecRef();
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 Py_INCREF(Py_None); resultobj = Py_None;
2478 return resultobj;
2479 fail:
2480 return NULL;
2481 }
2482
2483
2484 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject *resultobj;
2486 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2487 wxWindow *arg2 = (wxWindow *) 0 ;
2488 int arg3 ;
2489 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2490 PyObject * obj0 = 0 ;
2491 PyObject * obj1 = 0 ;
2492 PyObject * obj2 = 0 ;
2493 PyObject * obj3 = 0 ;
2494 char *kwnames[] = {
2495 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2496 };
2497
2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2503 arg3 = (int) SWIG_AsInt(obj2);
2504 if (PyErr_Occurred()) SWIG_fail;
2505 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler,
2506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2507 {
2508 PyThreadState* __tstate = wxPyBeginAllowThreads();
2509 (arg1)->Create(arg2,arg3,arg4);
2510
2511 wxPyEndAllowThreads(__tstate);
2512 if (PyErr_Occurred()) SWIG_fail;
2513 }
2514 Py_INCREF(Py_None); resultobj = Py_None;
2515 return resultobj;
2516 fail:
2517 return NULL;
2518 }
2519
2520
2521 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2522 PyObject *resultobj;
2523 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2524 int arg2 ;
2525 int arg3 ;
2526 wxGrid *arg4 = (wxGrid *) 0 ;
2527 PyObject * obj0 = 0 ;
2528 PyObject * obj1 = 0 ;
2529 PyObject * obj2 = 0 ;
2530 PyObject * obj3 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2538 arg2 = (int) SWIG_AsInt(obj1);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 arg3 = (int) SWIG_AsInt(obj2);
2541 if (PyErr_Occurred()) SWIG_fail;
2542 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid,
2543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 (arg1)->BeginEdit(arg2,arg3,arg4);
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 Py_INCREF(Py_None); resultobj = Py_None;
2552 return resultobj;
2553 fail:
2554 return NULL;
2555 }
2556
2557
2558 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2559 PyObject *resultobj;
2560 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2561 int arg2 ;
2562 int arg3 ;
2563 wxGrid *arg4 = (wxGrid *) 0 ;
2564 bool result;
2565 PyObject * obj0 = 0 ;
2566 PyObject * obj1 = 0 ;
2567 PyObject * obj2 = 0 ;
2568 PyObject * obj3 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2576 arg2 = (int) SWIG_AsInt(obj1);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 arg3 = (int) SWIG_AsInt(obj2);
2579 if (PyErr_Occurred()) SWIG_fail;
2580 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid,
2581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2582 {
2583 PyThreadState* __tstate = wxPyBeginAllowThreads();
2584 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2585
2586 wxPyEndAllowThreads(__tstate);
2587 if (PyErr_Occurred()) SWIG_fail;
2588 }
2589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2590 return resultobj;
2591 fail:
2592 return NULL;
2593 }
2594
2595
2596 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2597 PyObject *resultobj;
2598 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2599 PyObject * obj0 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "self", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2607 {
2608 PyThreadState* __tstate = wxPyBeginAllowThreads();
2609 (arg1)->Reset();
2610
2611 wxPyEndAllowThreads(__tstate);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 Py_INCREF(Py_None); resultobj = Py_None;
2615 return resultobj;
2616 fail:
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2624 wxGridCellEditor *result;
2625 PyObject * obj0 = 0 ;
2626 char *kwnames[] = {
2627 (char *) "self", NULL
2628 };
2629
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 {
2641 resultobj = wxPyMake_wxGridCellEditor(result);
2642 }
2643 return resultobj;
2644 fail:
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2652 wxRect *arg2 = 0 ;
2653 wxRect temp2 ;
2654 PyObject * obj0 = 0 ;
2655 PyObject * obj1 = 0 ;
2656 char *kwnames[] = {
2657 (char *) "self",(char *) "rect", NULL
2658 };
2659
2660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2663 {
2664 arg2 = &temp2;
2665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2666 }
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 (arg1)->SetSize((wxRect const &)*arg2);
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2674 Py_INCREF(Py_None); resultobj = Py_None;
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2684 bool arg2 ;
2685 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2686 PyObject * obj0 = 0 ;
2687 PyObject * obj1 = 0 ;
2688 PyObject * obj2 = 0 ;
2689 char *kwnames[] = {
2690 (char *) "self",(char *) "show",(char *) "attr", NULL
2691 };
2692
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2696 arg2 = (bool) SWIG_AsBool(obj1);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 if (obj2) {
2699 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
2700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2701 }
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 (arg1)->Show(arg2,arg3);
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) SWIG_fail;
2708 }
2709 Py_INCREF(Py_None); resultobj = Py_None;
2710 return resultobj;
2711 fail:
2712 return NULL;
2713 }
2714
2715
2716 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2719 wxRect *arg2 = 0 ;
2720 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2721 wxRect temp2 ;
2722 PyObject * obj0 = 0 ;
2723 PyObject * obj1 = 0 ;
2724 PyObject * obj2 = 0 ;
2725 char *kwnames[] = {
2726 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2727 };
2728
2729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2732 {
2733 arg2 = &temp2;
2734 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2735 }
2736 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
2737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2738 {
2739 PyThreadState* __tstate = wxPyBeginAllowThreads();
2740 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2741
2742 wxPyEndAllowThreads(__tstate);
2743 if (PyErr_Occurred()) SWIG_fail;
2744 }
2745 Py_INCREF(Py_None); resultobj = Py_None;
2746 return resultobj;
2747 fail:
2748 return NULL;
2749 }
2750
2751
2752 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2753 PyObject *resultobj;
2754 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2755 wxKeyEvent *arg2 = 0 ;
2756 bool result;
2757 PyObject * obj0 = 0 ;
2758 PyObject * obj1 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "event", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2767 SWIG_POINTER_EXCEPTION | 0)) == -1)
2768 SWIG_fail;
2769 if (arg2 == NULL) {
2770 PyErr_SetString(PyExc_TypeError,"null reference");
2771 SWIG_fail;
2772 }
2773 {
2774 PyThreadState* __tstate = wxPyBeginAllowThreads();
2775 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2776
2777 wxPyEndAllowThreads(__tstate);
2778 if (PyErr_Occurred()) SWIG_fail;
2779 }
2780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2781 return resultobj;
2782 fail:
2783 return NULL;
2784 }
2785
2786
2787 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2788 PyObject *resultobj;
2789 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2790 wxKeyEvent *arg2 = 0 ;
2791 PyObject * obj0 = 0 ;
2792 PyObject * obj1 = 0 ;
2793 char *kwnames[] = {
2794 (char *) "self",(char *) "event", NULL
2795 };
2796
2797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2801 SWIG_POINTER_EXCEPTION | 0)) == -1)
2802 SWIG_fail;
2803 if (arg2 == NULL) {
2804 PyErr_SetString(PyExc_TypeError,"null reference");
2805 SWIG_fail;
2806 }
2807 {
2808 PyThreadState* __tstate = wxPyBeginAllowThreads();
2809 (arg1)->StartingKey(*arg2);
2810
2811 wxPyEndAllowThreads(__tstate);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 }
2814 Py_INCREF(Py_None); resultobj = Py_None;
2815 return resultobj;
2816 fail:
2817 return NULL;
2818 }
2819
2820
2821 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject *resultobj;
2823 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2824 PyObject * obj0 = 0 ;
2825 char *kwnames[] = {
2826 (char *) "self", NULL
2827 };
2828
2829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2832 {
2833 PyThreadState* __tstate = wxPyBeginAllowThreads();
2834 (arg1)->StartingClick();
2835
2836 wxPyEndAllowThreads(__tstate);
2837 if (PyErr_Occurred()) SWIG_fail;
2838 }
2839 Py_INCREF(Py_None); resultobj = Py_None;
2840 return resultobj;
2841 fail:
2842 return NULL;
2843 }
2844
2845
2846 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2847 PyObject *resultobj;
2848 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2849 wxKeyEvent *arg2 = 0 ;
2850 PyObject * obj0 = 0 ;
2851 PyObject * obj1 = 0 ;
2852 char *kwnames[] = {
2853 (char *) "self",(char *) "event", NULL
2854 };
2855
2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
2860 SWIG_POINTER_EXCEPTION | 0)) == -1)
2861 SWIG_fail;
2862 if (arg2 == NULL) {
2863 PyErr_SetString(PyExc_TypeError,"null reference");
2864 SWIG_fail;
2865 }
2866 {
2867 PyThreadState* __tstate = wxPyBeginAllowThreads();
2868 (arg1)->HandleReturn(*arg2);
2869
2870 wxPyEndAllowThreads(__tstate);
2871 if (PyErr_Occurred()) SWIG_fail;
2872 }
2873 Py_INCREF(Py_None); resultobj = Py_None;
2874 return resultobj;
2875 fail:
2876 return NULL;
2877 }
2878
2879
2880 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2881 PyObject *resultobj;
2882 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2883 PyObject * obj0 = 0 ;
2884 char *kwnames[] = {
2885 (char *) "self", NULL
2886 };
2887
2888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor,
2890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2891 {
2892 PyThreadState* __tstate = wxPyBeginAllowThreads();
2893 (arg1)->Destroy();
2894
2895 wxPyEndAllowThreads(__tstate);
2896 if (PyErr_Occurred()) SWIG_fail;
2897 }
2898 Py_INCREF(Py_None); resultobj = Py_None;
2899 return resultobj;
2900 fail:
2901 return NULL;
2902 }
2903
2904
2905 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2906 PyObject *obj;
2907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2908 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2909 Py_INCREF(obj);
2910 return Py_BuildValue((char *)"");
2911 }
2912 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 wxPyGridCellEditor *result;
2915 char *kwnames[] = {
2916 NULL
2917 };
2918
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2920 {
2921 PyThreadState* __tstate = wxPyBeginAllowThreads();
2922 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2923
2924 wxPyEndAllowThreads(__tstate);
2925 if (PyErr_Occurred()) SWIG_fail;
2926 }
2927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1);
2928 return resultobj;
2929 fail:
2930 return NULL;
2931 }
2932
2933
2934 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2935 PyObject *resultobj;
2936 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2937 PyObject *arg2 = (PyObject *) 0 ;
2938 PyObject *arg3 = (PyObject *) 0 ;
2939 PyObject * obj0 = 0 ;
2940 PyObject * obj1 = 0 ;
2941 PyObject * obj2 = 0 ;
2942 char *kwnames[] = {
2943 (char *) "self",(char *) "self",(char *) "_class", NULL
2944 };
2945
2946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
2948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2949 arg2 = obj1;
2950 arg3 = obj2;
2951 {
2952 PyThreadState* __tstate = wxPyBeginAllowThreads();
2953 (arg1)->_setCallbackInfo(arg2,arg3);
2954
2955 wxPyEndAllowThreads(__tstate);
2956 if (PyErr_Occurred()) SWIG_fail;
2957 }
2958 Py_INCREF(Py_None); resultobj = Py_None;
2959 return resultobj;
2960 fail:
2961 return NULL;
2962 }
2963
2964
2965 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2966 PyObject *resultobj;
2967 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2968 wxRect *arg2 = 0 ;
2969 wxRect temp2 ;
2970 PyObject * obj0 = 0 ;
2971 PyObject * obj1 = 0 ;
2972 char *kwnames[] = {
2973 (char *) "self",(char *) "rect", NULL
2974 };
2975
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
2978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2979 {
2980 arg2 = &temp2;
2981 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2982 }
2983 {
2984 PyThreadState* __tstate = wxPyBeginAllowThreads();
2985 (arg1)->base_SetSize((wxRect const &)*arg2);
2986
2987 wxPyEndAllowThreads(__tstate);
2988 if (PyErr_Occurred()) SWIG_fail;
2989 }
2990 Py_INCREF(Py_None); resultobj = Py_None;
2991 return resultobj;
2992 fail:
2993 return NULL;
2994 }
2995
2996
2997 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2998 PyObject *resultobj;
2999 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3000 bool arg2 ;
3001 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
3002 PyObject * obj0 = 0 ;
3003 PyObject * obj1 = 0 ;
3004 PyObject * obj2 = 0 ;
3005 char *kwnames[] = {
3006 (char *) "self",(char *) "show",(char *) "attr", NULL
3007 };
3008
3009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
3010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3012 arg2 = (bool) SWIG_AsBool(obj1);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 if (obj2) {
3015 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
3016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3017 }
3018 {
3019 PyThreadState* __tstate = wxPyBeginAllowThreads();
3020 (arg1)->base_Show(arg2,arg3);
3021
3022 wxPyEndAllowThreads(__tstate);
3023 if (PyErr_Occurred()) SWIG_fail;
3024 }
3025 Py_INCREF(Py_None); resultobj = Py_None;
3026 return resultobj;
3027 fail:
3028 return NULL;
3029 }
3030
3031
3032 static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
3033 PyObject *resultobj;
3034 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3035 wxRect *arg2 = 0 ;
3036 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
3037 wxRect temp2 ;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 PyObject * obj2 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
3046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3048 {
3049 arg2 = &temp2;
3050 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3051 }
3052 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
3053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3054 {
3055 PyThreadState* __tstate = wxPyBeginAllowThreads();
3056 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
3057
3058 wxPyEndAllowThreads(__tstate);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 Py_INCREF(Py_None); resultobj = Py_None;
3062 return resultobj;
3063 fail:
3064 return NULL;
3065 }
3066
3067
3068 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject *resultobj;
3070 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3071 wxKeyEvent *arg2 = 0 ;
3072 bool result;
3073 PyObject * obj0 = 0 ;
3074 PyObject * obj1 = 0 ;
3075 char *kwnames[] = {
3076 (char *) "self",(char *) "event", NULL
3077 };
3078
3079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
3080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3083 SWIG_POINTER_EXCEPTION | 0)) == -1)
3084 SWIG_fail;
3085 if (arg2 == NULL) {
3086 PyErr_SetString(PyExc_TypeError,"null reference");
3087 SWIG_fail;
3088 }
3089 {
3090 PyThreadState* __tstate = wxPyBeginAllowThreads();
3091 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
3092
3093 wxPyEndAllowThreads(__tstate);
3094 if (PyErr_Occurred()) SWIG_fail;
3095 }
3096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3097 return resultobj;
3098 fail:
3099 return NULL;
3100 }
3101
3102
3103 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
3104 PyObject *resultobj;
3105 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3106 wxKeyEvent *arg2 = 0 ;
3107 PyObject * obj0 = 0 ;
3108 PyObject * obj1 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self",(char *) "event", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3117 SWIG_POINTER_EXCEPTION | 0)) == -1)
3118 SWIG_fail;
3119 if (arg2 == NULL) {
3120 PyErr_SetString(PyExc_TypeError,"null reference");
3121 SWIG_fail;
3122 }
3123 {
3124 PyThreadState* __tstate = wxPyBeginAllowThreads();
3125 (arg1)->base_StartingKey(*arg2);
3126
3127 wxPyEndAllowThreads(__tstate);
3128 if (PyErr_Occurred()) SWIG_fail;
3129 }
3130 Py_INCREF(Py_None); resultobj = Py_None;
3131 return resultobj;
3132 fail:
3133 return NULL;
3134 }
3135
3136
3137 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
3138 PyObject *resultobj;
3139 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3140 PyObject * obj0 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 (arg1)->base_StartingClick();
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 Py_INCREF(Py_None); resultobj = Py_None;
3156 return resultobj;
3157 fail:
3158 return NULL;
3159 }
3160
3161
3162 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
3163 PyObject *resultobj;
3164 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3165 wxKeyEvent *arg2 = 0 ;
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
3168 char *kwnames[] = {
3169 (char *) "self",(char *) "event", NULL
3170 };
3171
3172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
3173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3175 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
3176 SWIG_POINTER_EXCEPTION | 0)) == -1)
3177 SWIG_fail;
3178 if (arg2 == NULL) {
3179 PyErr_SetString(PyExc_TypeError,"null reference");
3180 SWIG_fail;
3181 }
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 (arg1)->base_HandleReturn(*arg2);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 Py_INCREF(Py_None); resultobj = Py_None;
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject *resultobj;
3198 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3199 PyObject * obj0 = 0 ;
3200 char *kwnames[] = {
3201 (char *) "self", NULL
3202 };
3203
3204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
3205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3207 {
3208 PyThreadState* __tstate = wxPyBeginAllowThreads();
3209 (arg1)->base_Destroy();
3210
3211 wxPyEndAllowThreads(__tstate);
3212 if (PyErr_Occurred()) SWIG_fail;
3213 }
3214 Py_INCREF(Py_None); resultobj = Py_None;
3215 return resultobj;
3216 fail:
3217 return NULL;
3218 }
3219
3220
3221 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
3222 PyObject *resultobj;
3223 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3224 wxString *arg2 = 0 ;
3225 bool temp2 = False ;
3226 PyObject * obj0 = 0 ;
3227 PyObject * obj1 = 0 ;
3228 char *kwnames[] = {
3229 (char *) "self",(char *) "params", NULL
3230 };
3231
3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
3233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor,
3234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3235 {
3236 arg2 = wxString_in_helper(obj1);
3237 if (arg2 == NULL) SWIG_fail;
3238 temp2 = True;
3239 }
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 (arg1)->base_SetParameters((wxString const &)*arg2);
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) SWIG_fail;
3246 }
3247 Py_INCREF(Py_None); resultobj = Py_None;
3248 {
3249 if (temp2)
3250 delete arg2;
3251 }
3252 return resultobj;
3253 fail:
3254 {
3255 if (temp2)
3256 delete arg2;
3257 }
3258 return NULL;
3259 }
3260
3261
3262 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
3263 PyObject *obj;
3264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3265 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
3266 Py_INCREF(obj);
3267 return Py_BuildValue((char *)"");
3268 }
3269 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3270 PyObject *resultobj;
3271 wxGridCellTextEditor *result;
3272 char *kwnames[] = {
3273 NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1);
3285 return resultobj;
3286 fail:
3287 return NULL;
3288 }
3289
3290
3291 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj;
3293 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
3294 wxString result;
3295 PyObject * obj0 = 0 ;
3296 char *kwnames[] = {
3297 (char *) "self", NULL
3298 };
3299
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
3301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor,
3302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 result = (arg1)->GetValue();
3306
3307 wxPyEndAllowThreads(__tstate);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 {
3311 #if wxUSE_UNICODE
3312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3313 #else
3314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3315 #endif
3316 }
3317 return resultobj;
3318 fail:
3319 return NULL;
3320 }
3321
3322
3323 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
3324 PyObject *obj;
3325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3326 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
3327 Py_INCREF(obj);
3328 return Py_BuildValue((char *)"");
3329 }
3330 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3331 PyObject *resultobj;
3332 int arg1 = (int) -1 ;
3333 int arg2 = (int) -1 ;
3334 wxGridCellNumberEditor *result;
3335 PyObject * obj0 = 0 ;
3336 PyObject * obj1 = 0 ;
3337 char *kwnames[] = {
3338 (char *) "min",(char *) "max", NULL
3339 };
3340
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail;
3342 if (obj0) {
3343 arg1 = (int) SWIG_AsInt(obj0);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 if (obj1) {
3347 arg2 = (int) SWIG_AsInt(obj1);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 {
3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
3352 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
3353
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1);
3358 return resultobj;
3359 fail:
3360 return NULL;
3361 }
3362
3363
3364 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3365 PyObject *resultobj;
3366 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
3367 wxString result;
3368 PyObject * obj0 = 0 ;
3369 char *kwnames[] = {
3370 (char *) "self", NULL
3371 };
3372
3373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
3374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor,
3375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 result = (arg1)->GetValue();
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 {
3384 #if wxUSE_UNICODE
3385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3386 #else
3387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3388 #endif
3389 }
3390 return resultobj;
3391 fail:
3392 return NULL;
3393 }
3394
3395
3396 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3397 PyObject *obj;
3398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3399 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3400 Py_INCREF(obj);
3401 return Py_BuildValue((char *)"");
3402 }
3403 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj;
3405 wxGridCellFloatEditor *result;
3406 char *kwnames[] = {
3407 NULL
3408 };
3409
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1);
3419 return resultobj;
3420 fail:
3421 return NULL;
3422 }
3423
3424
3425 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3428 wxString result;
3429 PyObject * obj0 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "self", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor,
3436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3437 {
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 result = (arg1)->GetValue();
3440
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 {
3445 #if wxUSE_UNICODE
3446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3447 #else
3448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3449 #endif
3450 }
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3458 PyObject *obj;
3459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3460 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3461 Py_INCREF(obj);
3462 return Py_BuildValue((char *)"");
3463 }
3464 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj;
3466 wxGridCellBoolEditor *result;
3467 char *kwnames[] = {
3468 NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1);
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3489 wxString result;
3490 PyObject * obj0 = 0 ;
3491 char *kwnames[] = {
3492 (char *) "self", NULL
3493 };
3494
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor,
3497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (arg1)->GetValue();
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 {
3506 #if wxUSE_UNICODE
3507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3508 #else
3509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3510 #endif
3511 }
3512 return resultobj;
3513 fail:
3514 return NULL;
3515 }
3516
3517
3518 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3519 PyObject *obj;
3520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3521 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3522 Py_INCREF(obj);
3523 return Py_BuildValue((char *)"");
3524 }
3525 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 int arg1 = (int) 0 ;
3528 wxString *arg2 = (wxString *) NULL ;
3529 bool arg3 = (bool) False ;
3530 wxGridCellChoiceEditor *result;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "choices",(char *) "allowOthers", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3538 if (obj0) {
3539 {
3540 arg1 = PyList_Size(obj0);
3541 arg2 = wxString_LIST_helper(obj0);
3542 if (arg2 == NULL) SWIG_fail;
3543 }
3544 }
3545 if (obj1) {
3546 arg3 = (bool) SWIG_AsBool(obj1);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3557 {
3558 if (arg2) delete [] arg2;
3559 }
3560 return resultobj;
3561 fail:
3562 {
3563 if (arg2) delete [] arg2;
3564 }
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj;
3571 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3572 wxString result;
3573 PyObject * obj0 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "self", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor,
3580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3581 {
3582 PyThreadState* __tstate = wxPyBeginAllowThreads();
3583 result = (arg1)->GetValue();
3584
3585 wxPyEndAllowThreads(__tstate);
3586 if (PyErr_Occurred()) SWIG_fail;
3587 }
3588 {
3589 #if wxUSE_UNICODE
3590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3591 #else
3592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3593 #endif
3594 }
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3602 PyObject *obj;
3603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3604 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3605 Py_INCREF(obj);
3606 return Py_BuildValue((char *)"");
3607 }
3608 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxString const &arg1_defvalue = wxPyEmptyString ;
3611 wxString *arg1 = (wxString *) &arg1_defvalue ;
3612 wxGridCellEnumEditor *result;
3613 bool temp1 = False ;
3614 PyObject * obj0 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "choices", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3620 if (obj0) {
3621 {
3622 arg1 = wxString_in_helper(obj0);
3623 if (arg1 == NULL) SWIG_fail;
3624 temp1 = True;
3625 }
3626 }
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3630
3631 wxPyEndAllowThreads(__tstate);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 }
3634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1);
3635 {
3636 if (temp1)
3637 delete arg1;
3638 }
3639 return resultobj;
3640 fail:
3641 {
3642 if (temp1)
3643 delete arg1;
3644 }
3645 return NULL;
3646 }
3647
3648
3649 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3650 PyObject *resultobj;
3651 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3652 wxString result;
3653 PyObject * obj0 = 0 ;
3654 char *kwnames[] = {
3655 (char *) "self", NULL
3656 };
3657
3658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor,
3660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 result = (arg1)->GetValue();
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 {
3669 #if wxUSE_UNICODE
3670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3671 #else
3672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3673 #endif
3674 }
3675 return resultobj;
3676 fail:
3677 return NULL;
3678 }
3679
3680
3681 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3682 PyObject *obj;
3683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3684 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3685 Py_INCREF(obj);
3686 return Py_BuildValue((char *)"");
3687 }
3688 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxGridCellAutoWrapStringEditor *result;
3691 char *kwnames[] = {
3692 NULL
3693 };
3694
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3713 wxString result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "self", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor,
3721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (arg1)->GetValue();
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 {
3730 #if wxUSE_UNICODE
3731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3732 #else
3733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3734 #endif
3735 }
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3743 PyObject *obj;
3744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3745 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3746 Py_INCREF(obj);
3747 return Py_BuildValue((char *)"");
3748 }
3749 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject *resultobj;
3751 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3752 PyObject *arg2 = (PyObject *) 0 ;
3753 PyObject * obj0 = 0 ;
3754 PyObject * obj1 = 0 ;
3755 char *kwnames[] = {
3756 (char *) "self",(char *) "_self", NULL
3757 };
3758
3759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3762 arg2 = obj1;
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 wxGridCellAttr__setOORInfo(arg1,arg2);
3766
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 Py_INCREF(Py_None); resultobj = Py_None;
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj;
3779 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3780 wxGridCellAttr *result;
3781 PyObject * obj0 = 0 ;
3782 char *kwnames[] = {
3783 (char *) "attrDefault", NULL
3784 };
3785
3786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3787 if (obj0) {
3788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3790 }
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3794
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 {
3799 resultobj = wxPyMake_wxGridCellAttr(result);
3800 }
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3810 wxGridCellAttr *result;
3811 PyObject * obj0 = 0 ;
3812 char *kwnames[] = {
3813 (char *) "self", NULL
3814 };
3815
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3819 {
3820 PyThreadState* __tstate = wxPyBeginAllowThreads();
3821 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3822
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 {
3827 resultobj = wxPyMake_wxGridCellAttr(result);
3828 }
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject *resultobj;
3837 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3838 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3839 PyObject * obj0 = 0 ;
3840 PyObject * obj1 = 0 ;
3841 char *kwnames[] = {
3842 (char *) "self",(char *) "mergefrom", NULL
3843 };
3844
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
3849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 (arg1)->MergeWith(arg2);
3853
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 Py_INCREF(Py_None); resultobj = Py_None;
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj;
3866 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3867 PyObject * obj0 = 0 ;
3868 char *kwnames[] = {
3869 (char *) "self", NULL
3870 };
3871
3872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3875 {
3876 PyThreadState* __tstate = wxPyBeginAllowThreads();
3877 (arg1)->IncRef();
3878
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 Py_INCREF(Py_None); resultobj = Py_None;
3883 return resultobj;
3884 fail:
3885 return NULL;
3886 }
3887
3888
3889 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3890 PyObject *resultobj;
3891 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3892 PyObject * obj0 = 0 ;
3893 char *kwnames[] = {
3894 (char *) "self", NULL
3895 };
3896
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 (arg1)->DecRef();
3903
3904 wxPyEndAllowThreads(__tstate);
3905 if (PyErr_Occurred()) SWIG_fail;
3906 }
3907 Py_INCREF(Py_None); resultobj = Py_None;
3908 return resultobj;
3909 fail:
3910 return NULL;
3911 }
3912
3913
3914 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3915 PyObject *resultobj;
3916 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3917 wxColour *arg2 = 0 ;
3918 wxColour temp2 ;
3919 PyObject * obj0 = 0 ;
3920 PyObject * obj1 = 0 ;
3921 char *kwnames[] = {
3922 (char *) "self",(char *) "colText", NULL
3923 };
3924
3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3928 {
3929 arg2 = &temp2;
3930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3931 }
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 (arg1)->SetTextColour((wxColour const &)*arg2);
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_SetBackgroundColour(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 *) "colBack", NULL
3955 };
3956
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",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)->SetBackgroundColour((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_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj;
3980 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3981 wxFont *arg2 = 0 ;
3982 PyObject * obj0 = 0 ;
3983 PyObject * obj1 = 0 ;
3984 char *kwnames[] = {
3985 (char *) "self",(char *) "font", NULL
3986 };
3987
3988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
3989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
3990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3991 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
3992 SWIG_POINTER_EXCEPTION | 0)) == -1)
3993 SWIG_fail;
3994 if (arg2 == NULL) {
3995 PyErr_SetString(PyExc_TypeError,"null reference");
3996 SWIG_fail;
3997 }
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 (arg1)->SetFont((wxFont const &)*arg2);
4001
4002 wxPyEndAllowThreads(__tstate);
4003 if (PyErr_Occurred()) SWIG_fail;
4004 }
4005 Py_INCREF(Py_None); resultobj = Py_None;
4006 return resultobj;
4007 fail:
4008 return NULL;
4009 }
4010
4011
4012 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4013 PyObject *resultobj;
4014 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4015 int arg2 ;
4016 int arg3 ;
4017 PyObject * obj0 = 0 ;
4018 PyObject * obj1 = 0 ;
4019 PyObject * obj2 = 0 ;
4020 char *kwnames[] = {
4021 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
4022 };
4023
4024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
4025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4027 arg2 = (int) SWIG_AsInt(obj1);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 arg3 = (int) SWIG_AsInt(obj2);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 (arg1)->SetAlignment(arg2,arg3);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 Py_INCREF(Py_None); resultobj = Py_None;
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4048 int arg2 ;
4049 int arg3 ;
4050 PyObject * obj0 = 0 ;
4051 PyObject * obj1 = 0 ;
4052 PyObject * obj2 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4060 arg2 = (int) SWIG_AsInt(obj1);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 arg3 = (int) SWIG_AsInt(obj2);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 (arg1)->SetSize(arg2,arg3);
4067
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 Py_INCREF(Py_None); resultobj = Py_None;
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj;
4080 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4081 bool arg2 = (bool) True ;
4082 PyObject * obj0 = 0 ;
4083 PyObject * obj1 = 0 ;
4084 char *kwnames[] = {
4085 (char *) "self",(char *) "allow", NULL
4086 };
4087
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
4089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4091 if (obj1) {
4092 arg2 = (bool) SWIG_AsBool(obj1);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 (arg1)->SetOverflow(arg2);
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 Py_INCREF(Py_None); resultobj = Py_None;
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj;
4111 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4112 bool arg2 = (bool) True ;
4113 PyObject * obj0 = 0 ;
4114 PyObject * obj1 = 0 ;
4115 char *kwnames[] = {
4116 (char *) "self",(char *) "isReadOnly", NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
4120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4122 if (obj1) {
4123 arg2 = (bool) SWIG_AsBool(obj1);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 {
4127 PyThreadState* __tstate = wxPyBeginAllowThreads();
4128 (arg1)->SetReadOnly(arg2);
4129
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 Py_INCREF(Py_None); resultobj = Py_None;
4134 return resultobj;
4135 fail:
4136 return NULL;
4137 }
4138
4139
4140 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj;
4142 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4143 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
4144 PyObject * obj0 = 0 ;
4145 PyObject * obj1 = 0 ;
4146 char *kwnames[] = {
4147 (char *) "self",(char *) "renderer", NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
4151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer,
4154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 (arg1)->SetRenderer(arg2);
4158
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 Py_INCREF(Py_None); resultobj = Py_None;
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj;
4171 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4172 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
4173 PyObject * obj0 = 0 ;
4174 PyObject * obj1 = 0 ;
4175 char *kwnames[] = {
4176 (char *) "self",(char *) "editor", NULL
4177 };
4178
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
4180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor,
4183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 (arg1)->SetEditor(arg2);
4187
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 Py_INCREF(Py_None); resultobj = Py_None;
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj;
4200 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4201 int arg2 ;
4202 PyObject * obj0 = 0 ;
4203 PyObject * obj1 = 0 ;
4204 char *kwnames[] = {
4205 (char *) "self",(char *) "kind", NULL
4206 };
4207
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail;
4209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4211 arg2 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj1);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 Py_INCREF(Py_None); resultobj = Py_None;
4221 return resultobj;
4222 fail:
4223 return NULL;
4224 }
4225
4226
4227 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4228 PyObject *resultobj;
4229 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4230 bool result;
4231 PyObject * obj0 = 0 ;
4232 char *kwnames[] = {
4233 (char *) "self", NULL
4234 };
4235
4236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
4237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4256 bool result;
4257 PyObject * obj0 = 0 ;
4258 char *kwnames[] = {
4259 (char *) "self", NULL
4260 };
4261
4262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
4263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
4268
4269 wxPyEndAllowThreads(__tstate);
4270 if (PyErr_Occurred()) SWIG_fail;
4271 }
4272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4273 return resultobj;
4274 fail:
4275 return NULL;
4276 }
4277
4278
4279 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4280 PyObject *resultobj;
4281 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4282 bool result;
4283 PyObject * obj0 = 0 ;
4284 char *kwnames[] = {
4285 (char *) "self", NULL
4286 };
4287
4288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
4289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
4294
4295 wxPyEndAllowThreads(__tstate);
4296 if (PyErr_Occurred()) SWIG_fail;
4297 }
4298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4299 return resultobj;
4300 fail:
4301 return NULL;
4302 }
4303
4304
4305 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4306 PyObject *resultobj;
4307 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4308 bool result;
4309 PyObject * obj0 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "self", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
4315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4325 return resultobj;
4326 fail:
4327 return NULL;
4328 }
4329
4330
4331 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj;
4333 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4334 bool result;
4335 PyObject * obj0 = 0 ;
4336 char *kwnames[] = {
4337 (char *) "self", NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj;
4359 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4360 bool result;
4361 PyObject * obj0 = 0 ;
4362 char *kwnames[] = {
4363 (char *) "self", NULL
4364 };
4365
4366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
4367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
4372
4373 wxPyEndAllowThreads(__tstate);
4374 if (PyErr_Occurred()) SWIG_fail;
4375 }
4376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4377 return resultobj;
4378 fail:
4379 return NULL;
4380 }
4381
4382
4383 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4384 PyObject *resultobj;
4385 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4386 bool result;
4387 PyObject * obj0 = 0 ;
4388 char *kwnames[] = {
4389 (char *) "self", NULL
4390 };
4391
4392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
4393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj;
4411 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4412 bool result;
4413 PyObject * obj0 = 0 ;
4414 char *kwnames[] = {
4415 (char *) "self", NULL
4416 };
4417
4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
4419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
4424
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4438 wxColour result;
4439 PyObject * obj0 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 {
4455 wxColour * resultptr;
4456 resultptr = new wxColour((wxColour &) result);
4457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4458 }
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj;
4467 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4468 wxColour result;
4469 PyObject * obj0 = 0 ;
4470 char *kwnames[] = {
4471 (char *) "self", NULL
4472 };
4473
4474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
4479 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4480
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 {
4485 wxColour * resultptr;
4486 resultptr = new wxColour((wxColour &) result);
4487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4488 }
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj;
4497 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4498 wxFont result;
4499 PyObject * obj0 = 0 ;
4500 char *kwnames[] = {
4501 (char *) "self", NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = ((wxGridCellAttr const *)arg1)->GetFont();
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 {
4515 wxFont * resultptr;
4516 resultptr = new wxFont((wxFont &) result);
4517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
4518 }
4519 return resultobj;
4520 fail:
4521 return NULL;
4522 }
4523
4524
4525 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4528 int *arg2 = (int *) 0 ;
4529 int *arg3 = (int *) 0 ;
4530 int temp2 ;
4531 int temp3 ;
4532 PyObject * obj0 = 0 ;
4533 char *kwnames[] = {
4534 (char *) "self", NULL
4535 };
4536
4537 arg2 = &temp2;
4538 arg3 = &temp3;
4539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 Py_INCREF(Py_None); resultobj = Py_None;
4550 {
4551 PyObject *o = PyInt_FromLong((long) (*arg2));
4552 resultobj = t_output_helper(resultobj,o);
4553 }
4554 {
4555 PyObject *o = PyInt_FromLong((long) (*arg3));
4556 resultobj = t_output_helper(resultobj,o);
4557 }
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4565 PyObject *resultobj;
4566 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4567 int *arg2 = (int *) 0 ;
4568 int *arg3 = (int *) 0 ;
4569 int temp2 ;
4570 int temp3 ;
4571 PyObject * obj0 = 0 ;
4572 char *kwnames[] = {
4573 (char *) "self", NULL
4574 };
4575
4576 arg2 = &temp2;
4577 arg3 = &temp3;
4578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4581 {
4582 PyThreadState* __tstate = wxPyBeginAllowThreads();
4583 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4584
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 Py_INCREF(Py_None); resultobj = Py_None;
4589 {
4590 PyObject *o = PyInt_FromLong((long) (*arg2));
4591 resultobj = t_output_helper(resultobj,o);
4592 }
4593 {
4594 PyObject *o = PyInt_FromLong((long) (*arg3));
4595 resultobj = t_output_helper(resultobj,o);
4596 }
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4606 bool result;
4607 PyObject * obj0 = 0 ;
4608 char *kwnames[] = {
4609 (char *) "self", NULL
4610 };
4611
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4615 {
4616 PyThreadState* __tstate = wxPyBeginAllowThreads();
4617 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4618
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj;
4631 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4632 wxGrid *arg2 = (wxGrid *) 0 ;
4633 int arg3 ;
4634 int arg4 ;
4635 wxGridCellRenderer *result;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 PyObject * obj2 = 0 ;
4639 PyObject * obj3 = 0 ;
4640 char *kwnames[] = {
4641 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4642 };
4643
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4647 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
4648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4649 arg3 = (int) SWIG_AsInt(obj2);
4650 if (PyErr_Occurred()) SWIG_fail;
4651 arg4 = (int) SWIG_AsInt(obj3);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 {
4661 resultobj = wxPyMake_wxGridCellRenderer(result);
4662 }
4663 return resultobj;
4664 fail:
4665 return NULL;
4666 }
4667
4668
4669 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj;
4671 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4672 wxGrid *arg2 = (wxGrid *) 0 ;
4673 int arg3 ;
4674 int arg4 ;
4675 wxGridCellEditor *result;
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 PyObject * obj2 = 0 ;
4679 PyObject * obj3 = 0 ;
4680 char *kwnames[] = {
4681 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
4688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4689 arg3 = (int) SWIG_AsInt(obj2);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 arg4 = (int) SWIG_AsInt(obj3);
4692 if (PyErr_Occurred()) SWIG_fail;
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4696
4697 wxPyEndAllowThreads(__tstate);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 {
4701 resultobj = wxPyMake_wxGridCellEditor(result);
4702 }
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4710 PyObject *resultobj;
4711 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4712 bool result;
4713 PyObject * obj0 = 0 ;
4714 char *kwnames[] = {
4715 (char *) "self", NULL
4716 };
4717
4718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4724
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4736 PyObject *resultobj;
4737 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4738 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4739 PyObject * obj0 = 0 ;
4740 PyObject * obj1 = 0 ;
4741 char *kwnames[] = {
4742 (char *) "self",(char *) "defAttr", NULL
4743 };
4744
4745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr,
4747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 (arg1)->SetDefAttr(arg2);
4753
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 Py_INCREF(Py_None); resultobj = Py_None;
4758 return resultobj;
4759 fail:
4760 return NULL;
4761 }
4762
4763
4764 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4765 PyObject *obj;
4766 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4767 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4768 Py_INCREF(obj);
4769 return Py_BuildValue((char *)"");
4770 }
4771 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj;
4773 wxGridCellAttrProvider *result;
4774 char *kwnames[] = {
4775 NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4782
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 {
4787 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4788 }
4789 return resultobj;
4790 fail:
4791 return NULL;
4792 }
4793
4794
4795 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj;
4797 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4798 PyObject *arg2 = (PyObject *) 0 ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 char *kwnames[] = {
4802 (char *) "self",(char *) "_self", NULL
4803 };
4804
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4808 arg2 = obj1;
4809 {
4810 PyThreadState* __tstate = wxPyBeginAllowThreads();
4811 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4812
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 Py_INCREF(Py_None); resultobj = Py_None;
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj;
4825 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4826 int arg2 ;
4827 int arg3 ;
4828 int arg4 ;
4829 wxGridCellAttr *result;
4830 PyObject * obj0 = 0 ;
4831 PyObject * obj1 = 0 ;
4832 PyObject * obj2 = 0 ;
4833 PyObject * obj3 = 0 ;
4834 char *kwnames[] = {
4835 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4836 };
4837
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4841 arg2 = (int) SWIG_AsInt(obj1);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 arg3 = (int) SWIG_AsInt(obj2);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 {
4855 resultobj = wxPyMake_wxGridCellAttr(result);
4856 }
4857 return resultobj;
4858 fail:
4859 return NULL;
4860 }
4861
4862
4863 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4864 PyObject *resultobj;
4865 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4866 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4867 int arg3 ;
4868 int arg4 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 PyObject * obj2 = 0 ;
4872 PyObject * obj3 = 0 ;
4873 char *kwnames[] = {
4874 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4875 };
4876
4877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4882 arg3 = (int) SWIG_AsInt(obj2);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 arg4 = (int) SWIG_AsInt(obj3);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetAttr(arg2,arg3,arg4);
4889
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 Py_INCREF(Py_None); resultobj = Py_None;
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj;
4902 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4903 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4904 int arg3 ;
4905 PyObject * obj0 = 0 ;
4906 PyObject * obj1 = 0 ;
4907 PyObject * obj2 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "attr",(char *) "row", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4917 arg3 = (int) SWIG_AsInt(obj2);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 (arg1)->SetRowAttr(arg2,arg3);
4922
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 Py_INCREF(Py_None); resultobj = Py_None;
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4934 PyObject *resultobj;
4935 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4936 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4937 int arg3 ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 PyObject * obj2 = 0 ;
4941 char *kwnames[] = {
4942 (char *) "self",(char *) "attr",(char *) "col", NULL
4943 };
4944
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
4946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
4949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4950 arg3 = (int) SWIG_AsInt(obj2);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->SetColAttr(arg2,arg3);
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 Py_INCREF(Py_None); resultobj = Py_None;
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4969 size_t arg2 ;
4970 int arg3 ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 PyObject * obj2 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self",(char *) "pos",(char *) "numRows", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
4979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
4980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4981 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
4982 if (PyErr_Occurred()) SWIG_fail;
4983 arg3 = (int) SWIG_AsInt(obj2);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 (arg1)->UpdateAttrRows(arg2,arg3);
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 Py_INCREF(Py_None); resultobj = Py_None;
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
5002 size_t arg2 ;
5003 int arg3 ;
5004 PyObject * obj0 = 0 ;
5005 PyObject * obj1 = 0 ;
5006 PyObject * obj2 = 0 ;
5007 char *kwnames[] = {
5008 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5009 };
5010
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider,
5013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5014 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 arg3 = (int) SWIG_AsInt(obj2);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 {
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 (arg1)->UpdateAttrCols(arg2,arg3);
5021
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 Py_INCREF(Py_None); resultobj = Py_None;
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
5033 PyObject *obj;
5034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5035 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
5036 Py_INCREF(obj);
5037 return Py_BuildValue((char *)"");
5038 }
5039 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxPyGridCellAttrProvider *result;
5042 char *kwnames[] = {
5043 NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5064 PyObject *arg2 = (PyObject *) 0 ;
5065 PyObject *arg3 = (PyObject *) 0 ;
5066 PyObject * obj0 = 0 ;
5067 PyObject * obj1 = 0 ;
5068 PyObject * obj2 = 0 ;
5069 char *kwnames[] = {
5070 (char *) "self",(char *) "self",(char *) "_class", NULL
5071 };
5072
5073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5076 arg2 = obj1;
5077 arg3 = obj2;
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 (arg1)->_setCallbackInfo(arg2,arg3);
5081
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 Py_INCREF(Py_None); resultobj = Py_None;
5086 return resultobj;
5087 fail:
5088 return NULL;
5089 }
5090
5091
5092 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj;
5094 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5095 int arg2 ;
5096 int arg3 ;
5097 int arg4 ;
5098 wxGridCellAttr *result;
5099 PyObject * obj0 = 0 ;
5100 PyObject * obj1 = 0 ;
5101 PyObject * obj2 = 0 ;
5102 PyObject * obj3 = 0 ;
5103 char *kwnames[] = {
5104 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
5105 };
5106
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5110 arg2 = (int) SWIG_AsInt(obj1);
5111 if (PyErr_Occurred()) SWIG_fail;
5112 arg3 = (int) SWIG_AsInt(obj2);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 {
5124 resultobj = wxPyMake_wxGridCellAttr(result);
5125 }
5126 return resultobj;
5127 fail:
5128 return NULL;
5129 }
5130
5131
5132 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj;
5134 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5135 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5136 int arg3 ;
5137 int arg4 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 PyObject * obj2 = 0 ;
5141 PyObject * obj3 = 0 ;
5142 char *kwnames[] = {
5143 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
5144 };
5145
5146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5151 arg3 = (int) SWIG_AsInt(obj2);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 arg4 = (int) SWIG_AsInt(obj3);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 (arg1)->base_SetAttr(arg2,arg3,arg4);
5158
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 Py_INCREF(Py_None); resultobj = Py_None;
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj;
5171 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5172 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5173 int arg3 ;
5174 PyObject * obj0 = 0 ;
5175 PyObject * obj1 = 0 ;
5176 PyObject * obj2 = 0 ;
5177 char *kwnames[] = {
5178 (char *) "self",(char *) "attr",(char *) "row", NULL
5179 };
5180
5181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5186 arg3 = (int) SWIG_AsInt(obj2);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 (arg1)->base_SetRowAttr(arg2,arg3);
5191
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 Py_INCREF(Py_None); resultobj = Py_None;
5196 return resultobj;
5197 fail:
5198 return NULL;
5199 }
5200
5201
5202 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5203 PyObject *resultobj;
5204 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5205 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5206 int arg3 ;
5207 PyObject * obj0 = 0 ;
5208 PyObject * obj1 = 0 ;
5209 PyObject * obj2 = 0 ;
5210 char *kwnames[] = {
5211 (char *) "self",(char *) "attr",(char *) "col", NULL
5212 };
5213
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider,
5216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
5218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5219 arg3 = (int) SWIG_AsInt(obj2);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 (arg1)->base_SetColAttr(arg2,arg3);
5224
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 Py_INCREF(Py_None); resultobj = Py_None;
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
5236 PyObject *obj;
5237 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5238 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
5239 Py_INCREF(obj);
5240 return Py_BuildValue((char *)"");
5241 }
5242 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5243 PyObject *resultobj;
5244 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5245 PyObject *arg2 = (PyObject *) 0 ;
5246 PyObject * obj0 = 0 ;
5247 PyObject * obj1 = 0 ;
5248 char *kwnames[] = {
5249 (char *) "self",(char *) "_self", NULL
5250 };
5251
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
5253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5255 arg2 = obj1;
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 wxGridTableBase__setOORInfo(arg1,arg2);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 Py_INCREF(Py_None); resultobj = Py_None;
5264 return resultobj;
5265 fail:
5266 return NULL;
5267 }
5268
5269
5270 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj;
5272 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5273 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 char *kwnames[] = {
5277 (char *) "self",(char *) "attrProvider", NULL
5278 };
5279
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
5281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider,
5284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5285 {
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 (arg1)->SetAttrProvider(arg2);
5288
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 Py_INCREF(Py_None); resultobj = Py_None;
5293 return resultobj;
5294 fail:
5295 return NULL;
5296 }
5297
5298
5299 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5300 PyObject *resultobj;
5301 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5302 wxGridCellAttrProvider *result;
5303 PyObject * obj0 = 0 ;
5304 char *kwnames[] = {
5305 (char *) "self", NULL
5306 };
5307
5308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
5309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
5314
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 {
5319 resultobj = wxPyMake_wxGridCellAttrProvider(result);
5320 }
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj;
5329 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5330 wxGrid *arg2 = (wxGrid *) 0 ;
5331 PyObject * obj0 = 0 ;
5332 PyObject * obj1 = 0 ;
5333 char *kwnames[] = {
5334 (char *) "self",(char *) "grid", NULL
5335 };
5336
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
5338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid,
5341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 (arg1)->SetView(arg2);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 Py_INCREF(Py_None); resultobj = Py_None;
5350 return resultobj;
5351 fail:
5352 return NULL;
5353 }
5354
5355
5356 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj;
5358 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5359 wxGrid *result;
5360 PyObject * obj0 = 0 ;
5361 char *kwnames[] = {
5362 (char *) "self", NULL
5363 };
5364
5365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
5366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
5371
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 {
5376 resultobj = wxPyMake_wxObject(result);
5377 }
5378 return resultobj;
5379 fail:
5380 return NULL;
5381 }
5382
5383
5384 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject *resultobj;
5386 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5387 int result;
5388 PyObject * obj0 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "self", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
5394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5396 {
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 result = (int)(arg1)->GetNumberRows();
5399
5400 wxPyEndAllowThreads(__tstate);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 }
5403 resultobj = SWIG_FromInt((int)result);
5404 return resultobj;
5405 fail:
5406 return NULL;
5407 }
5408
5409
5410 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj;
5412 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5413 int result;
5414 PyObject * obj0 = 0 ;
5415 char *kwnames[] = {
5416 (char *) "self", NULL
5417 };
5418
5419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
5420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (int)(arg1)->GetNumberCols();
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_FromInt((int)result);
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj;
5438 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5439 int arg2 ;
5440 int arg3 ;
5441 bool result;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 PyObject * obj2 = 0 ;
5445 char *kwnames[] = {
5446 (char *) "self",(char *) "row",(char *) "col", NULL
5447 };
5448
5449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
5450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5452 arg2 = (int) SWIG_AsInt(obj1);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 arg3 = (int) SWIG_AsInt(obj2);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj;
5472 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5473 int arg2 ;
5474 int arg3 ;
5475 wxString result;
5476 PyObject * obj0 = 0 ;
5477 PyObject * obj1 = 0 ;
5478 PyObject * obj2 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "self",(char *) "row",(char *) "col", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
5484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5486 arg2 = (int) SWIG_AsInt(obj1);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 arg3 = (int) SWIG_AsInt(obj2);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (arg1)->GetValue(arg2,arg3);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 {
5498 #if wxUSE_UNICODE
5499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5500 #else
5501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5502 #endif
5503 }
5504 return resultobj;
5505 fail:
5506 return NULL;
5507 }
5508
5509
5510 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5511 PyObject *resultobj;
5512 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5513 int arg2 ;
5514 int arg3 ;
5515 wxString *arg4 = 0 ;
5516 bool temp4 = False ;
5517 PyObject * obj0 = 0 ;
5518 PyObject * obj1 = 0 ;
5519 PyObject * obj2 = 0 ;
5520 PyObject * obj3 = 0 ;
5521 char *kwnames[] = {
5522 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5523 };
5524
5525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5528 arg2 = (int) SWIG_AsInt(obj1);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 arg3 = (int) SWIG_AsInt(obj2);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 {
5533 arg4 = wxString_in_helper(obj3);
5534 if (arg4 == NULL) SWIG_fail;
5535 temp4 = True;
5536 }
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
5540
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 Py_INCREF(Py_None); resultobj = Py_None;
5545 {
5546 if (temp4)
5547 delete arg4;
5548 }
5549 return resultobj;
5550 fail:
5551 {
5552 if (temp4)
5553 delete arg4;
5554 }
5555 return NULL;
5556 }
5557
5558
5559 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5562 int arg2 ;
5563 int arg3 ;
5564 wxString result;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 PyObject * obj2 = 0 ;
5568 char *kwnames[] = {
5569 (char *) "self",(char *) "row",(char *) "col", NULL
5570 };
5571
5572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
5573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5575 arg2 = (int) SWIG_AsInt(obj1);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 arg3 = (int) SWIG_AsInt(obj2);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (arg1)->GetTypeName(arg2,arg3);
5582
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 {
5587 #if wxUSE_UNICODE
5588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5589 #else
5590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5591 #endif
5592 }
5593 return resultobj;
5594 fail:
5595 return NULL;
5596 }
5597
5598
5599 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj;
5601 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5602 int arg2 ;
5603 int arg3 ;
5604 wxString *arg4 = 0 ;
5605 bool result;
5606 bool temp4 = False ;
5607 PyObject * obj0 = 0 ;
5608 PyObject * obj1 = 0 ;
5609 PyObject * obj2 = 0 ;
5610 PyObject * obj3 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5618 arg2 = (int) SWIG_AsInt(obj1);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 arg3 = (int) SWIG_AsInt(obj2);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 {
5623 arg4 = wxString_in_helper(obj3);
5624 if (arg4 == NULL) SWIG_fail;
5625 temp4 = True;
5626 }
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5635 {
5636 if (temp4)
5637 delete arg4;
5638 }
5639 return resultobj;
5640 fail:
5641 {
5642 if (temp4)
5643 delete arg4;
5644 }
5645 return NULL;
5646 }
5647
5648
5649 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj;
5651 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5652 int arg2 ;
5653 int arg3 ;
5654 wxString *arg4 = 0 ;
5655 bool result;
5656 bool temp4 = False ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 PyObject * obj2 = 0 ;
5660 PyObject * obj3 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5668 arg2 = (int) SWIG_AsInt(obj1);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 arg3 = (int) SWIG_AsInt(obj2);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 {
5673 arg4 = wxString_in_helper(obj3);
5674 if (arg4 == NULL) SWIG_fail;
5675 temp4 = True;
5676 }
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5685 {
5686 if (temp4)
5687 delete arg4;
5688 }
5689 return resultobj;
5690 fail:
5691 {
5692 if (temp4)
5693 delete arg4;
5694 }
5695 return NULL;
5696 }
5697
5698
5699 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5700 PyObject *resultobj;
5701 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5702 int arg2 ;
5703 int arg3 ;
5704 long result;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 PyObject * obj2 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self",(char *) "row",(char *) "col", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5715 arg2 = (int) SWIG_AsInt(obj1);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 arg3 = (int) SWIG_AsInt(obj2);
5718 if (PyErr_Occurred()) SWIG_fail;
5719 {
5720 PyThreadState* __tstate = wxPyBeginAllowThreads();
5721 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5722
5723 wxPyEndAllowThreads(__tstate);
5724 if (PyErr_Occurred()) SWIG_fail;
5725 }
5726 resultobj = SWIG_FromLong((long)result);
5727 return resultobj;
5728 fail:
5729 return NULL;
5730 }
5731
5732
5733 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5734 PyObject *resultobj;
5735 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5736 int arg2 ;
5737 int arg3 ;
5738 double result;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 PyObject * obj2 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "row",(char *) "col", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5749 arg2 = (int) SWIG_AsInt(obj1);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 arg3 = (int) SWIG_AsInt(obj2);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 {
5754 PyThreadState* __tstate = wxPyBeginAllowThreads();
5755 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5756
5757 wxPyEndAllowThreads(__tstate);
5758 if (PyErr_Occurred()) SWIG_fail;
5759 }
5760 resultobj = SWIG_FromDouble((double)result);
5761 return resultobj;
5762 fail:
5763 return NULL;
5764 }
5765
5766
5767 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5768 PyObject *resultobj;
5769 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5770 int arg2 ;
5771 int arg3 ;
5772 bool result;
5773 PyObject * obj0 = 0 ;
5774 PyObject * obj1 = 0 ;
5775 PyObject * obj2 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self",(char *) "row",(char *) "col", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 arg2 = (int) SWIG_AsInt(obj1);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 arg3 = (int) SWIG_AsInt(obj2);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5790
5791 wxPyEndAllowThreads(__tstate);
5792 if (PyErr_Occurred()) SWIG_fail;
5793 }
5794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5795 return resultobj;
5796 fail:
5797 return NULL;
5798 }
5799
5800
5801 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj;
5803 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5804 int arg2 ;
5805 int arg3 ;
5806 long arg4 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 PyObject * obj2 = 0 ;
5810 PyObject * obj3 = 0 ;
5811 char *kwnames[] = {
5812 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5813 };
5814
5815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5818 arg2 = (int) SWIG_AsInt(obj1);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 arg3 = (int) SWIG_AsInt(obj2);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 arg4 = (long) SWIG_AsLong(obj3);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 Py_INCREF(Py_None); resultobj = Py_None;
5832 return resultobj;
5833 fail:
5834 return NULL;
5835 }
5836
5837
5838 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5839 PyObject *resultobj;
5840 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5841 int arg2 ;
5842 int arg3 ;
5843 double arg4 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 PyObject * obj2 = 0 ;
5847 PyObject * obj3 = 0 ;
5848 char *kwnames[] = {
5849 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5850 };
5851
5852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5855 arg2 = (int) SWIG_AsInt(obj1);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 arg3 = (int) SWIG_AsInt(obj2);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 arg4 = (double) SWIG_AsDouble(obj3);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 Py_INCREF(Py_None); resultobj = Py_None;
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5878 int arg2 ;
5879 int arg3 ;
5880 bool arg4 ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 PyObject * obj2 = 0 ;
5884 PyObject * obj3 = 0 ;
5885 char *kwnames[] = {
5886 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5887 };
5888
5889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5892 arg2 = (int) SWIG_AsInt(obj1);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 arg3 = (int) SWIG_AsInt(obj2);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 arg4 = (bool) SWIG_AsBool(obj3);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 Py_INCREF(Py_None); resultobj = Py_None;
5906 return resultobj;
5907 fail:
5908 return NULL;
5909 }
5910
5911
5912 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj;
5914 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5915 PyObject * obj0 = 0 ;
5916 char *kwnames[] = {
5917 (char *) "self", NULL
5918 };
5919
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
5921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 (arg1)->Clear();
5926
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 Py_INCREF(Py_None); resultobj = Py_None;
5931 return resultobj;
5932 fail:
5933 return NULL;
5934 }
5935
5936
5937 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5938 PyObject *resultobj;
5939 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5940 size_t arg2 = (size_t) 0 ;
5941 size_t arg3 = (size_t) 1 ;
5942 bool result;
5943 PyObject * obj0 = 0 ;
5944 PyObject * obj1 = 0 ;
5945 PyObject * obj2 = 0 ;
5946 char *kwnames[] = {
5947 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5948 };
5949
5950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5953 if (obj1) {
5954 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
5955 if (PyErr_Occurred()) SWIG_fail;
5956 }
5957 if (obj2) {
5958 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 result = (bool)(arg1)->InsertRows(arg2,arg3);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5969 return resultobj;
5970 fail:
5971 return NULL;
5972 }
5973
5974
5975 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5978 size_t arg2 = (size_t) 1 ;
5979 bool result;
5980 PyObject * obj0 = 0 ;
5981 PyObject * obj1 = 0 ;
5982 char *kwnames[] = {
5983 (char *) "self",(char *) "numRows", NULL
5984 };
5985
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
5987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
5988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5989 if (obj1) {
5990 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 result = (bool)(arg1)->AppendRows(arg2);
5996
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6001 return resultobj;
6002 fail:
6003 return NULL;
6004 }
6005
6006
6007 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6008 PyObject *resultobj;
6009 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6010 size_t arg2 = (size_t) 0 ;
6011 size_t arg3 = (size_t) 1 ;
6012 bool result;
6013 PyObject * obj0 = 0 ;
6014 PyObject * obj1 = 0 ;
6015 PyObject * obj2 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6023 if (obj1) {
6024 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 }
6027 if (obj2) {
6028 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (bool)(arg1)->DeleteRows(arg2,arg3);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6039 return resultobj;
6040 fail:
6041 return NULL;
6042 }
6043
6044
6045 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6046 PyObject *resultobj;
6047 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6048 size_t arg2 = (size_t) 0 ;
6049 size_t arg3 = (size_t) 1 ;
6050 bool result;
6051 PyObject * obj0 = 0 ;
6052 PyObject * obj1 = 0 ;
6053 PyObject * obj2 = 0 ;
6054 char *kwnames[] = {
6055 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6056 };
6057
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6061 if (obj1) {
6062 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 if (obj2) {
6066 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 {
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (bool)(arg1)->InsertCols(arg2,arg3);
6072
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6077 return resultobj;
6078 fail:
6079 return NULL;
6080 }
6081
6082
6083 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj;
6085 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6086 size_t arg2 = (size_t) 1 ;
6087 bool result;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 char *kwnames[] = {
6091 (char *) "self",(char *) "numCols", NULL
6092 };
6093
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6097 if (obj1) {
6098 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 PyThreadState* __tstate = wxPyBeginAllowThreads();
6103 result = (bool)(arg1)->AppendCols(arg2);
6104
6105 wxPyEndAllowThreads(__tstate);
6106 if (PyErr_Occurred()) SWIG_fail;
6107 }
6108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6109 return resultobj;
6110 fail:
6111 return NULL;
6112 }
6113
6114
6115 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj;
6117 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6118 size_t arg2 = (size_t) 0 ;
6119 size_t arg3 = (size_t) 1 ;
6120 bool result;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 PyObject * obj2 = 0 ;
6124 char *kwnames[] = {
6125 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6126 };
6127
6128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6131 if (obj1) {
6132 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 if (obj2) {
6136 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 {
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = (bool)(arg1)->DeleteCols(arg2,arg3);
6142
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6147 return resultobj;
6148 fail:
6149 return NULL;
6150 }
6151
6152
6153 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6154 PyObject *resultobj;
6155 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6156 int arg2 ;
6157 wxString result;
6158 PyObject * obj0 = 0 ;
6159 PyObject * obj1 = 0 ;
6160 char *kwnames[] = {
6161 (char *) "self",(char *) "row", NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
6165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6167 arg2 = (int) SWIG_AsInt(obj1);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 result = (arg1)->GetRowLabelValue(arg2);
6172
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 {
6177 #if wxUSE_UNICODE
6178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6179 #else
6180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6181 #endif
6182 }
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject *resultobj;
6191 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6192 int arg2 ;
6193 wxString result;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char *kwnames[] = {
6197 (char *) "self",(char *) "col", NULL
6198 };
6199
6200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
6201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6203 arg2 = (int) SWIG_AsInt(obj1);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 {
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 result = (arg1)->GetColLabelValue(arg2);
6208
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 {
6213 #if wxUSE_UNICODE
6214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6215 #else
6216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6217 #endif
6218 }
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6228 int arg2 ;
6229 wxString *arg3 = 0 ;
6230 bool temp3 = False ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 PyObject * obj2 = 0 ;
6234 char *kwnames[] = {
6235 (char *) "self",(char *) "row",(char *) "value", NULL
6236 };
6237
6238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6241 arg2 = (int) SWIG_AsInt(obj1);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 {
6244 arg3 = wxString_in_helper(obj2);
6245 if (arg3 == NULL) SWIG_fail;
6246 temp3 = True;
6247 }
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
6251
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 Py_INCREF(Py_None); resultobj = Py_None;
6256 {
6257 if (temp3)
6258 delete arg3;
6259 }
6260 return resultobj;
6261 fail:
6262 {
6263 if (temp3)
6264 delete arg3;
6265 }
6266 return NULL;
6267 }
6268
6269
6270 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj;
6272 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6273 int arg2 ;
6274 wxString *arg3 = 0 ;
6275 bool temp3 = False ;
6276 PyObject * obj0 = 0 ;
6277 PyObject * obj1 = 0 ;
6278 PyObject * obj2 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "self",(char *) "col",(char *) "value", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6286 arg2 = (int) SWIG_AsInt(obj1);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 {
6289 arg3 = wxString_in_helper(obj2);
6290 if (arg3 == NULL) SWIG_fail;
6291 temp3 = True;
6292 }
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 Py_INCREF(Py_None); resultobj = Py_None;
6301 {
6302 if (temp3)
6303 delete arg3;
6304 }
6305 return resultobj;
6306 fail:
6307 {
6308 if (temp3)
6309 delete arg3;
6310 }
6311 return NULL;
6312 }
6313
6314
6315 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj;
6317 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6318 bool result;
6319 PyObject * obj0 = 0 ;
6320 char *kwnames[] = {
6321 (char *) "self", NULL
6322 };
6323
6324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
6325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 result = (bool)(arg1)->CanHaveAttributes();
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj;
6343 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6344 int arg2 ;
6345 int arg3 ;
6346 int arg4 ;
6347 wxGridCellAttr *result;
6348 PyObject * obj0 = 0 ;
6349 PyObject * obj1 = 0 ;
6350 PyObject * obj2 = 0 ;
6351 PyObject * obj3 = 0 ;
6352 char *kwnames[] = {
6353 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6354 };
6355
6356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6359 arg2 = (int) SWIG_AsInt(obj1);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 arg3 = (int) SWIG_AsInt(obj2);
6362 if (PyErr_Occurred()) SWIG_fail;
6363 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 {
6373 resultobj = wxPyMake_wxGridCellAttr(result);
6374 }
6375 return resultobj;
6376 fail:
6377 return NULL;
6378 }
6379
6380
6381 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6382 PyObject *resultobj;
6383 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6384 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6385 int arg3 ;
6386 int arg4 ;
6387 PyObject * obj0 = 0 ;
6388 PyObject * obj1 = 0 ;
6389 PyObject * obj2 = 0 ;
6390 PyObject * obj3 = 0 ;
6391 char *kwnames[] = {
6392 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6393 };
6394
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6400 arg3 = (int) SWIG_AsInt(obj2);
6401 if (PyErr_Occurred()) SWIG_fail;
6402 arg4 = (int) SWIG_AsInt(obj3);
6403 if (PyErr_Occurred()) SWIG_fail;
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 (arg1)->SetAttr(arg2,arg3,arg4);
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 Py_INCREF(Py_None); resultobj = Py_None;
6412 return resultobj;
6413 fail:
6414 return NULL;
6415 }
6416
6417
6418 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6419 PyObject *resultobj;
6420 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6421 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6422 int arg3 ;
6423 PyObject * obj0 = 0 ;
6424 PyObject * obj1 = 0 ;
6425 PyObject * obj2 = 0 ;
6426 char *kwnames[] = {
6427 (char *) "self",(char *) "attr",(char *) "row", NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6435 arg3 = (int) SWIG_AsInt(obj2);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 {
6438 PyThreadState* __tstate = wxPyBeginAllowThreads();
6439 (arg1)->SetRowAttr(arg2,arg3);
6440
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 Py_INCREF(Py_None); resultobj = Py_None;
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj;
6453 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6454 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6455 int arg3 ;
6456 PyObject * obj0 = 0 ;
6457 PyObject * obj1 = 0 ;
6458 PyObject * obj2 = 0 ;
6459 char *kwnames[] = {
6460 (char *) "self",(char *) "attr",(char *) "col", NULL
6461 };
6462
6463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
6465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
6467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6468 arg3 = (int) SWIG_AsInt(obj2);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 (arg1)->SetColAttr(arg2,arg3);
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 Py_INCREF(Py_None); resultobj = Py_None;
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
6485 PyObject *obj;
6486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6487 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
6488 Py_INCREF(obj);
6489 return Py_BuildValue((char *)"");
6490 }
6491 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 wxPyGridTableBase *result;
6494 char *kwnames[] = {
6495 NULL
6496 };
6497
6498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (wxPyGridTableBase *)new wxPyGridTableBase();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1);
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6516 PyObject *arg2 = (PyObject *) 0 ;
6517 PyObject *arg3 = (PyObject *) 0 ;
6518 PyObject * obj0 = 0 ;
6519 PyObject * obj1 = 0 ;
6520 PyObject * obj2 = 0 ;
6521 char *kwnames[] = {
6522 (char *) "self",(char *) "self",(char *) "_class", NULL
6523 };
6524
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6528 arg2 = obj1;
6529 arg3 = obj2;
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 (arg1)->_setCallbackInfo(arg2,arg3);
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 Py_INCREF(Py_None); resultobj = Py_None;
6538 return resultobj;
6539 fail:
6540 return NULL;
6541 }
6542
6543
6544 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6545 PyObject *resultobj;
6546 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6547 PyObject * obj0 = 0 ;
6548 char *kwnames[] = {
6549 (char *) "self", NULL
6550 };
6551
6552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
6553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6555 {
6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6557 wxPyGridTableBase_Destroy(arg1);
6558
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 Py_INCREF(Py_None); resultobj = Py_None;
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj;
6571 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6572 int arg2 ;
6573 int arg3 ;
6574 wxString result;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6577 PyObject * obj2 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "self",(char *) "row",(char *) "col", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6585 arg2 = (int) SWIG_AsInt(obj1);
6586 if (PyErr_Occurred()) SWIG_fail;
6587 arg3 = (int) SWIG_AsInt(obj2);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 result = (arg1)->base_GetTypeName(arg2,arg3);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 {
6597 #if wxUSE_UNICODE
6598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6599 #else
6600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6601 #endif
6602 }
6603 return resultobj;
6604 fail:
6605 return NULL;
6606 }
6607
6608
6609 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6610 PyObject *resultobj;
6611 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6612 int arg2 ;
6613 int arg3 ;
6614 wxString *arg4 = 0 ;
6615 bool result;
6616 bool temp4 = False ;
6617 PyObject * obj0 = 0 ;
6618 PyObject * obj1 = 0 ;
6619 PyObject * obj2 = 0 ;
6620 PyObject * obj3 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 arg2 = (int) SWIG_AsInt(obj1);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 arg3 = (int) SWIG_AsInt(obj2);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 {
6633 arg4 = wxString_in_helper(obj3);
6634 if (arg4 == NULL) SWIG_fail;
6635 temp4 = True;
6636 }
6637 {
6638 PyThreadState* __tstate = wxPyBeginAllowThreads();
6639 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
6640
6641 wxPyEndAllowThreads(__tstate);
6642 if (PyErr_Occurred()) SWIG_fail;
6643 }
6644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6645 {
6646 if (temp4)
6647 delete arg4;
6648 }
6649 return resultobj;
6650 fail:
6651 {
6652 if (temp4)
6653 delete arg4;
6654 }
6655 return NULL;
6656 }
6657
6658
6659 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6660 PyObject *resultobj;
6661 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6662 int arg2 ;
6663 int arg3 ;
6664 wxString *arg4 = 0 ;
6665 bool result;
6666 bool temp4 = False ;
6667 PyObject * obj0 = 0 ;
6668 PyObject * obj1 = 0 ;
6669 PyObject * obj2 = 0 ;
6670 PyObject * obj3 = 0 ;
6671 char *kwnames[] = {
6672 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6673 };
6674
6675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6678 arg2 = (int) SWIG_AsInt(obj1);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 arg3 = (int) SWIG_AsInt(obj2);
6681 if (PyErr_Occurred()) SWIG_fail;
6682 {
6683 arg4 = wxString_in_helper(obj3);
6684 if (arg4 == NULL) SWIG_fail;
6685 temp4 = True;
6686 }
6687 {
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
6690
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6695 {
6696 if (temp4)
6697 delete arg4;
6698 }
6699 return resultobj;
6700 fail:
6701 {
6702 if (temp4)
6703 delete arg4;
6704 }
6705 return NULL;
6706 }
6707
6708
6709 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6710 PyObject *resultobj;
6711 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6712 PyObject * obj0 = 0 ;
6713 char *kwnames[] = {
6714 (char *) "self", NULL
6715 };
6716
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 (arg1)->base_Clear();
6723
6724 wxPyEndAllowThreads(__tstate);
6725 if (PyErr_Occurred()) SWIG_fail;
6726 }
6727 Py_INCREF(Py_None); resultobj = Py_None;
6728 return resultobj;
6729 fail:
6730 return NULL;
6731 }
6732
6733
6734 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj;
6736 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6737 size_t arg2 = (size_t) 0 ;
6738 size_t arg3 = (size_t) 1 ;
6739 bool result;
6740 PyObject * obj0 = 0 ;
6741 PyObject * obj1 = 0 ;
6742 PyObject * obj2 = 0 ;
6743 char *kwnames[] = {
6744 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6745 };
6746
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6750 if (obj1) {
6751 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 if (obj2) {
6755 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 }
6758 {
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6761
6762 wxPyEndAllowThreads(__tstate);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6766 return resultobj;
6767 fail:
6768 return NULL;
6769 }
6770
6771
6772 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj;
6774 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6775 size_t arg2 = (size_t) 1 ;
6776 bool result;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "self",(char *) "numRows", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6786 if (obj1) {
6787 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 {
6791 PyThreadState* __tstate = wxPyBeginAllowThreads();
6792 result = (bool)(arg1)->base_AppendRows(arg2);
6793
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6805 PyObject *resultobj;
6806 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6807 size_t arg2 = (size_t) 0 ;
6808 size_t arg3 = (size_t) 1 ;
6809 bool result;
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 PyObject * obj2 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 if (obj1) {
6821 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 if (obj2) {
6825 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 {
6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6830 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6836 return resultobj;
6837 fail:
6838 return NULL;
6839 }
6840
6841
6842 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6843 PyObject *resultobj;
6844 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6845 size_t arg2 = (size_t) 0 ;
6846 size_t arg3 = (size_t) 1 ;
6847 bool result;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 PyObject * obj2 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6858 if (obj1) {
6859 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 if (obj2) {
6863 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6869
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6874 return resultobj;
6875 fail:
6876 return NULL;
6877 }
6878
6879
6880 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject *resultobj;
6882 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6883 size_t arg2 = (size_t) 1 ;
6884 bool result;
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self",(char *) "numCols", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6894 if (obj1) {
6895 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (bool)(arg1)->base_AppendCols(arg2);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(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 *) "numCols", NULL
6923 };
6924
6925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",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_DeleteCols(arg2,arg3);
6939
6940 wxPyEndAllowThreads(__tstate);
6941 if (PyErr_Occurred()) SWIG_fail;
6942 }
6943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6944 return resultobj;
6945 fail:
6946 return NULL;
6947 }
6948
6949
6950 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6951 PyObject *resultobj;
6952 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6953 int arg2 ;
6954 wxString result;
6955 PyObject * obj0 = 0 ;
6956 PyObject * obj1 = 0 ;
6957 char *kwnames[] = {
6958 (char *) "self",(char *) "row", NULL
6959 };
6960
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
6962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6964 arg2 = (int) SWIG_AsInt(obj1);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 result = (arg1)->base_GetRowLabelValue(arg2);
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 {
6974 #if wxUSE_UNICODE
6975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6976 #else
6977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6978 #endif
6979 }
6980 return resultobj;
6981 fail:
6982 return NULL;
6983 }
6984
6985
6986 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj;
6988 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6989 int arg2 ;
6990 wxString result;
6991 PyObject * obj0 = 0 ;
6992 PyObject * obj1 = 0 ;
6993 char *kwnames[] = {
6994 (char *) "self",(char *) "col", NULL
6995 };
6996
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
6998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
6999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7000 arg2 = (int) SWIG_AsInt(obj1);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (arg1)->base_GetColLabelValue(arg2);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 {
7010 #if wxUSE_UNICODE
7011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7012 #else
7013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7014 #endif
7015 }
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7023 PyObject *resultobj;
7024 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7025 int arg2 ;
7026 wxString *arg3 = 0 ;
7027 bool temp3 = False ;
7028 PyObject * obj0 = 0 ;
7029 PyObject * obj1 = 0 ;
7030 PyObject * obj2 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self",(char *) "row",(char *) "value", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 arg2 = (int) SWIG_AsInt(obj1);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 {
7041 arg3 = wxString_in_helper(obj2);
7042 if (arg3 == NULL) SWIG_fail;
7043 temp3 = True;
7044 }
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 {
7054 if (temp3)
7055 delete arg3;
7056 }
7057 return resultobj;
7058 fail:
7059 {
7060 if (temp3)
7061 delete arg3;
7062 }
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7070 int arg2 ;
7071 wxString *arg3 = 0 ;
7072 bool temp3 = False ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 PyObject * obj2 = 0 ;
7076 char *kwnames[] = {
7077 (char *) "self",(char *) "col",(char *) "value", NULL
7078 };
7079
7080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
7081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7083 arg2 = (int) SWIG_AsInt(obj1);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 {
7086 arg3 = wxString_in_helper(obj2);
7087 if (arg3 == NULL) SWIG_fail;
7088 temp3 = True;
7089 }
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
7093
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 Py_INCREF(Py_None); resultobj = Py_None;
7098 {
7099 if (temp3)
7100 delete arg3;
7101 }
7102 return resultobj;
7103 fail:
7104 {
7105 if (temp3)
7106 delete arg3;
7107 }
7108 return NULL;
7109 }
7110
7111
7112 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj;
7114 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7115 bool result;
7116 PyObject * obj0 = 0 ;
7117 char *kwnames[] = {
7118 (char *) "self", NULL
7119 };
7120
7121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
7122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 result = (bool)(arg1)->base_CanHaveAttributes();
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7141 int arg2 ;
7142 int arg3 ;
7143 int arg4 ;
7144 wxGridCellAttr *result;
7145 PyObject * obj0 = 0 ;
7146 PyObject * obj1 = 0 ;
7147 PyObject * obj2 = 0 ;
7148 PyObject * obj3 = 0 ;
7149 char *kwnames[] = {
7150 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
7151 };
7152
7153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7156 arg2 = (int) SWIG_AsInt(obj1);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 arg3 = (int) SWIG_AsInt(obj2);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 {
7163 PyThreadState* __tstate = wxPyBeginAllowThreads();
7164 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
7165
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 {
7170 resultobj = wxPyMake_wxGridCellAttr(result);
7171 }
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7181 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7182 int arg3 ;
7183 int arg4 ;
7184 PyObject * obj0 = 0 ;
7185 PyObject * obj1 = 0 ;
7186 PyObject * obj2 = 0 ;
7187 PyObject * obj3 = 0 ;
7188 char *kwnames[] = {
7189 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
7190 };
7191
7192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7197 arg3 = (int) SWIG_AsInt(obj2);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 arg4 = (int) SWIG_AsInt(obj3);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 (arg1)->base_SetAttr(arg2,arg3,arg4);
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 Py_INCREF(Py_None); resultobj = Py_None;
7209 return resultobj;
7210 fail:
7211 return NULL;
7212 }
7213
7214
7215 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7216 PyObject *resultobj;
7217 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7218 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7219 int arg3 ;
7220 PyObject * obj0 = 0 ;
7221 PyObject * obj1 = 0 ;
7222 PyObject * obj2 = 0 ;
7223 char *kwnames[] = {
7224 (char *) "self",(char *) "attr",(char *) "row", NULL
7225 };
7226
7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7232 arg3 = (int) SWIG_AsInt(obj2);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->base_SetRowAttr(arg2,arg3);
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 Py_INCREF(Py_None); resultobj = Py_None;
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7251 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7252 int arg3 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 PyObject * obj2 = 0 ;
7256 char *kwnames[] = {
7257 (char *) "self",(char *) "attr",(char *) "col", NULL
7258 };
7259
7260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase,
7262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr,
7264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7265 arg3 = (int) SWIG_AsInt(obj2);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 {
7268 PyThreadState* __tstate = wxPyBeginAllowThreads();
7269 (arg1)->base_SetColAttr(arg2,arg3);
7270
7271 wxPyEndAllowThreads(__tstate);
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 Py_INCREF(Py_None); resultobj = Py_None;
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
7282 PyObject *obj;
7283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7284 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
7285 Py_INCREF(obj);
7286 return Py_BuildValue((char *)"");
7287 }
7288 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 int arg1 = (int) 0 ;
7291 int arg2 = (int) 0 ;
7292 wxGridStringTable *result;
7293 PyObject * obj0 = 0 ;
7294 PyObject * obj1 = 0 ;
7295 char *kwnames[] = {
7296 (char *) "numRows",(char *) "numCols", NULL
7297 };
7298
7299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail;
7300 if (obj0) {
7301 arg1 = (int) SWIG_AsInt(obj0);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 if (obj1) {
7305 arg2 = (int) SWIG_AsInt(obj1);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
7311
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1);
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
7323 PyObject *obj;
7324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7325 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
7326 Py_INCREF(obj);
7327 return Py_BuildValue((char *)"");
7328 }
7329 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
7332 int arg2 ;
7333 int arg3 = (int) -1 ;
7334 int arg4 = (int) -1 ;
7335 wxGridTableMessage *result;
7336 PyObject * obj0 = 0 ;
7337 PyObject * obj1 = 0 ;
7338 PyObject * obj2 = 0 ;
7339 PyObject * obj3 = 0 ;
7340 char *kwnames[] = {
7341 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
7342 };
7343
7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase,
7346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7347 arg2 = (int) SWIG_AsInt(obj1);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 if (obj2) {
7350 arg3 = (int) SWIG_AsInt(obj2);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 if (obj3) {
7354 arg4 = (int) SWIG_AsInt(obj3);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
7360
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1);
7365 return resultobj;
7366 fail:
7367 return NULL;
7368 }
7369
7370
7371 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7372 PyObject *resultobj;
7373 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7374 PyObject * obj0 = 0 ;
7375 char *kwnames[] = {
7376 (char *) "self", NULL
7377 };
7378
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
7380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 delete arg1;
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 Py_INCREF(Py_None); resultobj = Py_None;
7390 return resultobj;
7391 fail:
7392 return NULL;
7393 }
7394
7395
7396 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7397 PyObject *resultobj;
7398 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7399 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7400 PyObject * obj0 = 0 ;
7401 PyObject * obj1 = 0 ;
7402 char *kwnames[] = {
7403 (char *) "self",(char *) "table", NULL
7404 };
7405
7406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
7407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase,
7410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->SetTableObject(arg2);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 return resultobj;
7420 fail:
7421 return NULL;
7422 }
7423
7424
7425 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj;
7427 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7428 wxGridTableBase *result;
7429 PyObject * obj0 = 0 ;
7430 char *kwnames[] = {
7431 (char *) "self", NULL
7432 };
7433
7434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
7435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7437 {
7438 PyThreadState* __tstate = wxPyBeginAllowThreads();
7439 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
7440
7441 wxPyEndAllowThreads(__tstate);
7442 if (PyErr_Occurred()) SWIG_fail;
7443 }
7444 {
7445 resultobj = wxPyMake_wxGridTableBase(result);
7446 }
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj;
7455 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7456 int arg2 ;
7457 PyObject * obj0 = 0 ;
7458 PyObject * obj1 = 0 ;
7459 char *kwnames[] = {
7460 (char *) "self",(char *) "id", NULL
7461 };
7462
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail;
7464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7466 arg2 = (int) SWIG_AsInt(obj1);
7467 if (PyErr_Occurred()) SWIG_fail;
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
7470 (arg1)->SetId(arg2);
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 Py_INCREF(Py_None); resultobj = Py_None;
7476 return resultobj;
7477 fail:
7478 return NULL;
7479 }
7480
7481
7482 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7483 PyObject *resultobj;
7484 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7485 int result;
7486 PyObject * obj0 = 0 ;
7487 char *kwnames[] = {
7488 (char *) "self", NULL
7489 };
7490
7491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
7492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7494 {
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 result = (int)(arg1)->GetId();
7497
7498 wxPyEndAllowThreads(__tstate);
7499 if (PyErr_Occurred()) SWIG_fail;
7500 }
7501 resultobj = SWIG_FromInt((int)result);
7502 return resultobj;
7503 fail:
7504 return NULL;
7505 }
7506
7507
7508 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7509 PyObject *resultobj;
7510 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7511 int arg2 ;
7512 PyObject * obj0 = 0 ;
7513 PyObject * obj1 = 0 ;
7514 char *kwnames[] = {
7515 (char *) "self",(char *) "comInt1", NULL
7516 };
7517
7518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail;
7519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7521 arg2 = (int) SWIG_AsInt(obj1);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 (arg1)->SetCommandInt(arg2);
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 Py_INCREF(Py_None); resultobj = Py_None;
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj;
7539 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7540 int result;
7541 PyObject * obj0 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "self", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
7547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 result = (int)(arg1)->GetCommandInt();
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 resultobj = SWIG_FromInt((int)result);
7557 return resultobj;
7558 fail:
7559 return NULL;
7560 }
7561
7562
7563 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj;
7565 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7566 int arg2 ;
7567 PyObject * obj0 = 0 ;
7568 PyObject * obj1 = 0 ;
7569 char *kwnames[] = {
7570 (char *) "self",(char *) "comInt2", NULL
7571 };
7572
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail;
7574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7576 arg2 = (int) SWIG_AsInt(obj1);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 {
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 (arg1)->SetCommandInt2(arg2);
7581
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 Py_INCREF(Py_None); resultobj = Py_None;
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj;
7594 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7595 int result;
7596 PyObject * obj0 = 0 ;
7597 char *kwnames[] = {
7598 (char *) "self", NULL
7599 };
7600
7601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
7602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage,
7603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 result = (int)(arg1)->GetCommandInt2();
7607
7608 wxPyEndAllowThreads(__tstate);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 resultobj = SWIG_FromInt((int)result);
7612 return resultobj;
7613 fail:
7614 return NULL;
7615 }
7616
7617
7618 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
7619 PyObject *obj;
7620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7621 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
7622 Py_INCREF(obj);
7623 return Py_BuildValue((char *)"");
7624 }
7625 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7626 PyObject *resultobj;
7627 int arg1 = (int) -1 ;
7628 int arg2 = (int) -1 ;
7629 wxGridCellCoords *result;
7630 PyObject * obj0 = 0 ;
7631 PyObject * obj1 = 0 ;
7632 char *kwnames[] = {
7633 (char *) "r",(char *) "c", NULL
7634 };
7635
7636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail;
7637 if (obj0) {
7638 arg1 = (int) SWIG_AsInt(obj0);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 if (obj1) {
7642 arg2 = (int) SWIG_AsInt(obj1);
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1);
7653 return resultobj;
7654 fail:
7655 return NULL;
7656 }
7657
7658
7659 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7660 PyObject *resultobj;
7661 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7662 PyObject * obj0 = 0 ;
7663 char *kwnames[] = {
7664 (char *) "self", NULL
7665 };
7666
7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
7668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7670 {
7671 PyThreadState* __tstate = wxPyBeginAllowThreads();
7672 delete arg1;
7673
7674 wxPyEndAllowThreads(__tstate);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 }
7677 Py_INCREF(Py_None); resultobj = Py_None;
7678 return resultobj;
7679 fail:
7680 return NULL;
7681 }
7682
7683
7684 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj;
7686 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7687 int result;
7688 PyObject * obj0 = 0 ;
7689 char *kwnames[] = {
7690 (char *) "self", NULL
7691 };
7692
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
7694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7696 {
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
7699
7700 wxPyEndAllowThreads(__tstate);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 resultobj = SWIG_FromInt((int)result);
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj;
7712 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7713 int arg2 ;
7714 PyObject * obj0 = 0 ;
7715 PyObject * obj1 = 0 ;
7716 char *kwnames[] = {
7717 (char *) "self",(char *) "n", NULL
7718 };
7719
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail;
7721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7723 arg2 = (int) SWIG_AsInt(obj1);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 (arg1)->SetRow(arg2);
7728
7729 wxPyEndAllowThreads(__tstate);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 Py_INCREF(Py_None); resultobj = Py_None;
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7742 int result;
7743 PyObject * obj0 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_FromInt((int)result);
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj;
7767 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7768 int arg2 ;
7769 PyObject * obj0 = 0 ;
7770 PyObject * obj1 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self",(char *) "n", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7778 arg2 = (int) SWIG_AsInt(obj1);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 (arg1)->SetCol(arg2);
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 Py_INCREF(Py_None); resultobj = Py_None;
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj;
7796 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7797 int arg2 ;
7798 int arg3 ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 PyObject * obj2 = 0 ;
7802 char *kwnames[] = {
7803 (char *) "self",(char *) "row",(char *) "col", NULL
7804 };
7805
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
7807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7809 arg2 = (int) SWIG_AsInt(obj1);
7810 if (PyErr_Occurred()) SWIG_fail;
7811 arg3 = (int) SWIG_AsInt(obj2);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 (arg1)->Set(arg2,arg3);
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 Py_INCREF(Py_None); resultobj = Py_None;
7821 return resultobj;
7822 fail:
7823 return NULL;
7824 }
7825
7826
7827 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7828 PyObject *resultobj;
7829 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7830 wxGridCellCoords *arg2 = 0 ;
7831 bool result;
7832 wxGridCellCoords temp2 ;
7833 PyObject * obj0 = 0 ;
7834 PyObject * obj1 = 0 ;
7835 char *kwnames[] = {
7836 (char *) "self",(char *) "other", NULL
7837 };
7838
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7842 {
7843 arg2 = &temp2;
7844 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
7845 }
7846 {
7847 PyThreadState* __tstate = wxPyBeginAllowThreads();
7848 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7849
7850 wxPyEndAllowThreads(__tstate);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7863 wxGridCellCoords *arg2 = 0 ;
7864 bool result;
7865 wxGridCellCoords temp2 ;
7866 PyObject * obj0 = 0 ;
7867 PyObject * obj1 = 0 ;
7868 char *kwnames[] = {
7869 (char *) "self",(char *) "other", NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7875 {
7876 arg2 = &temp2;
7877 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
7878 }
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7887 return resultobj;
7888 fail:
7889 return NULL;
7890 }
7891
7892
7893 static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7894 PyObject *resultobj;
7895 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7896 PyObject *result;
7897 PyObject * obj0 = 0 ;
7898 char *kwnames[] = {
7899 (char *) "self", NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
7903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
7904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (PyObject *)wxGridCellCoords_asTuple(arg1);
7908
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = result;
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
7920 PyObject *obj;
7921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7922 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
7923 Py_INCREF(obj);
7924 return Py_BuildValue((char *)"");
7925 }
7926 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
7927 PyObject *resultobj;
7928 wxWindow *arg1 = (wxWindow *) 0 ;
7929 int arg2 ;
7930 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7931 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7932 wxSize const &arg4_defvalue = wxDefaultSize ;
7933 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7934 long arg5 = (long) wxWANTS_CHARS ;
7935 wxString const &arg6_defvalue = wxPyPanelNameStr ;
7936 wxString *arg6 = (wxString *) &arg6_defvalue ;
7937 wxGrid *result;
7938 wxPoint temp3 ;
7939 wxSize temp4 ;
7940 bool temp6 = False ;
7941 PyObject * obj0 = 0 ;
7942 PyObject * obj1 = 0 ;
7943 PyObject * obj2 = 0 ;
7944 PyObject * obj3 = 0 ;
7945 PyObject * obj4 = 0 ;
7946 PyObject * obj5 = 0 ;
7947 char *kwnames[] = {
7948 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7949 };
7950
7951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
7953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7954 arg2 = (int) SWIG_AsInt(obj1);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 if (obj2) {
7957 {
7958 arg3 = &temp3;
7959 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7960 }
7961 }
7962 if (obj3) {
7963 {
7964 arg4 = &temp4;
7965 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7966 }
7967 }
7968 if (obj4) {
7969 arg5 = (long) SWIG_AsLong(obj4);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 if (obj5) {
7973 {
7974 arg6 = wxString_in_helper(obj5);
7975 if (arg6 == NULL) SWIG_fail;
7976 temp6 = True;
7977 }
7978 }
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7982
7983 wxPyEndAllowThreads(__tstate);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 {
7987 resultobj = wxPyMake_wxObject(result);
7988 }
7989 {
7990 if (temp6)
7991 delete arg6;
7992 }
7993 return resultobj;
7994 fail:
7995 {
7996 if (temp6)
7997 delete arg6;
7998 }
7999 return NULL;
8000 }
8001
8002
8003 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxGrid *arg1 = (wxGrid *) 0 ;
8006 int arg2 ;
8007 int arg3 ;
8008 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
8009 bool result;
8010 PyObject * obj0 = 0 ;
8011 PyObject * obj1 = 0 ;
8012 PyObject * obj2 = 0 ;
8013 PyObject * obj3 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 arg2 = (int) SWIG_AsInt(obj1);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 arg3 = (int) SWIG_AsInt(obj2);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 if (obj3) {
8026 arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 {
8030 PyThreadState* __tstate = wxPyBeginAllowThreads();
8031 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
8032
8033 wxPyEndAllowThreads(__tstate);
8034 if (PyErr_Occurred()) SWIG_fail;
8035 }
8036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8037 return resultobj;
8038 fail:
8039 return NULL;
8040 }
8041
8042
8043 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8044 PyObject *resultobj;
8045 wxGrid *arg1 = (wxGrid *) 0 ;
8046 WXGRIDSELECTIONMODES arg2 ;
8047 PyObject * obj0 = 0 ;
8048 PyObject * obj1 = 0 ;
8049 char *kwnames[] = {
8050 (char *) "self",(char *) "selmode", NULL
8051 };
8052
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail;
8054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8056 arg2 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj1);
8057 if (PyErr_Occurred()) SWIG_fail;
8058 {
8059 PyThreadState* __tstate = wxPyBeginAllowThreads();
8060 (arg1)->SetSelectionMode(arg2);
8061
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 Py_INCREF(Py_None); resultobj = Py_None;
8066 return resultobj;
8067 fail:
8068 return NULL;
8069 }
8070
8071
8072 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8073 PyObject *resultobj;
8074 wxGrid *arg1 = (wxGrid *) 0 ;
8075 WXGRIDSELECTIONMODES result;
8076 PyObject * obj0 = 0 ;
8077 char *kwnames[] = {
8078 (char *) "self", NULL
8079 };
8080
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
8082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8084 {
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
8087
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_FromInt((int)result);
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8099 PyObject *resultobj;
8100 wxGrid *arg1 = (wxGrid *) 0 ;
8101 int result;
8102 PyObject * obj0 = 0 ;
8103 char *kwnames[] = {
8104 (char *) "self", NULL
8105 };
8106
8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
8108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 result = (int)(arg1)->GetNumberRows();
8113
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 resultobj = SWIG_FromInt((int)result);
8118 return resultobj;
8119 fail:
8120 return NULL;
8121 }
8122
8123
8124 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8125 PyObject *resultobj;
8126 wxGrid *arg1 = (wxGrid *) 0 ;
8127 int result;
8128 PyObject * obj0 = 0 ;
8129 char *kwnames[] = {
8130 (char *) "self", NULL
8131 };
8132
8133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
8134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 result = (int)(arg1)->GetNumberCols();
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_FromInt((int)result);
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 wxGrid *arg1 = (wxGrid *) 0 ;
8153 wxGridTableMessage *arg2 = 0 ;
8154 bool result;
8155 PyObject * obj0 = 0 ;
8156 PyObject * obj1 = 0 ;
8157 char *kwnames[] = {
8158 (char *) "self","arg2", NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
8162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage,
8165 SWIG_POINTER_EXCEPTION | 0)) == -1)
8166 SWIG_fail;
8167 if (arg2 == NULL) {
8168 PyErr_SetString(PyExc_TypeError,"null reference");
8169 SWIG_fail;
8170 }
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (bool)(arg1)->ProcessTableMessage(*arg2);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8179 return resultobj;
8180 fail:
8181 return NULL;
8182 }
8183
8184
8185 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8186 PyObject *resultobj;
8187 wxGrid *arg1 = (wxGrid *) 0 ;
8188 wxGridTableBase *result;
8189 PyObject * obj0 = 0 ;
8190 char *kwnames[] = {
8191 (char *) "self", NULL
8192 };
8193
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
8195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
8200
8201 wxPyEndAllowThreads(__tstate);
8202 if (PyErr_Occurred()) SWIG_fail;
8203 }
8204 {
8205 resultobj = wxPyMake_wxGridTableBase(result);
8206 }
8207 return resultobj;
8208 fail:
8209 return NULL;
8210 }
8211
8212
8213 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8214 PyObject *resultobj;
8215 wxGrid *arg1 = (wxGrid *) 0 ;
8216 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
8217 bool arg3 = (bool) False ;
8218 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
8219 bool result;
8220 PyObject * obj0 = 0 ;
8221 PyObject * obj1 = 0 ;
8222 PyObject * obj2 = 0 ;
8223 PyObject * obj3 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase,
8232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8233 if (obj2) {
8234 arg3 = (bool) SWIG_AsBool(obj2);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 if (obj3) {
8238 arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj;
8257 wxGrid *arg1 = (wxGrid *) 0 ;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
8264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 (arg1)->ClearGrid();
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxGrid *arg1 = (wxGrid *) 0 ;
8283 int arg2 = (int) 0 ;
8284 int arg3 = (int) 1 ;
8285 bool arg4 = (bool) True ;
8286 bool result;
8287 PyObject * obj0 = 0 ;
8288 PyObject * obj1 = 0 ;
8289 PyObject * obj2 = 0 ;
8290 PyObject * obj3 = 0 ;
8291 char *kwnames[] = {
8292 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8293 };
8294
8295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8298 if (obj1) {
8299 arg2 = (int) SWIG_AsInt(obj1);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 }
8302 if (obj2) {
8303 arg3 = (int) SWIG_AsInt(obj2);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 if (obj3) {
8307 arg4 = (bool) SWIG_AsBool(obj3);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
8313
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8318 return resultobj;
8319 fail:
8320 return NULL;
8321 }
8322
8323
8324 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj;
8326 wxGrid *arg1 = (wxGrid *) 0 ;
8327 int arg2 = (int) 1 ;
8328 bool arg3 = (bool) True ;
8329 bool result;
8330 PyObject * obj0 = 0 ;
8331 PyObject * obj1 = 0 ;
8332 PyObject * obj2 = 0 ;
8333 char *kwnames[] = {
8334 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
8335 };
8336
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
8338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8340 if (obj1) {
8341 arg2 = (int) SWIG_AsInt(obj1);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 if (obj2) {
8345 arg3 = (bool) SWIG_AsBool(obj2);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 result = (bool)(arg1)->AppendRows(arg2,arg3);
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxGrid *arg1 = (wxGrid *) 0 ;
8365 int arg2 = (int) 0 ;
8366 int arg3 = (int) 1 ;
8367 bool arg4 = (bool) True ;
8368 bool result;
8369 PyObject * obj0 = 0 ;
8370 PyObject * obj1 = 0 ;
8371 PyObject * obj2 = 0 ;
8372 PyObject * obj3 = 0 ;
8373 char *kwnames[] = {
8374 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8375 };
8376
8377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8380 if (obj1) {
8381 arg2 = (int) SWIG_AsInt(obj1);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 if (obj2) {
8385 arg3 = (int) SWIG_AsInt(obj2);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 if (obj3) {
8389 arg4 = (bool) SWIG_AsBool(obj3);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8400 return resultobj;
8401 fail:
8402 return NULL;
8403 }
8404
8405
8406 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject *resultobj;
8408 wxGrid *arg1 = (wxGrid *) 0 ;
8409 int arg2 = (int) 0 ;
8410 int arg3 = (int) 1 ;
8411 bool arg4 = (bool) True ;
8412 bool result;
8413 PyObject * obj0 = 0 ;
8414 PyObject * obj1 = 0 ;
8415 PyObject * obj2 = 0 ;
8416 PyObject * obj3 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 if (obj1) {
8425 arg2 = (int) SWIG_AsInt(obj1);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 if (obj2) {
8429 arg3 = (int) SWIG_AsInt(obj2);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 }
8432 if (obj3) {
8433 arg4 = (bool) SWIG_AsBool(obj3);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxGrid *arg1 = (wxGrid *) 0 ;
8453 int arg2 = (int) 1 ;
8454 bool arg3 = (bool) True ;
8455 bool result;
8456 PyObject * obj0 = 0 ;
8457 PyObject * obj1 = 0 ;
8458 PyObject * obj2 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8466 if (obj1) {
8467 arg2 = (int) SWIG_AsInt(obj1);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 if (obj2) {
8471 arg3 = (bool) SWIG_AsBool(obj2);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = (bool)(arg1)->AppendCols(arg2,arg3);
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8482 return resultobj;
8483 fail:
8484 return NULL;
8485 }
8486
8487
8488 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8489 PyObject *resultobj;
8490 wxGrid *arg1 = (wxGrid *) 0 ;
8491 int arg2 = (int) 0 ;
8492 int arg3 = (int) 1 ;
8493 bool arg4 = (bool) True ;
8494 bool result;
8495 PyObject * obj0 = 0 ;
8496 PyObject * obj1 = 0 ;
8497 PyObject * obj2 = 0 ;
8498 PyObject * obj3 = 0 ;
8499 char *kwnames[] = {
8500 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8501 };
8502
8503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8506 if (obj1) {
8507 arg2 = (int) SWIG_AsInt(obj1);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 if (obj2) {
8511 arg3 = (int) SWIG_AsInt(obj2);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 if (obj3) {
8515 arg4 = (bool) SWIG_AsBool(obj3);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 {
8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
8520 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
8521
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8526 return resultobj;
8527 fail:
8528 return NULL;
8529 }
8530
8531
8532 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
8533 PyObject *resultobj;
8534 wxGrid *arg1 = (wxGrid *) 0 ;
8535 wxDC *arg2 = 0 ;
8536 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
8537 PyObject * obj0 = 0 ;
8538 PyObject * obj1 = 0 ;
8539 PyObject * obj2 = 0 ;
8540 char *kwnames[] = {
8541 (char *) "self",(char *) "dc",(char *) "attr", NULL
8542 };
8543
8544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
8545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8548 SWIG_POINTER_EXCEPTION | 0)) == -1)
8549 SWIG_fail;
8550 if (arg2 == NULL) {
8551 PyErr_SetString(PyExc_TypeError,"null reference");
8552 SWIG_fail;
8553 }
8554 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
8555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8556 {
8557 PyThreadState* __tstate = wxPyBeginAllowThreads();
8558 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
8559
8560 wxPyEndAllowThreads(__tstate);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
8563 Py_INCREF(Py_None); resultobj = Py_None;
8564 return resultobj;
8565 fail:
8566 return NULL;
8567 }
8568
8569
8570 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxGrid *arg1 = (wxGrid *) 0 ;
8573 wxDC *arg2 = 0 ;
8574 wxString *arg3 = 0 ;
8575 wxRect *arg4 = 0 ;
8576 int arg5 = (int) wxLEFT ;
8577 int arg6 = (int) wxTOP ;
8578 int arg7 = (int) wxHORIZONTAL ;
8579 bool temp3 = False ;
8580 wxRect temp4 ;
8581 PyObject * obj0 = 0 ;
8582 PyObject * obj1 = 0 ;
8583 PyObject * obj2 = 0 ;
8584 PyObject * obj3 = 0 ;
8585 PyObject * obj4 = 0 ;
8586 PyObject * obj5 = 0 ;
8587 PyObject * obj6 = 0 ;
8588 char *kwnames[] = {
8589 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
8590 };
8591
8592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8595 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8596 SWIG_POINTER_EXCEPTION | 0)) == -1)
8597 SWIG_fail;
8598 if (arg2 == NULL) {
8599 PyErr_SetString(PyExc_TypeError,"null reference");
8600 SWIG_fail;
8601 }
8602 {
8603 arg3 = wxString_in_helper(obj2);
8604 if (arg3 == NULL) SWIG_fail;
8605 temp3 = True;
8606 }
8607 {
8608 arg4 = &temp4;
8609 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
8610 }
8611 if (obj4) {
8612 arg5 = (int) SWIG_AsInt(obj4);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 if (obj5) {
8616 arg6 = (int) SWIG_AsInt(obj5);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 if (obj6) {
8620 arg7 = (int) SWIG_AsInt(obj6);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 Py_INCREF(Py_None); resultobj = Py_None;
8631 {
8632 if (temp3)
8633 delete arg3;
8634 }
8635 return resultobj;
8636 fail:
8637 {
8638 if (temp3)
8639 delete arg3;
8640 }
8641 return NULL;
8642 }
8643
8644
8645 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj;
8647 wxGrid *arg1 = (wxGrid *) 0 ;
8648 wxDC *arg2 = 0 ;
8649 wxArrayString *arg3 = 0 ;
8650 long *arg4 = (long *) 0 ;
8651 long *arg5 = (long *) 0 ;
8652 bool temp3 = False ;
8653 long temp4 ;
8654 long temp5 ;
8655 PyObject * obj0 = 0 ;
8656 PyObject * obj1 = 0 ;
8657 PyObject * obj2 = 0 ;
8658 char *kwnames[] = {
8659 (char *) "self",(char *) "dc",(char *) "lines", NULL
8660 };
8661
8662 arg4 = &temp4;
8663 arg5 = &temp5;
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
8665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
8668 SWIG_POINTER_EXCEPTION | 0)) == -1)
8669 SWIG_fail;
8670 if (arg2 == NULL) {
8671 PyErr_SetString(PyExc_TypeError,"null reference");
8672 SWIG_fail;
8673 }
8674 {
8675 if (! PySequence_Check(obj2)) {
8676 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8677 SWIG_fail;
8678 }
8679 arg3 = new wxArrayString;
8680 temp3 = True;
8681 int i, len=PySequence_Length(obj2);
8682 for (i=0; i<len; i++) {
8683 PyObject* item = PySequence_GetItem(obj2, i);
8684 #if wxUSE_UNICODE
8685 PyObject* str = PyObject_Unicode(item);
8686 #else
8687 PyObject* str = PyObject_Str(item);
8688 #endif
8689 arg3->Add(Py2wxString(str));
8690 Py_DECREF(item);
8691 Py_DECREF(str);
8692 }
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 Py_INCREF(Py_None); resultobj = Py_None;
8702 {
8703 PyObject *o = PyInt_FromLong((long) (*arg4));
8704 resultobj = t_output_helper(resultobj,o);
8705 }
8706 {
8707 PyObject *o = PyInt_FromLong((long) (*arg5));
8708 resultobj = t_output_helper(resultobj,o);
8709 }
8710 {
8711 if (temp3) delete arg3;
8712 }
8713 return resultobj;
8714 fail:
8715 {
8716 if (temp3) delete arg3;
8717 }
8718 return NULL;
8719 }
8720
8721
8722 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxGrid *arg1 = (wxGrid *) 0 ;
8725 PyObject * obj0 = 0 ;
8726 char *kwnames[] = {
8727 (char *) "self", NULL
8728 };
8729
8730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
8731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 (arg1)->BeginBatch();
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 Py_INCREF(Py_None); resultobj = Py_None;
8741 return resultobj;
8742 fail:
8743 return NULL;
8744 }
8745
8746
8747 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 wxGrid *arg1 = (wxGrid *) 0 ;
8750 PyObject * obj0 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "self", NULL
8753 };
8754
8755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
8756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8758 {
8759 PyThreadState* __tstate = wxPyBeginAllowThreads();
8760 (arg1)->EndBatch();
8761
8762 wxPyEndAllowThreads(__tstate);
8763 if (PyErr_Occurred()) SWIG_fail;
8764 }
8765 Py_INCREF(Py_None); resultobj = Py_None;
8766 return resultobj;
8767 fail:
8768 return NULL;
8769 }
8770
8771
8772 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8773 PyObject *resultobj;
8774 wxGrid *arg1 = (wxGrid *) 0 ;
8775 int result;
8776 PyObject * obj0 = 0 ;
8777 char *kwnames[] = {
8778 (char *) "self", NULL
8779 };
8780
8781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
8782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8784 {
8785 PyThreadState* __tstate = wxPyBeginAllowThreads();
8786 result = (int)(arg1)->GetBatchCount();
8787
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 resultobj = SWIG_FromInt((int)result);
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxGrid *arg1 = (wxGrid *) 0 ;
8801 PyObject * obj0 = 0 ;
8802 char *kwnames[] = {
8803 (char *) "self", NULL
8804 };
8805
8806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
8807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 (arg1)->ForceRefresh();
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 Py_INCREF(Py_None); resultobj = Py_None;
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxGrid *arg1 = (wxGrid *) 0 ;
8826 bool arg2 = (bool) True ;
8827 wxRect *arg3 = (wxRect *) NULL ;
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 PyObject * obj2 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "self",(char *) "eraseb",(char *) "rect", NULL
8833 };
8834
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
8836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8838 if (obj1) {
8839 arg2 = (bool) SWIG_AsBool(obj1);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 if (obj2) {
8843 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
8844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8845 }
8846 {
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 (arg1)->Refresh(arg2,(wxRect const *)arg3);
8849
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 Py_INCREF(Py_None); resultobj = Py_None;
8854 return resultobj;
8855 fail:
8856 return NULL;
8857 }
8858
8859
8860 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8861 PyObject *resultobj;
8862 wxGrid *arg1 = (wxGrid *) 0 ;
8863 bool result;
8864 PyObject * obj0 = 0 ;
8865 char *kwnames[] = {
8866 (char *) "self", NULL
8867 };
8868
8869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
8870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8872 {
8873 PyThreadState* __tstate = wxPyBeginAllowThreads();
8874 result = (bool)(arg1)->IsEditable();
8875
8876 wxPyEndAllowThreads(__tstate);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8880 return resultobj;
8881 fail:
8882 return NULL;
8883 }
8884
8885
8886 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj;
8888 wxGrid *arg1 = (wxGrid *) 0 ;
8889 bool arg2 ;
8890 PyObject * obj0 = 0 ;
8891 PyObject * obj1 = 0 ;
8892 char *kwnames[] = {
8893 (char *) "self",(char *) "edit", NULL
8894 };
8895
8896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
8897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8899 arg2 = (bool) SWIG_AsBool(obj1);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 (arg1)->EnableEditing(arg2);
8904
8905 wxPyEndAllowThreads(__tstate);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 }
8908 Py_INCREF(Py_None); resultobj = Py_None;
8909 return resultobj;
8910 fail:
8911 return NULL;
8912 }
8913
8914
8915 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxGrid *arg1 = (wxGrid *) 0 ;
8918 bool arg2 = (bool) True ;
8919 PyObject * obj0 = 0 ;
8920 PyObject * obj1 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self",(char *) "enable", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 if (obj1) {
8929 arg2 = (bool) SWIG_AsBool(obj1);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 {
8933 PyThreadState* __tstate = wxPyBeginAllowThreads();
8934 (arg1)->EnableCellEditControl(arg2);
8935
8936 wxPyEndAllowThreads(__tstate);
8937 if (PyErr_Occurred()) SWIG_fail;
8938 }
8939 Py_INCREF(Py_None); resultobj = Py_None;
8940 return resultobj;
8941 fail:
8942 return NULL;
8943 }
8944
8945
8946 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8947 PyObject *resultobj;
8948 wxGrid *arg1 = (wxGrid *) 0 ;
8949 PyObject * obj0 = 0 ;
8950 char *kwnames[] = {
8951 (char *) "self", NULL
8952 };
8953
8954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
8955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 (arg1)->DisableCellEditControl();
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 Py_INCREF(Py_None); resultobj = Py_None;
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj;
8973 wxGrid *arg1 = (wxGrid *) 0 ;
8974 bool result;
8975 PyObject * obj0 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
8981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
8982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 wxGrid *arg1 = (wxGrid *) 0 ;
9000 bool result;
9001 PyObject * obj0 = 0 ;
9002 char *kwnames[] = {
9003 (char *) "self", NULL
9004 };
9005
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
9007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9009 {
9010 PyThreadState* __tstate = wxPyBeginAllowThreads();
9011 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
9012
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9017 return resultobj;
9018 fail:
9019 return NULL;
9020 }
9021
9022
9023 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
9024 PyObject *resultobj;
9025 wxGrid *arg1 = (wxGrid *) 0 ;
9026 bool result;
9027 PyObject * obj0 = 0 ;
9028 char *kwnames[] = {
9029 (char *) "self", NULL
9030 };
9031
9032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
9033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
9038
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9043 return resultobj;
9044 fail:
9045 return NULL;
9046 }
9047
9048
9049 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
9050 PyObject *resultobj;
9051 wxGrid *arg1 = (wxGrid *) 0 ;
9052 bool result;
9053 PyObject * obj0 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",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 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9069 return resultobj;
9070 fail:
9071 return NULL;
9072 }
9073
9074
9075 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject *resultobj;
9077 wxGrid *arg1 = (wxGrid *) 0 ;
9078 PyObject * obj0 = 0 ;
9079 char *kwnames[] = {
9080 (char *) "self", NULL
9081 };
9082
9083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail;
9084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9086 {
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 (arg1)->ShowCellEditControl();
9089
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 Py_INCREF(Py_None); resultobj = Py_None;
9094 return resultobj;
9095 fail:
9096 return NULL;
9097 }
9098
9099
9100 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj;
9102 wxGrid *arg1 = (wxGrid *) 0 ;
9103 PyObject * obj0 = 0 ;
9104 char *kwnames[] = {
9105 (char *) "self", NULL
9106 };
9107
9108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
9109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 (arg1)->HideCellEditControl();
9114
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 Py_INCREF(Py_None); resultobj = Py_None;
9119 return resultobj;
9120 fail:
9121 return NULL;
9122 }
9123
9124
9125 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9126 PyObject *resultobj;
9127 wxGrid *arg1 = (wxGrid *) 0 ;
9128 PyObject * obj0 = 0 ;
9129 char *kwnames[] = {
9130 (char *) "self", NULL
9131 };
9132
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
9134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 (arg1)->SaveEditControlValue();
9139
9140 wxPyEndAllowThreads(__tstate);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 }
9143 Py_INCREF(Py_None); resultobj = Py_None;
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
9151 PyObject *resultobj;
9152 wxGrid *arg1 = (wxGrid *) 0 ;
9153 int arg2 ;
9154 int arg3 ;
9155 wxGridCellCoords result;
9156 PyObject * obj0 = 0 ;
9157 PyObject * obj1 = 0 ;
9158 PyObject * obj2 = 0 ;
9159 char *kwnames[] = {
9160 (char *) "self",(char *) "x",(char *) "y", NULL
9161 };
9162
9163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
9164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9166 arg2 = (int) SWIG_AsInt(obj1);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 arg3 = (int) SWIG_AsInt(obj2);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = wxGrid_XYToCell(arg1,arg2,arg3);
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 {
9178 wxGridCellCoords * resultptr;
9179 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
9180 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
9181 }
9182 return resultobj;
9183 fail:
9184 return NULL;
9185 }
9186
9187
9188 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj;
9190 wxGrid *arg1 = (wxGrid *) 0 ;
9191 int arg2 ;
9192 int result;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 char *kwnames[] = {
9196 (char *) "self",(char *) "y", NULL
9197 };
9198
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail;
9200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9202 arg2 = (int) SWIG_AsInt(obj1);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (int)(arg1)->YToRow(arg2);
9207
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_FromInt((int)result);
9212 return resultobj;
9213 fail:
9214 return NULL;
9215 }
9216
9217
9218 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj;
9220 wxGrid *arg1 = (wxGrid *) 0 ;
9221 int arg2 ;
9222 int result;
9223 PyObject * obj0 = 0 ;
9224 PyObject * obj1 = 0 ;
9225 char *kwnames[] = {
9226 (char *) "self",(char *) "x", NULL
9227 };
9228
9229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail;
9230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9232 arg2 = (int) SWIG_AsInt(obj1);
9233 if (PyErr_Occurred()) SWIG_fail;
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 result = (int)(arg1)->XToCol(arg2);
9237
9238 wxPyEndAllowThreads(__tstate);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 }
9241 resultobj = SWIG_FromInt((int)result);
9242 return resultobj;
9243 fail:
9244 return NULL;
9245 }
9246
9247
9248 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9249 PyObject *resultobj;
9250 wxGrid *arg1 = (wxGrid *) 0 ;
9251 int arg2 ;
9252 int result;
9253 PyObject * obj0 = 0 ;
9254 PyObject * obj1 = 0 ;
9255 char *kwnames[] = {
9256 (char *) "self",(char *) "y", NULL
9257 };
9258
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail;
9260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9262 arg2 = (int) SWIG_AsInt(obj1);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 result = (int)(arg1)->YToEdgeOfRow(arg2);
9267
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 resultobj = SWIG_FromInt((int)result);
9272 return resultobj;
9273 fail:
9274 return NULL;
9275 }
9276
9277
9278 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject *resultobj;
9280 wxGrid *arg1 = (wxGrid *) 0 ;
9281 int arg2 ;
9282 int result;
9283 PyObject * obj0 = 0 ;
9284 PyObject * obj1 = 0 ;
9285 char *kwnames[] = {
9286 (char *) "self",(char *) "x", NULL
9287 };
9288
9289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail;
9290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9292 arg2 = (int) SWIG_AsInt(obj1);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (int)(arg1)->XToEdgeOfCol(arg2);
9297
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
9301 resultobj = SWIG_FromInt((int)result);
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj;
9310 wxGrid *arg1 = (wxGrid *) 0 ;
9311 int arg2 ;
9312 int arg3 ;
9313 wxRect result;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 PyObject * obj2 = 0 ;
9317 char *kwnames[] = {
9318 (char *) "self",(char *) "row",(char *) "col", NULL
9319 };
9320
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9324 arg2 = (int) SWIG_AsInt(obj1);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 arg3 = (int) SWIG_AsInt(obj2);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 result = (arg1)->CellToRect(arg2,arg3);
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 {
9336 wxRect * resultptr;
9337 resultptr = new wxRect((wxRect &) result);
9338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
9339 }
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj;
9348 wxGrid *arg1 = (wxGrid *) 0 ;
9349 int result;
9350 PyObject * obj0 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 result = (int)(arg1)->GetGridCursorRow();
9361
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_FromInt((int)result);
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj;
9374 wxGrid *arg1 = (wxGrid *) 0 ;
9375 int result;
9376 PyObject * obj0 = 0 ;
9377 char *kwnames[] = {
9378 (char *) "self", NULL
9379 };
9380
9381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
9382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 result = (int)(arg1)->GetGridCursorCol();
9387
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = SWIG_FromInt((int)result);
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj;
9400 wxGrid *arg1 = (wxGrid *) 0 ;
9401 int arg2 ;
9402 int arg3 ;
9403 bool arg4 = (bool) True ;
9404 bool result;
9405 PyObject * obj0 = 0 ;
9406 PyObject * obj1 = 0 ;
9407 PyObject * obj2 = 0 ;
9408 PyObject * obj3 = 0 ;
9409 char *kwnames[] = {
9410 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
9411 };
9412
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9416 arg2 = (int) SWIG_AsInt(obj1);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 arg3 = (int) SWIG_AsInt(obj2);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 if (obj3) {
9421 arg4 = (bool) SWIG_AsBool(obj3);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxGrid *arg1 = (wxGrid *) 0 ;
9441 int arg2 ;
9442 int arg3 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 PyObject * obj2 = 0 ;
9446 char *kwnames[] = {
9447 (char *) "self",(char *) "row",(char *) "col", NULL
9448 };
9449
9450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail;
9451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9453 arg2 = (int) SWIG_AsInt(obj1);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 arg3 = (int) SWIG_AsInt(obj2);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 (arg1)->MakeCellVisible(arg2,arg3);
9460
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 Py_INCREF(Py_None); resultobj = Py_None;
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj;
9473 wxGrid *arg1 = (wxGrid *) 0 ;
9474 int arg2 ;
9475 int arg3 ;
9476 PyObject * obj0 = 0 ;
9477 PyObject * obj1 = 0 ;
9478 PyObject * obj2 = 0 ;
9479 char *kwnames[] = {
9480 (char *) "self",(char *) "row",(char *) "col", NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
9484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9486 arg2 = (int) SWIG_AsInt(obj1);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 arg3 = (int) SWIG_AsInt(obj2);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 (arg1)->SetGridCursor(arg2,arg3);
9493
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 Py_INCREF(Py_None); resultobj = Py_None;
9498 return resultobj;
9499 fail:
9500 return NULL;
9501 }
9502
9503
9504 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9505 PyObject *resultobj;
9506 wxGrid *arg1 = (wxGrid *) 0 ;
9507 bool arg2 ;
9508 bool result;
9509 PyObject * obj0 = 0 ;
9510 PyObject * obj1 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self",(char *) "expandSelection", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 arg2 = (bool) SWIG_AsBool(obj1);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (bool)(arg1)->MoveCursorUp(arg2);
9523
9524 wxPyEndAllowThreads(__tstate);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9528 return resultobj;
9529 fail:
9530 return NULL;
9531 }
9532
9533
9534 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj;
9536 wxGrid *arg1 = (wxGrid *) 0 ;
9537 bool arg2 ;
9538 bool result;
9539 PyObject * obj0 = 0 ;
9540 PyObject * obj1 = 0 ;
9541 char *kwnames[] = {
9542 (char *) "self",(char *) "expandSelection", NULL
9543 };
9544
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
9546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9548 arg2 = (bool) SWIG_AsBool(obj1);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = (bool)(arg1)->MoveCursorDown(arg2);
9553
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9558 return resultobj;
9559 fail:
9560 return NULL;
9561 }
9562
9563
9564 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj;
9566 wxGrid *arg1 = (wxGrid *) 0 ;
9567 bool arg2 ;
9568 bool result;
9569 PyObject * obj0 = 0 ;
9570 PyObject * obj1 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self",(char *) "expandSelection", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9578 arg2 = (bool) SWIG_AsBool(obj1);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = (bool)(arg1)->MoveCursorLeft(arg2);
9583
9584 wxPyEndAllowThreads(__tstate);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 }
9587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj;
9596 wxGrid *arg1 = (wxGrid *) 0 ;
9597 bool arg2 ;
9598 bool result;
9599 PyObject * obj0 = 0 ;
9600 PyObject * obj1 = 0 ;
9601 char *kwnames[] = {
9602 (char *) "self",(char *) "expandSelection", NULL
9603 };
9604
9605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
9606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9608 arg2 = (bool) SWIG_AsBool(obj1);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 result = (bool)(arg1)->MoveCursorRight(arg2);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9618 return resultobj;
9619 fail:
9620 return NULL;
9621 }
9622
9623
9624 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxGrid *arg1 = (wxGrid *) 0 ;
9627 bool result;
9628 PyObject * obj0 = 0 ;
9629 char *kwnames[] = {
9630 (char *) "self", NULL
9631 };
9632
9633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
9634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 result = (bool)(arg1)->MovePageDown();
9639
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9644 return resultobj;
9645 fail:
9646 return NULL;
9647 }
9648
9649
9650 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9651 PyObject *resultobj;
9652 wxGrid *arg1 = (wxGrid *) 0 ;
9653 bool result;
9654 PyObject * obj0 = 0 ;
9655 char *kwnames[] = {
9656 (char *) "self", NULL
9657 };
9658
9659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
9660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 result = (bool)(arg1)->MovePageUp();
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9670 return resultobj;
9671 fail:
9672 return NULL;
9673 }
9674
9675
9676 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9677 PyObject *resultobj;
9678 wxGrid *arg1 = (wxGrid *) 0 ;
9679 bool arg2 ;
9680 bool result;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char *kwnames[] = {
9684 (char *) "self",(char *) "expandSelection", NULL
9685 };
9686
9687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
9688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9690 arg2 = (bool) SWIG_AsBool(obj1);
9691 if (PyErr_Occurred()) SWIG_fail;
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
9695
9696 wxPyEndAllowThreads(__tstate);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9700 return resultobj;
9701 fail:
9702 return NULL;
9703 }
9704
9705
9706 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject *resultobj;
9708 wxGrid *arg1 = (wxGrid *) 0 ;
9709 bool arg2 ;
9710 bool result;
9711 PyObject * obj0 = 0 ;
9712 PyObject * obj1 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "self",(char *) "expandSelection", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
9718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9720 arg2 = (bool) SWIG_AsBool(obj1);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
9725
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9730 return resultobj;
9731 fail:
9732 return NULL;
9733 }
9734
9735
9736 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj;
9738 wxGrid *arg1 = (wxGrid *) 0 ;
9739 bool arg2 ;
9740 bool result;
9741 PyObject * obj0 = 0 ;
9742 PyObject * obj1 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self",(char *) "expandSelection", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9750 arg2 = (bool) SWIG_AsBool(obj1);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
9754 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
9755
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj;
9768 wxGrid *arg1 = (wxGrid *) 0 ;
9769 bool arg2 ;
9770 bool result;
9771 PyObject * obj0 = 0 ;
9772 PyObject * obj1 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self",(char *) "expandSelection", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
9778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9780 arg2 = (bool) SWIG_AsBool(obj1);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj;
9798 wxGrid *arg1 = (wxGrid *) 0 ;
9799 int result;
9800 PyObject * obj0 = 0 ;
9801 char *kwnames[] = {
9802 (char *) "self", NULL
9803 };
9804
9805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
9806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (int)(arg1)->GetDefaultRowLabelSize();
9811
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_FromInt((int)result);
9816 return resultobj;
9817 fail:
9818 return NULL;
9819 }
9820
9821
9822 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9823 PyObject *resultobj;
9824 wxGrid *arg1 = (wxGrid *) 0 ;
9825 int result;
9826 PyObject * obj0 = 0 ;
9827 char *kwnames[] = {
9828 (char *) "self", NULL
9829 };
9830
9831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
9832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (int)(arg1)->GetRowLabelSize();
9837
9838 wxPyEndAllowThreads(__tstate);
9839 if (PyErr_Occurred()) SWIG_fail;
9840 }
9841 resultobj = SWIG_FromInt((int)result);
9842 return resultobj;
9843 fail:
9844 return NULL;
9845 }
9846
9847
9848 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9849 PyObject *resultobj;
9850 wxGrid *arg1 = (wxGrid *) 0 ;
9851 int result;
9852 PyObject * obj0 = 0 ;
9853 char *kwnames[] = {
9854 (char *) "self", NULL
9855 };
9856
9857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
9858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (int)(arg1)->GetDefaultColLabelSize();
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 resultobj = SWIG_FromInt((int)result);
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxGrid *arg1 = (wxGrid *) 0 ;
9877 int result;
9878 PyObject * obj0 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
9884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (int)(arg1)->GetColLabelSize();
9889
9890 wxPyEndAllowThreads(__tstate);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 resultobj = SWIG_FromInt((int)result);
9894 return resultobj;
9895 fail:
9896 return NULL;
9897 }
9898
9899
9900 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9901 PyObject *resultobj;
9902 wxGrid *arg1 = (wxGrid *) 0 ;
9903 wxColour result;
9904 PyObject * obj0 = 0 ;
9905 char *kwnames[] = {
9906 (char *) "self", NULL
9907 };
9908
9909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
9910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 result = (arg1)->GetLabelBackgroundColour();
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 {
9920 wxColour * resultptr;
9921 resultptr = new wxColour((wxColour &) result);
9922 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
9923 }
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj;
9932 wxGrid *arg1 = (wxGrid *) 0 ;
9933 wxColour result;
9934 PyObject * obj0 = 0 ;
9935 char *kwnames[] = {
9936 (char *) "self", NULL
9937 };
9938
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
9940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (arg1)->GetLabelTextColour();
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 {
9950 wxColour * resultptr;
9951 resultptr = new wxColour((wxColour &) result);
9952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
9953 }
9954 return resultobj;
9955 fail:
9956 return NULL;
9957 }
9958
9959
9960 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 wxGrid *arg1 = (wxGrid *) 0 ;
9963 wxFont result;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
9971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9972 {
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = (arg1)->GetLabelFont();
9975
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 {
9980 wxFont * resultptr;
9981 resultptr = new wxFont((wxFont &) result);
9982 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
9983 }
9984 return resultobj;
9985 fail:
9986 return NULL;
9987 }
9988
9989
9990 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9991 PyObject *resultobj;
9992 wxGrid *arg1 = (wxGrid *) 0 ;
9993 int *arg2 = (int *) 0 ;
9994 int *arg3 = (int *) 0 ;
9995 int temp2 ;
9996 int temp3 ;
9997 PyObject * obj0 = 0 ;
9998 char *kwnames[] = {
9999 (char *) "self", NULL
10000 };
10001
10002 arg2 = &temp2;
10003 arg3 = &temp3;
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 (arg1)->GetRowLabelAlignment(arg2,arg3);
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 Py_INCREF(Py_None); resultobj = Py_None;
10015 {
10016 PyObject *o = PyInt_FromLong((long) (*arg2));
10017 resultobj = t_output_helper(resultobj,o);
10018 }
10019 {
10020 PyObject *o = PyInt_FromLong((long) (*arg3));
10021 resultobj = t_output_helper(resultobj,o);
10022 }
10023 return resultobj;
10024 fail:
10025 return NULL;
10026 }
10027
10028
10029 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10030 PyObject *resultobj;
10031 wxGrid *arg1 = (wxGrid *) 0 ;
10032 int *arg2 = (int *) 0 ;
10033 int *arg3 = (int *) 0 ;
10034 int temp2 ;
10035 int temp3 ;
10036 PyObject * obj0 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "self", NULL
10039 };
10040
10041 arg2 = &temp2;
10042 arg3 = &temp3;
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
10044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 (arg1)->GetColLabelAlignment(arg2,arg3);
10049
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
10053 Py_INCREF(Py_None); resultobj = Py_None;
10054 {
10055 PyObject *o = PyInt_FromLong((long) (*arg2));
10056 resultobj = t_output_helper(resultobj,o);
10057 }
10058 {
10059 PyObject *o = PyInt_FromLong((long) (*arg3));
10060 resultobj = t_output_helper(resultobj,o);
10061 }
10062 return resultobj;
10063 fail:
10064 return NULL;
10065 }
10066
10067
10068 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj;
10070 wxGrid *arg1 = (wxGrid *) 0 ;
10071 int result;
10072 PyObject * obj0 = 0 ;
10073 char *kwnames[] = {
10074 (char *) "self", NULL
10075 };
10076
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
10078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10080 {
10081 PyThreadState* __tstate = wxPyBeginAllowThreads();
10082 result = (int)(arg1)->GetColLabelTextOrientation();
10083
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 resultobj = SWIG_FromInt((int)result);
10088 return resultobj;
10089 fail:
10090 return NULL;
10091 }
10092
10093
10094 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10095 PyObject *resultobj;
10096 wxGrid *arg1 = (wxGrid *) 0 ;
10097 int arg2 ;
10098 wxString result;
10099 PyObject * obj0 = 0 ;
10100 PyObject * obj1 = 0 ;
10101 char *kwnames[] = {
10102 (char *) "self",(char *) "row", NULL
10103 };
10104
10105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
10106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10108 arg2 = (int) SWIG_AsInt(obj1);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 {
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (arg1)->GetRowLabelValue(arg2);
10113
10114 wxPyEndAllowThreads(__tstate);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 }
10117 {
10118 #if wxUSE_UNICODE
10119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10120 #else
10121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10122 #endif
10123 }
10124 return resultobj;
10125 fail:
10126 return NULL;
10127 }
10128
10129
10130 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj;
10132 wxGrid *arg1 = (wxGrid *) 0 ;
10133 int arg2 ;
10134 wxString result;
10135 PyObject * obj0 = 0 ;
10136 PyObject * obj1 = 0 ;
10137 char *kwnames[] = {
10138 (char *) "self",(char *) "col", NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
10142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10144 arg2 = (int) SWIG_AsInt(obj1);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 {
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = (arg1)->GetColLabelValue(arg2);
10149
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
10153 {
10154 #if wxUSE_UNICODE
10155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10156 #else
10157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10158 #endif
10159 }
10160 return resultobj;
10161 fail:
10162 return NULL;
10163 }
10164
10165
10166 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10167 PyObject *resultobj;
10168 wxGrid *arg1 = (wxGrid *) 0 ;
10169 wxColour result;
10170 PyObject * obj0 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "self", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
10176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 result = (arg1)->GetGridLineColour();
10181
10182 wxPyEndAllowThreads(__tstate);
10183 if (PyErr_Occurred()) SWIG_fail;
10184 }
10185 {
10186 wxColour * resultptr;
10187 resultptr = new wxColour((wxColour &) result);
10188 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10189 }
10190 return resultobj;
10191 fail:
10192 return NULL;
10193 }
10194
10195
10196 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj;
10198 wxGrid *arg1 = (wxGrid *) 0 ;
10199 wxColour result;
10200 PyObject * obj0 = 0 ;
10201 char *kwnames[] = {
10202 (char *) "self", NULL
10203 };
10204
10205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
10206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10208 {
10209 PyThreadState* __tstate = wxPyBeginAllowThreads();
10210 result = (arg1)->GetCellHighlightColour();
10211
10212 wxPyEndAllowThreads(__tstate);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 {
10216 wxColour * resultptr;
10217 resultptr = new wxColour((wxColour &) result);
10218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10219 }
10220 return resultobj;
10221 fail:
10222 return NULL;
10223 }
10224
10225
10226 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10227 PyObject *resultobj;
10228 wxGrid *arg1 = (wxGrid *) 0 ;
10229 int result;
10230 PyObject * obj0 = 0 ;
10231 char *kwnames[] = {
10232 (char *) "self", NULL
10233 };
10234
10235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
10236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10238 {
10239 PyThreadState* __tstate = wxPyBeginAllowThreads();
10240 result = (int)(arg1)->GetCellHighlightPenWidth();
10241
10242 wxPyEndAllowThreads(__tstate);
10243 if (PyErr_Occurred()) SWIG_fail;
10244 }
10245 resultobj = SWIG_FromInt((int)result);
10246 return resultobj;
10247 fail:
10248 return NULL;
10249 }
10250
10251
10252 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10253 PyObject *resultobj;
10254 wxGrid *arg1 = (wxGrid *) 0 ;
10255 int result;
10256 PyObject * obj0 = 0 ;
10257 char *kwnames[] = {
10258 (char *) "self", NULL
10259 };
10260
10261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
10262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10264 {
10265 PyThreadState* __tstate = wxPyBeginAllowThreads();
10266 result = (int)(arg1)->GetCellHighlightROPenWidth();
10267
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 resultobj = SWIG_FromInt((int)result);
10272 return resultobj;
10273 fail:
10274 return NULL;
10275 }
10276
10277
10278 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj;
10280 wxGrid *arg1 = (wxGrid *) 0 ;
10281 int arg2 ;
10282 PyObject * obj0 = 0 ;
10283 PyObject * obj1 = 0 ;
10284 char *kwnames[] = {
10285 (char *) "self",(char *) "width", NULL
10286 };
10287
10288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
10289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10291 arg2 = (int) SWIG_AsInt(obj1);
10292 if (PyErr_Occurred()) SWIG_fail;
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 (arg1)->SetRowLabelSize(arg2);
10296
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 Py_INCREF(Py_None); resultobj = Py_None;
10301 return resultobj;
10302 fail:
10303 return NULL;
10304 }
10305
10306
10307 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10308 PyObject *resultobj;
10309 wxGrid *arg1 = (wxGrid *) 0 ;
10310 int arg2 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 char *kwnames[] = {
10314 (char *) "self",(char *) "height", NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail;
10318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10320 arg2 = (int) SWIG_AsInt(obj1);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 (arg1)->SetColLabelSize(arg2);
10325
10326 wxPyEndAllowThreads(__tstate);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 Py_INCREF(Py_None); resultobj = Py_None;
10330 return resultobj;
10331 fail:
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 wxGrid *arg1 = (wxGrid *) 0 ;
10339 wxColour *arg2 = 0 ;
10340 wxColour temp2 ;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char *kwnames[] = {
10344 (char *) "self","arg2", NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
10348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10350 {
10351 arg2 = &temp2;
10352 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10353 }
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
10357
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 Py_INCREF(Py_None); resultobj = Py_None;
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj;
10370 wxGrid *arg1 = (wxGrid *) 0 ;
10371 wxColour *arg2 = 0 ;
10372 wxColour temp2 ;
10373 PyObject * obj0 = 0 ;
10374 PyObject * obj1 = 0 ;
10375 char *kwnames[] = {
10376 (char *) "self","arg2", NULL
10377 };
10378
10379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
10380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10382 {
10383 arg2 = &temp2;
10384 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10385 }
10386 {
10387 PyThreadState* __tstate = wxPyBeginAllowThreads();
10388 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
10389
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 Py_INCREF(Py_None); resultobj = Py_None;
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj;
10402 wxGrid *arg1 = (wxGrid *) 0 ;
10403 wxFont *arg2 = 0 ;
10404 PyObject * obj0 = 0 ;
10405 PyObject * obj1 = 0 ;
10406 char *kwnames[] = {
10407 (char *) "self","arg2", NULL
10408 };
10409
10410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
10411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
10414 SWIG_POINTER_EXCEPTION | 0)) == -1)
10415 SWIG_fail;
10416 if (arg2 == NULL) {
10417 PyErr_SetString(PyExc_TypeError,"null reference");
10418 SWIG_fail;
10419 }
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 (arg1)->SetLabelFont((wxFont const &)*arg2);
10423
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 Py_INCREF(Py_None); resultobj = Py_None;
10428 return resultobj;
10429 fail:
10430 return NULL;
10431 }
10432
10433
10434 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10435 PyObject *resultobj;
10436 wxGrid *arg1 = (wxGrid *) 0 ;
10437 int arg2 ;
10438 int arg3 ;
10439 PyObject * obj0 = 0 ;
10440 PyObject * obj1 = 0 ;
10441 PyObject * obj2 = 0 ;
10442 char *kwnames[] = {
10443 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10444 };
10445
10446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10449 arg2 = (int) SWIG_AsInt(obj1);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 arg3 = (int) SWIG_AsInt(obj2);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 (arg1)->SetRowLabelAlignment(arg2,arg3);
10456
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 Py_INCREF(Py_None); resultobj = Py_None;
10461 return resultobj;
10462 fail:
10463 return NULL;
10464 }
10465
10466
10467 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10468 PyObject *resultobj;
10469 wxGrid *arg1 = (wxGrid *) 0 ;
10470 int arg2 ;
10471 int arg3 ;
10472 PyObject * obj0 = 0 ;
10473 PyObject * obj1 = 0 ;
10474 PyObject * obj2 = 0 ;
10475 char *kwnames[] = {
10476 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10477 };
10478
10479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10482 arg2 = (int) SWIG_AsInt(obj1);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 arg3 = (int) SWIG_AsInt(obj2);
10485 if (PyErr_Occurred()) SWIG_fail;
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 (arg1)->SetColLabelAlignment(arg2,arg3);
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 Py_INCREF(Py_None); resultobj = Py_None;
10494 return resultobj;
10495 fail:
10496 return NULL;
10497 }
10498
10499
10500 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj;
10502 wxGrid *arg1 = (wxGrid *) 0 ;
10503 int arg2 ;
10504 PyObject * obj0 = 0 ;
10505 PyObject * obj1 = 0 ;
10506 char *kwnames[] = {
10507 (char *) "self",(char *) "textOrientation", NULL
10508 };
10509
10510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail;
10511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10513 arg2 = (int) SWIG_AsInt(obj1);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 (arg1)->SetColLabelTextOrientation(arg2);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 Py_INCREF(Py_None); resultobj = Py_None;
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxGrid *arg1 = (wxGrid *) 0 ;
10532 int arg2 ;
10533 wxString *arg3 = 0 ;
10534 bool temp3 = False ;
10535 PyObject * obj0 = 0 ;
10536 PyObject * obj1 = 0 ;
10537 PyObject * obj2 = 0 ;
10538 char *kwnames[] = {
10539 (char *) "self",(char *) "row","arg3", NULL
10540 };
10541
10542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10545 arg2 = (int) SWIG_AsInt(obj1);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 {
10548 arg3 = wxString_in_helper(obj2);
10549 if (arg3 == NULL) SWIG_fail;
10550 temp3 = True;
10551 }
10552 {
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
10555
10556 wxPyEndAllowThreads(__tstate);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 }
10559 Py_INCREF(Py_None); resultobj = Py_None;
10560 {
10561 if (temp3)
10562 delete arg3;
10563 }
10564 return resultobj;
10565 fail:
10566 {
10567 if (temp3)
10568 delete arg3;
10569 }
10570 return NULL;
10571 }
10572
10573
10574 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj;
10576 wxGrid *arg1 = (wxGrid *) 0 ;
10577 int arg2 ;
10578 wxString *arg3 = 0 ;
10579 bool temp3 = False ;
10580 PyObject * obj0 = 0 ;
10581 PyObject * obj1 = 0 ;
10582 PyObject * obj2 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self",(char *) "col","arg3", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10590 arg2 = (int) SWIG_AsInt(obj1);
10591 if (PyErr_Occurred()) SWIG_fail;
10592 {
10593 arg3 = wxString_in_helper(obj2);
10594 if (arg3 == NULL) SWIG_fail;
10595 temp3 = True;
10596 }
10597 {
10598 PyThreadState* __tstate = wxPyBeginAllowThreads();
10599 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
10600
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 Py_INCREF(Py_None); resultobj = Py_None;
10605 {
10606 if (temp3)
10607 delete arg3;
10608 }
10609 return resultobj;
10610 fail:
10611 {
10612 if (temp3)
10613 delete arg3;
10614 }
10615 return NULL;
10616 }
10617
10618
10619 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxGrid *arg1 = (wxGrid *) 0 ;
10622 wxColour *arg2 = 0 ;
10623 wxColour temp2 ;
10624 PyObject * obj0 = 0 ;
10625 PyObject * obj1 = 0 ;
10626 char *kwnames[] = {
10627 (char *) "self","arg2", NULL
10628 };
10629
10630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
10631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10633 {
10634 arg2 = &temp2;
10635 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10636 }
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 (arg1)->SetGridLineColour((wxColour const &)*arg2);
10640
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 Py_INCREF(Py_None); resultobj = Py_None;
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxGrid *arg1 = (wxGrid *) 0 ;
10654 wxColour *arg2 = 0 ;
10655 wxColour temp2 ;
10656 PyObject * obj0 = 0 ;
10657 PyObject * obj1 = 0 ;
10658 char *kwnames[] = {
10659 (char *) "self","arg2", NULL
10660 };
10661
10662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
10663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10665 {
10666 arg2 = &temp2;
10667 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
10672
10673 wxPyEndAllowThreads(__tstate);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 Py_INCREF(Py_None); resultobj = Py_None;
10677 return resultobj;
10678 fail:
10679 return NULL;
10680 }
10681
10682
10683 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj;
10685 wxGrid *arg1 = (wxGrid *) 0 ;
10686 int arg2 ;
10687 PyObject * obj0 = 0 ;
10688 PyObject * obj1 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self",(char *) "width", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) 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 {
10699 PyThreadState* __tstate = wxPyBeginAllowThreads();
10700 (arg1)->SetCellHighlightPenWidth(arg2);
10701
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 Py_INCREF(Py_None); resultobj = Py_None;
10706 return resultobj;
10707 fail:
10708 return NULL;
10709 }
10710
10711
10712 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj;
10714 wxGrid *arg1 = (wxGrid *) 0 ;
10715 int arg2 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self",(char *) "width", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10725 arg2 = (int) SWIG_AsInt(obj1);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 (arg1)->SetCellHighlightROPenWidth(arg2);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 Py_INCREF(Py_None); resultobj = Py_None;
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj;
10743 wxGrid *arg1 = (wxGrid *) 0 ;
10744 bool arg2 = (bool) True ;
10745 PyObject * obj0 = 0 ;
10746 PyObject * obj1 = 0 ;
10747 char *kwnames[] = {
10748 (char *) "self",(char *) "enable", NULL
10749 };
10750
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
10752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10754 if (obj1) {
10755 arg2 = (bool) SWIG_AsBool(obj1);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 {
10759 PyThreadState* __tstate = wxPyBeginAllowThreads();
10760 (arg1)->EnableDragRowSize(arg2);
10761
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 Py_INCREF(Py_None); resultobj = Py_None;
10766 return resultobj;
10767 fail:
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxGrid *arg1 = (wxGrid *) 0 ;
10775 PyObject * obj0 = 0 ;
10776 char *kwnames[] = {
10777 (char *) "self", NULL
10778 };
10779
10780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
10781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10783 {
10784 PyThreadState* __tstate = wxPyBeginAllowThreads();
10785 (arg1)->DisableDragRowSize();
10786
10787 wxPyEndAllowThreads(__tstate);
10788 if (PyErr_Occurred()) SWIG_fail;
10789 }
10790 Py_INCREF(Py_None); resultobj = Py_None;
10791 return resultobj;
10792 fail:
10793 return NULL;
10794 }
10795
10796
10797 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxGrid *arg1 = (wxGrid *) 0 ;
10800 bool result;
10801 PyObject * obj0 = 0 ;
10802 char *kwnames[] = {
10803 (char *) "self", NULL
10804 };
10805
10806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
10807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (bool)(arg1)->CanDragRowSize();
10812
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj;
10825 wxGrid *arg1 = (wxGrid *) 0 ;
10826 bool arg2 = (bool) True ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 char *kwnames[] = {
10830 (char *) "self",(char *) "enable", NULL
10831 };
10832
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
10834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10836 if (obj1) {
10837 arg2 = (bool) SWIG_AsBool(obj1);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 {
10841 PyThreadState* __tstate = wxPyBeginAllowThreads();
10842 (arg1)->EnableDragColSize(arg2);
10843
10844 wxPyEndAllowThreads(__tstate);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 }
10847 Py_INCREF(Py_None); resultobj = Py_None;
10848 return resultobj;
10849 fail:
10850 return NULL;
10851 }
10852
10853
10854 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10855 PyObject *resultobj;
10856 wxGrid *arg1 = (wxGrid *) 0 ;
10857 PyObject * obj0 = 0 ;
10858 char *kwnames[] = {
10859 (char *) "self", NULL
10860 };
10861
10862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
10863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->DisableDragColSize();
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 Py_INCREF(Py_None); resultobj = Py_None;
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxGrid *arg1 = (wxGrid *) 0 ;
10882 bool result;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (bool)(arg1)->CanDragColSize();
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 wxGrid *arg1 = (wxGrid *) 0 ;
10908 bool arg2 = (bool) True ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 char *kwnames[] = {
10912 (char *) "self",(char *) "enable", NULL
10913 };
10914
10915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
10916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10918 if (obj1) {
10919 arg2 = (bool) SWIG_AsBool(obj1);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 {
10923 PyThreadState* __tstate = wxPyBeginAllowThreads();
10924 (arg1)->EnableDragGridSize(arg2);
10925
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 Py_INCREF(Py_None); resultobj = Py_None;
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj;
10938 wxGrid *arg1 = (wxGrid *) 0 ;
10939 PyObject * obj0 = 0 ;
10940 char *kwnames[] = {
10941 (char *) "self", NULL
10942 };
10943
10944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
10945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 (arg1)->DisableDragGridSize();
10950
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 Py_INCREF(Py_None); resultobj = Py_None;
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj;
10963 wxGrid *arg1 = (wxGrid *) 0 ;
10964 bool result;
10965 PyObject * obj0 = 0 ;
10966 char *kwnames[] = {
10967 (char *) "self", NULL
10968 };
10969
10970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
10971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
10972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 result = (bool)(arg1)->CanDragGridSize();
10976
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10981 return resultobj;
10982 fail:
10983 return NULL;
10984 }
10985
10986
10987 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10988 PyObject *resultobj;
10989 wxGrid *arg1 = (wxGrid *) 0 ;
10990 int arg2 ;
10991 int arg3 ;
10992 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
10993 PyObject * obj0 = 0 ;
10994 PyObject * obj1 = 0 ;
10995 PyObject * obj2 = 0 ;
10996 PyObject * obj3 = 0 ;
10997 char *kwnames[] = {
10998 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
10999 };
11000
11001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11004 arg2 = (int) SWIG_AsInt(obj1);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 arg3 = (int) SWIG_AsInt(obj2);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr,
11009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11010 {
11011 PyThreadState* __tstate = wxPyBeginAllowThreads();
11012 (arg1)->SetAttr(arg2,arg3,arg4);
11013
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 Py_INCREF(Py_None); resultobj = Py_None;
11018 return resultobj;
11019 fail:
11020 return NULL;
11021 }
11022
11023
11024 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11025 PyObject *resultobj;
11026 wxGrid *arg1 = (wxGrid *) 0 ;
11027 int arg2 ;
11028 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
11029 PyObject * obj0 = 0 ;
11030 PyObject * obj1 = 0 ;
11031 PyObject * obj2 = 0 ;
11032 char *kwnames[] = {
11033 (char *) "self",(char *) "row",(char *) "attr", NULL
11034 };
11035
11036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
11037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11039 arg2 = (int) SWIG_AsInt(obj1);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
11042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11043 {
11044 PyThreadState* __tstate = wxPyBeginAllowThreads();
11045 (arg1)->SetRowAttr(arg2,arg3);
11046
11047 wxPyEndAllowThreads(__tstate);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 Py_INCREF(Py_None); resultobj = Py_None;
11051 return resultobj;
11052 fail:
11053 return NULL;
11054 }
11055
11056
11057 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11058 PyObject *resultobj;
11059 wxGrid *arg1 = (wxGrid *) 0 ;
11060 int arg2 ;
11061 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 PyObject * obj2 = 0 ;
11065 char *kwnames[] = {
11066 (char *) "self",(char *) "col",(char *) "attr", NULL
11067 };
11068
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11072 arg2 = (int) SWIG_AsInt(obj1);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr,
11075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 (arg1)->SetColAttr(arg2,arg3);
11079
11080 wxPyEndAllowThreads(__tstate);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 }
11083 Py_INCREF(Py_None); resultobj = Py_None;
11084 return resultobj;
11085 fail:
11086 return NULL;
11087 }
11088
11089
11090 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj;
11092 wxGrid *arg1 = (wxGrid *) 0 ;
11093 int arg2 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 char *kwnames[] = {
11097 (char *) "self",(char *) "col", NULL
11098 };
11099
11100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail;
11101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11103 arg2 = (int) SWIG_AsInt(obj1);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 {
11106 PyThreadState* __tstate = wxPyBeginAllowThreads();
11107 (arg1)->SetColFormatBool(arg2);
11108
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 Py_INCREF(Py_None); resultobj = Py_None;
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj;
11121 wxGrid *arg1 = (wxGrid *) 0 ;
11122 int arg2 ;
11123 PyObject * obj0 = 0 ;
11124 PyObject * obj1 = 0 ;
11125 char *kwnames[] = {
11126 (char *) "self",(char *) "col", NULL
11127 };
11128
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail;
11130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11132 arg2 = (int) SWIG_AsInt(obj1);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 (arg1)->SetColFormatNumber(arg2);
11137
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 Py_INCREF(Py_None); resultobj = Py_None;
11142 return resultobj;
11143 fail:
11144 return NULL;
11145 }
11146
11147
11148 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
11149 PyObject *resultobj;
11150 wxGrid *arg1 = (wxGrid *) 0 ;
11151 int arg2 ;
11152 int arg3 = (int) -1 ;
11153 int arg4 = (int) -1 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 PyObject * obj2 = 0 ;
11157 PyObject * obj3 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11165 arg2 = (int) SWIG_AsInt(obj1);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 if (obj2) {
11168 arg3 = (int) SWIG_AsInt(obj2);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 if (obj3) {
11172 arg4 = (int) SWIG_AsInt(obj3);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
11178
11179 wxPyEndAllowThreads(__tstate);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 Py_INCREF(Py_None); resultobj = Py_None;
11183 return resultobj;
11184 fail:
11185 return NULL;
11186 }
11187
11188
11189 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
11190 PyObject *resultobj;
11191 wxGrid *arg1 = (wxGrid *) 0 ;
11192 int arg2 ;
11193 wxString *arg3 = 0 ;
11194 bool temp3 = False ;
11195 PyObject * obj0 = 0 ;
11196 PyObject * obj1 = 0 ;
11197 PyObject * obj2 = 0 ;
11198 char *kwnames[] = {
11199 (char *) "self",(char *) "col",(char *) "typeName", NULL
11200 };
11201
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail;
11203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11205 arg2 = (int) SWIG_AsInt(obj1);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 {
11208 arg3 = wxString_in_helper(obj2);
11209 if (arg3 == NULL) SWIG_fail;
11210 temp3 = True;
11211 }
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
11215
11216 wxPyEndAllowThreads(__tstate);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 }
11219 Py_INCREF(Py_None); resultobj = Py_None;
11220 {
11221 if (temp3)
11222 delete arg3;
11223 }
11224 return resultobj;
11225 fail:
11226 {
11227 if (temp3)
11228 delete arg3;
11229 }
11230 return NULL;
11231 }
11232
11233
11234 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj;
11236 wxGrid *arg1 = (wxGrid *) 0 ;
11237 bool arg2 = (bool) True ;
11238 PyObject * obj0 = 0 ;
11239 PyObject * obj1 = 0 ;
11240 char *kwnames[] = {
11241 (char *) "self",(char *) "enable", NULL
11242 };
11243
11244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
11245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11247 if (obj1) {
11248 arg2 = (bool) SWIG_AsBool(obj1);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 (arg1)->EnableGridLines(arg2);
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 Py_INCREF(Py_None); resultobj = Py_None;
11259 return resultobj;
11260 fail:
11261 return NULL;
11262 }
11263
11264
11265 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11266 PyObject *resultobj;
11267 wxGrid *arg1 = (wxGrid *) 0 ;
11268 bool result;
11269 PyObject * obj0 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 result = (bool)(arg1)->GridLinesEnabled();
11280
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj;
11293 wxGrid *arg1 = (wxGrid *) 0 ;
11294 int result;
11295 PyObject * obj0 = 0 ;
11296 char *kwnames[] = {
11297 (char *) "self", NULL
11298 };
11299
11300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
11301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (int)(arg1)->GetDefaultRowSize();
11306
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 resultobj = SWIG_FromInt((int)result);
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxGrid *arg1 = (wxGrid *) 0 ;
11320 int arg2 ;
11321 int result;
11322 PyObject * obj0 = 0 ;
11323 PyObject * obj1 = 0 ;
11324 char *kwnames[] = {
11325 (char *) "self",(char *) "row", NULL
11326 };
11327
11328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail;
11329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11331 arg2 = (int) SWIG_AsInt(obj1);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 {
11334 PyThreadState* __tstate = wxPyBeginAllowThreads();
11335 result = (int)(arg1)->GetRowSize(arg2);
11336
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 resultobj = SWIG_FromInt((int)result);
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11348 PyObject *resultobj;
11349 wxGrid *arg1 = (wxGrid *) 0 ;
11350 int result;
11351 PyObject * obj0 = 0 ;
11352 char *kwnames[] = {
11353 (char *) "self", NULL
11354 };
11355
11356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
11357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 result = (int)(arg1)->GetDefaultColSize();
11362
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 resultobj = SWIG_FromInt((int)result);
11367 return resultobj;
11368 fail:
11369 return NULL;
11370 }
11371
11372
11373 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj;
11375 wxGrid *arg1 = (wxGrid *) 0 ;
11376 int arg2 ;
11377 int result;
11378 PyObject * obj0 = 0 ;
11379 PyObject * obj1 = 0 ;
11380 char *kwnames[] = {
11381 (char *) "self",(char *) "col", NULL
11382 };
11383
11384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail;
11385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11387 arg2 = (int) SWIG_AsInt(obj1);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 result = (int)(arg1)->GetColSize(arg2);
11392
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 resultobj = SWIG_FromInt((int)result);
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11404 PyObject *resultobj;
11405 wxGrid *arg1 = (wxGrid *) 0 ;
11406 wxColour result;
11407 PyObject * obj0 = 0 ;
11408 char *kwnames[] = {
11409 (char *) "self", NULL
11410 };
11411
11412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
11413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (arg1)->GetDefaultCellBackgroundColour();
11418
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 {
11423 wxColour * resultptr;
11424 resultptr = new wxColour((wxColour &) result);
11425 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11426 }
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxGrid *arg1 = (wxGrid *) 0 ;
11436 int arg2 ;
11437 int arg3 ;
11438 wxColour result;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441 PyObject * obj2 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "row",(char *) "col", NULL
11444 };
11445
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11449 arg2 = (int) SWIG_AsInt(obj1);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 arg3 = (int) SWIG_AsInt(obj2);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 {
11461 wxColour * resultptr;
11462 resultptr = new wxColour((wxColour &) result);
11463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11464 }
11465 return resultobj;
11466 fail:
11467 return NULL;
11468 }
11469
11470
11471 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11472 PyObject *resultobj;
11473 wxGrid *arg1 = (wxGrid *) 0 ;
11474 wxColour result;
11475 PyObject * obj0 = 0 ;
11476 char *kwnames[] = {
11477 (char *) "self", NULL
11478 };
11479
11480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
11481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 result = (arg1)->GetDefaultCellTextColour();
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 {
11491 wxColour * resultptr;
11492 resultptr = new wxColour((wxColour &) result);
11493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11494 }
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj;
11503 wxGrid *arg1 = (wxGrid *) 0 ;
11504 int arg2 ;
11505 int arg3 ;
11506 wxColour result;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 char *kwnames[] = {
11511 (char *) "self",(char *) "row",(char *) "col", NULL
11512 };
11513
11514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11517 arg2 = (int) SWIG_AsInt(obj1);
11518 if (PyErr_Occurred()) SWIG_fail;
11519 arg3 = (int) SWIG_AsInt(obj2);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (arg1)->GetCellTextColour(arg2,arg3);
11524
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 {
11529 wxColour * resultptr;
11530 resultptr = new wxColour((wxColour &) result);
11531 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11532 }
11533 return resultobj;
11534 fail:
11535 return NULL;
11536 }
11537
11538
11539 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11540 PyObject *resultobj;
11541 wxGrid *arg1 = (wxGrid *) 0 ;
11542 wxFont result;
11543 PyObject * obj0 = 0 ;
11544 char *kwnames[] = {
11545 (char *) "self", NULL
11546 };
11547
11548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
11549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 result = (arg1)->GetDefaultCellFont();
11554
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 {
11559 wxFont * resultptr;
11560 resultptr = new wxFont((wxFont &) result);
11561 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
11562 }
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj;
11571 wxGrid *arg1 = (wxGrid *) 0 ;
11572 int arg2 ;
11573 int arg3 ;
11574 wxFont result;
11575 PyObject * obj0 = 0 ;
11576 PyObject * obj1 = 0 ;
11577 PyObject * obj2 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self",(char *) "row",(char *) "col", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11585 arg2 = (int) SWIG_AsInt(obj1);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 arg3 = (int) SWIG_AsInt(obj2);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 result = (arg1)->GetCellFont(arg2,arg3);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 {
11597 wxFont * resultptr;
11598 resultptr = new wxFont((wxFont &) result);
11599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
11600 }
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxGrid *arg1 = (wxGrid *) 0 ;
11610 int *arg2 = (int *) 0 ;
11611 int *arg3 = (int *) 0 ;
11612 int temp2 ;
11613 int temp3 ;
11614 PyObject * obj0 = 0 ;
11615 char *kwnames[] = {
11616 (char *) "self", NULL
11617 };
11618
11619 arg2 = &temp2;
11620 arg3 = &temp3;
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
11622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 (arg1)->GetDefaultCellAlignment(arg2,arg3);
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 Py_INCREF(Py_None); resultobj = Py_None;
11632 {
11633 PyObject *o = PyInt_FromLong((long) (*arg2));
11634 resultobj = t_output_helper(resultobj,o);
11635 }
11636 {
11637 PyObject *o = PyInt_FromLong((long) (*arg3));
11638 resultobj = t_output_helper(resultobj,o);
11639 }
11640 return resultobj;
11641 fail:
11642 return NULL;
11643 }
11644
11645
11646 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11647 PyObject *resultobj;
11648 wxGrid *arg1 = (wxGrid *) 0 ;
11649 int arg2 ;
11650 int arg3 ;
11651 int *arg4 = (int *) 0 ;
11652 int *arg5 = (int *) 0 ;
11653 int temp4 ;
11654 int temp5 ;
11655 PyObject * obj0 = 0 ;
11656 PyObject * obj1 = 0 ;
11657 PyObject * obj2 = 0 ;
11658 char *kwnames[] = {
11659 (char *) "self",(char *) "row",(char *) "col", NULL
11660 };
11661
11662 arg4 = &temp4;
11663 arg5 = &temp5;
11664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
11665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11667 arg2 = (int) SWIG_AsInt(obj1);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 arg3 = (int) SWIG_AsInt(obj2);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 Py_INCREF(Py_None); resultobj = Py_None;
11679 {
11680 PyObject *o = PyInt_FromLong((long) (*arg4));
11681 resultobj = t_output_helper(resultobj,o);
11682 }
11683 {
11684 PyObject *o = PyInt_FromLong((long) (*arg5));
11685 resultobj = t_output_helper(resultobj,o);
11686 }
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 wxGrid *arg1 = (wxGrid *) 0 ;
11696 bool result;
11697 PyObject * obj0 = 0 ;
11698 char *kwnames[] = {
11699 (char *) "self", NULL
11700 };
11701
11702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
11703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 result = (bool)(arg1)->GetDefaultCellOverflow();
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11713 return resultobj;
11714 fail:
11715 return NULL;
11716 }
11717
11718
11719 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11720 PyObject *resultobj;
11721 wxGrid *arg1 = (wxGrid *) 0 ;
11722 int arg2 ;
11723 int arg3 ;
11724 bool result;
11725 PyObject * obj0 = 0 ;
11726 PyObject * obj1 = 0 ;
11727 PyObject * obj2 = 0 ;
11728 char *kwnames[] = {
11729 (char *) "self",(char *) "row",(char *) "col", NULL
11730 };
11731
11732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail;
11733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11735 arg2 = (int) SWIG_AsInt(obj1);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 arg3 = (int) SWIG_AsInt(obj2);
11738 if (PyErr_Occurred()) SWIG_fail;
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
11742
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11747 return resultobj;
11748 fail:
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj;
11755 wxGrid *arg1 = (wxGrid *) 0 ;
11756 int arg2 ;
11757 int arg3 ;
11758 int *arg4 = (int *) 0 ;
11759 int *arg5 = (int *) 0 ;
11760 int temp4 ;
11761 int temp5 ;
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 arg4 = &temp4;
11770 arg5 = &temp5;
11771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11774 arg2 = (int) SWIG_AsInt(obj1);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 arg3 = (int) SWIG_AsInt(obj2);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 Py_INCREF(Py_None); resultobj = Py_None;
11786 {
11787 PyObject *o = PyInt_FromLong((long) (*arg4));
11788 resultobj = t_output_helper(resultobj,o);
11789 }
11790 {
11791 PyObject *o = PyInt_FromLong((long) (*arg5));
11792 resultobj = t_output_helper(resultobj,o);
11793 }
11794 return resultobj;
11795 fail:
11796 return NULL;
11797 }
11798
11799
11800 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11801 PyObject *resultobj;
11802 wxGrid *arg1 = (wxGrid *) 0 ;
11803 int arg2 ;
11804 bool arg3 = (bool) False ;
11805 PyObject * obj0 = 0 ;
11806 PyObject * obj1 = 0 ;
11807 PyObject * obj2 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11815 arg2 = (int) SWIG_AsInt(obj1);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 if (obj2) {
11818 arg3 = (bool) SWIG_AsBool(obj2);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 (arg1)->SetDefaultRowSize(arg2,arg3);
11824
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 Py_INCREF(Py_None); resultobj = Py_None;
11829 return resultobj;
11830 fail:
11831 return NULL;
11832 }
11833
11834
11835 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11836 PyObject *resultobj;
11837 wxGrid *arg1 = (wxGrid *) 0 ;
11838 int arg2 ;
11839 int arg3 ;
11840 PyObject * obj0 = 0 ;
11841 PyObject * obj1 = 0 ;
11842 PyObject * obj2 = 0 ;
11843 char *kwnames[] = {
11844 (char *) "self",(char *) "row",(char *) "height", NULL
11845 };
11846
11847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11850 arg2 = (int) SWIG_AsInt(obj1);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 arg3 = (int) SWIG_AsInt(obj2);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 (arg1)->SetRowSize(arg2,arg3);
11857
11858 wxPyEndAllowThreads(__tstate);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 Py_INCREF(Py_None); resultobj = Py_None;
11862 return resultobj;
11863 fail:
11864 return NULL;
11865 }
11866
11867
11868 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj;
11870 wxGrid *arg1 = (wxGrid *) 0 ;
11871 int arg2 ;
11872 bool arg3 = (bool) False ;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 PyObject * obj2 = 0 ;
11876 char *kwnames[] = {
11877 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
11878 };
11879
11880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11883 arg2 = (int) SWIG_AsInt(obj1);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 if (obj2) {
11886 arg3 = (bool) SWIG_AsBool(obj2);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 (arg1)->SetDefaultColSize(arg2,arg3);
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 Py_INCREF(Py_None); resultobj = Py_None;
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxGrid *arg1 = (wxGrid *) 0 ;
11906 int arg2 ;
11907 int arg3 ;
11908 PyObject * obj0 = 0 ;
11909 PyObject * obj1 = 0 ;
11910 PyObject * obj2 = 0 ;
11911 char *kwnames[] = {
11912 (char *) "self",(char *) "col",(char *) "width", NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11918 arg2 = (int) SWIG_AsInt(obj1);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 arg3 = (int) SWIG_AsInt(obj2);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->SetColSize(arg2,arg3);
11925
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 Py_INCREF(Py_None); resultobj = Py_None;
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj;
11938 wxGrid *arg1 = (wxGrid *) 0 ;
11939 int arg2 ;
11940 bool arg3 = (bool) True ;
11941 PyObject * obj0 = 0 ;
11942 PyObject * obj1 = 0 ;
11943 PyObject * obj2 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
11949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11951 arg2 = (int) SWIG_AsInt(obj1);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 if (obj2) {
11954 arg3 = (bool) SWIG_AsBool(obj2);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 {
11958 PyThreadState* __tstate = wxPyBeginAllowThreads();
11959 (arg1)->AutoSizeColumn(arg2,arg3);
11960
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 Py_INCREF(Py_None); resultobj = Py_None;
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj;
11973 wxGrid *arg1 = (wxGrid *) 0 ;
11974 int arg2 ;
11975 bool arg3 = (bool) True ;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 PyObject * obj2 = 0 ;
11979 char *kwnames[] = {
11980 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
11981 };
11982
11983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
11984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
11985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11986 arg2 = (int) SWIG_AsInt(obj1);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 if (obj2) {
11989 arg3 = (bool) SWIG_AsBool(obj2);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 (arg1)->AutoSizeRow(arg2,arg3);
11995
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 Py_INCREF(Py_None); resultobj = Py_None;
12000 return resultobj;
12001 fail:
12002 return NULL;
12003 }
12004
12005
12006 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
12007 PyObject *resultobj;
12008 wxGrid *arg1 = (wxGrid *) 0 ;
12009 bool arg2 = (bool) True ;
12010 PyObject * obj0 = 0 ;
12011 PyObject * obj1 = 0 ;
12012 char *kwnames[] = {
12013 (char *) "self",(char *) "setAsMin", NULL
12014 };
12015
12016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
12017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12019 if (obj1) {
12020 arg2 = (bool) SWIG_AsBool(obj1);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 (arg1)->AutoSizeColumns(arg2);
12026
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 Py_INCREF(Py_None); resultobj = Py_None;
12031 return resultobj;
12032 fail:
12033 return NULL;
12034 }
12035
12036
12037 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj;
12039 wxGrid *arg1 = (wxGrid *) 0 ;
12040 bool arg2 = (bool) True ;
12041 PyObject * obj0 = 0 ;
12042 PyObject * obj1 = 0 ;
12043 char *kwnames[] = {
12044 (char *) "self",(char *) "setAsMin", NULL
12045 };
12046
12047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
12048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12050 if (obj1) {
12051 arg2 = (bool) SWIG_AsBool(obj1);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 (arg1)->AutoSizeRows(arg2);
12057
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 Py_INCREF(Py_None); resultobj = Py_None;
12062 return resultobj;
12063 fail:
12064 return NULL;
12065 }
12066
12067
12068 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxGrid *arg1 = (wxGrid *) 0 ;
12071 PyObject * obj0 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->AutoSize();
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxGrid *arg1 = (wxGrid *) 0 ;
12096 int arg2 ;
12097 PyObject * obj0 = 0 ;
12098 PyObject * obj1 = 0 ;
12099 char *kwnames[] = {
12100 (char *) "self",(char *) "row", NULL
12101 };
12102
12103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
12104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12106 arg2 = (int) SWIG_AsInt(obj1);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 (arg1)->AutoSizeRowLabelSize(arg2);
12111
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 Py_INCREF(Py_None); resultobj = Py_None;
12116 return resultobj;
12117 fail:
12118 return NULL;
12119 }
12120
12121
12122 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12123 PyObject *resultobj;
12124 wxGrid *arg1 = (wxGrid *) 0 ;
12125 int arg2 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 char *kwnames[] = {
12129 (char *) "self",(char *) "col", NULL
12130 };
12131
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail;
12133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12135 arg2 = (int) SWIG_AsInt(obj1);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 (arg1)->AutoSizeColLabelSize(arg2);
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 Py_INCREF(Py_None); resultobj = Py_None;
12145 return resultobj;
12146 fail:
12147 return NULL;
12148 }
12149
12150
12151 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12152 PyObject *resultobj;
12153 wxGrid *arg1 = (wxGrid *) 0 ;
12154 int arg2 ;
12155 int arg3 ;
12156 PyObject * obj0 = 0 ;
12157 PyObject * obj1 = 0 ;
12158 PyObject * obj2 = 0 ;
12159 char *kwnames[] = {
12160 (char *) "self",(char *) "col",(char *) "width", NULL
12161 };
12162
12163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
12164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12166 arg2 = (int) SWIG_AsInt(obj1);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 arg3 = (int) SWIG_AsInt(obj2);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 (arg1)->SetColMinimalWidth(arg2,arg3);
12173
12174 wxPyEndAllowThreads(__tstate);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 Py_INCREF(Py_None); resultobj = Py_None;
12178 return resultobj;
12179 fail:
12180 return NULL;
12181 }
12182
12183
12184 static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12185 PyObject *resultobj;
12186 wxGrid *arg1 = (wxGrid *) 0 ;
12187 int arg2 ;
12188 int arg3 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 PyObject * obj2 = 0 ;
12192 char *kwnames[] = {
12193 (char *) "self",(char *) "row",(char *) "width", NULL
12194 };
12195
12196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail;
12197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12199 arg2 = (int) SWIG_AsInt(obj1);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 arg3 = (int) SWIG_AsInt(obj2);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 {
12204 PyThreadState* __tstate = wxPyBeginAllowThreads();
12205 (arg1)->SetRowMinimalHeight(arg2,arg3);
12206
12207 wxPyEndAllowThreads(__tstate);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 Py_INCREF(Py_None); resultobj = Py_None;
12211 return resultobj;
12212 fail:
12213 return NULL;
12214 }
12215
12216
12217 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12218 PyObject *resultobj;
12219 wxGrid *arg1 = (wxGrid *) 0 ;
12220 int arg2 ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 char *kwnames[] = {
12224 (char *) "self",(char *) "width", NULL
12225 };
12226
12227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail;
12228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12230 arg2 = (int) SWIG_AsInt(obj1);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 (arg1)->SetColMinimalAcceptableWidth(arg2);
12235
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 Py_INCREF(Py_None); resultobj = Py_None;
12240 return resultobj;
12241 fail:
12242 return NULL;
12243 }
12244
12245
12246 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12247 PyObject *resultobj;
12248 wxGrid *arg1 = (wxGrid *) 0 ;
12249 int arg2 ;
12250 PyObject * obj0 = 0 ;
12251 PyObject * obj1 = 0 ;
12252 char *kwnames[] = {
12253 (char *) "self",(char *) "width", NULL
12254 };
12255
12256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail;
12257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12259 arg2 = (int) SWIG_AsInt(obj1);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 (arg1)->SetRowMinimalAcceptableHeight(arg2);
12264
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 Py_INCREF(Py_None); resultobj = Py_None;
12269 return resultobj;
12270 fail:
12271 return NULL;
12272 }
12273
12274
12275 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12276 PyObject *resultobj;
12277 wxGrid *arg1 = (wxGrid *) 0 ;
12278 int result;
12279 PyObject * obj0 = 0 ;
12280 char *kwnames[] = {
12281 (char *) "self", NULL
12282 };
12283
12284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
12285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
12290
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 resultobj = SWIG_FromInt((int)result);
12295 return resultobj;
12296 fail:
12297 return NULL;
12298 }
12299
12300
12301 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12302 PyObject *resultobj;
12303 wxGrid *arg1 = (wxGrid *) 0 ;
12304 int result;
12305 PyObject * obj0 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
12316
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 resultobj = SWIG_FromInt((int)result);
12321 return resultobj;
12322 fail:
12323 return NULL;
12324 }
12325
12326
12327 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12328 PyObject *resultobj;
12329 wxGrid *arg1 = (wxGrid *) 0 ;
12330 wxColour *arg2 = 0 ;
12331 wxColour temp2 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self","arg2", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
12339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12341 {
12342 arg2 = &temp2;
12343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12344 }
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 Py_INCREF(Py_None); resultobj = Py_None;
12353 return resultobj;
12354 fail:
12355 return NULL;
12356 }
12357
12358
12359 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj;
12361 wxGrid *arg1 = (wxGrid *) 0 ;
12362 int arg2 ;
12363 int arg3 ;
12364 wxColour *arg4 = 0 ;
12365 wxColour temp4 ;
12366 PyObject * obj0 = 0 ;
12367 PyObject * obj1 = 0 ;
12368 PyObject * obj2 = 0 ;
12369 PyObject * obj3 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12377 arg2 = (int) SWIG_AsInt(obj1);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 arg3 = (int) SWIG_AsInt(obj2);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 {
12382 arg4 = &temp4;
12383 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12384 }
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 Py_INCREF(Py_None); resultobj = Py_None;
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxGrid *arg1 = (wxGrid *) 0 ;
12402 wxColour *arg2 = 0 ;
12403 wxColour temp2 ;
12404 PyObject * obj0 = 0 ;
12405 PyObject * obj1 = 0 ;
12406 char *kwnames[] = {
12407 (char *) "self","arg2", NULL
12408 };
12409
12410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
12411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12413 {
12414 arg2 = &temp2;
12415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12416 }
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
12420
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 Py_INCREF(Py_None); resultobj = Py_None;
12425 return resultobj;
12426 fail:
12427 return NULL;
12428 }
12429
12430
12431 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12432 PyObject *resultobj;
12433 wxGrid *arg1 = (wxGrid *) 0 ;
12434 int arg2 ;
12435 int arg3 ;
12436 wxColour *arg4 = 0 ;
12437 wxColour temp4 ;
12438 PyObject * obj0 = 0 ;
12439 PyObject * obj1 = 0 ;
12440 PyObject * obj2 = 0 ;
12441 PyObject * obj3 = 0 ;
12442 char *kwnames[] = {
12443 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12444 };
12445
12446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12449 arg2 = (int) SWIG_AsInt(obj1);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 arg3 = (int) SWIG_AsInt(obj2);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 {
12454 arg4 = &temp4;
12455 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12456 }
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
12460
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 Py_INCREF(Py_None); resultobj = Py_None;
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj;
12473 wxGrid *arg1 = (wxGrid *) 0 ;
12474 wxFont *arg2 = 0 ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char *kwnames[] = {
12478 (char *) "self","arg2", NULL
12479 };
12480
12481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
12482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12485 SWIG_POINTER_EXCEPTION | 0)) == -1)
12486 SWIG_fail;
12487 if (arg2 == NULL) {
12488 PyErr_SetString(PyExc_TypeError,"null reference");
12489 SWIG_fail;
12490 }
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 (arg1)->SetDefaultCellFont((wxFont const &)*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_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj;
12507 wxGrid *arg1 = (wxGrid *) 0 ;
12508 int arg2 ;
12509 int arg3 ;
12510 wxFont *arg4 = 0 ;
12511 PyObject * obj0 = 0 ;
12512 PyObject * obj1 = 0 ;
12513 PyObject * obj2 = 0 ;
12514 PyObject * obj3 = 0 ;
12515 char *kwnames[] = {
12516 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12517 };
12518
12519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12522 arg2 = (int) SWIG_AsInt(obj1);
12523 if (PyErr_Occurred()) SWIG_fail;
12524 arg3 = (int) SWIG_AsInt(obj2);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont,
12527 SWIG_POINTER_EXCEPTION | 0)) == -1)
12528 SWIG_fail;
12529 if (arg4 == NULL) {
12530 PyErr_SetString(PyExc_TypeError,"null reference");
12531 SWIG_fail;
12532 }
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 Py_INCREF(Py_None); resultobj = Py_None;
12541 return resultobj;
12542 fail:
12543 return NULL;
12544 }
12545
12546
12547 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj;
12549 wxGrid *arg1 = (wxGrid *) 0 ;
12550 int arg2 ;
12551 int arg3 ;
12552 PyObject * obj0 = 0 ;
12553 PyObject * obj1 = 0 ;
12554 PyObject * obj2 = 0 ;
12555 char *kwnames[] = {
12556 (char *) "self",(char *) "horiz",(char *) "vert", NULL
12557 };
12558
12559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
12560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12562 arg2 = (int) SWIG_AsInt(obj1);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 arg3 = (int) SWIG_AsInt(obj2);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 {
12567 PyThreadState* __tstate = wxPyBeginAllowThreads();
12568 (arg1)->SetDefaultCellAlignment(arg2,arg3);
12569
12570 wxPyEndAllowThreads(__tstate);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
12573 Py_INCREF(Py_None); resultobj = Py_None;
12574 return resultobj;
12575 fail:
12576 return NULL;
12577 }
12578
12579
12580 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj;
12582 wxGrid *arg1 = (wxGrid *) 0 ;
12583 int arg2 ;
12584 int arg3 ;
12585 int arg4 ;
12586 int arg5 ;
12587 PyObject * obj0 = 0 ;
12588 PyObject * obj1 = 0 ;
12589 PyObject * obj2 = 0 ;
12590 PyObject * obj3 = 0 ;
12591 PyObject * obj4 = 0 ;
12592 char *kwnames[] = {
12593 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
12594 };
12595
12596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12599 arg2 = (int) SWIG_AsInt(obj1);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 arg3 = (int) SWIG_AsInt(obj2);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 arg4 = (int) SWIG_AsInt(obj3);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 arg5 = (int) SWIG_AsInt(obj4);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
12610
12611 wxPyEndAllowThreads(__tstate);
12612 if (PyErr_Occurred()) SWIG_fail;
12613 }
12614 Py_INCREF(Py_None); resultobj = Py_None;
12615 return resultobj;
12616 fail:
12617 return NULL;
12618 }
12619
12620
12621 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj;
12623 wxGrid *arg1 = (wxGrid *) 0 ;
12624 bool arg2 ;
12625 PyObject * obj0 = 0 ;
12626 PyObject * obj1 = 0 ;
12627 char *kwnames[] = {
12628 (char *) "self",(char *) "allow", NULL
12629 };
12630
12631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
12632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12634 arg2 = (bool) SWIG_AsBool(obj1);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 (arg1)->SetDefaultCellOverflow(arg2);
12639
12640 wxPyEndAllowThreads(__tstate);
12641 if (PyErr_Occurred()) SWIG_fail;
12642 }
12643 Py_INCREF(Py_None); resultobj = Py_None;
12644 return resultobj;
12645 fail:
12646 return NULL;
12647 }
12648
12649
12650 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxGrid *arg1 = (wxGrid *) 0 ;
12653 int arg2 ;
12654 int arg3 ;
12655 bool arg4 ;
12656 PyObject * obj0 = 0 ;
12657 PyObject * obj1 = 0 ;
12658 PyObject * obj2 = 0 ;
12659 PyObject * obj3 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12667 arg2 = (int) SWIG_AsInt(obj1);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 arg3 = (int) SWIG_AsInt(obj2);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 arg4 = (bool) SWIG_AsBool(obj3);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->SetCellOverflow(arg2,arg3,arg4);
12676
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 Py_INCREF(Py_None); resultobj = Py_None;
12681 return resultobj;
12682 fail:
12683 return NULL;
12684 }
12685
12686
12687 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj;
12689 wxGrid *arg1 = (wxGrid *) 0 ;
12690 int arg2 ;
12691 int arg3 ;
12692 int arg4 ;
12693 int arg5 ;
12694 PyObject * obj0 = 0 ;
12695 PyObject * obj1 = 0 ;
12696 PyObject * obj2 = 0 ;
12697 PyObject * obj3 = 0 ;
12698 PyObject * obj4 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12706 arg2 = (int) SWIG_AsInt(obj1);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 arg3 = (int) SWIG_AsInt(obj2);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 arg4 = (int) SWIG_AsInt(obj3);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 arg5 = (int) SWIG_AsInt(obj4);
12713 if (PyErr_Occurred()) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12729 PyObject *resultobj;
12730 wxGrid *arg1 = (wxGrid *) 0 ;
12731 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
12732 PyObject * obj0 = 0 ;
12733 PyObject * obj1 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self",(char *) "renderer", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer,
12742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 (arg1)->SetDefaultRenderer(arg2);
12746
12747 wxPyEndAllowThreads(__tstate);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 Py_INCREF(Py_None); resultobj = Py_None;
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj;
12759 wxGrid *arg1 = (wxGrid *) 0 ;
12760 int arg2 ;
12761 int arg3 ;
12762 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
12763 PyObject * obj0 = 0 ;
12764 PyObject * obj1 = 0 ;
12765 PyObject * obj2 = 0 ;
12766 PyObject * obj3 = 0 ;
12767 char *kwnames[] = {
12768 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
12769 };
12770
12771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12774 arg2 = (int) SWIG_AsInt(obj1);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 arg3 = (int) SWIG_AsInt(obj2);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer,
12779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12780 {
12781 PyThreadState* __tstate = wxPyBeginAllowThreads();
12782 (arg1)->SetCellRenderer(arg2,arg3,arg4);
12783
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 Py_INCREF(Py_None); resultobj = Py_None;
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj;
12796 wxGrid *arg1 = (wxGrid *) 0 ;
12797 wxGridCellRenderer *result;
12798 PyObject * obj0 = 0 ;
12799 char *kwnames[] = {
12800 (char *) "self", NULL
12801 };
12802
12803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
12804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
12809
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 {
12814 resultobj = wxPyMake_wxGridCellRenderer(result);
12815 }
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12823 PyObject *resultobj;
12824 wxGrid *arg1 = (wxGrid *) 0 ;
12825 int arg2 ;
12826 int arg3 ;
12827 wxGridCellRenderer *result;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 PyObject * obj2 = 0 ;
12831 char *kwnames[] = {
12832 (char *) "self",(char *) "row",(char *) "col", NULL
12833 };
12834
12835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail;
12836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12838 arg2 = (int) SWIG_AsInt(obj1);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 arg3 = (int) SWIG_AsInt(obj2);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
12845
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850 resultobj = wxPyMake_wxGridCellRenderer(result);
12851 }
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj;
12860 wxGrid *arg1 = (wxGrid *) 0 ;
12861 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
12862 PyObject * obj0 = 0 ;
12863 PyObject * obj1 = 0 ;
12864 char *kwnames[] = {
12865 (char *) "self",(char *) "editor", NULL
12866 };
12867
12868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
12869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor,
12872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 (arg1)->SetDefaultEditor(arg2);
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 Py_INCREF(Py_None); resultobj = Py_None;
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj;
12889 wxGrid *arg1 = (wxGrid *) 0 ;
12890 int arg2 ;
12891 int arg3 ;
12892 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
12893 PyObject * obj0 = 0 ;
12894 PyObject * obj1 = 0 ;
12895 PyObject * obj2 = 0 ;
12896 PyObject * obj3 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12904 arg2 = (int) SWIG_AsInt(obj1);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 arg3 = (int) SWIG_AsInt(obj2);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor,
12909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 (arg1)->SetCellEditor(arg2,arg3,arg4);
12913
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 Py_INCREF(Py_None); resultobj = Py_None;
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj;
12926 wxGrid *arg1 = (wxGrid *) 0 ;
12927 wxGridCellEditor *result;
12928 PyObject * obj0 = 0 ;
12929 char *kwnames[] = {
12930 (char *) "self", NULL
12931 };
12932
12933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
12934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 {
12944 resultobj = wxPyMake_wxGridCellEditor(result);
12945 }
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12953 PyObject *resultobj;
12954 wxGrid *arg1 = (wxGrid *) 0 ;
12955 int arg2 ;
12956 int arg3 ;
12957 wxGridCellEditor *result;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960 PyObject * obj2 = 0 ;
12961 char *kwnames[] = {
12962 (char *) "self",(char *) "row",(char *) "col", NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12968 arg2 = (int) SWIG_AsInt(obj1);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 arg3 = (int) SWIG_AsInt(obj2);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
12975
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = wxPyMake_wxGridCellEditor(result);
12981 }
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj;
12990 wxGrid *arg1 = (wxGrid *) 0 ;
12991 int arg2 ;
12992 int arg3 ;
12993 wxString result;
12994 PyObject * obj0 = 0 ;
12995 PyObject * obj1 = 0 ;
12996 PyObject * obj2 = 0 ;
12997 char *kwnames[] = {
12998 (char *) "self",(char *) "row",(char *) "col", NULL
12999 };
13000
13001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
13002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13004 arg2 = (int) SWIG_AsInt(obj1);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 arg3 = (int) SWIG_AsInt(obj2);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (arg1)->GetCellValue(arg2,arg3);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 {
13016 #if wxUSE_UNICODE
13017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13018 #else
13019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13020 #endif
13021 }
13022 return resultobj;
13023 fail:
13024 return NULL;
13025 }
13026
13027
13028 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj;
13030 wxGrid *arg1 = (wxGrid *) 0 ;
13031 int arg2 ;
13032 int arg3 ;
13033 wxString *arg4 = 0 ;
13034 bool temp4 = False ;
13035 PyObject * obj0 = 0 ;
13036 PyObject * obj1 = 0 ;
13037 PyObject * obj2 = 0 ;
13038 PyObject * obj3 = 0 ;
13039 char *kwnames[] = {
13040 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
13041 };
13042
13043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13046 arg2 = (int) SWIG_AsInt(obj1);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 arg3 = (int) SWIG_AsInt(obj2);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 {
13051 arg4 = wxString_in_helper(obj3);
13052 if (arg4 == NULL) SWIG_fail;
13053 temp4 = True;
13054 }
13055 {
13056 PyThreadState* __tstate = wxPyBeginAllowThreads();
13057 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
13058
13059 wxPyEndAllowThreads(__tstate);
13060 if (PyErr_Occurred()) SWIG_fail;
13061 }
13062 Py_INCREF(Py_None); resultobj = Py_None;
13063 {
13064 if (temp4)
13065 delete arg4;
13066 }
13067 return resultobj;
13068 fail:
13069 {
13070 if (temp4)
13071 delete arg4;
13072 }
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxGrid *arg1 = (wxGrid *) 0 ;
13080 int arg2 ;
13081 int arg3 ;
13082 bool result;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 PyObject * obj2 = 0 ;
13086 char *kwnames[] = {
13087 (char *) "self",(char *) "row",(char *) "col", NULL
13088 };
13089
13090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail;
13091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13093 arg2 = (int) SWIG_AsInt(obj1);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 arg3 = (int) SWIG_AsInt(obj2);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxGrid *arg1 = (wxGrid *) 0 ;
13114 int arg2 ;
13115 int arg3 ;
13116 bool arg4 = (bool) True ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 PyObject * obj2 = 0 ;
13120 PyObject * obj3 = 0 ;
13121 char *kwnames[] = {
13122 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
13123 };
13124
13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13128 arg2 = (int) SWIG_AsInt(obj1);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 arg3 = (int) SWIG_AsInt(obj2);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 if (obj3) {
13133 arg4 = (bool) SWIG_AsBool(obj3);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->SetReadOnly(arg2,arg3,arg4);
13139
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 Py_INCREF(Py_None); resultobj = Py_None;
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj;
13152 wxGrid *arg1 = (wxGrid *) 0 ;
13153 int arg2 ;
13154 bool arg3 = (bool) False ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 PyObject * obj2 = 0 ;
13158 char *kwnames[] = {
13159 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
13160 };
13161
13162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
13163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13165 arg2 = (int) SWIG_AsInt(obj1);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 if (obj2) {
13168 arg3 = (bool) SWIG_AsBool(obj2);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 (arg1)->SelectRow(arg2,arg3);
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 Py_INCREF(Py_None); resultobj = Py_None;
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj;
13187 wxGrid *arg1 = (wxGrid *) 0 ;
13188 int arg2 ;
13189 bool arg3 = (bool) False ;
13190 PyObject * obj0 = 0 ;
13191 PyObject * obj1 = 0 ;
13192 PyObject * obj2 = 0 ;
13193 char *kwnames[] = {
13194 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
13195 };
13196
13197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
13198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13200 arg2 = (int) SWIG_AsInt(obj1);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 if (obj2) {
13203 arg3 = (bool) SWIG_AsBool(obj2);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 (arg1)->SelectCol(arg2,arg3);
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 Py_INCREF(Py_None); resultobj = Py_None;
13214 return resultobj;
13215 fail:
13216 return NULL;
13217 }
13218
13219
13220 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
13221 PyObject *resultobj;
13222 wxGrid *arg1 = (wxGrid *) 0 ;
13223 int arg2 ;
13224 int arg3 ;
13225 int arg4 ;
13226 int arg5 ;
13227 bool arg6 = (bool) False ;
13228 PyObject * obj0 = 0 ;
13229 PyObject * obj1 = 0 ;
13230 PyObject * obj2 = 0 ;
13231 PyObject * obj3 = 0 ;
13232 PyObject * obj4 = 0 ;
13233 PyObject * obj5 = 0 ;
13234 char *kwnames[] = {
13235 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
13236 };
13237
13238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13241 arg2 = (int) SWIG_AsInt(obj1);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 arg3 = (int) SWIG_AsInt(obj2);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 arg4 = (int) SWIG_AsInt(obj3);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 arg5 = (int) SWIG_AsInt(obj4);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 if (obj5) {
13250 arg6 = (bool) SWIG_AsBool(obj5);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
13256
13257 wxPyEndAllowThreads(__tstate);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 Py_INCREF(Py_None); resultobj = Py_None;
13261 return resultobj;
13262 fail:
13263 return NULL;
13264 }
13265
13266
13267 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
13268 PyObject *resultobj;
13269 wxGrid *arg1 = (wxGrid *) 0 ;
13270 PyObject * obj0 = 0 ;
13271 char *kwnames[] = {
13272 (char *) "self", NULL
13273 };
13274
13275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
13276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13278 {
13279 PyThreadState* __tstate = wxPyBeginAllowThreads();
13280 (arg1)->SelectAll();
13281
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 Py_INCREF(Py_None); resultobj = Py_None;
13286 return resultobj;
13287 fail:
13288 return NULL;
13289 }
13290
13291
13292 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13293 PyObject *resultobj;
13294 wxGrid *arg1 = (wxGrid *) 0 ;
13295 bool result;
13296 PyObject * obj0 = 0 ;
13297 char *kwnames[] = {
13298 (char *) "self", NULL
13299 };
13300
13301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
13302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13304 {
13305 PyThreadState* __tstate = wxPyBeginAllowThreads();
13306 result = (bool)(arg1)->IsSelection();
13307
13308 wxPyEndAllowThreads(__tstate);
13309 if (PyErr_Occurred()) SWIG_fail;
13310 }
13311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13312 return resultobj;
13313 fail:
13314 return NULL;
13315 }
13316
13317
13318 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13319 PyObject *resultobj;
13320 wxGrid *arg1 = (wxGrid *) 0 ;
13321 PyObject * obj0 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self", NULL
13324 };
13325
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
13327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13329 {
13330 PyThreadState* __tstate = wxPyBeginAllowThreads();
13331 (arg1)->ClearSelection();
13332
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 Py_INCREF(Py_None); resultobj = Py_None;
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj;
13345 wxGrid *arg1 = (wxGrid *) 0 ;
13346 int arg2 ;
13347 int arg3 ;
13348 bool result;
13349 PyObject * obj0 = 0 ;
13350 PyObject * obj1 = 0 ;
13351 PyObject * obj2 = 0 ;
13352 char *kwnames[] = {
13353 (char *) "self",(char *) "row",(char *) "col", NULL
13354 };
13355
13356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13359 arg2 = (int) SWIG_AsInt(obj1);
13360 if (PyErr_Occurred()) SWIG_fail;
13361 arg3 = (int) SWIG_AsInt(obj2);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (bool)(arg1)->IsInSelection(arg2,arg3);
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj;
13379 wxGrid *arg1 = (wxGrid *) 0 ;
13380 wxGridCellCoordsArray result;
13381 PyObject * obj0 = 0 ;
13382 char *kwnames[] = {
13383 (char *) "self", NULL
13384 };
13385
13386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
13387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = ((wxGrid const *)arg1)->GetSelectedCells();
13392
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397 resultobj = wxGridCellCoordsArray_helper(result);
13398 }
13399 return resultobj;
13400 fail:
13401 return NULL;
13402 }
13403
13404
13405 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj;
13407 wxGrid *arg1 = (wxGrid *) 0 ;
13408 wxGridCellCoordsArray result;
13409 PyObject * obj0 = 0 ;
13410 char *kwnames[] = {
13411 (char *) "self", NULL
13412 };
13413
13414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
13415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
13420
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 {
13425 resultobj = wxGridCellCoordsArray_helper(result);
13426 }
13427 return resultobj;
13428 fail:
13429 return NULL;
13430 }
13431
13432
13433 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
13434 PyObject *resultobj;
13435 wxGrid *arg1 = (wxGrid *) 0 ;
13436 wxGridCellCoordsArray result;
13437 PyObject * obj0 = 0 ;
13438 char *kwnames[] = {
13439 (char *) "self", NULL
13440 };
13441
13442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
13443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
13448
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 {
13453 resultobj = wxGridCellCoordsArray_helper(result);
13454 }
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj;
13463 wxGrid *arg1 = (wxGrid *) 0 ;
13464 wxArrayInt result;
13465 PyObject * obj0 = 0 ;
13466 char *kwnames[] = {
13467 (char *) "self", NULL
13468 };
13469
13470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
13471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = ((wxGrid const *)arg1)->GetSelectedRows();
13476
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 {
13481 resultobj = PyList_New(0);
13482 size_t idx;
13483 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13484 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13485 PyList_Append(resultobj, val);
13486 Py_DECREF(val);
13487 }
13488 }
13489 return resultobj;
13490 fail:
13491 return NULL;
13492 }
13493
13494
13495 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 wxGrid *arg1 = (wxGrid *) 0 ;
13498 wxArrayInt result;
13499 PyObject * obj0 = 0 ;
13500 char *kwnames[] = {
13501 (char *) "self", NULL
13502 };
13503
13504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
13505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 result = ((wxGrid const *)arg1)->GetSelectedCols();
13510
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 {
13515 resultobj = PyList_New(0);
13516 size_t idx;
13517 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13518 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13519 PyList_Append(resultobj, val);
13520 Py_DECREF(val);
13521 }
13522 }
13523 return resultobj;
13524 fail:
13525 return NULL;
13526 }
13527
13528
13529 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13530 PyObject *resultobj;
13531 wxGrid *arg1 = (wxGrid *) 0 ;
13532 int arg2 ;
13533 PyObject * obj0 = 0 ;
13534 PyObject * obj1 = 0 ;
13535 char *kwnames[] = {
13536 (char *) "self",(char *) "row", NULL
13537 };
13538
13539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail;
13540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13542 arg2 = (int) SWIG_AsInt(obj1);
13543 if (PyErr_Occurred()) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 (arg1)->DeselectRow(arg2);
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 Py_INCREF(Py_None); resultobj = Py_None;
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxGrid *arg1 = (wxGrid *) 0 ;
13561 int arg2 ;
13562 PyObject * obj0 = 0 ;
13563 PyObject * obj1 = 0 ;
13564 char *kwnames[] = {
13565 (char *) "self",(char *) "col", NULL
13566 };
13567
13568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail;
13569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13571 arg2 = (int) SWIG_AsInt(obj1);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 (arg1)->DeselectCol(arg2);
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 Py_INCREF(Py_None); resultobj = Py_None;
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj;
13589 wxGrid *arg1 = (wxGrid *) 0 ;
13590 int arg2 ;
13591 int arg3 ;
13592 PyObject * obj0 = 0 ;
13593 PyObject * obj1 = 0 ;
13594 PyObject * obj2 = 0 ;
13595 char *kwnames[] = {
13596 (char *) "self",(char *) "row",(char *) "col", NULL
13597 };
13598
13599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13602 arg2 = (int) SWIG_AsInt(obj1);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 arg3 = (int) SWIG_AsInt(obj2);
13605 if (PyErr_Occurred()) SWIG_fail;
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 (arg1)->DeselectCell(arg2,arg3);
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 Py_INCREF(Py_None); resultobj = Py_None;
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxGrid *arg1 = (wxGrid *) 0 ;
13623 wxGridCellCoords *arg2 = 0 ;
13624 wxGridCellCoords *arg3 = 0 ;
13625 wxRect result;
13626 wxGridCellCoords temp2 ;
13627 wxGridCellCoords temp3 ;
13628 PyObject * obj0 = 0 ;
13629 PyObject * obj1 = 0 ;
13630 PyObject * obj2 = 0 ;
13631 char *kwnames[] = {
13632 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
13633 };
13634
13635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13638 {
13639 arg2 = &temp2;
13640 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
13641 }
13642 {
13643 arg3 = &temp3;
13644 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
13645 }
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
13649
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 {
13654 wxRect * resultptr;
13655 resultptr = new wxRect((wxRect &) result);
13656 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13657 }
13658 return resultobj;
13659 fail:
13660 return NULL;
13661 }
13662
13663
13664 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13665 PyObject *resultobj;
13666 wxGrid *arg1 = (wxGrid *) 0 ;
13667 wxColour result;
13668 PyObject * obj0 = 0 ;
13669 char *kwnames[] = {
13670 (char *) "self", NULL
13671 };
13672
13673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
13674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13676 {
13677 PyThreadState* __tstate = wxPyBeginAllowThreads();
13678 result = ((wxGrid const *)arg1)->GetSelectionBackground();
13679
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 {
13684 wxColour * resultptr;
13685 resultptr = new wxColour((wxColour &) result);
13686 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13687 }
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13695 PyObject *resultobj;
13696 wxGrid *arg1 = (wxGrid *) 0 ;
13697 wxColour result;
13698 PyObject * obj0 = 0 ;
13699 char *kwnames[] = {
13700 (char *) "self", NULL
13701 };
13702
13703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
13704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13706 {
13707 PyThreadState* __tstate = wxPyBeginAllowThreads();
13708 result = ((wxGrid const *)arg1)->GetSelectionForeground();
13709
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 {
13714 wxColour * resultptr;
13715 resultptr = new wxColour((wxColour &) result);
13716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13717 }
13718 return resultobj;
13719 fail:
13720 return NULL;
13721 }
13722
13723
13724 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13725 PyObject *resultobj;
13726 wxGrid *arg1 = (wxGrid *) 0 ;
13727 wxColour *arg2 = 0 ;
13728 wxColour temp2 ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self",(char *) "c", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13738 {
13739 arg2 = &temp2;
13740 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13741 }
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
13745
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 Py_INCREF(Py_None); resultobj = Py_None;
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj;
13758 wxGrid *arg1 = (wxGrid *) 0 ;
13759 wxColour *arg2 = 0 ;
13760 wxColour temp2 ;
13761 PyObject * obj0 = 0 ;
13762 PyObject * obj1 = 0 ;
13763 char *kwnames[] = {
13764 (char *) "self",(char *) "c", NULL
13765 };
13766
13767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
13768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13770 {
13771 arg2 = &temp2;
13772 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13773 }
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
13777
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 Py_INCREF(Py_None); resultobj = Py_None;
13782 return resultobj;
13783 fail:
13784 return NULL;
13785 }
13786
13787
13788 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj;
13790 wxGrid *arg1 = (wxGrid *) 0 ;
13791 wxString *arg2 = 0 ;
13792 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
13793 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
13794 bool temp2 = False ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 PyObject * obj2 = 0 ;
13798 PyObject * obj3 = 0 ;
13799 char *kwnames[] = {
13800 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
13801 };
13802
13803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13806 {
13807 arg2 = wxString_in_helper(obj1);
13808 if (arg2 == NULL) SWIG_fail;
13809 temp2 = True;
13810 }
13811 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer,
13812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13813 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor,
13814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13815 {
13816 PyThreadState* __tstate = wxPyBeginAllowThreads();
13817 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
13818
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 Py_INCREF(Py_None); resultobj = Py_None;
13823 {
13824 if (temp2)
13825 delete arg2;
13826 }
13827 return resultobj;
13828 fail:
13829 {
13830 if (temp2)
13831 delete arg2;
13832 }
13833 return NULL;
13834 }
13835
13836
13837 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj;
13839 wxGrid *arg1 = (wxGrid *) 0 ;
13840 int arg2 ;
13841 int arg3 ;
13842 wxGridCellEditor *result;
13843 PyObject * obj0 = 0 ;
13844 PyObject * obj1 = 0 ;
13845 PyObject * obj2 = 0 ;
13846 char *kwnames[] = {
13847 (char *) "self",(char *) "row",(char *) "col", NULL
13848 };
13849
13850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13853 arg2 = (int) SWIG_AsInt(obj1);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 arg3 = (int) SWIG_AsInt(obj2);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 {
13865 resultobj = wxPyMake_wxGridCellEditor(result);
13866 }
13867 return resultobj;
13868 fail:
13869 return NULL;
13870 }
13871
13872
13873 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13874 PyObject *resultobj;
13875 wxGrid *arg1 = (wxGrid *) 0 ;
13876 int arg2 ;
13877 int arg3 ;
13878 wxGridCellRenderer *result;
13879 PyObject * obj0 = 0 ;
13880 PyObject * obj1 = 0 ;
13881 PyObject * obj2 = 0 ;
13882 char *kwnames[] = {
13883 (char *) "self",(char *) "row",(char *) "col", NULL
13884 };
13885
13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13889 arg2 = (int) SWIG_AsInt(obj1);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 arg3 = (int) SWIG_AsInt(obj2);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
13896
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 {
13901 resultobj = wxPyMake_wxGridCellRenderer(result);
13902 }
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj;
13911 wxGrid *arg1 = (wxGrid *) 0 ;
13912 wxString *arg2 = 0 ;
13913 wxGridCellEditor *result;
13914 bool temp2 = False ;
13915 PyObject * obj0 = 0 ;
13916 PyObject * obj1 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self",(char *) "typeName", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13924 {
13925 arg2 = wxString_in_helper(obj1);
13926 if (arg2 == NULL) SWIG_fail;
13927 temp2 = True;
13928 }
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 {
13937 resultobj = wxPyMake_wxGridCellEditor(result);
13938 }
13939 {
13940 if (temp2)
13941 delete arg2;
13942 }
13943 return resultobj;
13944 fail:
13945 {
13946 if (temp2)
13947 delete arg2;
13948 }
13949 return NULL;
13950 }
13951
13952
13953 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
13954 PyObject *resultobj;
13955 wxGrid *arg1 = (wxGrid *) 0 ;
13956 wxString *arg2 = 0 ;
13957 wxGridCellRenderer *result;
13958 bool temp2 = False ;
13959 PyObject * obj0 = 0 ;
13960 PyObject * obj1 = 0 ;
13961 char *kwnames[] = {
13962 (char *) "self",(char *) "typeName", NULL
13963 };
13964
13965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
13966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
13967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13968 {
13969 arg2 = wxString_in_helper(obj1);
13970 if (arg2 == NULL) SWIG_fail;
13971 temp2 = True;
13972 }
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
13976
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 {
13981 resultobj = wxPyMake_wxGridCellRenderer(result);
13982 }
13983 {
13984 if (temp2)
13985 delete arg2;
13986 }
13987 return resultobj;
13988 fail:
13989 {
13990 if (temp2)
13991 delete arg2;
13992 }
13993 return NULL;
13994 }
13995
13996
13997 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
13998 PyObject *resultobj;
13999 wxGrid *arg1 = (wxGrid *) 0 ;
14000 int arg2 ;
14001 int arg3 ;
14002 PyObject * obj0 = 0 ;
14003 PyObject * obj1 = 0 ;
14004 PyObject * obj2 = 0 ;
14005 char *kwnames[] = {
14006 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
14007 };
14008
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14012 arg2 = (int) SWIG_AsInt(obj1);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 arg3 = (int) SWIG_AsInt(obj2);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 (arg1)->SetMargins(arg2,arg3);
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 Py_INCREF(Py_None); resultobj = Py_None;
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxGrid *arg1 = (wxGrid *) 0 ;
14033 wxWindow *result;
14034 PyObject * obj0 = 0 ;
14035 char *kwnames[] = {
14036 (char *) "self", NULL
14037 };
14038
14039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
14040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 result = (wxWindow *)(arg1)->GetGridWindow();
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 {
14050 resultobj = wxPyMake_wxObject(result);
14051 }
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj;
14060 wxGrid *arg1 = (wxGrid *) 0 ;
14061 wxWindow *result;
14062 PyObject * obj0 = 0 ;
14063 char *kwnames[] = {
14064 (char *) "self", NULL
14065 };
14066
14067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
14068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 {
14078 resultobj = wxPyMake_wxObject(result);
14079 }
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14087 PyObject *resultobj;
14088 wxGrid *arg1 = (wxGrid *) 0 ;
14089 wxWindow *result;
14090 PyObject * obj0 = 0 ;
14091 char *kwnames[] = {
14092 (char *) "self", NULL
14093 };
14094
14095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
14096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14098 {
14099 PyThreadState* __tstate = wxPyBeginAllowThreads();
14100 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
14101
14102 wxPyEndAllowThreads(__tstate);
14103 if (PyErr_Occurred()) SWIG_fail;
14104 }
14105 {
14106 resultobj = wxPyMake_wxObject(result);
14107 }
14108 return resultobj;
14109 fail:
14110 return NULL;
14111 }
14112
14113
14114 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14115 PyObject *resultobj;
14116 wxGrid *arg1 = (wxGrid *) 0 ;
14117 wxWindow *result;
14118 PyObject * obj0 = 0 ;
14119 char *kwnames[] = {
14120 (char *) "self", NULL
14121 };
14122
14123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
14124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid,
14125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
14129
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 {
14134 resultobj = wxPyMake_wxObject(result);
14135 }
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
14143 PyObject *obj;
14144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14145 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
14146 Py_INCREF(obj);
14147 return Py_BuildValue((char *)"");
14148 }
14149 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14150 PyObject *resultobj;
14151 int arg1 ;
14152 wxEventType arg2 ;
14153 wxGrid *arg3 = (wxGrid *) 0 ;
14154 int arg4 = (int) -1 ;
14155 int arg5 = (int) -1 ;
14156 int arg6 = (int) -1 ;
14157 int arg7 = (int) -1 ;
14158 bool arg8 = (bool) True ;
14159 bool arg9 = (bool) False ;
14160 bool arg10 = (bool) False ;
14161 bool arg11 = (bool) False ;
14162 bool arg12 = (bool) False ;
14163 wxGridEvent *result;
14164 PyObject * obj0 = 0 ;
14165 PyObject * obj1 = 0 ;
14166 PyObject * obj2 = 0 ;
14167 PyObject * obj3 = 0 ;
14168 PyObject * obj4 = 0 ;
14169 PyObject * obj5 = 0 ;
14170 PyObject * obj6 = 0 ;
14171 PyObject * obj7 = 0 ;
14172 PyObject * obj8 = 0 ;
14173 PyObject * obj9 = 0 ;
14174 PyObject * obj10 = 0 ;
14175 PyObject * obj11 = 0 ;
14176 char *kwnames[] = {
14177 (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
14178 };
14179
14180 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;
14181 arg1 = (int) SWIG_AsInt(obj0);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 arg2 = (wxEventType) SWIG_AsInt(obj1);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
14186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14187 if (obj3) {
14188 arg4 = (int) SWIG_AsInt(obj3);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 if (obj4) {
14192 arg5 = (int) SWIG_AsInt(obj4);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 if (obj5) {
14196 arg6 = (int) SWIG_AsInt(obj5);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 if (obj6) {
14200 arg7 = (int) SWIG_AsInt(obj6);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 if (obj7) {
14204 arg8 = (bool) SWIG_AsBool(obj7);
14205 if (PyErr_Occurred()) SWIG_fail;
14206 }
14207 if (obj8) {
14208 arg9 = (bool) SWIG_AsBool(obj8);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 if (obj9) {
14212 arg10 = (bool) SWIG_AsBool(obj9);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 if (obj10) {
14216 arg11 = (bool) SWIG_AsBool(obj10);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 if (obj11) {
14220 arg12 = (bool) SWIG_AsBool(obj11);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1);
14231 return resultobj;
14232 fail:
14233 return NULL;
14234 }
14235
14236
14237 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14240 int result;
14241 PyObject * obj0 = 0 ;
14242 char *kwnames[] = {
14243 (char *) "self", NULL
14244 };
14245
14246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
14247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (int)(arg1)->GetRow();
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 resultobj = SWIG_FromInt((int)result);
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14264 PyObject *resultobj;
14265 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14266 int result;
14267 PyObject * obj0 = 0 ;
14268 char *kwnames[] = {
14269 (char *) "self", NULL
14270 };
14271
14272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
14273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (int)(arg1)->GetCol();
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_FromInt((int)result);
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14292 wxPoint result;
14293 PyObject * obj0 = 0 ;
14294 char *kwnames[] = {
14295 (char *) "self", NULL
14296 };
14297
14298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
14299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 result = (arg1)->GetPosition();
14304
14305 wxPyEndAllowThreads(__tstate);
14306 if (PyErr_Occurred()) SWIG_fail;
14307 }
14308 {
14309 wxPoint * resultptr;
14310 resultptr = new wxPoint((wxPoint &) result);
14311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14312 }
14313 return resultobj;
14314 fail:
14315 return NULL;
14316 }
14317
14318
14319 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj;
14321 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14322 bool result;
14323 PyObject * obj0 = 0 ;
14324 char *kwnames[] = {
14325 (char *) "self", NULL
14326 };
14327
14328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
14329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (bool)(arg1)->Selecting();
14334
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14339 return resultobj;
14340 fail:
14341 return NULL;
14342 }
14343
14344
14345 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj;
14347 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14348 bool result;
14349 PyObject * obj0 = 0 ;
14350 char *kwnames[] = {
14351 (char *) "self", NULL
14352 };
14353
14354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
14355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (bool)(arg1)->ControlDown();
14360
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14365 return resultobj;
14366 fail:
14367 return NULL;
14368 }
14369
14370
14371 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj;
14373 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14374 bool result;
14375 PyObject * obj0 = 0 ;
14376 char *kwnames[] = {
14377 (char *) "self", NULL
14378 };
14379
14380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
14381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14383 {
14384 PyThreadState* __tstate = wxPyBeginAllowThreads();
14385 result = (bool)(arg1)->MetaDown();
14386
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14391 return resultobj;
14392 fail:
14393 return NULL;
14394 }
14395
14396
14397 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14400 bool result;
14401 PyObject * obj0 = 0 ;
14402 char *kwnames[] = {
14403 (char *) "self", NULL
14404 };
14405
14406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
14407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14409 {
14410 PyThreadState* __tstate = wxPyBeginAllowThreads();
14411 result = (bool)(arg1)->ShiftDown();
14412
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
14416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14417 return resultobj;
14418 fail:
14419 return NULL;
14420 }
14421
14422
14423 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14426 bool result;
14427 PyObject * obj0 = 0 ;
14428 char *kwnames[] = {
14429 (char *) "self", NULL
14430 };
14431
14432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
14433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent,
14434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 result = (bool)(arg1)->AltDown();
14438
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
14450 PyObject *obj;
14451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14452 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
14453 Py_INCREF(obj);
14454 return Py_BuildValue((char *)"");
14455 }
14456 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 int arg1 ;
14459 wxEventType arg2 ;
14460 wxGrid *arg3 = (wxGrid *) 0 ;
14461 int arg4 = (int) -1 ;
14462 int arg5 = (int) -1 ;
14463 int arg6 = (int) -1 ;
14464 bool arg7 = (bool) False ;
14465 bool arg8 = (bool) False ;
14466 bool arg9 = (bool) False ;
14467 bool arg10 = (bool) False ;
14468 wxGridSizeEvent *result;
14469 PyObject * obj0 = 0 ;
14470 PyObject * obj1 = 0 ;
14471 PyObject * obj2 = 0 ;
14472 PyObject * obj3 = 0 ;
14473 PyObject * obj4 = 0 ;
14474 PyObject * obj5 = 0 ;
14475 PyObject * obj6 = 0 ;
14476 PyObject * obj7 = 0 ;
14477 PyObject * obj8 = 0 ;
14478 PyObject * obj9 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
14484 arg1 = (int) SWIG_AsInt(obj0);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 arg2 = (wxEventType) SWIG_AsInt(obj1);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
14489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14490 if (obj3) {
14491 arg4 = (int) SWIG_AsInt(obj3);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 if (obj4) {
14495 arg5 = (int) SWIG_AsInt(obj4);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 if (obj5) {
14499 arg6 = (int) SWIG_AsInt(obj5);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 if (obj6) {
14503 arg7 = (bool) SWIG_AsBool(obj6);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 if (obj7) {
14507 arg8 = (bool) SWIG_AsBool(obj7);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 if (obj8) {
14511 arg9 = (bool) SWIG_AsBool(obj8);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 if (obj9) {
14515 arg10 = (bool) SWIG_AsBool(obj9);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1);
14526 return resultobj;
14527 fail:
14528 return NULL;
14529 }
14530
14531
14532 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14535 int result;
14536 PyObject * obj0 = 0 ;
14537 char *kwnames[] = {
14538 (char *) "self", NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
14542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (int)(arg1)->GetRowOrCol();
14547
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_FromInt((int)result);
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj;
14560 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14561 wxPoint result;
14562 PyObject * obj0 = 0 ;
14563 char *kwnames[] = {
14564 (char *) "self", NULL
14565 };
14566
14567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
14568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (arg1)->GetPosition();
14573
14574 wxPyEndAllowThreads(__tstate);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 }
14577 {
14578 wxPoint * resultptr;
14579 resultptr = new wxPoint((wxPoint &) result);
14580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14581 }
14582 return resultobj;
14583 fail:
14584 return NULL;
14585 }
14586
14587
14588 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14589 PyObject *resultobj;
14590 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14591 bool result;
14592 PyObject * obj0 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "self", NULL
14595 };
14596
14597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
14598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = (bool)(arg1)->ControlDown();
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14617 bool result;
14618 PyObject * obj0 = 0 ;
14619 char *kwnames[] = {
14620 (char *) "self", NULL
14621 };
14622
14623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
14624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (bool)(arg1)->MetaDown();
14629
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14634 return resultobj;
14635 fail:
14636 return NULL;
14637 }
14638
14639
14640 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14641 PyObject *resultobj;
14642 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14643 bool result;
14644 PyObject * obj0 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
14650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (bool)(arg1)->ShiftDown();
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14667 PyObject *resultobj;
14668 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14669 bool result;
14670 PyObject * obj0 = 0 ;
14671 char *kwnames[] = {
14672 (char *) "self", NULL
14673 };
14674
14675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
14676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent,
14677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14678 {
14679 PyThreadState* __tstate = wxPyBeginAllowThreads();
14680 result = (bool)(arg1)->AltDown();
14681
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
14693 PyObject *obj;
14694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14695 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
14696 Py_INCREF(obj);
14697 return Py_BuildValue((char *)"");
14698 }
14699 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 int arg1 ;
14702 wxEventType arg2 ;
14703 wxGrid *arg3 = (wxGrid *) 0 ;
14704 wxGridCellCoords *arg4 = 0 ;
14705 wxGridCellCoords *arg5 = 0 ;
14706 bool arg6 = (bool) True ;
14707 bool arg7 = (bool) False ;
14708 bool arg8 = (bool) False ;
14709 bool arg9 = (bool) False ;
14710 bool arg10 = (bool) False ;
14711 wxGridRangeSelectEvent *result;
14712 wxGridCellCoords temp4 ;
14713 wxGridCellCoords temp5 ;
14714 PyObject * obj0 = 0 ;
14715 PyObject * obj1 = 0 ;
14716 PyObject * obj2 = 0 ;
14717 PyObject * obj3 = 0 ;
14718 PyObject * obj4 = 0 ;
14719 PyObject * obj5 = 0 ;
14720 PyObject * obj6 = 0 ;
14721 PyObject * obj7 = 0 ;
14722 PyObject * obj8 = 0 ;
14723 PyObject * obj9 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
14726 };
14727
14728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
14729 arg1 = (int) SWIG_AsInt(obj0);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 arg2 = (wxEventType) SWIG_AsInt(obj1);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid,
14734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14735 {
14736 arg4 = &temp4;
14737 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
14738 }
14739 {
14740 arg5 = &temp5;
14741 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
14742 }
14743 if (obj5) {
14744 arg6 = (bool) SWIG_AsBool(obj5);
14745 if (PyErr_Occurred()) SWIG_fail;
14746 }
14747 if (obj6) {
14748 arg7 = (bool) SWIG_AsBool(obj6);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 if (obj7) {
14752 arg8 = (bool) SWIG_AsBool(obj7);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 if (obj8) {
14756 arg9 = (bool) SWIG_AsBool(obj8);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 }
14759 if (obj9) {
14760 arg10 = (bool) SWIG_AsBool(obj9);
14761 if (PyErr_Occurred()) SWIG_fail;
14762 }
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
14766
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1);
14771 return resultobj;
14772 fail:
14773 return NULL;
14774 }
14775
14776
14777 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
14778 PyObject *resultobj;
14779 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14780 wxGridCellCoords result;
14781 PyObject * obj0 = 0 ;
14782 char *kwnames[] = {
14783 (char *) "self", NULL
14784 };
14785
14786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
14787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (arg1)->GetTopLeftCoords();
14792
14793 wxPyEndAllowThreads(__tstate);
14794 if (PyErr_Occurred()) SWIG_fail;
14795 }
14796 {
14797 wxGridCellCoords * resultptr;
14798 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
14799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
14800 }
14801 return resultobj;
14802 fail:
14803 return NULL;
14804 }
14805
14806
14807 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14810 wxGridCellCoords result;
14811 PyObject * obj0 = 0 ;
14812 char *kwnames[] = {
14813 (char *) "self", NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
14817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (arg1)->GetBottomRightCoords();
14822
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827 wxGridCellCoords * resultptr;
14828 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
14829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1);
14830 }
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj;
14839 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14840 int result;
14841 PyObject * obj0 = 0 ;
14842 char *kwnames[] = {
14843 (char *) "self", NULL
14844 };
14845
14846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
14847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (int)(arg1)->GetTopRow();
14852
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_FromInt((int)result);
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj;
14865 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14866 int result;
14867 PyObject * obj0 = 0 ;
14868 char *kwnames[] = {
14869 (char *) "self", NULL
14870 };
14871
14872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
14873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 result = (int)(arg1)->GetBottomRow();
14878
14879 wxPyEndAllowThreads(__tstate);
14880 if (PyErr_Occurred()) SWIG_fail;
14881 }
14882 resultobj = SWIG_FromInt((int)result);
14883 return resultobj;
14884 fail:
14885 return NULL;
14886 }
14887
14888
14889 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj;
14891 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14892 int result;
14893 PyObject * obj0 = 0 ;
14894 char *kwnames[] = {
14895 (char *) "self", NULL
14896 };
14897
14898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
14899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (int)(arg1)->GetLeftCol();
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = SWIG_FromInt((int)result);
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14918 int result;
14919 PyObject * obj0 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "self", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
14925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14927 {
14928 PyThreadState* __tstate = wxPyBeginAllowThreads();
14929 result = (int)(arg1)->GetRightCol();
14930
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_FromInt((int)result);
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj;
14943 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14944 bool result;
14945 PyObject * obj0 = 0 ;
14946 char *kwnames[] = {
14947 (char *) "self", NULL
14948 };
14949
14950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
14951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (bool)(arg1)->Selecting();
14956
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14961 return resultobj;
14962 fail:
14963 return NULL;
14964 }
14965
14966
14967 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14970 bool result;
14971 PyObject * obj0 = 0 ;
14972 char *kwnames[] = {
14973 (char *) "self", NULL
14974 };
14975
14976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
14977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
14978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (bool)(arg1)->ControlDown();
14982
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj;
14995 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14996 bool result;
14997 PyObject * obj0 = 0 ;
14998 char *kwnames[] = {
14999 (char *) "self", NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
15003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (bool)(arg1)->MetaDown();
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15013 return resultobj;
15014 fail:
15015 return NULL;
15016 }
15017
15018
15019 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15020 PyObject *resultobj;
15021 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15022 bool result;
15023 PyObject * obj0 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (bool)(arg1)->ShiftDown();
15034
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15046 PyObject *resultobj;
15047 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15048 bool result;
15049 PyObject * obj0 = 0 ;
15050 char *kwnames[] = {
15051 (char *) "self", NULL
15052 };
15053
15054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
15055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent,
15056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 result = (bool)(arg1)->AltDown();
15060
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
15072 PyObject *obj;
15073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15074 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
15075 Py_INCREF(obj);
15076 return Py_BuildValue((char *)"");
15077 }
15078 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj;
15080 int arg1 ;
15081 wxEventType arg2 ;
15082 wxObject *arg3 = (wxObject *) 0 ;
15083 int arg4 ;
15084 int arg5 ;
15085 wxControl *arg6 = (wxControl *) 0 ;
15086 wxGridEditorCreatedEvent *result;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 PyObject * obj2 = 0 ;
15090 PyObject * obj3 = 0 ;
15091 PyObject * obj4 = 0 ;
15092 PyObject * obj5 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15098 arg1 = (int) SWIG_AsInt(obj0);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 arg2 = (wxEventType) SWIG_AsInt(obj1);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject,
15103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15104 arg4 = (int) SWIG_AsInt(obj3);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 arg5 = (int) SWIG_AsInt(obj4);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl,
15109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
15113
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
15118 return resultobj;
15119 fail:
15120 return NULL;
15121 }
15122
15123
15124 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15125 PyObject *resultobj;
15126 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15127 int result;
15128 PyObject * obj0 = 0 ;
15129 char *kwnames[] = {
15130 (char *) "self", NULL
15131 };
15132
15133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
15134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 result = (int)(arg1)->GetRow();
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 resultobj = SWIG_FromInt((int)result);
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj;
15152 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15153 int result;
15154 PyObject * obj0 = 0 ;
15155 char *kwnames[] = {
15156 (char *) "self", NULL
15157 };
15158
15159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
15160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (int)(arg1)->GetCol();
15165
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_FromInt((int)result);
15170 return resultobj;
15171 fail:
15172 return NULL;
15173 }
15174
15175
15176 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj;
15178 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15179 wxControl *result;
15180 PyObject * obj0 = 0 ;
15181 char *kwnames[] = {
15182 (char *) "self", NULL
15183 };
15184
15185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
15186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15190 result = (wxControl *)(arg1)->GetControl();
15191
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 {
15196 resultobj = wxPyMake_wxObject(result);
15197 }
15198 return resultobj;
15199 fail:
15200 return NULL;
15201 }
15202
15203
15204 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15207 int arg2 ;
15208 PyObject * obj0 = 0 ;
15209 PyObject * obj1 = 0 ;
15210 char *kwnames[] = {
15211 (char *) "self",(char *) "row", NULL
15212 };
15213
15214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail;
15215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15217 arg2 = (int) SWIG_AsInt(obj1);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 (arg1)->SetRow(arg2);
15222
15223 wxPyEndAllowThreads(__tstate);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 Py_INCREF(Py_None); resultobj = Py_None;
15227 return resultobj;
15228 fail:
15229 return NULL;
15230 }
15231
15232
15233 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15234 PyObject *resultobj;
15235 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15236 int arg2 ;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 char *kwnames[] = {
15240 (char *) "self",(char *) "col", NULL
15241 };
15242
15243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail;
15244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15246 arg2 = (int) SWIG_AsInt(obj1);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 {
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
15250 (arg1)->SetCol(arg2);
15251
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 Py_INCREF(Py_None); resultobj = Py_None;
15256 return resultobj;
15257 fail:
15258 return NULL;
15259 }
15260
15261
15262 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15263 PyObject *resultobj;
15264 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15265 wxControl *arg2 = (wxControl *) 0 ;
15266 PyObject * obj0 = 0 ;
15267 PyObject * obj1 = 0 ;
15268 char *kwnames[] = {
15269 (char *) "self",(char *) "ctrl", NULL
15270 };
15271
15272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
15273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent,
15274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
15276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15277 {
15278 PyThreadState* __tstate = wxPyBeginAllowThreads();
15279 (arg1)->SetControl(arg2);
15280
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 Py_INCREF(Py_None); resultobj = Py_None;
15285 return resultobj;
15286 fail:
15287 return NULL;
15288 }
15289
15290
15291 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
15292 PyObject *obj;
15293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15294 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
15295 Py_INCREF(obj);
15296 return Py_BuildValue((char *)"");
15297 }
15298 static PyMethodDef SwigMethods[] = {
15299 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15300 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
15301 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
15302 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
15303 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
15304 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
15305 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
15306 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
15307 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
15308 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15309 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15310 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
15311 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
15312 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
15313 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
15314 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
15315 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
15316 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
15317 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
15318 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
15319 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
15320 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
15321 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
15322 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
15323 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
15324 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
15325 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
15326 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
15327 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
15328 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
15329 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15330 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
15331 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
15332 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
15333 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
15334 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
15335 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
15336 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
15337 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
15338 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
15339 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
15340 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
15341 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
15342 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
15343 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
15344 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
15345 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15346 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15347 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
15348 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
15349 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15350 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
15351 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
15352 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
15353 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15354 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
15355 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
15356 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15357 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15358 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
15359 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
15360 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15361 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
15362 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15363 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
15364 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
15365 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15366 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
15367 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
15368 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15369 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
15370 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
15371 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15372 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
15373 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
15374 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15375 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
15376 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
15377 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15378 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
15379 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
15380 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15381 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
15382 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
15383 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15384 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
15385 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15386 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
15387 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
15388 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
15389 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
15390 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
15391 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
15392 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15393 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
15394 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
15395 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
15396 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
15397 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
15398 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
15399 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
15400 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
15401 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
15402 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15403 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
15404 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
15405 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
15406 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
15407 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
15408 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
15409 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
15410 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15411 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
15412 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
15413 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
15414 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
15415 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
15416 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
15417 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
15418 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
15419 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
15420 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15421 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15422 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
15423 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
15424 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15425 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15426 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
15427 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
15428 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
15429 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15430 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15431 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15432 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15433 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15434 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15435 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
15436 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15437 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15438 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15439 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
15440 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
15441 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15442 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15443 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
15444 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
15445 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
15446 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15447 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15448 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15449 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15450 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15451 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15452 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15453 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15454 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15455 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
15456 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
15457 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
15458 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15459 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
15460 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
15461 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15462 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15463 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15464 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15465 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15466 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15467 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
15468 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
15469 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15470 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15471 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
15472 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
15473 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15474 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
15475 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15476 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15477 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15478 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
15479 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
15480 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
15481 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15482 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
15483 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
15484 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15485 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15486 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15487 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15488 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15489 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15490 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15491 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15492 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15493 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15494 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
15495 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
15496 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
15497 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15498 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15499 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
15500 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
15501 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
15502 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
15503 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
15504 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
15505 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15506 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15507 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
15508 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15509 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15510 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
15511 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
15512 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
15513 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
15514 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
15515 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
15516 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
15517 { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
15518 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
15519 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
15520 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
15521 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15522 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15523 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15524 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15525 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
15526 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
15527 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
15528 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
15529 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
15530 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
15531 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15532 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
15533 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
15534 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15535 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
15536 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
15537 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
15538 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
15539 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
15540 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
15541 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
15542 { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
15543 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
15544 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
15545 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15546 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15547 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
15548 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
15549 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
15550 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
15551 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
15552 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
15553 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
15554 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
15555 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
15556 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
15557 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
15558 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
15559 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
15560 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
15561 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
15562 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
15563 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
15564 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
15565 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
15566 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
15567 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
15568 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
15569 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
15570 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
15571 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
15572 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
15573 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
15574 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
15575 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15576 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15577 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
15578 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15579 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15580 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15581 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
15582 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15583 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15584 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15585 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15586 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15587 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15588 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15589 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15590 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15591 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15592 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15593 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15594 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15595 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
15596 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15597 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15598 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15599 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15600 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15601 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15602 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15603 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15604 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15605 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15606 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15607 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
15608 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
15609 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
15610 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
15611 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15612 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15613 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
15614 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
15615 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15616 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15617 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
15618 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
15619 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
15620 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
15621 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
15622 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
15623 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15624 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
15625 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15626 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
15627 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15628 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15629 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15630 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15631 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15632 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
15633 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15634 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15635 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15636 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15637 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
15638 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15639 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
15640 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15641 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
15642 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
15643 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
15644 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
15645 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
15646 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
15647 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15648 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
15649 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
15650 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
15651 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15652 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15653 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15654 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15655 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15656 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15657 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15658 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15659 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15660 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
15661 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15662 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15663 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15664 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15665 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
15666 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15667 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15668 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15669 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15670 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
15671 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
15672 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
15673 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
15674 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
15675 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
15676 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
15677 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
15678 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
15679 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
15680 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
15681 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
15682 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
15683 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
15684 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
15685 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
15686 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
15687 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
15688 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
15689 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
15690 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
15691 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
15692 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
15693 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
15694 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
15695 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
15696 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
15697 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
15698 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
15699 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
15700 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
15701 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
15702 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
15703 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
15704 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
15705 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
15706 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
15707 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
15708 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
15709 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
15710 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
15711 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
15712 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
15713 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
15714 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15715 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15716 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15717 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15718 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
15719 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
15720 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
15721 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
15722 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15723 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15724 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15725 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15726 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
15727 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
15728 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
15729 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
15730 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
15731 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
15732 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
15733 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
15734 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
15735 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15736 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15737 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15738 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15739 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
15740 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
15741 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
15742 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
15743 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
15744 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
15745 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
15746 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
15747 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
15748 { NULL, NULL }
15749 };
15750
15751
15752 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
15753
15754 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
15755 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
15756 }
15757 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
15758 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
15759 }
15760 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
15761 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
15762 }
15763 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
15764 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
15765 }
15766 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
15767 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
15768 }
15769 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
15770 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
15771 }
15772 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
15773 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
15774 }
15775 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
15776 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
15777 }
15778 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
15779 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
15780 }
15781 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
15782 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
15783 }
15784 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
15785 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
15786 }
15787 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
15788 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
15789 }
15790 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
15791 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
15792 }
15793 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
15794 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
15795 }
15796 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
15797 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
15798 }
15799 static void *_p_wxGridTo_p_wxPanel(void *x) {
15800 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
15801 }
15802 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
15803 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15804 }
15805 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
15806 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15807 }
15808 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
15809 return (void *)((wxPanel *) ((wxPyPanel *) x));
15810 }
15811 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
15812 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
15813 }
15814 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
15815 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
15816 }
15817 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
15818 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15819 }
15820 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
15821 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
15822 }
15823 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
15824 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15825 }
15826 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
15827 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
15828 }
15829 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
15830 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
15831 }
15832 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
15833 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
15834 }
15835 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
15836 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
15837 }
15838 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
15839 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
15840 }
15841 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
15842 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
15843 }
15844 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
15845 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
15846 }
15847 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
15848 return (void *)((wxWindow *) ((wxMenuBar *) x));
15849 }
15850 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
15851 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
15852 }
15853 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
15854 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
15855 }
15856 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
15857 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
15858 }
15859 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
15860 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
15861 }
15862 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
15863 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
15864 }
15865 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
15866 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
15867 }
15868 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
15869 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
15870 }
15871 static void *_p_wxPanelTo_p_wxWindow(void *x) {
15872 return (void *)((wxWindow *) ((wxPanel *) x));
15873 }
15874 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
15875 return (void *)((wxWindow *) ((wxStatusBar *) x));
15876 }
15877 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
15878 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
15879 }
15880 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
15881 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
15882 }
15883 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
15884 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
15885 }
15886 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
15887 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
15888 }
15889 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
15890 return (void *)((wxWindow *) ((wxPopupWindow *) x));
15891 }
15892 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
15893 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
15894 }
15895 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
15896 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
15897 }
15898 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
15899 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
15900 }
15901 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
15902 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
15903 }
15904 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
15905 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
15906 }
15907 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
15908 return (void *)((wxWindow *) ((wxSashWindow *) x));
15909 }
15910 static void *_p_wxControlTo_p_wxWindow(void *x) {
15911 return (void *)((wxWindow *) ((wxControl *) x));
15912 }
15913 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
15914 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
15915 }
15916 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
15917 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
15918 }
15919 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
15920 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
15921 }
15922 static void *_p_wxGridTo_p_wxWindow(void *x) {
15923 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
15924 }
15925 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
15926 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
15927 }
15928 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
15929 return (void *)((wxWindow *) ((wxPyWindow *) x));
15930 }
15931 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
15932 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
15933 }
15934 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
15935 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15936 }
15937 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
15938 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15939 }
15940 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
15941 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
15942 }
15943 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
15944 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15945 }
15946 static void *_p_wxFrameTo_p_wxWindow(void *x) {
15947 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
15948 }
15949 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
15950 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
15951 }
15952 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
15953 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
15954 }
15955 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
15956 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
15957 }
15958 static void *_p_wxDialogTo_p_wxWindow(void *x) {
15959 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
15960 }
15961 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
15962 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
15963 }
15964 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
15965 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
15966 }
15967 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
15968 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
15969 }
15970 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
15971 return (void *)((wxControl *) ((wxControlWithItems *) x));
15972 }
15973 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
15974 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
15975 }
15976 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
15977 return (void *)((wxEvent *) ((wxMenuEvent *) x));
15978 }
15979 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
15980 return (void *)((wxEvent *) ((wxCloseEvent *) x));
15981 }
15982 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
15983 return (void *)((wxEvent *) ((wxMouseEvent *) x));
15984 }
15985 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
15986 return (void *)((wxEvent *) ((wxEraseEvent *) x));
15987 }
15988 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
15989 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
15990 }
15991 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
15992 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
15993 }
15994 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
15995 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
15996 }
15997 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
15998 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
15999 }
16000 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
16001 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
16002 }
16003 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
16004 return (void *)((wxEvent *) ((wxPyEvent *) x));
16005 }
16006 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
16007 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
16008 }
16009 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
16010 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
16011 }
16012 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
16013 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16014 }
16015 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
16016 return (void *)((wxEvent *) ((wxIdleEvent *) x));
16017 }
16018 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
16019 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
16020 }
16021 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
16022 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
16023 }
16024 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
16025 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
16026 }
16027 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
16028 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
16029 }
16030 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
16031 return (void *)((wxEvent *) ((wxActivateEvent *) x));
16032 }
16033 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
16034 return (void *)((wxEvent *) ((wxSizeEvent *) x));
16035 }
16036 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
16037 return (void *)((wxEvent *) ((wxMoveEvent *) x));
16038 }
16039 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
16040 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16041 }
16042 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
16043 return (void *)((wxEvent *) ((wxPaintEvent *) x));
16044 }
16045 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
16046 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
16047 }
16048 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
16049 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
16050 }
16051 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
16052 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
16053 }
16054 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
16055 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
16056 }
16057 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
16058 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16059 }
16060 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
16061 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
16062 }
16063 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
16064 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16065 }
16066 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
16067 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16068 }
16069 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
16070 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
16071 }
16072 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
16073 return (void *)((wxEvent *) ((wxFocusEvent *) x));
16074 }
16075 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
16076 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
16077 }
16078 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
16079 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
16080 }
16081 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
16082 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16083 }
16084 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
16085 return (void *)((wxEvent *) ((wxShowEvent *) x));
16086 }
16087 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
16088 return (void *)((wxEvent *) ((wxCommandEvent *) x));
16089 }
16090 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
16091 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
16092 }
16093 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
16094 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16095 }
16096 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
16097 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
16098 }
16099 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
16100 return (void *)((wxEvent *) ((wxKeyEvent *) x));
16101 }
16102 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
16103 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
16104 }
16105 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
16106 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
16107 }
16108 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16109 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16110 }
16111 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
16112 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16113 }
16114 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
16115 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16116 }
16117 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
16118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16119 }
16120 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16121 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16122 }
16123 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16124 return (void *)((wxObject *) ((wxSizerItem *) x));
16125 }
16126 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16128 }
16129 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16130 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16131 }
16132 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16133 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16134 }
16135 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16136 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16137 }
16138 static void *_p_wxSizerTo_p_wxObject(void *x) {
16139 return (void *)((wxObject *) ((wxSizer *) x));
16140 }
16141 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16142 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16143 }
16144 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16145 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16146 }
16147 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
16148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16149 }
16150 static void *_p_wxEventTo_p_wxObject(void *x) {
16151 return (void *)((wxObject *) ((wxEvent *) x));
16152 }
16153 static void *_p_wxFontDataTo_p_wxObject(void *x) {
16154 return (void *)((wxObject *) ((wxFontData *) x));
16155 }
16156 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
16157 return (void *)((wxObject *) ((wxPrintData *) x));
16158 }
16159 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16160 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16161 }
16162 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16163 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16164 }
16165 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16166 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16167 }
16168 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
16169 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
16170 }
16171 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
16172 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
16173 }
16174 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
16175 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
16176 }
16177 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
16178 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
16179 }
16180 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16181 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16182 }
16183 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16184 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16185 }
16186 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16187 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16188 }
16189 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16190 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16191 }
16192 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16193 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16194 }
16195 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16196 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16197 }
16198 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
16199 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16200 }
16201 static void *_p_wxGridEventTo_p_wxObject(void *x) {
16202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16203 }
16204 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
16205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16206 }
16207 static void *_p_wxControlTo_p_wxObject(void *x) {
16208 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16209 }
16210 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16211 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16212 }
16213 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
16214 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
16215 }
16216 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16217 return (void *)((wxObject *) ((wxFSFile *) x));
16218 }
16219 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
16220 return (void *)((wxObject *) ((wxFindReplaceData *) x));
16221 }
16222 static void *_p_wxGridTo_p_wxObject(void *x) {
16223 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16224 }
16225 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16226 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16227 }
16228 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
16229 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16230 }
16231 static void *_p_wxColourDataTo_p_wxObject(void *x) {
16232 return (void *)((wxObject *) ((wxColourData *) x));
16233 }
16234 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16235 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16236 }
16237 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16238 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16239 }
16240 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
16241 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
16242 }
16243 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
16244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16245 }
16246 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
16247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16248 }
16249 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
16250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16251 }
16252 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
16253 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16254 }
16255 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
16256 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16257 }
16258 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
16259 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16260 }
16261 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
16262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16263 }
16264 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
16265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16266 }
16267 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16268 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16269 }
16270 static void *_p_wxPrinterTo_p_wxObject(void *x) {
16271 return (void *)((wxObject *) ((wxPrinter *) x));
16272 }
16273 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16274 return (void *)((wxObject *) ((wxMenuItem *) x));
16275 }
16276 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16277 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16278 }
16279 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16280 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16281 }
16282 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16283 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16284 }
16285 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16286 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16287 }
16288 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16289 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16290 }
16291 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16292 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16293 }
16294 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16295 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16296 }
16297 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16298 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16299 }
16300 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
16301 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16302 }
16303 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16304 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16305 }
16306 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16307 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16308 }
16309 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16310 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16311 }
16312 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16313 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16314 }
16315 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16316 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16317 }
16318 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16319 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16320 }
16321 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16322 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16323 }
16324 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16325 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16326 }
16327 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16328 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16329 }
16330 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16331 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16332 }
16333 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16334 return (void *)((wxObject *) ((wxImageHandler *) x));
16335 }
16336 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16337 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16338 }
16339 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16340 return (void *)((wxObject *) ((wxEvtHandler *) x));
16341 }
16342 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
16343 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
16344 }
16345 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
16346 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16347 }
16348 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
16349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16350 }
16351 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
16352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16353 }
16354 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16355 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16356 }
16357 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
16358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16359 }
16360 static void *_p_wxImageTo_p_wxObject(void *x) {
16361 return (void *)((wxObject *) ((wxImage *) x));
16362 }
16363 static void *_p_wxFrameTo_p_wxObject(void *x) {
16364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16365 }
16366 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
16367 return (void *)((wxObject *) ((wxPyPrintout *) x));
16368 }
16369 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16370 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16371 }
16372 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
16373 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
16374 }
16375 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
16376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
16377 }
16378 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
16379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16380 }
16381 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16383 }
16384 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16385 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16386 }
16387 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16388 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16389 }
16390 static void *_p_wxWindowTo_p_wxObject(void *x) {
16391 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16392 }
16393 static void *_p_wxMenuTo_p_wxObject(void *x) {
16394 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16395 }
16396 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16398 }
16399 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
16400 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16401 }
16402 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
16403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
16404 }
16405 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
16406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
16407 }
16408 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
16409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
16410 }
16411 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
16412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
16413 }
16414 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
16415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16416 }
16417 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
16418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
16419 }
16420 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
16421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16422 }
16423 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
16424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
16425 }
16426 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
16427 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16428 }
16429 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
16430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
16431 }
16432 static void *_p_wxSashEventTo_p_wxObject(void *x) {
16433 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
16434 }
16435 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
16436 return (void *)((wxObject *) ((wxPrintPreview *) x));
16437 }
16438 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
16439 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
16440 }
16441 static void *_p_wxPanelTo_p_wxObject(void *x) {
16442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
16443 }
16444 static void *_p_wxDialogTo_p_wxObject(void *x) {
16445 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
16446 }
16447 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
16448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16449 }
16450 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
16451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16452 }
16453 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
16454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16455 }
16456 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
16457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16458 }
16459 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
16460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16461 }
16462 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16463 return (void *)((wxObject *) ((wxFileSystem *) x));
16464 }
16465 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16467 }
16468 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16469 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16470 }
16471 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16472 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16473 }
16474 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16475 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16476 }
16477 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16478 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16479 }
16480 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16481 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16482 }
16483 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
16484 return (void *)((wxObject *) ((wxGridTableBase *) x));
16485 }
16486 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
16487 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
16488 }
16489 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16490 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16491 }
16492 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16493 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16494 }
16495 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
16496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16497 }
16498 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
16499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16500 }
16501 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16502 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16503 }
16504 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16505 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16506 }
16507 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16509 }
16510 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16512 }
16513 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
16514 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
16515 }
16516 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
16517 return (void *)((wxObject *) ((wxPrintDialogData *) x));
16518 }
16519 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16520 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16521 }
16522 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16523 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16524 }
16525 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
16526 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16527 }
16528 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
16529 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16530 }
16531 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
16532 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16533 }
16534 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
16535 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
16536 }
16537 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
16538 return (void *)((wxEvtHandler *) ((wxValidator *) x));
16539 }
16540 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
16541 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
16542 }
16543 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
16544 return (void *)((wxEvtHandler *) ((wxMenu *) x));
16545 }
16546 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
16547 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16548 }
16549 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
16550 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16551 }
16552 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
16553 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16554 }
16555 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
16556 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16557 }
16558 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
16559 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16560 }
16561 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
16562 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16563 }
16564 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
16565 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16566 }
16567 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
16568 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
16569 }
16570 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
16571 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
16572 }
16573 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
16574 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16575 }
16576 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
16577 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
16578 }
16579 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
16580 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16581 }
16582 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
16583 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
16584 }
16585 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
16586 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16587 }
16588 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
16589 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
16590 }
16591 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
16592 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
16593 }
16594 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
16595 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
16596 }
16597 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
16598 return (void *)((wxEvtHandler *) ((wxWindow *) x));
16599 }
16600 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
16601 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16602 }
16603 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
16604 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
16605 }
16606 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
16607 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
16608 }
16609 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
16610 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
16611 }
16612 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
16613 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16614 }
16615 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
16616 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16617 }
16618 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
16619 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16620 }
16621 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
16622 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
16623 }
16624 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
16625 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16626 }
16627 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
16628 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16629 }
16630 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
16631 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
16632 }
16633 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
16634 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16635 }
16636 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
16637 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16638 }
16639 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
16640 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16641 }
16642 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
16643 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16644 }
16645 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
16646 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16647 }
16648 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
16649 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
16650 }
16651 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
16652 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16653 }
16654 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
16655 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16656 }
16657 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
16658 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16659 }
16660 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
16661 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16662 }
16663 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
16664 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
16665 }
16666 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
16667 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16668 }
16669 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
16670 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16671 }
16672 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
16673 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16674 }
16675 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
16676 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
16677 }
16678 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
16679 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
16680 }
16681 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
16682 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
16683 }
16684 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
16685 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
16686 }
16687 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
16688 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
16689 }
16690 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
16691 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
16692 }
16693 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
16694 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
16695 }
16696 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
16697 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
16698 }
16699 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
16700 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
16701 }
16702 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
16703 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
16704 }
16705 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
16706 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
16707 }
16708 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
16709 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
16710 }
16711 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
16712 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
16713 }
16714 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
16715 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
16716 }
16717 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
16718 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16719 }
16720 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
16721 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
16722 }
16723 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
16724 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
16725 }
16726 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
16727 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
16728 }
16729 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
16730 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
16731 }
16732 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
16733 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
16734 }
16735 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
16736 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16737 }
16738 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
16739 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
16740 }
16741 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
16742 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
16743 }
16744 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
16745 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
16746 }
16747 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
16748 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16749 }
16750 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
16751 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
16752 }
16753 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
16754 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
16755 }
16756 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
16757 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
16758 }
16759 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
16760 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
16761 }
16762 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
16763 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
16764 }
16765 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}};
16766 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}};
16767 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}};
16768 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}};
16769 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}};
16770 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}};
16771 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}};
16772 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}};
16773 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}};
16774 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}};
16775 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}};
16776 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}};
16777 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}};
16778 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}};
16779 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}};
16780 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_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}};
16781 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}};
16782 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}};
16783 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}};
16784 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}};
16785 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_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
16786 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_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}};
16787 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}};
16788 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}};
16789 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}};
16790 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_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}};
16791 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}};
16792 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}};
16793 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}};
16794 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}};
16795 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_wxTipWindow", _p_wxTipWindowTo_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_wxScrolledWindow", _p_wxScrolledWindowTo_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}};
16796 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}};
16797 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}};
16798 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}};
16799 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}};
16800 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}};
16801 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}};
16802 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}};
16803 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}};
16804 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}};
16805 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}};
16806 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}};
16807 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}};
16808 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}};
16809 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}};
16810 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}};
16811 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}};
16812 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}};
16813 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}};
16814 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}};
16815 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}};
16816 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}};
16817
16818 static swig_type_info *swig_types_initial[] = {
16819 _swigt__p_wxGridCellAutoWrapStringRenderer,
16820 _swigt__p_wxGridCellEnumRenderer,
16821 _swigt__p_wxGridCellDateTimeRenderer,
16822 _swigt__p_wxGridCellBoolRenderer,
16823 _swigt__p_wxGridCellFloatRenderer,
16824 _swigt__p_wxGridCellNumberRenderer,
16825 _swigt__p_wxPyGridCellRenderer,
16826 _swigt__p_wxGridCellRenderer,
16827 _swigt__p_wxGridCellStringRenderer,
16828 _swigt__p_wxGridCellAttr,
16829 _swigt__p_wxColour,
16830 _swigt__p_wxDC,
16831 _swigt__p_wxGridTableMessage,
16832 _swigt__p_wxGrid,
16833 _swigt__p_char,
16834 _swigt__p_wxPanel,
16835 _swigt__p_wxNotifyEvent,
16836 _swigt__p_wxGridRangeSelectEvent,
16837 _swigt__p_wxSize,
16838 _swigt__p_wxGridCellCoords,
16839 _swigt__p_wxScrolledWindow,
16840 _swigt__p_wxWindow,
16841 _swigt__p_wxFont,
16842 _swigt__p_wxControl,
16843 _swigt__p_wxEvent,
16844 _swigt__p_wxObject,
16845 _swigt__p_wxGridSizeEvent,
16846 _swigt__p_wxRect,
16847 _swigt__p_long,
16848 _swigt__p_wxString,
16849 _swigt__p_wxEvtHandler,
16850 _swigt__p_wxPoint,
16851 _swigt__p_wxGridEvent,
16852 _swigt__p_wxGridEditorCreatedEvent,
16853 _swigt__p_wxGridTableBase,
16854 _swigt__p_wxGridCellNumberEditor,
16855 _swigt__p_wxPyGridCellEditor,
16856 _swigt__p_wxGridCellEditor,
16857 _swigt__p_wxGridCellTextEditor,
16858 _swigt__p_wxGridCellFloatEditor,
16859 _swigt__p_wxGridCellBoolEditor,
16860 _swigt__p_wxPyGridTableBase,
16861 _swigt__p_wxGridStringTable,
16862 _swigt__p_wxArrayString,
16863 _swigt__p_wxCommandEvent,
16864 _swigt__p_wxGridCellAttrProvider,
16865 _swigt__p_wxKeyEvent,
16866 _swigt__p_wxGridCellChoiceEditor,
16867 _swigt__p_wxGridCellEnumEditor,
16868 _swigt__p_wxGridCellAutoWrapStringEditor,
16869 _swigt__p_int,
16870 _swigt__p_wxPyGridCellAttrProvider,
16871 0
16872 };
16873
16874
16875 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16876
16877 static swig_const_info swig_const_table[] = {
16878 { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char},
16879 { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char},
16880 { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char},
16881 { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char},
16882 { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char},
16883 { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char},
16884 { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char},
16885 { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char},
16886 { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char},
16887 {0}};
16888
16889 #ifdef __cplusplus
16890 }
16891 #endif
16892
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 SWIGEXPORT(void) SWIG_init(void) {
16897 static PyObject *SWIG_globals = 0;
16898 static int typeinit = 0;
16899 PyObject *m, *d;
16900 int i;
16901 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
16902 m = Py_InitModule((char *) SWIG_name, SwigMethods);
16903 d = PyModule_GetDict(m);
16904
16905 if (!typeinit) {
16906 for (i = 0; swig_types_initial[i]; i++) {
16907 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
16908 }
16909 typeinit = 1;
16910 }
16911 SWIG_InstallConstants(d,swig_const_table);
16912
16913 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
16914 SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set);
16915 PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string"));
16916 PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool"));
16917 PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long"));
16918 PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double"));
16919 PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice"));
16920 PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string"));
16921 PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long"));
16922 PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint"));
16923 PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime"));
16924 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
16925 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
16926 PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any));
16927 PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default));
16928 PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell));
16929 PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_FromInt((int)wxGridCellAttr::Row));
16930 PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_FromInt((int)wxGridCellAttr::Col));
16931 PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_FromInt((int)wxGridCellAttr::Merged));
16932 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES));
16933 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES));
16934 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED));
16935 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED));
16936 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED));
16937 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED));
16938 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED));
16939 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED));
16940 PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_FromInt((int)wxGrid::wxGridSelectCells));
16941 PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_FromInt((int)wxGrid::wxGridSelectRows));
16942 PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_FromInt((int)wxGrid::wxGridSelectColumns));
16943 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
16944 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
16945 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
16946 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
16947 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
16948 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
16949 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
16950 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
16951 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
16952 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
16953 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
16954 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
16955 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
16956 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
16957 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
16958 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
16959
16960
16961 }
16962