]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | ||
127 | /*********************************************************************** | |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
137 | #include "Python.h" | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | /* ----------------------------------------------------------------------------- | |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
219 | ||
220 | ||
221 | /* Contract support */ | |
222 | ||
223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
224 | ||
225 | #ifdef __cplusplus | |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0] | |
234 | #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1] | |
235 | #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2] | |
236 | #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3] | |
237 | #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4] | |
238 | #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5] | |
239 | #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6] | |
240 | #define SWIGTYPE_p_wxGridCellRenderer swig_types[7] | |
241 | #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8] | |
242 | #define SWIGTYPE_p_wxGridCellAttr swig_types[9] | |
243 | #define SWIGTYPE_p_wxColour swig_types[10] | |
244 | #define SWIGTYPE_p_wxDC swig_types[11] | |
245 | #define SWIGTYPE_p_wxGridTableMessage swig_types[12] | |
246 | #define SWIGTYPE_p_wxGrid swig_types[13] | |
247 | #define SWIGTYPE_p_char swig_types[14] | |
248 | #define SWIGTYPE_p_wxPanel swig_types[15] | |
249 | #define SWIGTYPE_p_wxNotifyEvent swig_types[16] | |
250 | #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[17] | |
251 | #define SWIGTYPE_p_wxSize swig_types[18] | |
252 | #define SWIGTYPE_p_wxGridCellCoords swig_types[19] | |
253 | #define SWIGTYPE_p_wxScrolledWindow swig_types[20] | |
254 | #define SWIGTYPE_p_wxWindow swig_types[21] | |
255 | #define SWIGTYPE_p_wxFont swig_types[22] | |
256 | #define SWIGTYPE_p_wxControl swig_types[23] | |
257 | #define SWIGTYPE_p_wxEvent swig_types[24] | |
258 | #define SWIGTYPE_p_wxObject swig_types[25] | |
259 | #define SWIGTYPE_p_wxGridSizeEvent swig_types[26] | |
260 | #define SWIGTYPE_p_wxRect swig_types[27] | |
261 | #define SWIGTYPE_p_long swig_types[28] | |
262 | #define SWIGTYPE_p_wxString swig_types[29] | |
263 | #define SWIGTYPE_p_wxEvtHandler swig_types[30] | |
264 | #define SWIGTYPE_p_wxPoint swig_types[31] | |
265 | #define SWIGTYPE_p_wxGridEvent swig_types[32] | |
266 | #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[33] | |
267 | #define SWIGTYPE_p_wxGridTableBase swig_types[34] | |
268 | #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35] | |
269 | #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36] | |
270 | #define SWIGTYPE_p_wxGridCellEditor swig_types[37] | |
271 | #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38] | |
272 | #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[39] | |
273 | #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[40] | |
274 | #define SWIGTYPE_p_wxPyGridTableBase swig_types[41] | |
275 | #define SWIGTYPE_p_wxGridStringTable swig_types[42] | |
276 | #define SWIGTYPE_p_wxArrayString swig_types[43] | |
277 | #define SWIGTYPE_p_wxCommandEvent swig_types[44] | |
278 | #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[45] | |
279 | #define SWIGTYPE_p_wxKeyEvent swig_types[46] | |
280 | #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[47] | |
281 | #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[48] | |
282 | #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[49] | |
283 | #define SWIGTYPE_p_int swig_types[50] | |
284 | #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[51] | |
285 | static swig_type_info *swig_types[53]; | |
286 | ||
287 | /* -------- TYPES TABLE (END) -------- */ | |
288 | ||
289 | ||
290 | /*----------------------------------------------- | |
291 | @(target):= _grid.so | |
292 | ------------------------------------------------*/ | |
293 | #define SWIG_init init_grid | |
294 | ||
295 | #define SWIG_name "_grid" | |
296 | ||
297 | #include <limits.h> | |
298 | #include <float.h> | |
299 | #include <string.h> | |
300 | ||
301 | #ifndef SWIGSTATIC | |
302 | #ifdef __cplusplus | |
303 | #define SWIGSTATIC(a) static inline a | |
304 | #else | |
305 | #define SWIGSTATIC(a) static a | |
306 | #endif | |
307 | #endif | |
308 | ||
309 | #ifndef numeric_cast | |
310 | #ifdef __cplusplus | |
311 | #ifdef HAVE_NUMERIC_CAST | |
312 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
313 | #else | |
314 | #define numeric_cast(type,a) static_cast<type>(a) | |
315 | #endif | |
316 | #else | |
317 | #define numeric_cast(type,a) (type)(a) | |
318 | #endif | |
319 | #endif | |
320 | ||
321 | ||
322 | ||
323 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
324 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
325 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
326 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
327 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
328 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
329 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
330 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
331 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
332 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
333 | ||
334 | ||
335 | #include "wx/wxPython/wxPython.h" | |
336 | #include "wx/wxPython/pyclasses.h" | |
337 | #include "wx/wxPython/printfw.h" | |
338 | ||
339 | #include <wx/grid.h> | |
340 | #include <wx/generic/gridctrl.h> | |
341 | ||
342 | ||
343 | static const wxString wxPyEmptyString(wxEmptyString); | |
344 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
345 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); | |
346 | ||
347 | ||
348 | #define wxPyMake_TEMPLATE(TYPE) \ | |
349 | PyObject* wxPyMake_##TYPE(TYPE* source) { \ | |
350 | PyObject* target = NULL; \ | |
351 | if (source) { \ | |
352 | /* Check if there is already a pointer to a Python object in the \ | |
353 | OOR data that we can use. */ \ | |
354 | wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \ | |
355 | if (data) { \ | |
356 | target = data->m_obj; \ | |
357 | Py_INCREF(target); \ | |
358 | } \ | |
359 | /* Otherwise make a new wrapper for it the old fashioned way and \ | |
360 | give it the OOR treatment */ \ | |
361 | if (! target) { \ | |
362 | target = wxPyConstructObject(source, wxT(#TYPE), False); \ | |
363 | if (target) \ | |
364 | source->SetClientObject(new wxPyOORClientData(target)); \ | |
365 | } \ | |
366 | } else { /* source was NULL so return None. */ \ | |
367 | Py_INCREF(Py_None); target = Py_None; \ | |
368 | } \ | |
369 | return target; \ | |
370 | } \ | |
371 | ||
372 | ||
373 | wxPyMake_TEMPLATE(wxGridCellRenderer) | |
374 | wxPyMake_TEMPLATE(wxGridCellEditor) | |
375 | wxPyMake_TEMPLATE(wxGridCellAttr) | |
376 | wxPyMake_TEMPLATE(wxGridCellAttrProvider) | |
377 | wxPyMake_TEMPLATE(wxGridTableBase) | |
378 | ||
379 | ||
380 | ||
381 | #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \ | |
382 | wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
383 | wxGridCellAttr* rval = NULL; \ | |
384 | bool found; \ | |
385 | wxPyBeginBlockThreads(); \ | |
386 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
387 | PyObject* ro; \ | |
388 | wxGridCellAttr* ptr; \ | |
389 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \ | |
390 | if (ro) { \ | |
391 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \ | |
392 | rval = ptr; \ | |
393 | Py_DECREF(ro); \ | |
394 | } \ | |
395 | } \ | |
396 | wxPyEndBlockThreads(); \ | |
397 | if (! found) \ | |
398 | rval = PCLASS::CBNAME(a, b, c); \ | |
399 | return rval; \ | |
400 | } \ | |
401 | wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
402 | return PCLASS::CBNAME(a, b, c); \ | |
403 | } | |
404 | ||
405 | ||
406 | ||
407 | #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \ | |
408 | void CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
409 | wxPyBeginBlockThreads(); \ | |
410 | bool found; \ | |
411 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
413 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \ | |
414 | Py_DECREF(obj); \ | |
415 | } \ | |
416 | wxPyEndBlockThreads(); \ | |
417 | if (! found) \ | |
418 | PCLASS::CBNAME(attr, a, b); \ | |
419 | } \ | |
420 | void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
421 | PCLASS::CBNAME(attr, a, b); \ | |
422 | } | |
423 | ||
424 | ||
425 | ||
426 | #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \ | |
427 | void CBNAME(wxGridCellAttr *attr, int val) { \ | |
428 | wxPyBeginBlockThreads(); \ | |
429 | bool found; \ | |
430 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
431 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
432 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \ | |
433 | Py_DECREF(obj); \ | |
434 | } \ | |
435 | wxPyEndBlockThreads(); \ | |
436 | if (! found) \ | |
437 | PCLASS::CBNAME(attr, val); \ | |
438 | } \ | |
439 | void base_##CBNAME(wxGridCellAttr *attr, int val) { \ | |
440 | PCLASS::CBNAME(attr, val); \ | |
441 | } | |
442 | ||
443 | ||
444 | ||
445 | #define PYCALLBACK_INT__pure(CBNAME) \ | |
446 | int CBNAME() { \ | |
447 | wxPyBeginBlockThreads(); \ | |
448 | int rval = 0; \ | |
449 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
450 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
451 | wxPyEndBlockThreads(); \ | |
452 | return rval; \ | |
453 | } | |
454 | ||
455 | ||
456 | ||
457 | #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \ | |
458 | bool CBNAME(int a, int b) { \ | |
459 | wxPyBeginBlockThreads(); \ | |
460 | bool rval = 0; \ | |
461 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
462 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
463 | wxPyEndBlockThreads(); \ | |
464 | return rval; \ | |
465 | } | |
466 | ||
467 | ||
468 | #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \ | |
469 | wxString CBNAME(int a, int b) { \ | |
470 | wxPyBeginBlockThreads(); \ | |
471 | wxString rval; \ | |
472 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
473 | PyObject* ro; \ | |
474 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
475 | if (ro) { \ | |
476 | rval = Py2wxString(ro); \ | |
477 | Py_DECREF(ro); \ | |
478 | } \ | |
479 | } \ | |
480 | wxPyEndBlockThreads(); \ | |
481 | return rval; \ | |
482 | } | |
483 | ||
484 | ||
485 | #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \ | |
486 | void CBNAME(int a, int b, const wxString& c) { \ | |
487 | wxPyBeginBlockThreads(); \ | |
488 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
489 | PyObject* s = wx2PyString(c); \ | |
490 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
491 | Py_DECREF(s); \ | |
492 | } \ | |
493 | wxPyEndBlockThreads(); \ | |
494 | } | |
495 | ||
496 | ||
497 | #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \ | |
498 | wxString CBNAME(int a, int b) { \ | |
499 | bool found; \ | |
500 | wxPyBeginBlockThreads(); \ | |
501 | wxString rval; \ | |
502 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
503 | PyObject* ro; \ | |
504 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
505 | if (ro) { \ | |
506 | rval = Py2wxString(ro); \ | |
507 | Py_DECREF(ro); \ | |
508 | } \ | |
509 | } \ | |
510 | wxPyEndBlockThreads(); \ | |
511 | if (! found) \ | |
512 | rval = PCLASS::CBNAME(a, b); \ | |
513 | return rval; \ | |
514 | } \ | |
515 | wxString base_##CBNAME(int a, int b) { \ | |
516 | return PCLASS::CBNAME(a, b); \ | |
517 | } | |
518 | ||
519 | ||
520 | #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ | |
521 | bool CBNAME(int a, int b, const wxString& c) { \ | |
522 | bool rval = 0; \ | |
523 | bool found; \ | |
524 | wxPyBeginBlockThreads(); \ | |
525 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
526 | PyObject* s = wx2PyString(c); \ | |
527 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
528 | Py_DECREF(s); \ | |
529 | } \ | |
530 | wxPyEndBlockThreads(); \ | |
531 | if (! found) \ | |
532 | rval = PCLASS::CBNAME(a,b,c); \ | |
533 | return rval; \ | |
534 | } \ | |
535 | bool base_##CBNAME(int a, int b, const wxString& c) { \ | |
536 | return PCLASS::CBNAME(a,b,c); \ | |
537 | } | |
538 | ||
539 | ||
540 | ||
541 | ||
542 | #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \ | |
543 | long CBNAME(int a, int b) { \ | |
544 | long rval; \ | |
545 | bool found; \ | |
546 | wxPyBeginBlockThreads(); \ | |
547 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
548 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
549 | wxPyEndBlockThreads(); \ | |
550 | if (! found) \ | |
551 | rval = PCLASS::CBNAME(a,b); \ | |
552 | return rval; \ | |
553 | } \ | |
554 | long base_##CBNAME(int a, int b) { \ | |
555 | return PCLASS::CBNAME(a,b); \ | |
556 | } | |
557 | ||
558 | ||
559 | ||
560 | #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ | |
561 | bool CBNAME(int a, int b) { \ | |
562 | bool rval = 0; \ | |
563 | bool found; \ | |
564 | wxPyBeginBlockThreads(); \ | |
565 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
566 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
567 | wxPyEndBlockThreads(); \ | |
568 | if (! found) \ | |
569 | rval = PCLASS::CBNAME(a,b); \ | |
570 | return rval; \ | |
571 | } \ | |
572 | bool base_##CBNAME(int a, int b) { \ | |
573 | return PCLASS::CBNAME(a,b); \ | |
574 | } | |
575 | ||
576 | ||
577 | ||
578 | #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \ | |
579 | double CBNAME(int a, int b) { \ | |
580 | bool found; \ | |
581 | wxPyBeginBlockThreads(); \ | |
582 | double rval; \ | |
583 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
584 | PyObject* ro; \ | |
585 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
586 | if (ro) { \ | |
587 | PyObject* str = PyObject_Str(ro); \ | |
588 | rval = PyFloat_AsDouble(str); \ | |
589 | Py_DECREF(ro); Py_DECREF(str); \ | |
590 | } \ | |
591 | } \ | |
592 | wxPyEndBlockThreads(); \ | |
593 | if (! found) \ | |
594 | rval = PCLASS::CBNAME(a, b); \ | |
595 | return rval; \ | |
596 | } \ | |
597 | double base_##CBNAME(int a, int b) { \ | |
598 | return PCLASS::CBNAME(a, b); \ | |
599 | } | |
600 | ||
601 | ||
602 | ||
603 | #define PYCALLBACK__(PCLASS, CBNAME) \ | |
604 | void CBNAME() { \ | |
605 | bool found; \ | |
606 | wxPyBeginBlockThreads(); \ | |
607 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
608 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
609 | wxPyEndBlockThreads(); \ | |
610 | if (! found) \ | |
611 | PCLASS::CBNAME(); \ | |
612 | } \ | |
613 | void base_##CBNAME() { \ | |
614 | PCLASS::CBNAME(); \ | |
615 | } | |
616 | ||
617 | ||
618 | ||
619 | ||
620 | #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ | |
621 | bool CBNAME(size_t a, size_t b) { \ | |
622 | bool rval = 0; \ | |
623 | bool found; \ | |
624 | wxPyBeginBlockThreads(); \ | |
625 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
626 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
627 | wxPyEndBlockThreads(); \ | |
628 | if (! found) \ | |
629 | rval = PCLASS::CBNAME(a,b); \ | |
630 | return rval; \ | |
631 | } \ | |
632 | bool base_##CBNAME(size_t a, size_t b) { \ | |
633 | return PCLASS::CBNAME(a,b); \ | |
634 | } | |
635 | ||
636 | ||
637 | ||
638 | #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ | |
639 | bool CBNAME(size_t a) { \ | |
640 | bool rval = 0; \ | |
641 | bool found; \ | |
642 | wxPyBeginBlockThreads(); \ | |
643 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
644 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ | |
645 | wxPyEndBlockThreads(); \ | |
646 | if (! found) \ | |
647 | rval = PCLASS::CBNAME(a); \ | |
648 | return rval; \ | |
649 | } \ | |
650 | bool base_##CBNAME(size_t a) { \ | |
651 | return PCLASS::CBNAME(a); \ | |
652 | } | |
653 | ||
654 | ||
655 | #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \ | |
656 | wxString CBNAME(int a) { \ | |
657 | bool found; \ | |
658 | wxPyBeginBlockThreads(); \ | |
659 | wxString rval; \ | |
660 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
661 | PyObject* ro; \ | |
662 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \ | |
663 | if (ro) { \ | |
664 | rval = Py2wxString(ro); \ | |
665 | Py_DECREF(ro); \ | |
666 | } \ | |
667 | } \ | |
668 | wxPyEndBlockThreads(); \ | |
669 | if (! found) \ | |
670 | rval = PCLASS::CBNAME(a); \ | |
671 | return rval; \ | |
672 | } \ | |
673 | wxString base_##CBNAME(int a) { \ | |
674 | return PCLASS::CBNAME(a); \ | |
675 | } | |
676 | ||
677 | ||
678 | #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \ | |
679 | void CBNAME(int a, const wxString& c) { \ | |
680 | bool found; \ | |
681 | wxPyBeginBlockThreads(); \ | |
682 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
683 | PyObject* s = wx2PyString(c); \ | |
684 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \ | |
685 | Py_DECREF(s); \ | |
686 | } \ | |
687 | wxPyEndBlockThreads(); \ | |
688 | if (! found) \ | |
689 | PCLASS::CBNAME(a,c); \ | |
690 | } \ | |
691 | void base_##CBNAME(int a, const wxString& c) { \ | |
692 | PCLASS::CBNAME(a,c); \ | |
693 | } | |
694 | ||
695 | ||
696 | ||
697 | ||
698 | #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ | |
699 | bool CBNAME() { \ | |
700 | bool rval = 0; \ | |
701 | bool found; \ | |
702 | wxPyBeginBlockThreads(); \ | |
703 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
704 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
705 | wxPyEndBlockThreads(); \ | |
706 | if (! found) \ | |
707 | rval = PCLASS::CBNAME(); \ | |
708 | return rval; \ | |
709 | } \ | |
710 | bool base_##CBNAME() { \ | |
711 | return PCLASS::CBNAME(); \ | |
712 | } | |
713 | ||
714 | ||
715 | ||
716 | #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \ | |
717 | void CBNAME(size_t a, int b) { \ | |
718 | bool found; \ | |
719 | wxPyBeginBlockThreads(); \ | |
720 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
721 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
722 | wxPyEndBlockThreads(); \ | |
723 | if (! found) \ | |
724 | PCLASS::CBNAME(a,b); \ | |
725 | } \ | |
726 | void base_##CBNAME(size_t a, int b) { \ | |
727 | PCLASS::CBNAME(a,b); \ | |
728 | } | |
729 | ||
730 | ||
731 | ||
732 | ||
733 | #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \ | |
734 | void CBNAME(int a, int b, long c) { \ | |
735 | bool found; \ | |
736 | wxPyBeginBlockThreads(); \ | |
737 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
738 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
739 | wxPyEndBlockThreads(); \ | |
740 | if (! found) \ | |
741 | PCLASS::CBNAME(a,b,c); \ | |
742 | } \ | |
743 | void base_##CBNAME(int a, int b, long c) { \ | |
744 | PCLASS::CBNAME(a,b,c); \ | |
745 | } | |
746 | ||
747 | ||
748 | ||
749 | ||
750 | #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \ | |
751 | void CBNAME(int a, int b, double c) { \ | |
752 | bool found; \ | |
753 | wxPyBeginBlockThreads(); \ | |
754 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
755 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \ | |
756 | wxPyEndBlockThreads(); \ | |
757 | if (! found) \ | |
758 | PCLASS::CBNAME(a,b,c); \ | |
759 | } \ | |
760 | void base_##CBNAME(int a, int b, double c) { \ | |
761 | PCLASS::CBNAME(a,b,c); \ | |
762 | } | |
763 | ||
764 | ||
765 | ||
766 | #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \ | |
767 | void CBNAME(int a, int b, bool c) { \ | |
768 | bool found; \ | |
769 | wxPyBeginBlockThreads(); \ | |
770 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
771 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
772 | wxPyEndBlockThreads(); \ | |
773 | if (! found) \ | |
774 | PCLASS::CBNAME(a,b,c); \ | |
775 | } \ | |
776 | void base_##CBNAME(int a, int b, bool c) { \ | |
777 | PCLASS::CBNAME(a,b,c); \ | |
778 | } | |
779 | ||
780 | ||
781 | ||
782 | ||
783 | ||
784 | void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){ | |
785 | self->SetClientObject(new wxPyOORClientData(_self)); | |
786 | } | |
787 | ||
788 | SWIGSTATIC(int) | |
789 | SWIG_PyObj_AsInt(PyObject *obj) | |
790 | { | |
791 | return numeric_cast(int, | |
792 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
793 | } | |
794 | ||
795 | ||
796 | SWIGSTATIC(bool) | |
797 | SWIG_PyObj_AsBool(PyObject *obj) | |
798 | { | |
799 | return PyObject_IsTrue(obj) ? true : false; | |
800 | } | |
801 | ||
802 | ||
803 | class wxPyGridCellRenderer : public wxGridCellRenderer | |
804 | { | |
805 | public: | |
806 | wxPyGridCellRenderer() : wxGridCellRenderer() {}; | |
807 | ||
808 | // Implement Python callback aware virtual methods | |
809 | void Draw(wxGrid& grid, wxGridCellAttr& attr, | |
810 | wxDC& dc, const wxRect& rect, | |
811 | int row, int col, bool isSelected) { | |
812 | wxPyBeginBlockThreads(); | |
813 | if (wxPyCBH_findCallback(m_myInst, "Draw")) { | |
814 | PyObject* go = wxPyMake_wxObject(&grid); | |
815 | PyObject* dco = wxPyMake_wxObject(&dc); | |
816 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
817 | PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0); | |
818 | ||
819 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro, | |
820 | row, col, isSelected)); | |
821 | Py_DECREF(go); | |
822 | Py_DECREF(ao); | |
823 | Py_DECREF(dco); | |
824 | Py_DECREF(ro); | |
825 | } | |
826 | wxPyEndBlockThreads(); | |
827 | } | |
828 | ||
829 | wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, | |
830 | int row, int col) { | |
831 | wxSize rval; | |
832 | wxPyBeginBlockThreads(); | |
833 | if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) { | |
834 | PyObject* ro; | |
835 | wxSize* ptr; | |
836 | PyObject* go = wxPyMake_wxObject(&grid); | |
837 | PyObject* dco = wxPyMake_wxObject(&dc); | |
838 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
839 | ||
840 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)", | |
841 | go, ao, dco, | |
842 | row, col)); | |
843 | Py_DECREF(go); | |
844 | Py_DECREF(ao); | |
845 | Py_DECREF(dco); | |
846 | ||
847 | if (ro) { | |
848 | const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object."; | |
849 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) { | |
850 | rval = *ptr; | |
851 | } | |
852 | else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { | |
853 | PyObject* o1 = PySequence_GetItem(ro, 0); | |
854 | PyObject* o2 = PySequence_GetItem(ro, 1); | |
855 | if (PyNumber_Check(o1) && PyNumber_Check(o2)) | |
856 | rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
857 | else | |
858 | PyErr_SetString(PyExc_TypeError, errmsg); | |
859 | Py_DECREF(o1); | |
860 | Py_DECREF(o2); | |
861 | } | |
862 | else { | |
863 | PyErr_SetString(PyExc_TypeError, errmsg); | |
864 | } | |
865 | Py_DECREF(ro); | |
866 | } | |
867 | } | |
868 | wxPyEndBlockThreads(); | |
869 | return rval; | |
870 | } | |
871 | ||
872 | ||
873 | wxGridCellRenderer *Clone() const { | |
874 | wxGridCellRenderer* rval = NULL; | |
875 | wxPyBeginBlockThreads(); | |
876 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { | |
877 | PyObject* ro; | |
878 | wxGridCellRenderer* ptr; | |
879 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
880 | if (ro) { | |
881 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer"))) | |
882 | rval = ptr; | |
883 | Py_DECREF(ro); | |
884 | } | |
885 | } | |
886 | wxPyEndBlockThreads(); | |
887 | return rval; | |
888 | } | |
889 | ||
890 | DEC_PYCALLBACK__STRING(SetParameters); | |
891 | ||
892 | PYPRIVATE; | |
893 | }; | |
894 | ||
895 | IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters); | |
896 | ||
897 | ||
898 | void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){ | |
899 | self->SetClientObject(new wxPyOORClientData(_self)); | |
900 | } | |
901 | ||
902 | class wxPyGridCellEditor : public wxGridCellEditor | |
903 | { | |
904 | public: | |
905 | wxPyGridCellEditor() : wxGridCellEditor() {} | |
906 | ||
907 | void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) { | |
908 | wxPyBeginBlockThreads(); | |
909 | if (wxPyCBH_findCallback(m_myInst, "Create")) { | |
910 | PyObject* po = wxPyMake_wxObject(parent); | |
911 | PyObject* eo = wxPyMake_wxObject(evtHandler); | |
912 | ||
913 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo)); | |
914 | Py_DECREF(po); | |
915 | Py_DECREF(eo); | |
916 | } | |
917 | wxPyEndBlockThreads(); | |
918 | } | |
919 | ||
920 | ||
921 | void BeginEdit(int row, int col, wxGrid* grid) { | |
922 | wxPyBeginBlockThreads(); | |
923 | if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) { | |
924 | PyObject* go = wxPyMake_wxObject(grid); | |
925 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
926 | Py_DECREF(go); | |
927 | } | |
928 | wxPyEndBlockThreads(); | |
929 | } | |
930 | ||
931 | ||
932 | bool EndEdit(int row, int col, wxGrid* grid) { | |
933 | bool rv = False; | |
934 | wxPyBeginBlockThreads(); | |
935 | if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { | |
936 | PyObject* go = wxPyMake_wxObject(grid); | |
937 | rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
938 | Py_DECREF(go); | |
939 | } | |
940 | wxPyEndBlockThreads(); | |
941 | return rv; | |
942 | } | |
943 | ||
944 | ||
945 | wxGridCellEditor* Clone() const { | |
946 | wxGridCellEditor* rval = NULL; | |
947 | wxPyBeginBlockThreads(); | |
948 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { | |
949 | PyObject* ro; | |
950 | wxGridCellEditor* ptr; | |
951 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
952 | if (ro) { | |
953 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor"))) | |
954 | rval = ptr; | |
955 | Py_DECREF(ro); | |
956 | } | |
957 | } | |
958 | wxPyEndBlockThreads(); | |
959 | return rval; | |
960 | } | |
961 | ||
962 | ||
963 | void Show(bool show, wxGridCellAttr *attr) { | |
964 | bool found; | |
965 | wxPyBeginBlockThreads(); | |
966 | if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) { | |
967 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
968 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao)); | |
969 | Py_DECREF(ao); | |
970 | } | |
971 | wxPyEndBlockThreads(); | |
972 | if (! found) | |
973 | wxGridCellEditor::Show(show, attr); | |
974 | } | |
975 | void base_Show(bool show, wxGridCellAttr *attr) { | |
976 | wxGridCellEditor::Show(show, attr); | |
977 | } | |
978 | ||
979 | ||
980 | void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
981 | bool found; | |
982 | wxPyBeginBlockThreads(); | |
983 | if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) { | |
984 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
985 | PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0); | |
986 | ||
987 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao)); | |
988 | ||
989 | Py_DECREF(ro); | |
990 | Py_DECREF(ao); | |
991 | } | |
992 | wxPyEndBlockThreads(); | |
993 | if (! found) | |
994 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
995 | } | |
996 | void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
997 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
998 | } | |
999 | ||
1000 | ||
1001 | DEC_PYCALLBACK___pure(Reset); | |
1002 | DEC_PYCALLBACK__constany(SetSize, wxRect); | |
1003 | DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent); | |
1004 | DEC_PYCALLBACK__any(StartingKey, wxKeyEvent); | |
1005 | DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent); | |
1006 | DEC_PYCALLBACK__(StartingClick); | |
1007 | DEC_PYCALLBACK__(Destroy); | |
1008 | DEC_PYCALLBACK__STRING(SetParameters); | |
1009 | DEC_PYCALLBACK_STRING__constpure(GetValue); | |
1010 | ||
1011 | PYPRIVATE; | |
1012 | }; | |
1013 | ||
1014 | ||
1015 | IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters); | |
1016 | IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset); | |
1017 | IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect); | |
1018 | IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent); | |
1019 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent); | |
1020 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent); | |
1021 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick); | |
1022 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy); | |
1023 | IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue); | |
1024 | ||
1025 | ||
1026 | void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){ | |
1027 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1028 | } | |
1029 | ||
1030 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1031 | PyObject* o2; | |
1032 | PyObject* o3; | |
1033 | ||
1034 | if (!target) { | |
1035 | target = o; | |
1036 | } else if (target == Py_None) { | |
1037 | Py_DECREF(Py_None); | |
1038 | target = o; | |
1039 | } else { | |
1040 | if (!PyTuple_Check(target)) { | |
1041 | o2 = target; | |
1042 | target = PyTuple_New(1); | |
1043 | PyTuple_SetItem(target, 0, o2); | |
1044 | } | |
1045 | o3 = PyTuple_New(1); | |
1046 | PyTuple_SetItem(o3, 0, o); | |
1047 | ||
1048 | o2 = target; | |
1049 | target = PySequence_Concat(o2, o3); | |
1050 | Py_DECREF(o2); | |
1051 | Py_DECREF(o3); | |
1052 | } | |
1053 | return target; | |
1054 | } | |
1055 | ||
1056 | void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){ | |
1057 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1058 | } | |
1059 | ||
1060 | class wxPyGridCellAttrProvider : public wxGridCellAttrProvider | |
1061 | { | |
1062 | public: | |
1063 | wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {}; | |
1064 | ||
1065 | PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr); | |
1066 | PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr); | |
1067 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr); | |
1068 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr); | |
1069 | ||
1070 | PYPRIVATE; | |
1071 | }; | |
1072 | ||
1073 | void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){ | |
1074 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1075 | } | |
1076 | ||
1077 | SWIGSTATIC(long) | |
1078 | SWIG_PyObj_AsLong(PyObject * obj) | |
1079 | { | |
1080 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
1081 | } | |
1082 | ||
1083 | ||
1084 | SWIGSTATIC(double) | |
1085 | SWIG_PyObj_AsDouble(PyObject *obj) | |
1086 | { | |
1087 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
1088 | #if HAVE_LONG_LONG | |
1089 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
1090 | #else | |
1091 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
1092 | #endif | |
1093 | if (PyErr_Occurred()) { | |
1094 | PyErr_Clear(); | |
1095 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
1096 | } | |
1097 | } | |
1098 | ||
1099 | ||
1100 | class wxPyGridTableBase : public wxGridTableBase | |
1101 | { | |
1102 | public: | |
1103 | wxPyGridTableBase() : wxGridTableBase() {} | |
1104 | ||
1105 | PYCALLBACK_INT__pure(GetNumberRows); | |
1106 | PYCALLBACK_INT__pure(GetNumberCols); | |
1107 | PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell); | |
1108 | PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName); | |
1109 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs); | |
1110 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs); | |
1111 | PYCALLBACK__(wxGridTableBase, Clear); | |
1112 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows); | |
1113 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows); | |
1114 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols); | |
1115 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols); | |
1116 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows); | |
1117 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols); | |
1118 | PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue); | |
1119 | PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue); | |
1120 | PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue); | |
1121 | PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue); | |
1122 | PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes); | |
1123 | PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr); | |
1124 | PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr); | |
1125 | PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr); | |
1126 | PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr); | |
1127 | ||
1128 | ||
1129 | wxString GetValue(int row, int col) { | |
1130 | wxPyBeginBlockThreads(); | |
1131 | wxString rval; | |
1132 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1133 | PyObject* ro; | |
1134 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col)); | |
1135 | if (ro) { | |
1136 | rval = Py2wxString(ro); | |
1137 | Py_DECREF(ro); | |
1138 | } | |
1139 | } | |
1140 | wxPyEndBlockThreads(); | |
1141 | return rval; | |
1142 | } | |
1143 | ||
1144 | void SetValue(int row, int col, const wxString& val) { | |
1145 | wxPyBeginBlockThreads(); | |
1146 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1147 | PyObject* s = wx2PyString(val); | |
1148 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s)); | |
1149 | Py_DECREF(s); | |
1150 | } | |
1151 | wxPyEndBlockThreads(); | |
1152 | } | |
1153 | ||
1154 | ||
1155 | // Map the Get/Set methods for the standard non-string types to | |
1156 | // the GetValue and SetValue python methods. | |
1157 | long GetValueAsLong( int row, int col ) { | |
1158 | long rval = 0; | |
1159 | wxPyBeginBlockThreads(); | |
1160 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1161 | PyObject* ro; | |
1162 | PyObject* num; | |
1163 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1164 | if (ro && PyNumber_Check(ro)) { | |
1165 | num = PyNumber_Int(ro); | |
1166 | if (num) { | |
1167 | rval = PyInt_AsLong(num); | |
1168 | Py_DECREF(num); | |
1169 | } | |
1170 | Py_DECREF(ro); | |
1171 | } | |
1172 | } | |
1173 | wxPyEndBlockThreads(); | |
1174 | return rval; | |
1175 | } | |
1176 | ||
1177 | double GetValueAsDouble( int row, int col ) { | |
1178 | double rval = 0.0; | |
1179 | wxPyBeginBlockThreads(); | |
1180 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1181 | PyObject* ro; | |
1182 | PyObject* num; | |
1183 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1184 | if (ro && PyNumber_Check(ro)) { | |
1185 | num = PyNumber_Float(ro); | |
1186 | if (num) { | |
1187 | rval = PyFloat_AsDouble(num); | |
1188 | Py_DECREF(num); | |
1189 | } | |
1190 | Py_DECREF(ro); | |
1191 | } | |
1192 | } | |
1193 | wxPyEndBlockThreads(); | |
1194 | return rval; | |
1195 | } | |
1196 | ||
1197 | bool GetValueAsBool( int row, int col ) { | |
1198 | return (bool)GetValueAsLong(row, col); | |
1199 | } | |
1200 | ||
1201 | void SetValueAsLong( int row, int col, long value ) { | |
1202 | wxPyBeginBlockThreads(); | |
1203 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1204 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value)); | |
1205 | } | |
1206 | wxPyEndBlockThreads(); | |
1207 | } | |
1208 | ||
1209 | void SetValueAsDouble( int row, int col, double value ) { | |
1210 | wxPyBeginBlockThreads(); | |
1211 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1212 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value)); | |
1213 | } | |
1214 | wxPyEndBlockThreads(); | |
1215 | } | |
1216 | ||
1217 | void SetValueAsBool( int row, int col, bool value ) { | |
1218 | SetValueAsLong( row, col, (long)value ); | |
1219 | } | |
1220 | ||
1221 | ||
1222 | PYPRIVATE; | |
1223 | }; | |
1224 | ||
1225 | void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; } | |
1226 | ||
1227 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { | |
1228 | ||
1229 | if (source == Py_None) { | |
1230 | **obj = wxGridCellCoords(-1,-1); | |
1231 | return True; | |
1232 | } | |
1233 | ||
1234 | // If source is an object instance then it may already be the right type | |
1235 | if (wxPySwigInstance_Check(source)) { | |
1236 | wxGridCellCoords* ptr; | |
1237 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1238 | goto error; | |
1239 | *obj = ptr; | |
1240 | return True; | |
1241 | } | |
1242 | // otherwise a 2-tuple of integers is expected | |
1243 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { | |
1244 | PyObject* o1 = PySequence_GetItem(source, 0); | |
1245 | PyObject* o2 = PySequence_GetItem(source, 1); | |
1246 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { | |
1247 | Py_DECREF(o1); | |
1248 | Py_DECREF(o2); | |
1249 | goto error; | |
1250 | } | |
1251 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1252 | Py_DECREF(o1); | |
1253 | Py_DECREF(o2); | |
1254 | return True; | |
1255 | } | |
1256 | ||
1257 | error: | |
1258 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); | |
1259 | return False; | |
1260 | } | |
1261 | ||
1262 | ||
1263 | bool wxGridCellCoords_typecheck(PyObject* source) { | |
1264 | void* ptr; | |
1265 | ||
1266 | if (wxPySwigInstance_Check(source) && | |
1267 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1268 | return True; | |
1269 | ||
1270 | PyErr_Clear(); | |
1271 | if (PySequence_Check(source) && PySequence_Length(source) == 2) | |
1272 | return True; | |
1273 | ||
1274 | return False; | |
1275 | } | |
1276 | ||
1277 | ||
1278 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) | |
1279 | { | |
1280 | PyObject* list = PyList_New(0); | |
1281 | size_t idx; | |
1282 | for (idx = 0; idx < source.GetCount(); idx += 1) { | |
1283 | wxGridCellCoords& coord = source.Item(idx); | |
1284 | PyObject* tup = PyTuple_New(2); | |
1285 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); | |
1286 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); | |
1287 | PyList_Append(list, tup); | |
1288 | Py_DECREF(tup); | |
1289 | } | |
1290 | return list; | |
1291 | } | |
1292 | ||
1293 | PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){ | |
1294 | PyObject* tup = PyTuple_New(2); | |
1295 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1296 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1297 | return tup; | |
1298 | } | |
1299 | ||
1300 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; | |
1301 | ||
1302 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ | |
1303 | wxGridCellCoords rv; | |
1304 | self->XYToCell(x, y, rv); | |
1305 | return rv; | |
1306 | } | |
1307 | #ifdef __cplusplus | |
1308 | extern "C" { | |
1309 | #endif | |
1310 | static int _wrap_DateTimeFormatStr_set(PyObject *_val) { | |
1311 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); | |
1312 | return 1; | |
1313 | } | |
1314 | ||
1315 | ||
1316 | static PyObject *_wrap_DateTimeFormatStr_get() { | |
1317 | PyObject *pyobj; | |
1318 | ||
1319 | { | |
1320 | #if wxUSE_UNICODE | |
1321 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1322 | #else | |
1323 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1324 | #endif | |
1325 | } | |
1326 | return pyobj; | |
1327 | } | |
1328 | ||
1329 | ||
1330 | static int _wrap_GridNoCellCoords_set(PyObject *_val) { | |
1331 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); | |
1332 | return 1; | |
1333 | } | |
1334 | ||
1335 | ||
1336 | static PyObject *_wrap_GridNoCellCoords_get() { | |
1337 | PyObject *pyobj; | |
1338 | ||
1339 | pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0); | |
1340 | return pyobj; | |
1341 | } | |
1342 | ||
1343 | ||
1344 | static int _wrap_GridNoCellRect_set(PyObject *_val) { | |
1345 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); | |
1346 | return 1; | |
1347 | } | |
1348 | ||
1349 | ||
1350 | static PyObject *_wrap_GridNoCellRect_get() { | |
1351 | PyObject *pyobj; | |
1352 | ||
1353 | pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0); | |
1354 | return pyobj; | |
1355 | } | |
1356 | ||
1357 | ||
1358 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1359 | PyObject *resultobj; | |
1360 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1361 | PyObject *arg2 = (PyObject *) 0 ; | |
1362 | PyObject * obj0 = 0 ; | |
1363 | PyObject * obj1 = 0 ; | |
1364 | char *kwnames[] = { | |
1365 | (char *) "self",(char *) "_self", NULL | |
1366 | }; | |
1367 | ||
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
1369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1370 | arg2 = obj1; | |
1371 | { | |
1372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1373 | wxGridCellRenderer__setOORInfo(arg1,arg2); | |
1374 | ||
1375 | wxPyEndAllowThreads(__tstate); | |
1376 | if (PyErr_Occurred()) SWIG_fail; | |
1377 | } | |
1378 | Py_INCREF(Py_None); resultobj = Py_None; | |
1379 | return resultobj; | |
1380 | fail: | |
1381 | return NULL; | |
1382 | } | |
1383 | ||
1384 | ||
1385 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject *resultobj; | |
1387 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1388 | wxString *arg2 = 0 ; | |
1389 | bool temp2 = False ; | |
1390 | PyObject * obj0 = 0 ; | |
1391 | PyObject * obj1 = 0 ; | |
1392 | char *kwnames[] = { | |
1393 | (char *) "self",(char *) "params", NULL | |
1394 | }; | |
1395 | ||
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1398 | { | |
1399 | arg2 = wxString_in_helper(obj1); | |
1400 | if (arg2 == NULL) SWIG_fail; | |
1401 | temp2 = True; | |
1402 | } | |
1403 | { | |
1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1405 | (arg1)->SetParameters((wxString const &)*arg2); | |
1406 | ||
1407 | wxPyEndAllowThreads(__tstate); | |
1408 | if (PyErr_Occurred()) SWIG_fail; | |
1409 | } | |
1410 | Py_INCREF(Py_None); resultobj = Py_None; | |
1411 | { | |
1412 | if (temp2) | |
1413 | delete arg2; | |
1414 | } | |
1415 | return resultobj; | |
1416 | fail: | |
1417 | { | |
1418 | if (temp2) | |
1419 | delete arg2; | |
1420 | } | |
1421 | return NULL; | |
1422 | } | |
1423 | ||
1424 | ||
1425 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1426 | PyObject *resultobj; | |
1427 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1428 | PyObject * obj0 = 0 ; | |
1429 | char *kwnames[] = { | |
1430 | (char *) "self", NULL | |
1431 | }; | |
1432 | ||
1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; | |
1434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1435 | { | |
1436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1437 | (arg1)->IncRef(); | |
1438 | ||
1439 | wxPyEndAllowThreads(__tstate); | |
1440 | if (PyErr_Occurred()) SWIG_fail; | |
1441 | } | |
1442 | Py_INCREF(Py_None); resultobj = Py_None; | |
1443 | return resultobj; | |
1444 | fail: | |
1445 | return NULL; | |
1446 | } | |
1447 | ||
1448 | ||
1449 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject *resultobj; | |
1451 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1452 | PyObject * obj0 = 0 ; | |
1453 | char *kwnames[] = { | |
1454 | (char *) "self", NULL | |
1455 | }; | |
1456 | ||
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; | |
1458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1459 | { | |
1460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1461 | (arg1)->DecRef(); | |
1462 | ||
1463 | wxPyEndAllowThreads(__tstate); | |
1464 | if (PyErr_Occurred()) SWIG_fail; | |
1465 | } | |
1466 | Py_INCREF(Py_None); resultobj = Py_None; | |
1467 | return resultobj; | |
1468 | fail: | |
1469 | return NULL; | |
1470 | } | |
1471 | ||
1472 | ||
1473 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1474 | PyObject *resultobj; | |
1475 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1476 | wxGrid *arg2 = 0 ; | |
1477 | wxGridCellAttr *arg3 = 0 ; | |
1478 | wxDC *arg4 = 0 ; | |
1479 | wxRect *arg5 = 0 ; | |
1480 | int arg6 ; | |
1481 | int arg7 ; | |
1482 | bool arg8 ; | |
1483 | wxRect temp5 ; | |
1484 | PyObject * obj0 = 0 ; | |
1485 | PyObject * obj1 = 0 ; | |
1486 | PyObject * obj2 = 0 ; | |
1487 | PyObject * obj3 = 0 ; | |
1488 | PyObject * obj4 = 0 ; | |
1489 | PyObject * obj5 = 0 ; | |
1490 | PyObject * obj6 = 0 ; | |
1491 | PyObject * obj7 = 0 ; | |
1492 | char *kwnames[] = { | |
1493 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL | |
1494 | }; | |
1495 | ||
1496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1499 | if (arg2 == NULL) { | |
1500 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1501 | } | |
1502 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1503 | if (arg3 == NULL) { | |
1504 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1505 | } | |
1506 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1507 | if (arg4 == NULL) { | |
1508 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1509 | } | |
1510 | { | |
1511 | arg5 = &temp5; | |
1512 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
1513 | } | |
1514 | { | |
1515 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
1516 | if (PyErr_Occurred()) SWIG_fail; | |
1517 | } | |
1518 | { | |
1519 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
1520 | if (PyErr_Occurred()) SWIG_fail; | |
1521 | } | |
1522 | { | |
1523 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); | |
1524 | if (PyErr_Occurred()) SWIG_fail; | |
1525 | } | |
1526 | { | |
1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1528 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); | |
1529 | ||
1530 | wxPyEndAllowThreads(__tstate); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | } | |
1533 | Py_INCREF(Py_None); resultobj = Py_None; | |
1534 | return resultobj; | |
1535 | fail: | |
1536 | return NULL; | |
1537 | } | |
1538 | ||
1539 | ||
1540 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1541 | PyObject *resultobj; | |
1542 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1543 | wxGrid *arg2 = 0 ; | |
1544 | wxGridCellAttr *arg3 = 0 ; | |
1545 | wxDC *arg4 = 0 ; | |
1546 | int arg5 ; | |
1547 | int arg6 ; | |
1548 | wxSize result; | |
1549 | PyObject * obj0 = 0 ; | |
1550 | PyObject * obj1 = 0 ; | |
1551 | PyObject * obj2 = 0 ; | |
1552 | PyObject * obj3 = 0 ; | |
1553 | PyObject * obj4 = 0 ; | |
1554 | PyObject * obj5 = 0 ; | |
1555 | char *kwnames[] = { | |
1556 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL | |
1557 | }; | |
1558 | ||
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1561 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1562 | if (arg2 == NULL) { | |
1563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1564 | } | |
1565 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1566 | if (arg3 == NULL) { | |
1567 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1568 | } | |
1569 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1570 | if (arg4 == NULL) { | |
1571 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1572 | } | |
1573 | { | |
1574 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
1575 | if (PyErr_Occurred()) SWIG_fail; | |
1576 | } | |
1577 | { | |
1578 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
1580 | } | |
1581 | { | |
1582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1583 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); | |
1584 | ||
1585 | wxPyEndAllowThreads(__tstate); | |
1586 | if (PyErr_Occurred()) SWIG_fail; | |
1587 | } | |
1588 | { | |
1589 | wxSize * resultptr; | |
1590 | resultptr = new wxSize((wxSize &) result); | |
1591 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1592 | } | |
1593 | return resultobj; | |
1594 | fail: | |
1595 | return NULL; | |
1596 | } | |
1597 | ||
1598 | ||
1599 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1600 | PyObject *resultobj; | |
1601 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1602 | wxGridCellRenderer *result; | |
1603 | PyObject * obj0 = 0 ; | |
1604 | char *kwnames[] = { | |
1605 | (char *) "self", NULL | |
1606 | }; | |
1607 | ||
1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; | |
1609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1610 | { | |
1611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1612 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); | |
1613 | ||
1614 | wxPyEndAllowThreads(__tstate); | |
1615 | if (PyErr_Occurred()) SWIG_fail; | |
1616 | } | |
1617 | { | |
1618 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
1619 | } | |
1620 | return resultobj; | |
1621 | fail: | |
1622 | return NULL; | |
1623 | } | |
1624 | ||
1625 | ||
1626 | static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1627 | PyObject *obj; | |
1628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1629 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); | |
1630 | Py_INCREF(obj); | |
1631 | return Py_BuildValue((char *)""); | |
1632 | } | |
1633 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject *resultobj; | |
1635 | wxPyGridCellRenderer *result; | |
1636 | char *kwnames[] = { | |
1637 | NULL | |
1638 | }; | |
1639 | ||
1640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; | |
1641 | { | |
1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1643 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); | |
1644 | ||
1645 | wxPyEndAllowThreads(__tstate); | |
1646 | if (PyErr_Occurred()) SWIG_fail; | |
1647 | } | |
1648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1); | |
1649 | return resultobj; | |
1650 | fail: | |
1651 | return NULL; | |
1652 | } | |
1653 | ||
1654 | ||
1655 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject *resultobj; | |
1657 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1658 | PyObject *arg2 = (PyObject *) 0 ; | |
1659 | PyObject *arg3 = (PyObject *) 0 ; | |
1660 | PyObject * obj0 = 0 ; | |
1661 | PyObject * obj1 = 0 ; | |
1662 | PyObject * obj2 = 0 ; | |
1663 | char *kwnames[] = { | |
1664 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1665 | }; | |
1666 | ||
1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1669 | arg2 = obj1; | |
1670 | arg3 = obj2; | |
1671 | { | |
1672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1673 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1674 | ||
1675 | wxPyEndAllowThreads(__tstate); | |
1676 | if (PyErr_Occurred()) SWIG_fail; | |
1677 | } | |
1678 | Py_INCREF(Py_None); resultobj = Py_None; | |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject *resultobj; | |
1687 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1688 | wxString *arg2 = 0 ; | |
1689 | bool temp2 = False ; | |
1690 | PyObject * obj0 = 0 ; | |
1691 | PyObject * obj1 = 0 ; | |
1692 | char *kwnames[] = { | |
1693 | (char *) "self",(char *) "params", NULL | |
1694 | }; | |
1695 | ||
1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1698 | { | |
1699 | arg2 = wxString_in_helper(obj1); | |
1700 | if (arg2 == NULL) SWIG_fail; | |
1701 | temp2 = True; | |
1702 | } | |
1703 | { | |
1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1705 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
1706 | ||
1707 | wxPyEndAllowThreads(__tstate); | |
1708 | if (PyErr_Occurred()) SWIG_fail; | |
1709 | } | |
1710 | Py_INCREF(Py_None); resultobj = Py_None; | |
1711 | { | |
1712 | if (temp2) | |
1713 | delete arg2; | |
1714 | } | |
1715 | return resultobj; | |
1716 | fail: | |
1717 | { | |
1718 | if (temp2) | |
1719 | delete arg2; | |
1720 | } | |
1721 | return NULL; | |
1722 | } | |
1723 | ||
1724 | ||
1725 | static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1726 | PyObject *obj; | |
1727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1728 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); | |
1729 | Py_INCREF(obj); | |
1730 | return Py_BuildValue((char *)""); | |
1731 | } | |
1732 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject *resultobj; | |
1734 | wxGridCellStringRenderer *result; | |
1735 | char *kwnames[] = { | |
1736 | NULL | |
1737 | }; | |
1738 | ||
1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; | |
1740 | { | |
1741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1742 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); | |
1743 | ||
1744 | wxPyEndAllowThreads(__tstate); | |
1745 | if (PyErr_Occurred()) SWIG_fail; | |
1746 | } | |
1747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1); | |
1748 | return resultobj; | |
1749 | fail: | |
1750 | return NULL; | |
1751 | } | |
1752 | ||
1753 | ||
1754 | static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
1755 | PyObject *obj; | |
1756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1757 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); | |
1758 | Py_INCREF(obj); | |
1759 | return Py_BuildValue((char *)""); | |
1760 | } | |
1761 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1762 | PyObject *resultobj; | |
1763 | wxGridCellNumberRenderer *result; | |
1764 | char *kwnames[] = { | |
1765 | NULL | |
1766 | }; | |
1767 | ||
1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; | |
1769 | { | |
1770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1771 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); | |
1772 | ||
1773 | wxPyEndAllowThreads(__tstate); | |
1774 | if (PyErr_Occurred()) SWIG_fail; | |
1775 | } | |
1776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1); | |
1777 | return resultobj; | |
1778 | fail: | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
1783 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) { | |
1784 | PyObject *obj; | |
1785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1786 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); | |
1787 | Py_INCREF(obj); | |
1788 | return Py_BuildValue((char *)""); | |
1789 | } | |
1790 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject *resultobj; | |
1792 | int arg1 = (int) -1 ; | |
1793 | int arg2 = (int) -1 ; | |
1794 | wxGridCellFloatRenderer *result; | |
1795 | PyObject * obj0 = 0 ; | |
1796 | PyObject * obj1 = 0 ; | |
1797 | char *kwnames[] = { | |
1798 | (char *) "width",(char *) "precision", NULL | |
1799 | }; | |
1800 | ||
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; | |
1802 | if (obj0) { | |
1803 | { | |
1804 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1805 | if (PyErr_Occurred()) SWIG_fail; | |
1806 | } | |
1807 | } | |
1808 | if (obj1) { | |
1809 | { | |
1810 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | } | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1); | |
1822 | return resultobj; | |
1823 | fail: | |
1824 | return NULL; | |
1825 | } | |
1826 | ||
1827 | ||
1828 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1829 | PyObject *resultobj; | |
1830 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1831 | int result; | |
1832 | PyObject * obj0 = 0 ; | |
1833 | char *kwnames[] = { | |
1834 | (char *) "self", NULL | |
1835 | }; | |
1836 | ||
1837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; | |
1838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1839 | { | |
1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1841 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) SWIG_fail; | |
1845 | } | |
1846 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1847 | return resultobj; | |
1848 | fail: | |
1849 | return NULL; | |
1850 | } | |
1851 | ||
1852 | ||
1853 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject *resultobj; | |
1855 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1856 | int arg2 ; | |
1857 | PyObject * obj0 = 0 ; | |
1858 | PyObject * obj1 = 0 ; | |
1859 | char *kwnames[] = { | |
1860 | (char *) "self",(char *) "width", NULL | |
1861 | }; | |
1862 | ||
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
1864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1865 | { | |
1866 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | } | |
1869 | { | |
1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1871 | (arg1)->SetWidth(arg2); | |
1872 | ||
1873 | wxPyEndAllowThreads(__tstate); | |
1874 | if (PyErr_Occurred()) SWIG_fail; | |
1875 | } | |
1876 | Py_INCREF(Py_None); resultobj = Py_None; | |
1877 | return resultobj; | |
1878 | fail: | |
1879 | return NULL; | |
1880 | } | |
1881 | ||
1882 | ||
1883 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1884 | PyObject *resultobj; | |
1885 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1886 | int result; | |
1887 | PyObject * obj0 = 0 ; | |
1888 | char *kwnames[] = { | |
1889 | (char *) "self", NULL | |
1890 | }; | |
1891 | ||
1892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; | |
1893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1894 | { | |
1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1896 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); | |
1897 | ||
1898 | wxPyEndAllowThreads(__tstate); | |
1899 | if (PyErr_Occurred()) SWIG_fail; | |
1900 | } | |
1901 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1902 | return resultobj; | |
1903 | fail: | |
1904 | return NULL; | |
1905 | } | |
1906 | ||
1907 | ||
1908 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject *resultobj; | |
1910 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1911 | int arg2 ; | |
1912 | PyObject * obj0 = 0 ; | |
1913 | PyObject * obj1 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "self",(char *) "precision", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; | |
1919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1920 | { | |
1921 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
1923 | } | |
1924 | { | |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1926 | (arg1)->SetPrecision(arg2); | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
1929 | if (PyErr_Occurred()) SWIG_fail; | |
1930 | } | |
1931 | Py_INCREF(Py_None); resultobj = Py_None; | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
1938 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) { | |
1939 | PyObject *obj; | |
1940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1941 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); | |
1942 | Py_INCREF(obj); | |
1943 | return Py_BuildValue((char *)""); | |
1944 | } | |
1945 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject *resultobj; | |
1947 | wxGridCellBoolRenderer *result; | |
1948 | char *kwnames[] = { | |
1949 | NULL | |
1950 | }; | |
1951 | ||
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1); | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) { | |
1968 | PyObject *obj; | |
1969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1970 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); | |
1971 | Py_INCREF(obj); | |
1972 | return Py_BuildValue((char *)""); | |
1973 | } | |
1974 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1975 | PyObject *resultobj; | |
1976 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; | |
1977 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; | |
1978 | wxGridCellDateTimeRenderer *result; | |
1979 | PyObject * obj0 = 0 ; | |
1980 | PyObject * obj1 = 0 ; | |
1981 | char *kwnames[] = { | |
1982 | (char *) "outformat",(char *) "informat", NULL | |
1983 | }; | |
1984 | ||
1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; | |
1986 | if (obj0) { | |
1987 | { | |
1988 | wxString* sptr = wxString_in_helper(obj0); | |
1989 | if (sptr == NULL) SWIG_fail; | |
1990 | arg1 = *sptr; | |
1991 | delete sptr; | |
1992 | } | |
1993 | } | |
1994 | if (obj1) { | |
1995 | { | |
1996 | wxString* sptr = wxString_in_helper(obj1); | |
1997 | if (sptr == NULL) SWIG_fail; | |
1998 | arg2 = *sptr; | |
1999 | delete sptr; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2004 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); | |
2005 | ||
2006 | wxPyEndAllowThreads(__tstate); | |
2007 | if (PyErr_Occurred()) SWIG_fail; | |
2008 | } | |
2009 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); | |
2010 | return resultobj; | |
2011 | fail: | |
2012 | return NULL; | |
2013 | } | |
2014 | ||
2015 | ||
2016 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) { | |
2017 | PyObject *obj; | |
2018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2019 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); | |
2020 | Py_INCREF(obj); | |
2021 | return Py_BuildValue((char *)""); | |
2022 | } | |
2023 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject *resultobj; | |
2025 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2026 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2027 | wxGridCellEnumRenderer *result; | |
2028 | bool temp1 = False ; | |
2029 | PyObject * obj0 = 0 ; | |
2030 | char *kwnames[] = { | |
2031 | (char *) "choices", NULL | |
2032 | }; | |
2033 | ||
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; | |
2035 | if (obj0) { | |
2036 | { | |
2037 | arg1 = wxString_in_helper(obj0); | |
2038 | if (arg1 == NULL) SWIG_fail; | |
2039 | temp1 = True; | |
2040 | } | |
2041 | } | |
2042 | { | |
2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2044 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); | |
2045 | ||
2046 | wxPyEndAllowThreads(__tstate); | |
2047 | if (PyErr_Occurred()) SWIG_fail; | |
2048 | } | |
2049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1); | |
2050 | { | |
2051 | if (temp1) | |
2052 | delete arg1; | |
2053 | } | |
2054 | return resultobj; | |
2055 | fail: | |
2056 | { | |
2057 | if (temp1) | |
2058 | delete arg1; | |
2059 | } | |
2060 | return NULL; | |
2061 | } | |
2062 | ||
2063 | ||
2064 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) { | |
2065 | PyObject *obj; | |
2066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2067 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); | |
2068 | Py_INCREF(obj); | |
2069 | return Py_BuildValue((char *)""); | |
2070 | } | |
2071 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxGridCellAutoWrapStringRenderer *result; | |
2074 | char *kwnames[] = { | |
2075 | NULL | |
2076 | }; | |
2077 | ||
2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; | |
2079 | { | |
2080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2081 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); | |
2082 | ||
2083 | wxPyEndAllowThreads(__tstate); | |
2084 | if (PyErr_Occurred()) SWIG_fail; | |
2085 | } | |
2086 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); | |
2087 | return resultobj; | |
2088 | fail: | |
2089 | return NULL; | |
2090 | } | |
2091 | ||
2092 | ||
2093 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
2094 | PyObject *obj; | |
2095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2096 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); | |
2097 | Py_INCREF(obj); | |
2098 | return Py_BuildValue((char *)""); | |
2099 | } | |
2100 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2101 | PyObject *resultobj; | |
2102 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2103 | PyObject *arg2 = (PyObject *) 0 ; | |
2104 | PyObject * obj0 = 0 ; | |
2105 | PyObject * obj1 = 0 ; | |
2106 | char *kwnames[] = { | |
2107 | (char *) "self",(char *) "_self", NULL | |
2108 | }; | |
2109 | ||
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2112 | arg2 = obj1; | |
2113 | { | |
2114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2115 | wxGridCellEditor__setOORInfo(arg1,arg2); | |
2116 | ||
2117 | wxPyEndAllowThreads(__tstate); | |
2118 | if (PyErr_Occurred()) SWIG_fail; | |
2119 | } | |
2120 | Py_INCREF(Py_None); resultobj = Py_None; | |
2121 | return resultobj; | |
2122 | fail: | |
2123 | return NULL; | |
2124 | } | |
2125 | ||
2126 | ||
2127 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2128 | PyObject *resultobj; | |
2129 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2130 | bool result; | |
2131 | PyObject * obj0 = 0 ; | |
2132 | char *kwnames[] = { | |
2133 | (char *) "self", NULL | |
2134 | }; | |
2135 | ||
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; | |
2137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2138 | { | |
2139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2140 | result = (bool)(arg1)->IsCreated(); | |
2141 | ||
2142 | wxPyEndAllowThreads(__tstate); | |
2143 | if (PyErr_Occurred()) SWIG_fail; | |
2144 | } | |
2145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2146 | return resultobj; | |
2147 | fail: | |
2148 | return NULL; | |
2149 | } | |
2150 | ||
2151 | ||
2152 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2153 | PyObject *resultobj; | |
2154 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2155 | wxControl *result; | |
2156 | PyObject * obj0 = 0 ; | |
2157 | char *kwnames[] = { | |
2158 | (char *) "self", NULL | |
2159 | }; | |
2160 | ||
2161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; | |
2162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2163 | { | |
2164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2165 | result = (wxControl *)(arg1)->GetControl(); | |
2166 | ||
2167 | wxPyEndAllowThreads(__tstate); | |
2168 | if (PyErr_Occurred()) SWIG_fail; | |
2169 | } | |
2170 | { | |
2171 | resultobj = wxPyMake_wxObject(result); | |
2172 | } | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2180 | PyObject *resultobj; | |
2181 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2182 | wxControl *arg2 = (wxControl *) 0 ; | |
2183 | PyObject * obj0 = 0 ; | |
2184 | PyObject * obj1 = 0 ; | |
2185 | char *kwnames[] = { | |
2186 | (char *) "self",(char *) "control", NULL | |
2187 | }; | |
2188 | ||
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
2190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2192 | { | |
2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2194 | (arg1)->SetControl(arg2); | |
2195 | ||
2196 | wxPyEndAllowThreads(__tstate); | |
2197 | if (PyErr_Occurred()) SWIG_fail; | |
2198 | } | |
2199 | Py_INCREF(Py_None); resultobj = Py_None; | |
2200 | return resultobj; | |
2201 | fail: | |
2202 | return NULL; | |
2203 | } | |
2204 | ||
2205 | ||
2206 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2207 | PyObject *resultobj; | |
2208 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2209 | wxGridCellAttr *result; | |
2210 | PyObject * obj0 = 0 ; | |
2211 | char *kwnames[] = { | |
2212 | (char *) "self", NULL | |
2213 | }; | |
2214 | ||
2215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; | |
2216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2217 | { | |
2218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2219 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); | |
2220 | ||
2221 | wxPyEndAllowThreads(__tstate); | |
2222 | if (PyErr_Occurred()) SWIG_fail; | |
2223 | } | |
2224 | { | |
2225 | resultobj = wxPyMake_wxGridCellAttr(result); | |
2226 | } | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
2233 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2234 | PyObject *resultobj; | |
2235 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2236 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
2237 | PyObject * obj0 = 0 ; | |
2238 | PyObject * obj1 = 0 ; | |
2239 | char *kwnames[] = { | |
2240 | (char *) "self",(char *) "attr", NULL | |
2241 | }; | |
2242 | ||
2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; | |
2244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | (arg1)->SetCellAttr(arg2); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2261 | PyObject *resultobj; | |
2262 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2263 | wxString *arg2 = 0 ; | |
2264 | bool temp2 = False ; | |
2265 | PyObject * obj0 = 0 ; | |
2266 | PyObject * obj1 = 0 ; | |
2267 | char *kwnames[] = { | |
2268 | (char *) "self",(char *) "params", NULL | |
2269 | }; | |
2270 | ||
2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2273 | { | |
2274 | arg2 = wxString_in_helper(obj1); | |
2275 | if (arg2 == NULL) SWIG_fail; | |
2276 | temp2 = True; | |
2277 | } | |
2278 | { | |
2279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2280 | (arg1)->SetParameters((wxString const &)*arg2); | |
2281 | ||
2282 | wxPyEndAllowThreads(__tstate); | |
2283 | if (PyErr_Occurred()) SWIG_fail; | |
2284 | } | |
2285 | Py_INCREF(Py_None); resultobj = Py_None; | |
2286 | { | |
2287 | if (temp2) | |
2288 | delete arg2; | |
2289 | } | |
2290 | return resultobj; | |
2291 | fail: | |
2292 | { | |
2293 | if (temp2) | |
2294 | delete arg2; | |
2295 | } | |
2296 | return NULL; | |
2297 | } | |
2298 | ||
2299 | ||
2300 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject *resultobj; | |
2302 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2303 | PyObject * obj0 = 0 ; | |
2304 | char *kwnames[] = { | |
2305 | (char *) "self", NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; | |
2309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2310 | { | |
2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2312 | (arg1)->IncRef(); | |
2313 | ||
2314 | wxPyEndAllowThreads(__tstate); | |
2315 | if (PyErr_Occurred()) SWIG_fail; | |
2316 | } | |
2317 | Py_INCREF(Py_None); resultobj = Py_None; | |
2318 | return resultobj; | |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2325 | PyObject *resultobj; | |
2326 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2327 | PyObject * obj0 = 0 ; | |
2328 | char *kwnames[] = { | |
2329 | (char *) "self", NULL | |
2330 | }; | |
2331 | ||
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; | |
2333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2334 | { | |
2335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2336 | (arg1)->DecRef(); | |
2337 | ||
2338 | wxPyEndAllowThreads(__tstate); | |
2339 | if (PyErr_Occurred()) SWIG_fail; | |
2340 | } | |
2341 | Py_INCREF(Py_None); resultobj = Py_None; | |
2342 | return resultobj; | |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
2348 | static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject *resultobj; | |
2350 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2351 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2352 | int arg3 ; | |
2353 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; | |
2354 | PyObject * obj0 = 0 ; | |
2355 | PyObject * obj1 = 0 ; | |
2356 | PyObject * obj2 = 0 ; | |
2357 | PyObject * obj3 = 0 ; | |
2358 | char *kwnames[] = { | |
2359 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL | |
2360 | }; | |
2361 | ||
2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2364 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2365 | { | |
2366 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2367 | if (PyErr_Occurred()) SWIG_fail; | |
2368 | } | |
2369 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2370 | { | |
2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2372 | (arg1)->Create(arg2,arg3,arg4); | |
2373 | ||
2374 | wxPyEndAllowThreads(__tstate); | |
2375 | if (PyErr_Occurred()) SWIG_fail; | |
2376 | } | |
2377 | Py_INCREF(Py_None); resultobj = Py_None; | |
2378 | return resultobj; | |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2387 | int arg2 ; | |
2388 | int arg3 ; | |
2389 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2390 | PyObject * obj0 = 0 ; | |
2391 | PyObject * obj1 = 0 ; | |
2392 | PyObject * obj2 = 0 ; | |
2393 | PyObject * obj3 = 0 ; | |
2394 | char *kwnames[] = { | |
2395 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2396 | }; | |
2397 | ||
2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2400 | { | |
2401 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
2404 | { | |
2405 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2406 | if (PyErr_Occurred()) SWIG_fail; | |
2407 | } | |
2408 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2409 | { | |
2410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2411 | (arg1)->BeginEdit(arg2,arg3,arg4); | |
2412 | ||
2413 | wxPyEndAllowThreads(__tstate); | |
2414 | if (PyErr_Occurred()) SWIG_fail; | |
2415 | } | |
2416 | Py_INCREF(Py_None); resultobj = Py_None; | |
2417 | return resultobj; | |
2418 | fail: | |
2419 | return NULL; | |
2420 | } | |
2421 | ||
2422 | ||
2423 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject *resultobj; | |
2425 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2426 | int arg2 ; | |
2427 | int arg3 ; | |
2428 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2429 | bool result; | |
2430 | PyObject * obj0 = 0 ; | |
2431 | PyObject * obj1 = 0 ; | |
2432 | PyObject * obj2 = 0 ; | |
2433 | PyObject * obj3 = 0 ; | |
2434 | char *kwnames[] = { | |
2435 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2436 | }; | |
2437 | ||
2438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2440 | { | |
2441 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
2444 | { | |
2445 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2446 | if (PyErr_Occurred()) SWIG_fail; | |
2447 | } | |
2448 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2449 | { | |
2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2451 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); | |
2452 | ||
2453 | wxPyEndAllowThreads(__tstate); | |
2454 | if (PyErr_Occurred()) SWIG_fail; | |
2455 | } | |
2456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2457 | return resultobj; | |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2466 | PyObject * obj0 = 0 ; | |
2467 | char *kwnames[] = { | |
2468 | (char *) "self", NULL | |
2469 | }; | |
2470 | ||
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; | |
2472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2473 | { | |
2474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2475 | (arg1)->Reset(); | |
2476 | ||
2477 | wxPyEndAllowThreads(__tstate); | |
2478 | if (PyErr_Occurred()) SWIG_fail; | |
2479 | } | |
2480 | Py_INCREF(Py_None); resultobj = Py_None; | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
2487 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2488 | PyObject *resultobj; | |
2489 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2490 | wxGridCellEditor *result; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | char *kwnames[] = { | |
2493 | (char *) "self", NULL | |
2494 | }; | |
2495 | ||
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; | |
2497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2498 | { | |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2500 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); | |
2501 | ||
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
2505 | { | |
2506 | resultobj = wxPyMake_wxGridCellEditor(result); | |
2507 | } | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
2514 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2517 | wxRect *arg2 = 0 ; | |
2518 | wxRect temp2 ; | |
2519 | PyObject * obj0 = 0 ; | |
2520 | PyObject * obj1 = 0 ; | |
2521 | char *kwnames[] = { | |
2522 | (char *) "self",(char *) "rect", NULL | |
2523 | }; | |
2524 | ||
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2527 | { | |
2528 | arg2 = &temp2; | |
2529 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2530 | } | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2533 | (arg1)->SetSize((wxRect const &)*arg2); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) SWIG_fail; | |
2537 | } | |
2538 | Py_INCREF(Py_None); resultobj = Py_None; | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
2545 | static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject *resultobj; | |
2547 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2548 | bool arg2 ; | |
2549 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2550 | PyObject * obj0 = 0 ; | |
2551 | PyObject * obj1 = 0 ; | |
2552 | PyObject * obj2 = 0 ; | |
2553 | char *kwnames[] = { | |
2554 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2559 | { | |
2560 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | if (obj2) { | |
2564 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2568 | (arg1)->Show(arg2,arg3); | |
2569 | ||
2570 | wxPyEndAllowThreads(__tstate); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | Py_INCREF(Py_None); resultobj = Py_None; | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2583 | wxRect *arg2 = 0 ; | |
2584 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2585 | wxRect temp2 ; | |
2586 | PyObject * obj0 = 0 ; | |
2587 | PyObject * obj1 = 0 ; | |
2588 | PyObject * obj2 = 0 ; | |
2589 | char *kwnames[] = { | |
2590 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2591 | }; | |
2592 | ||
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2595 | { | |
2596 | arg2 = &temp2; | |
2597 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2598 | } | |
2599 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2600 | { | |
2601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2602 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); | |
2603 | ||
2604 | wxPyEndAllowThreads(__tstate); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | Py_INCREF(Py_None); resultobj = Py_None; | |
2608 | return resultobj; | |
2609 | fail: | |
2610 | return NULL; | |
2611 | } | |
2612 | ||
2613 | ||
2614 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2615 | PyObject *resultobj; | |
2616 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2617 | wxKeyEvent *arg2 = 0 ; | |
2618 | bool result; | |
2619 | PyObject * obj0 = 0 ; | |
2620 | PyObject * obj1 = 0 ; | |
2621 | char *kwnames[] = { | |
2622 | (char *) "self",(char *) "event", NULL | |
2623 | }; | |
2624 | ||
2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2627 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2628 | if (arg2 == NULL) { | |
2629 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2630 | } | |
2631 | { | |
2632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2633 | result = (bool)(arg1)->IsAcceptedKey(*arg2); | |
2634 | ||
2635 | wxPyEndAllowThreads(__tstate); | |
2636 | if (PyErr_Occurred()) SWIG_fail; | |
2637 | } | |
2638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2639 | return resultobj; | |
2640 | fail: | |
2641 | return NULL; | |
2642 | } | |
2643 | ||
2644 | ||
2645 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2646 | PyObject *resultobj; | |
2647 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2648 | wxKeyEvent *arg2 = 0 ; | |
2649 | PyObject * obj0 = 0 ; | |
2650 | PyObject * obj1 = 0 ; | |
2651 | char *kwnames[] = { | |
2652 | (char *) "self",(char *) "event", NULL | |
2653 | }; | |
2654 | ||
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2657 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2658 | if (arg2 == NULL) { | |
2659 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2660 | } | |
2661 | { | |
2662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2663 | (arg1)->StartingKey(*arg2); | |
2664 | ||
2665 | wxPyEndAllowThreads(__tstate); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | Py_INCREF(Py_None); resultobj = Py_None; | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2678 | PyObject * obj0 = 0 ; | |
2679 | char *kwnames[] = { | |
2680 | (char *) "self", NULL | |
2681 | }; | |
2682 | ||
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; | |
2684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2685 | { | |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | (arg1)->StartingClick(); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
2692 | Py_INCREF(Py_None); resultobj = Py_None; | |
2693 | return resultobj; | |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
2699 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2700 | PyObject *resultobj; | |
2701 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2702 | wxKeyEvent *arg2 = 0 ; | |
2703 | PyObject * obj0 = 0 ; | |
2704 | PyObject * obj1 = 0 ; | |
2705 | char *kwnames[] = { | |
2706 | (char *) "self",(char *) "event", NULL | |
2707 | }; | |
2708 | ||
2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
2710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2712 | if (arg2 == NULL) { | |
2713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2714 | } | |
2715 | { | |
2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2717 | (arg1)->HandleReturn(*arg2); | |
2718 | ||
2719 | wxPyEndAllowThreads(__tstate); | |
2720 | if (PyErr_Occurred()) SWIG_fail; | |
2721 | } | |
2722 | Py_INCREF(Py_None); resultobj = Py_None; | |
2723 | return resultobj; | |
2724 | fail: | |
2725 | return NULL; | |
2726 | } | |
2727 | ||
2728 | ||
2729 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject *resultobj; | |
2731 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2732 | PyObject * obj0 = 0 ; | |
2733 | char *kwnames[] = { | |
2734 | (char *) "self", NULL | |
2735 | }; | |
2736 | ||
2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; | |
2738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2739 | { | |
2740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2741 | (arg1)->Destroy(); | |
2742 | ||
2743 | wxPyEndAllowThreads(__tstate); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | } | |
2746 | Py_INCREF(Py_None); resultobj = Py_None; | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
2754 | PyObject *obj; | |
2755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2756 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); | |
2757 | Py_INCREF(obj); | |
2758 | return Py_BuildValue((char *)""); | |
2759 | } | |
2760 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2761 | PyObject *resultobj; | |
2762 | wxPyGridCellEditor *result; | |
2763 | char *kwnames[] = { | |
2764 | NULL | |
2765 | }; | |
2766 | ||
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; | |
2768 | { | |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2770 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | } | |
2775 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1); | |
2776 | return resultobj; | |
2777 | fail: | |
2778 | return NULL; | |
2779 | } | |
2780 | ||
2781 | ||
2782 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2783 | PyObject *resultobj; | |
2784 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2785 | PyObject *arg2 = (PyObject *) 0 ; | |
2786 | PyObject *arg3 = (PyObject *) 0 ; | |
2787 | PyObject * obj0 = 0 ; | |
2788 | PyObject * obj1 = 0 ; | |
2789 | PyObject * obj2 = 0 ; | |
2790 | char *kwnames[] = { | |
2791 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2792 | }; | |
2793 | ||
2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2796 | arg2 = obj1; | |
2797 | arg3 = obj2; | |
2798 | { | |
2799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2800 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2801 | ||
2802 | wxPyEndAllowThreads(__tstate); | |
2803 | if (PyErr_Occurred()) SWIG_fail; | |
2804 | } | |
2805 | Py_INCREF(Py_None); resultobj = Py_None; | |
2806 | return resultobj; | |
2807 | fail: | |
2808 | return NULL; | |
2809 | } | |
2810 | ||
2811 | ||
2812 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2813 | PyObject *resultobj; | |
2814 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2815 | wxRect *arg2 = 0 ; | |
2816 | wxRect temp2 ; | |
2817 | PyObject * obj0 = 0 ; | |
2818 | PyObject * obj1 = 0 ; | |
2819 | char *kwnames[] = { | |
2820 | (char *) "self",(char *) "rect", NULL | |
2821 | }; | |
2822 | ||
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2825 | { | |
2826 | arg2 = &temp2; | |
2827 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2828 | } | |
2829 | { | |
2830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2831 | (arg1)->base_SetSize((wxRect const &)*arg2); | |
2832 | ||
2833 | wxPyEndAllowThreads(__tstate); | |
2834 | if (PyErr_Occurred()) SWIG_fail; | |
2835 | } | |
2836 | Py_INCREF(Py_None); resultobj = Py_None; | |
2837 | return resultobj; | |
2838 | fail: | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
2843 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject *resultobj; | |
2845 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2846 | bool arg2 ; | |
2847 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | PyObject * obj1 = 0 ; | |
2850 | PyObject * obj2 = 0 ; | |
2851 | char *kwnames[] = { | |
2852 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2853 | }; | |
2854 | ||
2855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2857 | { | |
2858 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
2859 | if (PyErr_Occurred()) SWIG_fail; | |
2860 | } | |
2861 | if (obj2) { | |
2862 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2863 | } | |
2864 | { | |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2866 | (arg1)->base_Show(arg2,arg3); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
2871 | Py_INCREF(Py_None); resultobj = Py_None; | |
2872 | return resultobj; | |
2873 | fail: | |
2874 | return NULL; | |
2875 | } | |
2876 | ||
2877 | ||
2878 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject *resultobj; | |
2880 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2881 | wxRect *arg2 = 0 ; | |
2882 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2883 | wxRect temp2 ; | |
2884 | PyObject * obj0 = 0 ; | |
2885 | PyObject * obj1 = 0 ; | |
2886 | PyObject * obj2 = 0 ; | |
2887 | char *kwnames[] = { | |
2888 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2889 | }; | |
2890 | ||
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2893 | { | |
2894 | arg2 = &temp2; | |
2895 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2896 | } | |
2897 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2898 | { | |
2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2900 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); | |
2901 | ||
2902 | wxPyEndAllowThreads(__tstate); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
2905 | Py_INCREF(Py_None); resultobj = Py_None; | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2915 | wxKeyEvent *arg2 = 0 ; | |
2916 | bool result; | |
2917 | PyObject * obj0 = 0 ; | |
2918 | PyObject * obj1 = 0 ; | |
2919 | char *kwnames[] = { | |
2920 | (char *) "self",(char *) "event", NULL | |
2921 | }; | |
2922 | ||
2923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2925 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2926 | if (arg2 == NULL) { | |
2927 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2928 | } | |
2929 | { | |
2930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2931 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); | |
2932 | ||
2933 | wxPyEndAllowThreads(__tstate); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | } | |
2936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2937 | return resultobj; | |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2946 | wxKeyEvent *arg2 = 0 ; | |
2947 | PyObject * obj0 = 0 ; | |
2948 | PyObject * obj1 = 0 ; | |
2949 | char *kwnames[] = { | |
2950 | (char *) "self",(char *) "event", NULL | |
2951 | }; | |
2952 | ||
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2955 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2956 | if (arg2 == NULL) { | |
2957 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2958 | } | |
2959 | { | |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | (arg1)->base_StartingKey(*arg2); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2966 | Py_INCREF(Py_None); resultobj = Py_None; | |
2967 | return resultobj; | |
2968 | fail: | |
2969 | return NULL; | |
2970 | } | |
2971 | ||
2972 | ||
2973 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject *resultobj; | |
2975 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2976 | PyObject * obj0 = 0 ; | |
2977 | char *kwnames[] = { | |
2978 | (char *) "self", NULL | |
2979 | }; | |
2980 | ||
2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; | |
2982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2983 | { | |
2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2985 | (arg1)->base_StartingClick(); | |
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_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject *resultobj; | |
2999 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3000 | wxKeyEvent *arg2 = 0 ; | |
3001 | PyObject * obj0 = 0 ; | |
3002 | PyObject * obj1 = 0 ; | |
3003 | char *kwnames[] = { | |
3004 | (char *) "self",(char *) "event", NULL | |
3005 | }; | |
3006 | ||
3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
3008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3009 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3010 | if (arg2 == NULL) { | |
3011 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3012 | } | |
3013 | { | |
3014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3015 | (arg1)->base_HandleReturn(*arg2); | |
3016 | ||
3017 | wxPyEndAllowThreads(__tstate); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
3020 | Py_INCREF(Py_None); resultobj = Py_None; | |
3021 | return resultobj; | |
3022 | fail: | |
3023 | return NULL; | |
3024 | } | |
3025 | ||
3026 | ||
3027 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3028 | PyObject *resultobj; | |
3029 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3030 | PyObject * obj0 = 0 ; | |
3031 | char *kwnames[] = { | |
3032 | (char *) "self", NULL | |
3033 | }; | |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; | |
3036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3037 | { | |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3039 | (arg1)->base_Destroy(); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
3043 | } | |
3044 | Py_INCREF(Py_None); resultobj = Py_None; | |
3045 | return resultobj; | |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3054 | wxString *arg2 = 0 ; | |
3055 | bool temp2 = False ; | |
3056 | PyObject * obj0 = 0 ; | |
3057 | PyObject * obj1 = 0 ; | |
3058 | char *kwnames[] = { | |
3059 | (char *) "self",(char *) "params", NULL | |
3060 | }; | |
3061 | ||
3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
3063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3064 | { | |
3065 | arg2 = wxString_in_helper(obj1); | |
3066 | if (arg2 == NULL) SWIG_fail; | |
3067 | temp2 = True; | |
3068 | } | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
3076 | Py_INCREF(Py_None); resultobj = Py_None; | |
3077 | { | |
3078 | if (temp2) | |
3079 | delete arg2; | |
3080 | } | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | { | |
3084 | if (temp2) | |
3085 | delete arg2; | |
3086 | } | |
3087 | return NULL; | |
3088 | } | |
3089 | ||
3090 | ||
3091 | static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
3092 | PyObject *obj; | |
3093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3094 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); | |
3095 | Py_INCREF(obj); | |
3096 | return Py_BuildValue((char *)""); | |
3097 | } | |
3098 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3099 | PyObject *resultobj; | |
3100 | wxGridCellTextEditor *result; | |
3101 | char *kwnames[] = { | |
3102 | NULL | |
3103 | }; | |
3104 | ||
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; | |
3106 | { | |
3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3108 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); | |
3109 | ||
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) SWIG_fail; | |
3112 | } | |
3113 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1); | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
3117 | } | |
3118 | ||
3119 | ||
3120 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3121 | PyObject *resultobj; | |
3122 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; | |
3123 | wxString result; | |
3124 | PyObject * obj0 = 0 ; | |
3125 | char *kwnames[] = { | |
3126 | (char *) "self", NULL | |
3127 | }; | |
3128 | ||
3129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; | |
3130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3131 | { | |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | result = (arg1)->GetValue(); | |
3134 | ||
3135 | wxPyEndAllowThreads(__tstate); | |
3136 | if (PyErr_Occurred()) SWIG_fail; | |
3137 | } | |
3138 | { | |
3139 | #if wxUSE_UNICODE | |
3140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3141 | #else | |
3142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3143 | #endif | |
3144 | } | |
3145 | return resultobj; | |
3146 | fail: | |
3147 | return NULL; | |
3148 | } | |
3149 | ||
3150 | ||
3151 | static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) { | |
3152 | PyObject *obj; | |
3153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3154 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); | |
3155 | Py_INCREF(obj); | |
3156 | return Py_BuildValue((char *)""); | |
3157 | } | |
3158 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3159 | PyObject *resultobj; | |
3160 | int arg1 = (int) -1 ; | |
3161 | int arg2 = (int) -1 ; | |
3162 | wxGridCellNumberEditor *result; | |
3163 | PyObject * obj0 = 0 ; | |
3164 | PyObject * obj1 = 0 ; | |
3165 | char *kwnames[] = { | |
3166 | (char *) "min",(char *) "max", NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; | |
3170 | if (obj0) { | |
3171 | { | |
3172 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
3173 | if (PyErr_Occurred()) SWIG_fail; | |
3174 | } | |
3175 | } | |
3176 | if (obj1) { | |
3177 | { | |
3178 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
3180 | } | |
3181 | } | |
3182 | { | |
3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3184 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
3189 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1); | |
3190 | return resultobj; | |
3191 | fail: | |
3192 | return NULL; | |
3193 | } | |
3194 | ||
3195 | ||
3196 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject *resultobj; | |
3198 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; | |
3199 | wxString result; | |
3200 | PyObject * obj0 = 0 ; | |
3201 | char *kwnames[] = { | |
3202 | (char *) "self", NULL | |
3203 | }; | |
3204 | ||
3205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; | |
3206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3207 | { | |
3208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3209 | result = (arg1)->GetValue(); | |
3210 | ||
3211 | wxPyEndAllowThreads(__tstate); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | { | |
3215 | #if wxUSE_UNICODE | |
3216 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3217 | #else | |
3218 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3219 | #endif | |
3220 | } | |
3221 | return resultobj; | |
3222 | fail: | |
3223 | return NULL; | |
3224 | } | |
3225 | ||
3226 | ||
3227 | static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) { | |
3228 | PyObject *obj; | |
3229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3230 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); | |
3231 | Py_INCREF(obj); | |
3232 | return Py_BuildValue((char *)""); | |
3233 | } | |
3234 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3235 | PyObject *resultobj; | |
3236 | wxGridCellFloatEditor *result; | |
3237 | char *kwnames[] = { | |
3238 | NULL | |
3239 | }; | |
3240 | ||
3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail; | |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1); | |
3250 | return resultobj; | |
3251 | fail: | |
3252 | return NULL; | |
3253 | } | |
3254 | ||
3255 | ||
3256 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; | |
3259 | wxString result; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | char *kwnames[] = { | |
3262 | (char *) "self", NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; | |
3266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3267 | { | |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | result = (arg1)->GetValue(); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | { | |
3275 | #if wxUSE_UNICODE | |
3276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3277 | #else | |
3278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3279 | #endif | |
3280 | } | |
3281 | return resultobj; | |
3282 | fail: | |
3283 | return NULL; | |
3284 | } | |
3285 | ||
3286 | ||
3287 | static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) { | |
3288 | PyObject *obj; | |
3289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3290 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); | |
3291 | Py_INCREF(obj); | |
3292 | return Py_BuildValue((char *)""); | |
3293 | } | |
3294 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3295 | PyObject *resultobj; | |
3296 | wxGridCellBoolEditor *result; | |
3297 | char *kwnames[] = { | |
3298 | NULL | |
3299 | }; | |
3300 | ||
3301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; | |
3302 | { | |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); | |
3305 | ||
3306 | wxPyEndAllowThreads(__tstate); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
3309 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1); | |
3310 | return resultobj; | |
3311 | fail: | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; | |
3319 | wxString result; | |
3320 | PyObject * obj0 = 0 ; | |
3321 | char *kwnames[] = { | |
3322 | (char *) "self", NULL | |
3323 | }; | |
3324 | ||
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; | |
3326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3327 | { | |
3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3329 | result = (arg1)->GetValue(); | |
3330 | ||
3331 | wxPyEndAllowThreads(__tstate); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | { | |
3335 | #if wxUSE_UNICODE | |
3336 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3337 | #else | |
3338 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3339 | #endif | |
3340 | } | |
3341 | return resultobj; | |
3342 | fail: | |
3343 | return NULL; | |
3344 | } | |
3345 | ||
3346 | ||
3347 | static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) { | |
3348 | PyObject *obj; | |
3349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3350 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); | |
3351 | Py_INCREF(obj); | |
3352 | return Py_BuildValue((char *)""); | |
3353 | } | |
3354 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3355 | PyObject *resultobj; | |
3356 | int arg1 = (int) 0 ; | |
3357 | wxString *arg2 = (wxString *) NULL ; | |
3358 | bool arg3 = (bool) False ; | |
3359 | wxGridCellChoiceEditor *result; | |
3360 | PyObject * obj0 = 0 ; | |
3361 | PyObject * obj1 = 0 ; | |
3362 | char *kwnames[] = { | |
3363 | (char *) "choices",(char *) "allowOthers", NULL | |
3364 | }; | |
3365 | ||
3366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; | |
3367 | if (obj0) { | |
3368 | { | |
3369 | arg1 = PyList_Size(obj0); | |
3370 | arg2 = wxString_LIST_helper(obj0); | |
3371 | if (arg2 == NULL) SWIG_fail; | |
3372 | } | |
3373 | } | |
3374 | if (obj1) { | |
3375 | { | |
3376 | arg3 = (bool) SWIG_PyObj_AsBool(obj1); | |
3377 | if (PyErr_Occurred()) SWIG_fail; | |
3378 | } | |
3379 | } | |
3380 | { | |
3381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3382 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); | |
3383 | ||
3384 | wxPyEndAllowThreads(__tstate); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
3386 | } | |
3387 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1); | |
3388 | { | |
3389 | if (arg2) delete [] arg2; | |
3390 | } | |
3391 | return resultobj; | |
3392 | fail: | |
3393 | { | |
3394 | if (arg2) delete [] arg2; | |
3395 | } | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
3400 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3401 | PyObject *resultobj; | |
3402 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; | |
3403 | wxString result; | |
3404 | PyObject * obj0 = 0 ; | |
3405 | char *kwnames[] = { | |
3406 | (char *) "self", NULL | |
3407 | }; | |
3408 | ||
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; | |
3410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | result = (arg1)->GetValue(); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | { | |
3419 | #if wxUSE_UNICODE | |
3420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3421 | #else | |
3422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3423 | #endif | |
3424 | } | |
3425 | return resultobj; | |
3426 | fail: | |
3427 | return NULL; | |
3428 | } | |
3429 | ||
3430 | ||
3431 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) { | |
3432 | PyObject *obj; | |
3433 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3434 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); | |
3435 | Py_INCREF(obj); | |
3436 | return Py_BuildValue((char *)""); | |
3437 | } | |
3438 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3439 | PyObject *resultobj; | |
3440 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3441 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3442 | wxGridCellEnumEditor *result; | |
3443 | bool temp1 = False ; | |
3444 | PyObject * obj0 = 0 ; | |
3445 | char *kwnames[] = { | |
3446 | (char *) "choices", NULL | |
3447 | }; | |
3448 | ||
3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; | |
3450 | if (obj0) { | |
3451 | { | |
3452 | arg1 = wxString_in_helper(obj0); | |
3453 | if (arg1 == NULL) SWIG_fail; | |
3454 | temp1 = True; | |
3455 | } | |
3456 | } | |
3457 | { | |
3458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3459 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); | |
3460 | ||
3461 | wxPyEndAllowThreads(__tstate); | |
3462 | if (PyErr_Occurred()) SWIG_fail; | |
3463 | } | |
3464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1); | |
3465 | { | |
3466 | if (temp1) | |
3467 | delete arg1; | |
3468 | } | |
3469 | return resultobj; | |
3470 | fail: | |
3471 | { | |
3472 | if (temp1) | |
3473 | delete arg1; | |
3474 | } | |
3475 | return NULL; | |
3476 | } | |
3477 | ||
3478 | ||
3479 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3480 | PyObject *resultobj; | |
3481 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; | |
3482 | wxString result; | |
3483 | PyObject * obj0 = 0 ; | |
3484 | char *kwnames[] = { | |
3485 | (char *) "self", NULL | |
3486 | }; | |
3487 | ||
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; | |
3489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3490 | { | |
3491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3492 | result = (arg1)->GetValue(); | |
3493 | ||
3494 | wxPyEndAllowThreads(__tstate); | |
3495 | if (PyErr_Occurred()) SWIG_fail; | |
3496 | } | |
3497 | { | |
3498 | #if wxUSE_UNICODE | |
3499 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3500 | #else | |
3501 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3502 | #endif | |
3503 | } | |
3504 | return resultobj; | |
3505 | fail: | |
3506 | return NULL; | |
3507 | } | |
3508 | ||
3509 | ||
3510 | static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) { | |
3511 | PyObject *obj; | |
3512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3513 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); | |
3514 | Py_INCREF(obj); | |
3515 | return Py_BuildValue((char *)""); | |
3516 | } | |
3517 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3518 | PyObject *resultobj; | |
3519 | wxGridCellAutoWrapStringEditor *result; | |
3520 | char *kwnames[] = { | |
3521 | NULL | |
3522 | }; | |
3523 | ||
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; | |
3525 | { | |
3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3527 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); | |
3528 | ||
3529 | wxPyEndAllowThreads(__tstate); | |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
3531 | } | |
3532 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); | |
3533 | return resultobj; | |
3534 | fail: | |
3535 | return NULL; | |
3536 | } | |
3537 | ||
3538 | ||
3539 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3540 | PyObject *resultobj; | |
3541 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; | |
3542 | wxString result; | |
3543 | PyObject * obj0 = 0 ; | |
3544 | char *kwnames[] = { | |
3545 | (char *) "self", NULL | |
3546 | }; | |
3547 | ||
3548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; | |
3549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3550 | { | |
3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3552 | result = (arg1)->GetValue(); | |
3553 | ||
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
3557 | { | |
3558 | #if wxUSE_UNICODE | |
3559 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3560 | #else | |
3561 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3562 | #endif | |
3563 | } | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | return NULL; | |
3567 | } | |
3568 | ||
3569 | ||
3570 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) { | |
3571 | PyObject *obj; | |
3572 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3573 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); | |
3574 | Py_INCREF(obj); | |
3575 | return Py_BuildValue((char *)""); | |
3576 | } | |
3577 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3578 | PyObject *resultobj; | |
3579 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3580 | PyObject *arg2 = (PyObject *) 0 ; | |
3581 | PyObject * obj0 = 0 ; | |
3582 | PyObject * obj1 = 0 ; | |
3583 | char *kwnames[] = { | |
3584 | (char *) "self",(char *) "_self", NULL | |
3585 | }; | |
3586 | ||
3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
3588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3589 | arg2 = obj1; | |
3590 | { | |
3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3592 | wxGridCellAttr__setOORInfo(arg1,arg2); | |
3593 | ||
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
3597 | Py_INCREF(Py_None); resultobj = Py_None; | |
3598 | return resultobj; | |
3599 | fail: | |
3600 | return NULL; | |
3601 | } | |
3602 | ||
3603 | ||
3604 | static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3605 | PyObject *resultobj; | |
3606 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; | |
3607 | wxGridCellAttr *result; | |
3608 | PyObject * obj0 = 0 ; | |
3609 | char *kwnames[] = { | |
3610 | (char *) "attrDefault", NULL | |
3611 | }; | |
3612 | ||
3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; | |
3614 | if (obj0) { | |
3615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3616 | } | |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); | |
3620 | ||
3621 | wxPyEndAllowThreads(__tstate); | |
3622 | if (PyErr_Occurred()) SWIG_fail; | |
3623 | } | |
3624 | { | |
3625 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3626 | } | |
3627 | return resultobj; | |
3628 | fail: | |
3629 | return NULL; | |
3630 | } | |
3631 | ||
3632 | ||
3633 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3634 | PyObject *resultobj; | |
3635 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3636 | wxGridCellAttr *result; | |
3637 | PyObject * obj0 = 0 ; | |
3638 | char *kwnames[] = { | |
3639 | (char *) "self", NULL | |
3640 | }; | |
3641 | ||
3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; | |
3643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3644 | { | |
3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3646 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); | |
3647 | ||
3648 | wxPyEndAllowThreads(__tstate); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3653 | } | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject *resultobj; | |
3662 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3663 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
3664 | PyObject * obj0 = 0 ; | |
3665 | PyObject * obj1 = 0 ; | |
3666 | char *kwnames[] = { | |
3667 | (char *) "self",(char *) "mergefrom", NULL | |
3668 | }; | |
3669 | ||
3670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; | |
3671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3672 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3673 | { | |
3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3675 | (arg1)->MergeWith(arg2); | |
3676 | ||
3677 | wxPyEndAllowThreads(__tstate); | |
3678 | if (PyErr_Occurred()) SWIG_fail; | |
3679 | } | |
3680 | Py_INCREF(Py_None); resultobj = Py_None; | |
3681 | return resultobj; | |
3682 | fail: | |
3683 | return NULL; | |
3684 | } | |
3685 | ||
3686 | ||
3687 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3688 | PyObject *resultobj; | |
3689 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3690 | PyObject * obj0 = 0 ; | |
3691 | char *kwnames[] = { | |
3692 | (char *) "self", NULL | |
3693 | }; | |
3694 | ||
3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; | |
3696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | (arg1)->IncRef(); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | Py_INCREF(Py_None); resultobj = Py_None; | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj; | |
3713 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3714 | PyObject * obj0 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; | |
3720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | (arg1)->DecRef(); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | Py_INCREF(Py_None); resultobj = Py_None; | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | return NULL; | |
3732 | } | |
3733 | ||
3734 | ||
3735 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3736 | PyObject *resultobj; | |
3737 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3738 | wxColour *arg2 = 0 ; | |
3739 | wxColour temp2 ; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | PyObject * obj1 = 0 ; | |
3742 | char *kwnames[] = { | |
3743 | (char *) "self",(char *) "colText", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
3747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3748 | { | |
3749 | arg2 = &temp2; | |
3750 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3751 | } | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | Py_INCREF(Py_None); resultobj = Py_None; | |
3760 | return resultobj; | |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
3766 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3767 | PyObject *resultobj; | |
3768 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3769 | wxColour *arg2 = 0 ; | |
3770 | wxColour temp2 ; | |
3771 | PyObject * obj0 = 0 ; | |
3772 | PyObject * obj1 = 0 ; | |
3773 | char *kwnames[] = { | |
3774 | (char *) "self",(char *) "colBack", NULL | |
3775 | }; | |
3776 | ||
3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
3778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3779 | { | |
3780 | arg2 = &temp2; | |
3781 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3782 | } | |
3783 | { | |
3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3785 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3786 | ||
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
3790 | Py_INCREF(Py_None); resultobj = Py_None; | |
3791 | return resultobj; | |
3792 | fail: | |
3793 | return NULL; | |
3794 | } | |
3795 | ||
3796 | ||
3797 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject *resultobj; | |
3799 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3800 | wxFont *arg2 = 0 ; | |
3801 | PyObject * obj0 = 0 ; | |
3802 | PyObject * obj1 = 0 ; | |
3803 | char *kwnames[] = { | |
3804 | (char *) "self",(char *) "font", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
3808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3810 | if (arg2 == NULL) { | |
3811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3812 | } | |
3813 | { | |
3814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3815 | (arg1)->SetFont((wxFont const &)*arg2); | |
3816 | ||
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | Py_INCREF(Py_None); resultobj = Py_None; | |
3821 | return resultobj; | |
3822 | fail: | |
3823 | return NULL; | |
3824 | } | |
3825 | ||
3826 | ||
3827 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3828 | PyObject *resultobj; | |
3829 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3830 | int arg2 ; | |
3831 | int arg3 ; | |
3832 | PyObject * obj0 = 0 ; | |
3833 | PyObject * obj1 = 0 ; | |
3834 | PyObject * obj2 = 0 ; | |
3835 | char *kwnames[] = { | |
3836 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL | |
3837 | }; | |
3838 | ||
3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3841 | { | |
3842 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3847 | if (PyErr_Occurred()) SWIG_fail; | |
3848 | } | |
3849 | { | |
3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3851 | (arg1)->SetAlignment(arg2,arg3); | |
3852 | ||
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | Py_INCREF(Py_None); resultobj = Py_None; | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | return NULL; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject *resultobj; | |
3865 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3866 | int arg2 ; | |
3867 | int arg3 ; | |
3868 | PyObject * obj0 = 0 ; | |
3869 | PyObject * obj1 = 0 ; | |
3870 | PyObject * obj2 = 0 ; | |
3871 | char *kwnames[] = { | |
3872 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL | |
3873 | }; | |
3874 | ||
3875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3877 | { | |
3878 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | { | |
3882 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3883 | if (PyErr_Occurred()) SWIG_fail; | |
3884 | } | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | (arg1)->SetSize(arg2,arg3); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | Py_INCREF(Py_None); resultobj = Py_None; | |
3893 | return resultobj; | |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3902 | bool arg2 = (bool) True ; | |
3903 | PyObject * obj0 = 0 ; | |
3904 | PyObject * obj1 = 0 ; | |
3905 | char *kwnames[] = { | |
3906 | (char *) "self",(char *) "allow", NULL | |
3907 | }; | |
3908 | ||
3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; | |
3910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3911 | if (obj1) { | |
3912 | { | |
3913 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
3916 | } | |
3917 | { | |
3918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3919 | (arg1)->SetOverflow(arg2); | |
3920 | ||
3921 | wxPyEndAllowThreads(__tstate); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
3924 | Py_INCREF(Py_None); resultobj = Py_None; | |
3925 | return resultobj; | |
3926 | fail: | |
3927 | return NULL; | |
3928 | } | |
3929 | ||
3930 | ||
3931 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3932 | PyObject *resultobj; | |
3933 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3934 | bool arg2 = (bool) True ; | |
3935 | PyObject * obj0 = 0 ; | |
3936 | PyObject * obj1 = 0 ; | |
3937 | char *kwnames[] = { | |
3938 | (char *) "self",(char *) "isReadOnly", NULL | |
3939 | }; | |
3940 | ||
3941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; | |
3942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3943 | if (obj1) { | |
3944 | { | |
3945 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | } | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | (arg1)->SetReadOnly(arg2); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | Py_INCREF(Py_None); resultobj = Py_None; | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj; | |
3965 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3966 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
3967 | PyObject * obj0 = 0 ; | |
3968 | PyObject * obj1 = 0 ; | |
3969 | char *kwnames[] = { | |
3970 | (char *) "self",(char *) "renderer", NULL | |
3971 | }; | |
3972 | ||
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; | |
3974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3975 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | (arg1)->SetRenderer(arg2); | |
3979 | ||
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | Py_INCREF(Py_None); resultobj = Py_None; | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3993 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
3994 | PyObject * obj0 = 0 ; | |
3995 | PyObject * obj1 = 0 ; | |
3996 | char *kwnames[] = { | |
3997 | (char *) "self",(char *) "editor", NULL | |
3998 | }; | |
3999 | ||
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; | |
4001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4002 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4003 | { | |
4004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4005 | (arg1)->SetEditor(arg2); | |
4006 | ||
4007 | wxPyEndAllowThreads(__tstate); | |
4008 | if (PyErr_Occurred()) SWIG_fail; | |
4009 | } | |
4010 | Py_INCREF(Py_None); resultobj = Py_None; | |
4011 | return resultobj; | |
4012 | fail: | |
4013 | return NULL; | |
4014 | } | |
4015 | ||
4016 | ||
4017 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject *resultobj; | |
4019 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4020 | int arg2 ; | |
4021 | PyObject * obj0 = 0 ; | |
4022 | PyObject * obj1 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "self",(char *) "kind", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
4028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4029 | { | |
4030 | arg2 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj1); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4033 | { | |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); | |
4036 | ||
4037 | wxPyEndAllowThreads(__tstate); | |
4038 | if (PyErr_Occurred()) SWIG_fail; | |
4039 | } | |
4040 | Py_INCREF(Py_None); resultobj = Py_None; | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
4047 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject *resultobj; | |
4049 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4050 | bool result; | |
4051 | PyObject * obj0 = 0 ; | |
4052 | char *kwnames[] = { | |
4053 | (char *) "self", NULL | |
4054 | }; | |
4055 | ||
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
4057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4058 | { | |
4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4060 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); | |
4061 | ||
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
4072 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject *resultobj; | |
4074 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4075 | bool result; | |
4076 | PyObject * obj0 = 0 ; | |
4077 | char *kwnames[] = { | |
4078 | (char *) "self", NULL | |
4079 | }; | |
4080 | ||
4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
4082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
4097 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4098 | PyObject *resultobj; | |
4099 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4100 | bool result; | |
4101 | PyObject * obj0 = 0 ; | |
4102 | char *kwnames[] = { | |
4103 | (char *) "self", NULL | |
4104 | }; | |
4105 | ||
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; | |
4107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4108 | { | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); | |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject *resultobj; | |
4124 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4125 | bool result; | |
4126 | PyObject * obj0 = 0 ; | |
4127 | char *kwnames[] = { | |
4128 | (char *) "self", NULL | |
4129 | }; | |
4130 | ||
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
4132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4133 | { | |
4134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4135 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); | |
4136 | ||
4137 | wxPyEndAllowThreads(__tstate); | |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
4139 | } | |
4140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4141 | return resultobj; | |
4142 | fail: | |
4143 | return NULL; | |
4144 | } | |
4145 | ||
4146 | ||
4147 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4148 | PyObject *resultobj; | |
4149 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4150 | bool result; | |
4151 | PyObject * obj0 = 0 ; | |
4152 | char *kwnames[] = { | |
4153 | (char *) "self", NULL | |
4154 | }; | |
4155 | ||
4156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; | |
4157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4158 | { | |
4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4160 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
4172 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4175 | bool result; | |
4176 | PyObject * obj0 = 0 ; | |
4177 | char *kwnames[] = { | |
4178 | (char *) "self", NULL | |
4179 | }; | |
4180 | ||
4181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; | |
4182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4191 | return resultobj; | |
4192 | fail: | |
4193 | return NULL; | |
4194 | } | |
4195 | ||
4196 | ||
4197 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4198 | PyObject *resultobj; | |
4199 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4200 | bool result; | |
4201 | PyObject * obj0 = 0 ; | |
4202 | char *kwnames[] = { | |
4203 | (char *) "self", NULL | |
4204 | }; | |
4205 | ||
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; | |
4207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4208 | { | |
4209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4210 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); | |
4211 | ||
4212 | wxPyEndAllowThreads(__tstate); | |
4213 | if (PyErr_Occurred()) SWIG_fail; | |
4214 | } | |
4215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4216 | return resultobj; | |
4217 | fail: | |
4218 | return NULL; | |
4219 | } | |
4220 | ||
4221 | ||
4222 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4223 | PyObject *resultobj; | |
4224 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4225 | bool result; | |
4226 | PyObject * obj0 = 0 ; | |
4227 | char *kwnames[] = { | |
4228 | (char *) "self", NULL | |
4229 | }; | |
4230 | ||
4231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; | |
4232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4233 | { | |
4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4235 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); | |
4236 | ||
4237 | wxPyEndAllowThreads(__tstate); | |
4238 | if (PyErr_Occurred()) SWIG_fail; | |
4239 | } | |
4240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4241 | return resultobj; | |
4242 | fail: | |
4243 | return NULL; | |
4244 | } | |
4245 | ||
4246 | ||
4247 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4248 | PyObject *resultobj; | |
4249 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4250 | wxColour result; | |
4251 | PyObject * obj0 = 0 ; | |
4252 | char *kwnames[] = { | |
4253 | (char *) "self", NULL | |
4254 | }; | |
4255 | ||
4256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
4257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | { | |
4266 | wxColour * resultptr; | |
4267 | resultptr = new wxColour((wxColour &) result); | |
4268 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
4269 | } | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
4276 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject *resultobj; | |
4278 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4279 | wxColour result; | |
4280 | PyObject * obj0 = 0 ; | |
4281 | char *kwnames[] = { | |
4282 | (char *) "self", NULL | |
4283 | }; | |
4284 | ||
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
4286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4287 | { | |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); | |
4290 | ||
4291 | wxPyEndAllowThreads(__tstate); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
4294 | { | |
4295 | wxColour * resultptr; | |
4296 | resultptr = new wxColour((wxColour &) result); | |
4297 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
4298 | } | |
4299 | return resultobj; | |
4300 | fail: | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
4305 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject *resultobj; | |
4307 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4308 | wxFont result; | |
4309 | PyObject * obj0 = 0 ; | |
4310 | char *kwnames[] = { | |
4311 | (char *) "self", NULL | |
4312 | }; | |
4313 | ||
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; | |
4315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4316 | { | |
4317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4318 | result = ((wxGridCellAttr const *)arg1)->GetFont(); | |
4319 | ||
4320 | wxPyEndAllowThreads(__tstate); | |
4321 | if (PyErr_Occurred()) SWIG_fail; | |
4322 | } | |
4323 | { | |
4324 | wxFont * resultptr; | |
4325 | resultptr = new wxFont((wxFont &) result); | |
4326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
4327 | } | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | return NULL; | |
4331 | } | |
4332 | ||
4333 | ||
4334 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4335 | PyObject *resultobj; | |
4336 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4337 | int *arg2 = (int *) 0 ; | |
4338 | int *arg3 = (int *) 0 ; | |
4339 | int temp2 ; | |
4340 | int temp3 ; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "self", NULL | |
4344 | }; | |
4345 | ||
4346 | arg2 = &temp2; | |
4347 | arg3 = &temp3; | |
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
4349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4350 | { | |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4352 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) SWIG_fail; | |
4356 | } | |
4357 | Py_INCREF(Py_None); resultobj = Py_None; | |
4358 | { | |
4359 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4360 | resultobj = t_output_helper(resultobj,o); | |
4361 | } | |
4362 | { | |
4363 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4364 | resultobj = t_output_helper(resultobj,o); | |
4365 | } | |
4366 | return resultobj; | |
4367 | fail: | |
4368 | return NULL; | |
4369 | } | |
4370 | ||
4371 | ||
4372 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject *resultobj; | |
4374 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4375 | int *arg2 = (int *) 0 ; | |
4376 | int *arg3 = (int *) 0 ; | |
4377 | int temp2 ; | |
4378 | int temp3 ; | |
4379 | PyObject * obj0 = 0 ; | |
4380 | char *kwnames[] = { | |
4381 | (char *) "self", NULL | |
4382 | }; | |
4383 | ||
4384 | arg2 = &temp2; | |
4385 | arg3 = &temp3; | |
4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; | |
4387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4388 | { | |
4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4390 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); | |
4391 | ||
4392 | wxPyEndAllowThreads(__tstate); | |
4393 | if (PyErr_Occurred()) SWIG_fail; | |
4394 | } | |
4395 | Py_INCREF(Py_None); resultobj = Py_None; | |
4396 | { | |
4397 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4398 | resultobj = t_output_helper(resultobj,o); | |
4399 | } | |
4400 | { | |
4401 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4402 | resultobj = t_output_helper(resultobj,o); | |
4403 | } | |
4404 | return resultobj; | |
4405 | fail: | |
4406 | return NULL; | |
4407 | } | |
4408 | ||
4409 | ||
4410 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject *resultobj; | |
4412 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4413 | bool result; | |
4414 | PyObject * obj0 = 0 ; | |
4415 | char *kwnames[] = { | |
4416 | (char *) "self", NULL | |
4417 | }; | |
4418 | ||
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; | |
4420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); | |
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_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4436 | PyObject *resultobj; | |
4437 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4438 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4439 | int arg3 ; | |
4440 | int arg4 ; | |
4441 | wxGridCellRenderer *result; | |
4442 | PyObject * obj0 = 0 ; | |
4443 | PyObject * obj1 = 0 ; | |
4444 | PyObject * obj2 = 0 ; | |
4445 | PyObject * obj3 = 0 ; | |
4446 | char *kwnames[] = { | |
4447 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4452 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4453 | { | |
4454 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | { | |
4458 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | { | |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4463 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); | |
4464 | ||
4465 | wxPyEndAllowThreads(__tstate); | |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | } | |
4468 | { | |
4469 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
4470 | } | |
4471 | return resultobj; | |
4472 | fail: | |
4473 | return NULL; | |
4474 | } | |
4475 | ||
4476 | ||
4477 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4478 | PyObject *resultobj; | |
4479 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4480 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4481 | int arg3 ; | |
4482 | int arg4 ; | |
4483 | wxGridCellEditor *result; | |
4484 | PyObject * obj0 = 0 ; | |
4485 | PyObject * obj1 = 0 ; | |
4486 | PyObject * obj2 = 0 ; | |
4487 | PyObject * obj3 = 0 ; | |
4488 | char *kwnames[] = { | |
4489 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4490 | }; | |
4491 | ||
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4494 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4495 | { | |
4496 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4497 | if (PyErr_Occurred()) SWIG_fail; | |
4498 | } | |
4499 | { | |
4500 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | } | |
4503 | { | |
4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4505 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); | |
4506 | ||
4507 | wxPyEndAllowThreads(__tstate); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
4510 | { | |
4511 | resultobj = wxPyMake_wxGridCellEditor(result); | |
4512 | } | |
4513 | return resultobj; | |
4514 | fail: | |
4515 | return NULL; | |
4516 | } | |
4517 | ||
4518 | ||
4519 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4520 | PyObject *resultobj; | |
4521 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4522 | bool result; | |
4523 | PyObject * obj0 = 0 ; | |
4524 | char *kwnames[] = { | |
4525 | (char *) "self", NULL | |
4526 | }; | |
4527 | ||
4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; | |
4529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4538 | return resultobj; | |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4547 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | PyObject * obj1 = 0 ; | |
4550 | char *kwnames[] = { | |
4551 | (char *) "self",(char *) "defAttr", NULL | |
4552 | }; | |
4553 | ||
4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; | |
4555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4557 | { | |
4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4559 | (arg1)->SetDefAttr(arg2); | |
4560 | ||
4561 | wxPyEndAllowThreads(__tstate); | |
4562 | if (PyErr_Occurred()) SWIG_fail; | |
4563 | } | |
4564 | Py_INCREF(Py_None); resultobj = Py_None; | |
4565 | return resultobj; | |
4566 | fail: | |
4567 | return NULL; | |
4568 | } | |
4569 | ||
4570 | ||
4571 | static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) { | |
4572 | PyObject *obj; | |
4573 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4574 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); | |
4575 | Py_INCREF(obj); | |
4576 | return Py_BuildValue((char *)""); | |
4577 | } | |
4578 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4579 | PyObject *resultobj; | |
4580 | wxGridCellAttrProvider *result; | |
4581 | char *kwnames[] = { | |
4582 | NULL | |
4583 | }; | |
4584 | ||
4585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; | |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); | |
4589 | ||
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | { | |
4594 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
4595 | } | |
4596 | return resultobj; | |
4597 | fail: | |
4598 | return NULL; | |
4599 | } | |
4600 | ||
4601 | ||
4602 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4603 | PyObject *resultobj; | |
4604 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4605 | PyObject *arg2 = (PyObject *) 0 ; | |
4606 | PyObject * obj0 = 0 ; | |
4607 | PyObject * obj1 = 0 ; | |
4608 | char *kwnames[] = { | |
4609 | (char *) "self",(char *) "_self", NULL | |
4610 | }; | |
4611 | ||
4612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
4613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4614 | arg2 = obj1; | |
4615 | { | |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4617 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); | |
4618 | ||
4619 | wxPyEndAllowThreads(__tstate); | |
4620 | if (PyErr_Occurred()) SWIG_fail; | |
4621 | } | |
4622 | Py_INCREF(Py_None); resultobj = Py_None; | |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
4629 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4630 | PyObject *resultobj; | |
4631 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4632 | int arg2 ; | |
4633 | int arg3 ; | |
4634 | int arg4 ; | |
4635 | wxGridCellAttr *result; | |
4636 | PyObject * obj0 = 0 ; | |
4637 | PyObject * obj1 = 0 ; | |
4638 | PyObject * obj2 = 0 ; | |
4639 | PyObject * obj3 = 0 ; | |
4640 | char *kwnames[] = { | |
4641 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4642 | }; | |
4643 | ||
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4646 | { | |
4647 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | { | |
4651 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4652 | if (PyErr_Occurred()) SWIG_fail; | |
4653 | } | |
4654 | { | |
4655 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
4658 | { | |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4660 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
4665 | { | |
4666 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4667 | } | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj; | |
4676 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4677 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4678 | int arg3 ; | |
4679 | int arg4 ; | |
4680 | PyObject * obj0 = 0 ; | |
4681 | PyObject * obj1 = 0 ; | |
4682 | PyObject * obj2 = 0 ; | |
4683 | PyObject * obj3 = 0 ; | |
4684 | char *kwnames[] = { | |
4685 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4686 | }; | |
4687 | ||
4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4690 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4691 | { | |
4692 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | { | |
4696 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4697 | if (PyErr_Occurred()) SWIG_fail; | |
4698 | } | |
4699 | { | |
4700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4701 | (arg1)->SetAttr(arg2,arg3,arg4); | |
4702 | ||
4703 | wxPyEndAllowThreads(__tstate); | |
4704 | if (PyErr_Occurred()) SWIG_fail; | |
4705 | } | |
4706 | Py_INCREF(Py_None); resultobj = Py_None; | |
4707 | return resultobj; | |
4708 | fail: | |
4709 | return NULL; | |
4710 | } | |
4711 | ||
4712 | ||
4713 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4714 | PyObject *resultobj; | |
4715 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4716 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4717 | int arg3 ; | |
4718 | PyObject * obj0 = 0 ; | |
4719 | PyObject * obj1 = 0 ; | |
4720 | PyObject * obj2 = 0 ; | |
4721 | char *kwnames[] = { | |
4722 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
4723 | }; | |
4724 | ||
4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4728 | { | |
4729 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | { | |
4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4734 | (arg1)->SetRowAttr(arg2,arg3); | |
4735 | ||
4736 | wxPyEndAllowThreads(__tstate); | |
4737 | if (PyErr_Occurred()) SWIG_fail; | |
4738 | } | |
4739 | Py_INCREF(Py_None); resultobj = Py_None; | |
4740 | return resultobj; | |
4741 | fail: | |
4742 | return NULL; | |
4743 | } | |
4744 | ||
4745 | ||
4746 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject *resultobj; | |
4748 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4749 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4750 | int arg3 ; | |
4751 | PyObject * obj0 = 0 ; | |
4752 | PyObject * obj1 = 0 ; | |
4753 | PyObject * obj2 = 0 ; | |
4754 | char *kwnames[] = { | |
4755 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
4756 | }; | |
4757 | ||
4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4760 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4761 | { | |
4762 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | { | |
4766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4767 | (arg1)->SetColAttr(arg2,arg3); | |
4768 | ||
4769 | wxPyEndAllowThreads(__tstate); | |
4770 | if (PyErr_Occurred()) SWIG_fail; | |
4771 | } | |
4772 | Py_INCREF(Py_None); resultobj = Py_None; | |
4773 | return resultobj; | |
4774 | fail: | |
4775 | return NULL; | |
4776 | } | |
4777 | ||
4778 | ||
4779 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject *resultobj; | |
4781 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4782 | size_t arg2 ; | |
4783 | int arg3 ; | |
4784 | PyObject * obj0 = 0 ; | |
4785 | PyObject * obj1 = 0 ; | |
4786 | PyObject * obj2 = 0 ; | |
4787 | char *kwnames[] = { | |
4788 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
4789 | }; | |
4790 | ||
4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4793 | { | |
4794 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
4797 | { | |
4798 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
4801 | { | |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4803 | (arg1)->UpdateAttrRows(arg2,arg3); | |
4804 | ||
4805 | wxPyEndAllowThreads(__tstate); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | Py_INCREF(Py_None); resultobj = Py_None; | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | return NULL; | |
4812 | } | |
4813 | ||
4814 | ||
4815 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4816 | PyObject *resultobj; | |
4817 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4818 | size_t arg2 ; | |
4819 | int arg3 ; | |
4820 | PyObject * obj0 = 0 ; | |
4821 | PyObject * obj1 = 0 ; | |
4822 | PyObject * obj2 = 0 ; | |
4823 | char *kwnames[] = { | |
4824 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
4825 | }; | |
4826 | ||
4827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4829 | { | |
4830 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
4831 | if (PyErr_Occurred()) SWIG_fail; | |
4832 | } | |
4833 | { | |
4834 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
4837 | { | |
4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4839 | (arg1)->UpdateAttrCols(arg2,arg3); | |
4840 | ||
4841 | wxPyEndAllowThreads(__tstate); | |
4842 | if (PyErr_Occurred()) SWIG_fail; | |
4843 | } | |
4844 | Py_INCREF(Py_None); resultobj = Py_None; | |
4845 | return resultobj; | |
4846 | fail: | |
4847 | return NULL; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
4852 | PyObject *obj; | |
4853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4854 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); | |
4855 | Py_INCREF(obj); | |
4856 | return Py_BuildValue((char *)""); | |
4857 | } | |
4858 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject *resultobj; | |
4860 | wxPyGridCellAttrProvider *result; | |
4861 | char *kwnames[] = { | |
4862 | NULL | |
4863 | }; | |
4864 | ||
4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; | |
4866 | { | |
4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4868 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); | |
4869 | ||
4870 | wxPyEndAllowThreads(__tstate); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | } | |
4873 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1); | |
4874 | return resultobj; | |
4875 | fail: | |
4876 | return NULL; | |
4877 | } | |
4878 | ||
4879 | ||
4880 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4881 | PyObject *resultobj; | |
4882 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4883 | PyObject *arg2 = (PyObject *) 0 ; | |
4884 | PyObject *arg3 = (PyObject *) 0 ; | |
4885 | PyObject * obj0 = 0 ; | |
4886 | PyObject * obj1 = 0 ; | |
4887 | PyObject * obj2 = 0 ; | |
4888 | char *kwnames[] = { | |
4889 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
4890 | }; | |
4891 | ||
4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4894 | arg2 = obj1; | |
4895 | arg3 = obj2; | |
4896 | { | |
4897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4898 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4899 | ||
4900 | wxPyEndAllowThreads(__tstate); | |
4901 | if (PyErr_Occurred()) SWIG_fail; | |
4902 | } | |
4903 | Py_INCREF(Py_None); resultobj = Py_None; | |
4904 | return resultobj; | |
4905 | fail: | |
4906 | return NULL; | |
4907 | } | |
4908 | ||
4909 | ||
4910 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject *resultobj; | |
4912 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4913 | int arg2 ; | |
4914 | int arg3 ; | |
4915 | int arg4 ; | |
4916 | wxGridCellAttr *result; | |
4917 | PyObject * obj0 = 0 ; | |
4918 | PyObject * obj1 = 0 ; | |
4919 | PyObject * obj2 = 0 ; | |
4920 | PyObject * obj3 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4923 | }; | |
4924 | ||
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4927 | { | |
4928 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
4931 | { | |
4932 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | } | |
4935 | { | |
4936 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
4938 | } | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | { | |
4947 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4948 | } | |
4949 | return resultobj; | |
4950 | fail: | |
4951 | return NULL; | |
4952 | } | |
4953 | ||
4954 | ||
4955 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject *resultobj; | |
4957 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4958 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4959 | int arg3 ; | |
4960 | int arg4 ; | |
4961 | PyObject * obj0 = 0 ; | |
4962 | PyObject * obj1 = 0 ; | |
4963 | PyObject * obj2 = 0 ; | |
4964 | PyObject * obj3 = 0 ; | |
4965 | char *kwnames[] = { | |
4966 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4967 | }; | |
4968 | ||
4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4972 | { | |
4973 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | { | |
4977 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4978 | if (PyErr_Occurred()) SWIG_fail; | |
4979 | } | |
4980 | { | |
4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4982 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
4983 | ||
4984 | wxPyEndAllowThreads(__tstate); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
4986 | } | |
4987 | Py_INCREF(Py_None); resultobj = Py_None; | |
4988 | return resultobj; | |
4989 | fail: | |
4990 | return NULL; | |
4991 | } | |
4992 | ||
4993 | ||
4994 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4995 | PyObject *resultobj; | |
4996 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4997 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4998 | int arg3 ; | |
4999 | PyObject * obj0 = 0 ; | |
5000 | PyObject * obj1 = 0 ; | |
5001 | PyObject * obj2 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5008 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5009 | { | |
5010 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5011 | if (PyErr_Occurred()) SWIG_fail; | |
5012 | } | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | (arg1)->base_SetRowAttr(arg2,arg3); | |
5016 | ||
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | Py_INCREF(Py_None); resultobj = Py_None; | |
5021 | return resultobj; | |
5022 | fail: | |
5023 | return NULL; | |
5024 | } | |
5025 | ||
5026 | ||
5027 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject *resultobj; | |
5029 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5030 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5031 | int arg3 ; | |
5032 | PyObject * obj0 = 0 ; | |
5033 | PyObject * obj1 = 0 ; | |
5034 | PyObject * obj2 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5041 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5042 | { | |
5043 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | { | |
5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5048 | (arg1)->base_SetColAttr(arg2,arg3); | |
5049 | ||
5050 | wxPyEndAllowThreads(__tstate); | |
5051 | if (PyErr_Occurred()) SWIG_fail; | |
5052 | } | |
5053 | Py_INCREF(Py_None); resultobj = Py_None; | |
5054 | return resultobj; | |
5055 | fail: | |
5056 | return NULL; | |
5057 | } | |
5058 | ||
5059 | ||
5060 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5061 | PyObject *obj; | |
5062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5063 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); | |
5064 | Py_INCREF(obj); | |
5065 | return Py_BuildValue((char *)""); | |
5066 | } | |
5067 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject *resultobj; | |
5069 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5070 | PyObject *arg2 = (PyObject *) 0 ; | |
5071 | PyObject * obj0 = 0 ; | |
5072 | PyObject * obj1 = 0 ; | |
5073 | char *kwnames[] = { | |
5074 | (char *) "self",(char *) "_self", NULL | |
5075 | }; | |
5076 | ||
5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
5078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5079 | arg2 = obj1; | |
5080 | { | |
5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5082 | wxGridTableBase__setOORInfo(arg1,arg2); | |
5083 | ||
5084 | wxPyEndAllowThreads(__tstate); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
5087 | Py_INCREF(Py_None); resultobj = Py_None; | |
5088 | return resultobj; | |
5089 | fail: | |
5090 | return NULL; | |
5091 | } | |
5092 | ||
5093 | ||
5094 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject *resultobj; | |
5096 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5097 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | PyObject * obj1 = 0 ; | |
5100 | char *kwnames[] = { | |
5101 | (char *) "self",(char *) "attrProvider", NULL | |
5102 | }; | |
5103 | ||
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; | |
5105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5106 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | (arg1)->SetAttrProvider(arg2); | |
5110 | ||
5111 | wxPyEndAllowThreads(__tstate); | |
5112 | if (PyErr_Occurred()) SWIG_fail; | |
5113 | } | |
5114 | Py_INCREF(Py_None); resultobj = Py_None; | |
5115 | return resultobj; | |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
5121 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5122 | PyObject *resultobj; | |
5123 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5124 | wxGridCellAttrProvider *result; | |
5125 | PyObject * obj0 = 0 ; | |
5126 | char *kwnames[] = { | |
5127 | (char *) "self", NULL | |
5128 | }; | |
5129 | ||
5130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; | |
5131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5132 | { | |
5133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5134 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); | |
5135 | ||
5136 | wxPyEndAllowThreads(__tstate); | |
5137 | if (PyErr_Occurred()) SWIG_fail; | |
5138 | } | |
5139 | { | |
5140 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
5141 | } | |
5142 | return resultobj; | |
5143 | fail: | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
5148 | static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject *resultobj; | |
5150 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5151 | wxGrid *arg2 = (wxGrid *) 0 ; | |
5152 | PyObject * obj0 = 0 ; | |
5153 | PyObject * obj1 = 0 ; | |
5154 | char *kwnames[] = { | |
5155 | (char *) "self",(char *) "grid", NULL | |
5156 | }; | |
5157 | ||
5158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; | |
5159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | (arg1)->SetView(arg2); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | Py_INCREF(Py_None); resultobj = Py_None; | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject *resultobj; | |
5177 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5178 | wxGrid *result; | |
5179 | PyObject * obj0 = 0 ; | |
5180 | char *kwnames[] = { | |
5181 | (char *) "self", NULL | |
5182 | }; | |
5183 | ||
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; | |
5185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5186 | { | |
5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5188 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); | |
5189 | ||
5190 | wxPyEndAllowThreads(__tstate); | |
5191 | if (PyErr_Occurred()) SWIG_fail; | |
5192 | } | |
5193 | { | |
5194 | resultobj = wxPyMake_wxObject(result); | |
5195 | } | |
5196 | return resultobj; | |
5197 | fail: | |
5198 | return NULL; | |
5199 | } | |
5200 | ||
5201 | ||
5202 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5203 | PyObject *resultobj; | |
5204 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5205 | int result; | |
5206 | PyObject * obj0 = 0 ; | |
5207 | char *kwnames[] = { | |
5208 | (char *) "self", NULL | |
5209 | }; | |
5210 | ||
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; | |
5212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5213 | { | |
5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5215 | result = (int)(arg1)->GetNumberRows(); | |
5216 | ||
5217 | wxPyEndAllowThreads(__tstate); | |
5218 | if (PyErr_Occurred()) SWIG_fail; | |
5219 | } | |
5220 | resultobj = SWIG_PyObj_FromInt((int)result); | |
5221 | return resultobj; | |
5222 | fail: | |
5223 | return NULL; | |
5224 | } | |
5225 | ||
5226 | ||
5227 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5228 | PyObject *resultobj; | |
5229 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5230 | int result; | |
5231 | PyObject * obj0 = 0 ; | |
5232 | char *kwnames[] = { | |
5233 | (char *) "self", NULL | |
5234 | }; | |
5235 | ||
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; | |
5237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5238 | { | |
5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5240 | result = (int)(arg1)->GetNumberCols(); | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
5245 | resultobj = SWIG_PyObj_FromInt((int)result); | |
5246 | return resultobj; | |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
5252 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5253 | PyObject *resultobj; | |
5254 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5255 | int arg2 ; | |
5256 | int arg3 ; | |
5257 | bool result; | |
5258 | PyObject * obj0 = 0 ; | |
5259 | PyObject * obj1 = 0 ; | |
5260 | PyObject * obj2 = 0 ; | |
5261 | char *kwnames[] = { | |
5262 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5267 | { | |
5268 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5269 | if (PyErr_Occurred()) SWIG_fail; | |
5270 | } | |
5271 | { | |
5272 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | { | |
5276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5277 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); | |
5278 | ||
5279 | wxPyEndAllowThreads(__tstate); | |
5280 | if (PyErr_Occurred()) SWIG_fail; | |
5281 | } | |
5282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5283 | return resultobj; | |
5284 | fail: | |
5285 | return NULL; | |
5286 | } | |
5287 | ||
5288 | ||
5289 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5290 | PyObject *resultobj; | |
5291 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5292 | int arg2 ; | |
5293 | int arg3 ; | |
5294 | wxString result; | |
5295 | PyObject * obj0 = 0 ; | |
5296 | PyObject * obj1 = 0 ; | |
5297 | PyObject * obj2 = 0 ; | |
5298 | char *kwnames[] = { | |
5299 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5300 | }; | |
5301 | ||
5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5304 | { | |
5305 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5306 | if (PyErr_Occurred()) SWIG_fail; | |
5307 | } | |
5308 | { | |
5309 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5310 | if (PyErr_Occurred()) SWIG_fail; | |
5311 | } | |
5312 | { | |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | result = (arg1)->GetValue(arg2,arg3); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | { | |
5320 | #if wxUSE_UNICODE | |
5321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5322 | #else | |
5323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5324 | #endif | |
5325 | } | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
5332 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject *resultobj; | |
5334 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5335 | int arg2 ; | |
5336 | int arg3 ; | |
5337 | wxString *arg4 = 0 ; | |
5338 | bool temp4 = False ; | |
5339 | PyObject * obj0 = 0 ; | |
5340 | PyObject * obj1 = 0 ; | |
5341 | PyObject * obj2 = 0 ; | |
5342 | PyObject * obj3 = 0 ; | |
5343 | char *kwnames[] = { | |
5344 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5345 | }; | |
5346 | ||
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5349 | { | |
5350 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5351 | if (PyErr_Occurred()) SWIG_fail; | |
5352 | } | |
5353 | { | |
5354 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | { | |
5358 | arg4 = wxString_in_helper(obj3); | |
5359 | if (arg4 == NULL) SWIG_fail; | |
5360 | temp4 = True; | |
5361 | } | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | Py_INCREF(Py_None); resultobj = Py_None; | |
5370 | { | |
5371 | if (temp4) | |
5372 | delete arg4; | |
5373 | } | |
5374 | return resultobj; | |
5375 | fail: | |
5376 | { | |
5377 | if (temp4) | |
5378 | delete arg4; | |
5379 | } | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5387 | int arg2 ; | |
5388 | int arg3 ; | |
5389 | wxString result; | |
5390 | PyObject * obj0 = 0 ; | |
5391 | PyObject * obj1 = 0 ; | |
5392 | PyObject * obj2 = 0 ; | |
5393 | char *kwnames[] = { | |
5394 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5395 | }; | |
5396 | ||
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5399 | { | |
5400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5401 | if (PyErr_Occurred()) SWIG_fail; | |
5402 | } | |
5403 | { | |
5404 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5409 | result = (arg1)->GetTypeName(arg2,arg3); | |
5410 | ||
5411 | wxPyEndAllowThreads(__tstate); | |
5412 | if (PyErr_Occurred()) SWIG_fail; | |
5413 | } | |
5414 | { | |
5415 | #if wxUSE_UNICODE | |
5416 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5417 | #else | |
5418 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5419 | #endif | |
5420 | } | |
5421 | return resultobj; | |
5422 | fail: | |
5423 | return NULL; | |
5424 | } | |
5425 | ||
5426 | ||
5427 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject *resultobj; | |
5429 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5430 | int arg2 ; | |
5431 | int arg3 ; | |
5432 | wxString *arg4 = 0 ; | |
5433 | bool result; | |
5434 | bool temp4 = False ; | |
5435 | PyObject * obj0 = 0 ; | |
5436 | PyObject * obj1 = 0 ; | |
5437 | PyObject * obj2 = 0 ; | |
5438 | PyObject * obj3 = 0 ; | |
5439 | char *kwnames[] = { | |
5440 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5441 | }; | |
5442 | ||
5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5445 | { | |
5446 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
5449 | { | |
5450 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | { | |
5454 | arg4 = wxString_in_helper(obj3); | |
5455 | if (arg4 == NULL) SWIG_fail; | |
5456 | temp4 = True; | |
5457 | } | |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5461 | ||
5462 | wxPyEndAllowThreads(__tstate); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | } | |
5465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5466 | { | |
5467 | if (temp4) | |
5468 | delete arg4; | |
5469 | } | |
5470 | return resultobj; | |
5471 | fail: | |
5472 | { | |
5473 | if (temp4) | |
5474 | delete arg4; | |
5475 | } | |
5476 | return NULL; | |
5477 | } | |
5478 | ||
5479 | ||
5480 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5481 | PyObject *resultobj; | |
5482 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5483 | int arg2 ; | |
5484 | int arg3 ; | |
5485 | wxString *arg4 = 0 ; | |
5486 | bool result; | |
5487 | bool temp4 = False ; | |
5488 | PyObject * obj0 = 0 ; | |
5489 | PyObject * obj1 = 0 ; | |
5490 | PyObject * obj2 = 0 ; | |
5491 | PyObject * obj3 = 0 ; | |
5492 | char *kwnames[] = { | |
5493 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5494 | }; | |
5495 | ||
5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5498 | { | |
5499 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
5506 | { | |
5507 | arg4 = wxString_in_helper(obj3); | |
5508 | if (arg4 == NULL) SWIG_fail; | |
5509 | temp4 = True; | |
5510 | } | |
5511 | { | |
5512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5513 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5514 | ||
5515 | wxPyEndAllowThreads(__tstate); | |
5516 | if (PyErr_Occurred()) SWIG_fail; | |
5517 | } | |
5518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5519 | { | |
5520 | if (temp4) | |
5521 | delete arg4; | |
5522 | } | |
5523 | return resultobj; | |
5524 | fail: | |
5525 | { | |
5526 | if (temp4) | |
5527 | delete arg4; | |
5528 | } | |
5529 | return NULL; | |
5530 | } | |
5531 | ||
5532 | ||
5533 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject *resultobj; | |
5535 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5536 | int arg2 ; | |
5537 | int arg3 ; | |
5538 | long result; | |
5539 | PyObject * obj0 = 0 ; | |
5540 | PyObject * obj1 = 0 ; | |
5541 | PyObject * obj2 = 0 ; | |
5542 | char *kwnames[] = { | |
5543 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5544 | }; | |
5545 | ||
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5548 | { | |
5549 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5550 | if (PyErr_Occurred()) SWIG_fail; | |
5551 | } | |
5552 | { | |
5553 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
5556 | { | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); | |
5559 | ||
5560 | wxPyEndAllowThreads(__tstate); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | resultobj = SWIG_PyObj_FromLong((long)result); | |
5564 | return resultobj; | |
5565 | fail: | |
5566 | return NULL; | |
5567 | } | |
5568 | ||
5569 | ||
5570 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject *resultobj; | |
5572 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5573 | int arg2 ; | |
5574 | int arg3 ; | |
5575 | double result; | |
5576 | PyObject * obj0 = 0 ; | |
5577 | PyObject * obj1 = 0 ; | |
5578 | PyObject * obj2 = 0 ; | |
5579 | char *kwnames[] = { | |
5580 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5581 | }; | |
5582 | ||
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5585 | { | |
5586 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5587 | if (PyErr_Occurred()) SWIG_fail; | |
5588 | } | |
5589 | { | |
5590 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
5593 | { | |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | resultobj = SWIG_PyObj_FromDouble((double)result); | |
5601 | return resultobj; | |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
5607 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject *resultobj; | |
5609 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5610 | int arg2 ; | |
5611 | int arg3 ; | |
5612 | bool result; | |
5613 | PyObject * obj0 = 0 ; | |
5614 | PyObject * obj1 = 0 ; | |
5615 | PyObject * obj2 = 0 ; | |
5616 | char *kwnames[] = { | |
5617 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5618 | }; | |
5619 | ||
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5622 | { | |
5623 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | } | |
5626 | { | |
5627 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5628 | if (PyErr_Occurred()) SWIG_fail; | |
5629 | } | |
5630 | { | |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5632 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); | |
5633 | ||
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
5637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5638 | return resultobj; | |
5639 | fail: | |
5640 | return NULL; | |
5641 | } | |
5642 | ||
5643 | ||
5644 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5645 | PyObject *resultobj; | |
5646 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5647 | int arg2 ; | |
5648 | int arg3 ; | |
5649 | long arg4 ; | |
5650 | PyObject * obj0 = 0 ; | |
5651 | PyObject * obj1 = 0 ; | |
5652 | PyObject * obj2 = 0 ; | |
5653 | PyObject * obj3 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5660 | { | |
5661 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | { | |
5665 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
5668 | { | |
5669 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
5672 | { | |
5673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5674 | (arg1)->SetValueAsLong(arg2,arg3,arg4); | |
5675 | ||
5676 | wxPyEndAllowThreads(__tstate); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | } | |
5679 | Py_INCREF(Py_None); resultobj = Py_None; | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
5683 | } | |
5684 | ||
5685 | ||
5686 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5687 | PyObject *resultobj; | |
5688 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5689 | int arg2 ; | |
5690 | int arg3 ; | |
5691 | double arg4 ; | |
5692 | PyObject * obj0 = 0 ; | |
5693 | PyObject * obj1 = 0 ; | |
5694 | PyObject * obj2 = 0 ; | |
5695 | PyObject * obj3 = 0 ; | |
5696 | char *kwnames[] = { | |
5697 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5698 | }; | |
5699 | ||
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5702 | { | |
5703 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | } | |
5706 | { | |
5707 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5708 | if (PyErr_Occurred()) SWIG_fail; | |
5709 | } | |
5710 | { | |
5711 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | { | |
5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5716 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); | |
5717 | ||
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
5721 | Py_INCREF(Py_None); resultobj = Py_None; | |
5722 | return resultobj; | |
5723 | fail: | |
5724 | return NULL; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5731 | int arg2 ; | |
5732 | int arg3 ; | |
5733 | bool arg4 ; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | PyObject * obj1 = 0 ; | |
5736 | PyObject * obj2 = 0 ; | |
5737 | PyObject * obj3 = 0 ; | |
5738 | char *kwnames[] = { | |
5739 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5740 | }; | |
5741 | ||
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5744 | { | |
5745 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5746 | if (PyErr_Occurred()) SWIG_fail; | |
5747 | } | |
5748 | { | |
5749 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | { | |
5753 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
5754 | if (PyErr_Occurred()) SWIG_fail; | |
5755 | } | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | (arg1)->SetValueAsBool(arg2,arg3,arg4); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | Py_INCREF(Py_None); resultobj = Py_None; | |
5764 | return resultobj; | |
5765 | fail: | |
5766 | return NULL; | |
5767 | } | |
5768 | ||
5769 | ||
5770 | static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5771 | PyObject *resultobj; | |
5772 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5773 | PyObject * obj0 = 0 ; | |
5774 | char *kwnames[] = { | |
5775 | (char *) "self", NULL | |
5776 | }; | |
5777 | ||
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; | |
5779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5780 | { | |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5782 | (arg1)->Clear(); | |
5783 | ||
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
5787 | Py_INCREF(Py_None); resultobj = Py_None; | |
5788 | return resultobj; | |
5789 | fail: | |
5790 | return NULL; | |
5791 | } | |
5792 | ||
5793 | ||
5794 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject *resultobj; | |
5796 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5797 | size_t arg2 = (size_t) 0 ; | |
5798 | size_t arg3 = (size_t) 1 ; | |
5799 | bool result; | |
5800 | PyObject * obj0 = 0 ; | |
5801 | PyObject * obj1 = 0 ; | |
5802 | PyObject * obj2 = 0 ; | |
5803 | char *kwnames[] = { | |
5804 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5805 | }; | |
5806 | ||
5807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5809 | if (obj1) { | |
5810 | { | |
5811 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
5814 | } | |
5815 | if (obj2) { | |
5816 | { | |
5817 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
5818 | if (PyErr_Occurred()) SWIG_fail; | |
5819 | } | |
5820 | } | |
5821 | { | |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5823 | result = (bool)(arg1)->InsertRows(arg2,arg3); | |
5824 | ||
5825 | wxPyEndAllowThreads(__tstate); | |
5826 | if (PyErr_Occurred()) SWIG_fail; | |
5827 | } | |
5828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5829 | return resultobj; | |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
5835 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5836 | PyObject *resultobj; | |
5837 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5838 | size_t arg2 = (size_t) 1 ; | |
5839 | bool result; | |
5840 | PyObject * obj0 = 0 ; | |
5841 | PyObject * obj1 = 0 ; | |
5842 | char *kwnames[] = { | |
5843 | (char *) "self",(char *) "numRows", NULL | |
5844 | }; | |
5845 | ||
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
5847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5848 | if (obj1) { | |
5849 | { | |
5850 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | } | |
5854 | { | |
5855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5856 | result = (bool)(arg1)->AppendRows(arg2); | |
5857 | ||
5858 | wxPyEndAllowThreads(__tstate); | |
5859 | if (PyErr_Occurred()) SWIG_fail; | |
5860 | } | |
5861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5862 | return resultobj; | |
5863 | fail: | |
5864 | return NULL; | |
5865 | } | |
5866 | ||
5867 | ||
5868 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5869 | PyObject *resultobj; | |
5870 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5871 | size_t arg2 = (size_t) 0 ; | |
5872 | size_t arg3 = (size_t) 1 ; | |
5873 | bool result; | |
5874 | PyObject * obj0 = 0 ; | |
5875 | PyObject * obj1 = 0 ; | |
5876 | PyObject * obj2 = 0 ; | |
5877 | char *kwnames[] = { | |
5878 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5879 | }; | |
5880 | ||
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5883 | if (obj1) { | |
5884 | { | |
5885 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | } | |
5889 | if (obj2) { | |
5890 | { | |
5891 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | } | |
5895 | { | |
5896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5897 | result = (bool)(arg1)->DeleteRows(arg2,arg3); | |
5898 | ||
5899 | wxPyEndAllowThreads(__tstate); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
5901 | } | |
5902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
5909 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject *resultobj; | |
5911 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5912 | size_t arg2 = (size_t) 0 ; | |
5913 | size_t arg3 = (size_t) 1 ; | |
5914 | bool result; | |
5915 | PyObject * obj0 = 0 ; | |
5916 | PyObject * obj1 = 0 ; | |
5917 | PyObject * obj2 = 0 ; | |
5918 | char *kwnames[] = { | |
5919 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5920 | }; | |
5921 | ||
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5924 | if (obj1) { | |
5925 | { | |
5926 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
5929 | } | |
5930 | if (obj2) { | |
5931 | { | |
5932 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
5933 | if (PyErr_Occurred()) SWIG_fail; | |
5934 | } | |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5938 | result = (bool)(arg1)->InsertCols(arg2,arg3); | |
5939 | ||
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5944 | return resultobj; | |
5945 | fail: | |
5946 | return NULL; | |
5947 | } | |
5948 | ||
5949 | ||
5950 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5951 | PyObject *resultobj; | |
5952 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5953 | size_t arg2 = (size_t) 1 ; | |
5954 | bool result; | |
5955 | PyObject * obj0 = 0 ; | |
5956 | PyObject * obj1 = 0 ; | |
5957 | char *kwnames[] = { | |
5958 | (char *) "self",(char *) "numCols", NULL | |
5959 | }; | |
5960 | ||
5961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
5962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5963 | if (obj1) { | |
5964 | { | |
5965 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
5966 | if (PyErr_Occurred()) SWIG_fail; | |
5967 | } | |
5968 | } | |
5969 | { | |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | result = (bool)(arg1)->AppendCols(arg2); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5977 | return resultobj; | |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
5983 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject *resultobj; | |
5985 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5986 | size_t arg2 = (size_t) 0 ; | |
5987 | size_t arg3 = (size_t) 1 ; | |
5988 | bool result; | |
5989 | PyObject * obj0 = 0 ; | |
5990 | PyObject * obj1 = 0 ; | |
5991 | PyObject * obj2 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5998 | if (obj1) { | |
5999 | { | |
6000 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
6003 | } | |
6004 | if (obj2) { | |
6005 | { | |
6006 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | } | |
6010 | { | |
6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6012 | result = (bool)(arg1)->DeleteCols(arg2,arg3); | |
6013 | ||
6014 | wxPyEndAllowThreads(__tstate); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
6017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6018 | return resultobj; | |
6019 | fail: | |
6020 | return NULL; | |
6021 | } | |
6022 | ||
6023 | ||
6024 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6025 | PyObject *resultobj; | |
6026 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6027 | int arg2 ; | |
6028 | wxString result; | |
6029 | PyObject * obj0 = 0 ; | |
6030 | PyObject * obj1 = 0 ; | |
6031 | char *kwnames[] = { | |
6032 | (char *) "self",(char *) "row", NULL | |
6033 | }; | |
6034 | ||
6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6037 | { | |
6038 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | { | |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6043 | result = (arg1)->GetRowLabelValue(arg2); | |
6044 | ||
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | { | |
6049 | #if wxUSE_UNICODE | |
6050 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6051 | #else | |
6052 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6053 | #endif | |
6054 | } | |
6055 | return resultobj; | |
6056 | fail: | |
6057 | return NULL; | |
6058 | } | |
6059 | ||
6060 | ||
6061 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6062 | PyObject *resultobj; | |
6063 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6064 | int arg2 ; | |
6065 | wxString result; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | PyObject * obj1 = 0 ; | |
6068 | char *kwnames[] = { | |
6069 | (char *) "self",(char *) "col", NULL | |
6070 | }; | |
6071 | ||
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6074 | { | |
6075 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | { | |
6079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6080 | result = (arg1)->GetColLabelValue(arg2); | |
6081 | ||
6082 | wxPyEndAllowThreads(__tstate); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | { | |
6086 | #if wxUSE_UNICODE | |
6087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6088 | #else | |
6089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6090 | #endif | |
6091 | } | |
6092 | return resultobj; | |
6093 | fail: | |
6094 | return NULL; | |
6095 | } | |
6096 | ||
6097 | ||
6098 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject *resultobj; | |
6100 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6101 | int arg2 ; | |
6102 | wxString *arg3 = 0 ; | |
6103 | bool temp3 = False ; | |
6104 | PyObject * obj0 = 0 ; | |
6105 | PyObject * obj1 = 0 ; | |
6106 | PyObject * obj2 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6113 | { | |
6114 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | } | |
6117 | { | |
6118 | arg3 = wxString_in_helper(obj2); | |
6119 | if (arg3 == NULL) SWIG_fail; | |
6120 | temp3 = True; | |
6121 | } | |
6122 | { | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6125 | ||
6126 | wxPyEndAllowThreads(__tstate); | |
6127 | if (PyErr_Occurred()) SWIG_fail; | |
6128 | } | |
6129 | Py_INCREF(Py_None); resultobj = Py_None; | |
6130 | { | |
6131 | if (temp3) | |
6132 | delete arg3; | |
6133 | } | |
6134 | return resultobj; | |
6135 | fail: | |
6136 | { | |
6137 | if (temp3) | |
6138 | delete arg3; | |
6139 | } | |
6140 | return NULL; | |
6141 | } | |
6142 | ||
6143 | ||
6144 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6145 | PyObject *resultobj; | |
6146 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6147 | int arg2 ; | |
6148 | wxString *arg3 = 0 ; | |
6149 | bool temp3 = False ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | PyObject * obj1 = 0 ; | |
6152 | PyObject * obj2 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6159 | { | |
6160 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6161 | if (PyErr_Occurred()) SWIG_fail; | |
6162 | } | |
6163 | { | |
6164 | arg3 = wxString_in_helper(obj2); | |
6165 | if (arg3 == NULL) SWIG_fail; | |
6166 | temp3 = True; | |
6167 | } | |
6168 | { | |
6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6170 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
6171 | ||
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
6175 | Py_INCREF(Py_None); resultobj = Py_None; | |
6176 | { | |
6177 | if (temp3) | |
6178 | delete arg3; | |
6179 | } | |
6180 | return resultobj; | |
6181 | fail: | |
6182 | { | |
6183 | if (temp3) | |
6184 | delete arg3; | |
6185 | } | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
6190 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6191 | PyObject *resultobj; | |
6192 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6193 | bool result; | |
6194 | PyObject * obj0 = 0 ; | |
6195 | char *kwnames[] = { | |
6196 | (char *) "self", NULL | |
6197 | }; | |
6198 | ||
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
6200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6201 | { | |
6202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6203 | result = (bool)(arg1)->CanHaveAttributes(); | |
6204 | ||
6205 | wxPyEndAllowThreads(__tstate); | |
6206 | if (PyErr_Occurred()) SWIG_fail; | |
6207 | } | |
6208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6209 | return resultobj; | |
6210 | fail: | |
6211 | return NULL; | |
6212 | } | |
6213 | ||
6214 | ||
6215 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6216 | PyObject *resultobj; | |
6217 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6218 | int arg2 ; | |
6219 | int arg3 ; | |
6220 | int arg4 ; | |
6221 | wxGridCellAttr *result; | |
6222 | PyObject * obj0 = 0 ; | |
6223 | PyObject * obj1 = 0 ; | |
6224 | PyObject * obj2 = 0 ; | |
6225 | PyObject * obj3 = 0 ; | |
6226 | char *kwnames[] = { | |
6227 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
6228 | }; | |
6229 | ||
6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6232 | { | |
6233 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | { | |
6237 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
6240 | { | |
6241 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
6242 | if (PyErr_Occurred()) SWIG_fail; | |
6243 | } | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | { | |
6252 | resultobj = wxPyMake_wxGridCellAttr(result); | |
6253 | } | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj; | |
6262 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6263 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6264 | int arg3 ; | |
6265 | int arg4 ; | |
6266 | PyObject * obj0 = 0 ; | |
6267 | PyObject * obj1 = 0 ; | |
6268 | PyObject * obj2 = 0 ; | |
6269 | PyObject * obj3 = 0 ; | |
6270 | char *kwnames[] = { | |
6271 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
6272 | }; | |
6273 | ||
6274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6277 | { | |
6278 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6279 | if (PyErr_Occurred()) SWIG_fail; | |
6280 | } | |
6281 | { | |
6282 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
6283 | if (PyErr_Occurred()) SWIG_fail; | |
6284 | } | |
6285 | { | |
6286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6287 | (arg1)->SetAttr(arg2,arg3,arg4); | |
6288 | ||
6289 | wxPyEndAllowThreads(__tstate); | |
6290 | if (PyErr_Occurred()) SWIG_fail; | |
6291 | } | |
6292 | Py_INCREF(Py_None); resultobj = Py_None; | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject *resultobj; | |
6301 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6302 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6303 | int arg3 ; | |
6304 | PyObject * obj0 = 0 ; | |
6305 | PyObject * obj1 = 0 ; | |
6306 | PyObject * obj2 = 0 ; | |
6307 | char *kwnames[] = { | |
6308 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
6309 | }; | |
6310 | ||
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6314 | { | |
6315 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | } | |
6318 | { | |
6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6320 | (arg1)->SetRowAttr(arg2,arg3); | |
6321 | ||
6322 | wxPyEndAllowThreads(__tstate); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | } | |
6325 | Py_INCREF(Py_None); resultobj = Py_None; | |
6326 | return resultobj; | |
6327 | fail: | |
6328 | return NULL; | |
6329 | } | |
6330 | ||
6331 | ||
6332 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6333 | PyObject *resultobj; | |
6334 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6335 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6336 | int arg3 ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | PyObject * obj1 = 0 ; | |
6339 | PyObject * obj2 = 0 ; | |
6340 | char *kwnames[] = { | |
6341 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
6342 | }; | |
6343 | ||
6344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6346 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6347 | { | |
6348 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | (arg1)->SetColAttr(arg2,arg3); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | Py_INCREF(Py_None); resultobj = Py_None; | |
6359 | return resultobj; | |
6360 | fail: | |
6361 | return NULL; | |
6362 | } | |
6363 | ||
6364 | ||
6365 | static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) { | |
6366 | PyObject *obj; | |
6367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6368 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); | |
6369 | Py_INCREF(obj); | |
6370 | return Py_BuildValue((char *)""); | |
6371 | } | |
6372 | static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6373 | PyObject *resultobj; | |
6374 | wxPyGridTableBase *result; | |
6375 | char *kwnames[] = { | |
6376 | NULL | |
6377 | }; | |
6378 | ||
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; | |
6380 | { | |
6381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6382 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); | |
6383 | ||
6384 | wxPyEndAllowThreads(__tstate); | |
6385 | if (PyErr_Occurred()) SWIG_fail; | |
6386 | } | |
6387 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1); | |
6388 | return resultobj; | |
6389 | fail: | |
6390 | return NULL; | |
6391 | } | |
6392 | ||
6393 | ||
6394 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6395 | PyObject *resultobj; | |
6396 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6397 | PyObject *arg2 = (PyObject *) 0 ; | |
6398 | PyObject *arg3 = (PyObject *) 0 ; | |
6399 | PyObject * obj0 = 0 ; | |
6400 | PyObject * obj1 = 0 ; | |
6401 | PyObject * obj2 = 0 ; | |
6402 | char *kwnames[] = { | |
6403 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6404 | }; | |
6405 | ||
6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6408 | arg2 = obj1; | |
6409 | arg3 = obj2; | |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6413 | ||
6414 | wxPyEndAllowThreads(__tstate); | |
6415 | if (PyErr_Occurred()) SWIG_fail; | |
6416 | } | |
6417 | Py_INCREF(Py_None); resultobj = Py_None; | |
6418 | return resultobj; | |
6419 | fail: | |
6420 | return NULL; | |
6421 | } | |
6422 | ||
6423 | ||
6424 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6425 | PyObject *resultobj; | |
6426 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6427 | PyObject * obj0 = 0 ; | |
6428 | char *kwnames[] = { | |
6429 | (char *) "self", NULL | |
6430 | }; | |
6431 | ||
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; | |
6433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6434 | { | |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | wxPyGridTableBase_Destroy(arg1); | |
6437 | ||
6438 | wxPyEndAllowThreads(__tstate); | |
6439 | if (PyErr_Occurred()) SWIG_fail; | |
6440 | } | |
6441 | Py_INCREF(Py_None); resultobj = Py_None; | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | return NULL; | |
6445 | } | |
6446 | ||
6447 | ||
6448 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject *resultobj; | |
6450 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6451 | int arg2 ; | |
6452 | int arg3 ; | |
6453 | wxString result; | |
6454 | PyObject * obj0 = 0 ; | |
6455 | PyObject * obj1 = 0 ; | |
6456 | PyObject * obj2 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "self",(char *) "row",(char *) "col", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6463 | { | |
6464 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | { | |
6468 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6469 | if (PyErr_Occurred()) SWIG_fail; | |
6470 | } | |
6471 | { | |
6472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6473 | result = (arg1)->base_GetTypeName(arg2,arg3); | |
6474 | ||
6475 | wxPyEndAllowThreads(__tstate); | |
6476 | if (PyErr_Occurred()) SWIG_fail; | |
6477 | } | |
6478 | { | |
6479 | #if wxUSE_UNICODE | |
6480 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6481 | #else | |
6482 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6483 | #endif | |
6484 | } | |
6485 | return resultobj; | |
6486 | fail: | |
6487 | return NULL; | |
6488 | } | |
6489 | ||
6490 | ||
6491 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6492 | PyObject *resultobj; | |
6493 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6494 | int arg2 ; | |
6495 | int arg3 ; | |
6496 | wxString *arg4 = 0 ; | |
6497 | bool result; | |
6498 | bool temp4 = False ; | |
6499 | PyObject * obj0 = 0 ; | |
6500 | PyObject * obj1 = 0 ; | |
6501 | PyObject * obj2 = 0 ; | |
6502 | PyObject * obj3 = 0 ; | |
6503 | char *kwnames[] = { | |
6504 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6505 | }; | |
6506 | ||
6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6509 | { | |
6510 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | { | |
6514 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | { | |
6518 | arg4 = wxString_in_helper(obj3); | |
6519 | if (arg4 == NULL) SWIG_fail; | |
6520 | temp4 = True; | |
6521 | } | |
6522 | { | |
6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6524 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6525 | ||
6526 | wxPyEndAllowThreads(__tstate); | |
6527 | if (PyErr_Occurred()) SWIG_fail; | |
6528 | } | |
6529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6530 | { | |
6531 | if (temp4) | |
6532 | delete arg4; | |
6533 | } | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | { | |
6537 | if (temp4) | |
6538 | delete arg4; | |
6539 | } | |
6540 | return NULL; | |
6541 | } | |
6542 | ||
6543 | ||
6544 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6545 | PyObject *resultobj; | |
6546 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6547 | int arg2 ; | |
6548 | int arg3 ; | |
6549 | wxString *arg4 = 0 ; | |
6550 | bool result; | |
6551 | bool temp4 = False ; | |
6552 | PyObject * obj0 = 0 ; | |
6553 | PyObject * obj1 = 0 ; | |
6554 | PyObject * obj2 = 0 ; | |
6555 | PyObject * obj3 = 0 ; | |
6556 | char *kwnames[] = { | |
6557 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6562 | { | |
6563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6564 | if (PyErr_Occurred()) SWIG_fail; | |
6565 | } | |
6566 | { | |
6567 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | { | |
6571 | arg4 = wxString_in_helper(obj3); | |
6572 | if (arg4 == NULL) SWIG_fail; | |
6573 | temp4 = True; | |
6574 | } | |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
6582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6583 | { | |
6584 | if (temp4) | |
6585 | delete arg4; | |
6586 | } | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | { | |
6590 | if (temp4) | |
6591 | delete arg4; | |
6592 | } | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
6597 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject *resultobj; | |
6599 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6600 | PyObject * obj0 = 0 ; | |
6601 | char *kwnames[] = { | |
6602 | (char *) "self", NULL | |
6603 | }; | |
6604 | ||
6605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; | |
6606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6607 | { | |
6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6609 | (arg1)->base_Clear(); | |
6610 | ||
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
6614 | Py_INCREF(Py_None); resultobj = Py_None; | |
6615 | return resultobj; | |
6616 | fail: | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
6621 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6622 | PyObject *resultobj; | |
6623 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6624 | size_t arg2 = (size_t) 0 ; | |
6625 | size_t arg3 = (size_t) 1 ; | |
6626 | bool result; | |
6627 | PyObject * obj0 = 0 ; | |
6628 | PyObject * obj1 = 0 ; | |
6629 | PyObject * obj2 = 0 ; | |
6630 | char *kwnames[] = { | |
6631 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6632 | }; | |
6633 | ||
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6636 | if (obj1) { | |
6637 | { | |
6638 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | } | |
6642 | if (obj2) { | |
6643 | { | |
6644 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
6647 | } | |
6648 | { | |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
6655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6665 | size_t arg2 = (size_t) 1 ; | |
6666 | bool result; | |
6667 | PyObject * obj0 = 0 ; | |
6668 | PyObject * obj1 = 0 ; | |
6669 | char *kwnames[] = { | |
6670 | (char *) "self",(char *) "numRows", NULL | |
6671 | }; | |
6672 | ||
6673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
6674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6675 | if (obj1) { | |
6676 | { | |
6677 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | } | |
6681 | { | |
6682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6683 | result = (bool)(arg1)->base_AppendRows(arg2); | |
6684 | ||
6685 | wxPyEndAllowThreads(__tstate); | |
6686 | if (PyErr_Occurred()) SWIG_fail; | |
6687 | } | |
6688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
6695 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6696 | PyObject *resultobj; | |
6697 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6698 | size_t arg2 = (size_t) 0 ; | |
6699 | size_t arg3 = (size_t) 1 ; | |
6700 | bool result; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | PyObject * obj1 = 0 ; | |
6703 | PyObject * obj2 = 0 ; | |
6704 | char *kwnames[] = { | |
6705 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6706 | }; | |
6707 | ||
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6710 | if (obj1) { | |
6711 | { | |
6712 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6713 | if (PyErr_Occurred()) SWIG_fail; | |
6714 | } | |
6715 | } | |
6716 | if (obj2) { | |
6717 | { | |
6718 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
6720 | } | |
6721 | } | |
6722 | { | |
6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6724 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); | |
6725 | ||
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
6729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6730 | return resultobj; | |
6731 | fail: | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
6736 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj; | |
6738 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6739 | size_t arg2 = (size_t) 0 ; | |
6740 | size_t arg3 = (size_t) 1 ; | |
6741 | bool result; | |
6742 | PyObject * obj0 = 0 ; | |
6743 | PyObject * obj1 = 0 ; | |
6744 | PyObject * obj2 = 0 ; | |
6745 | char *kwnames[] = { | |
6746 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6747 | }; | |
6748 | ||
6749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6751 | if (obj1) { | |
6752 | { | |
6753 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6754 | if (PyErr_Occurred()) SWIG_fail; | |
6755 | } | |
6756 | } | |
6757 | if (obj2) { | |
6758 | { | |
6759 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
6760 | if (PyErr_Occurred()) SWIG_fail; | |
6761 | } | |
6762 | } | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj; | |
6779 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6780 | size_t arg2 = (size_t) 1 ; | |
6781 | bool result; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | PyObject * obj1 = 0 ; | |
6784 | char *kwnames[] = { | |
6785 | (char *) "self",(char *) "numCols", NULL | |
6786 | }; | |
6787 | ||
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
6789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6790 | if (obj1) { | |
6791 | { | |
6792 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
6795 | } | |
6796 | { | |
6797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6798 | result = (bool)(arg1)->base_AppendCols(arg2); | |
6799 | ||
6800 | wxPyEndAllowThreads(__tstate); | |
6801 | if (PyErr_Occurred()) SWIG_fail; | |
6802 | } | |
6803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6813 | size_t arg2 = (size_t) 0 ; | |
6814 | size_t arg3 = (size_t) 1 ; | |
6815 | bool result; | |
6816 | PyObject * obj0 = 0 ; | |
6817 | PyObject * obj1 = 0 ; | |
6818 | PyObject * obj2 = 0 ; | |
6819 | char *kwnames[] = { | |
6820 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6821 | }; | |
6822 | ||
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6825 | if (obj1) { | |
6826 | { | |
6827 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
6828 | if (PyErr_Occurred()) SWIG_fail; | |
6829 | } | |
6830 | } | |
6831 | if (obj2) { | |
6832 | { | |
6833 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
6834 | if (PyErr_Occurred()) SWIG_fail; | |
6835 | } | |
6836 | } | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj; | |
6853 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6854 | int arg2 ; | |
6855 | wxString result; | |
6856 | PyObject * obj0 = 0 ; | |
6857 | PyObject * obj1 = 0 ; | |
6858 | char *kwnames[] = { | |
6859 | (char *) "self",(char *) "row", NULL | |
6860 | }; | |
6861 | ||
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6864 | { | |
6865 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | result = (arg1)->base_GetRowLabelValue(arg2); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | { | |
6876 | #if wxUSE_UNICODE | |
6877 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6878 | #else | |
6879 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6880 | #endif | |
6881 | } | |
6882 | return resultobj; | |
6883 | fail: | |
6884 | return NULL; | |
6885 | } | |
6886 | ||
6887 | ||
6888 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6889 | PyObject *resultobj; | |
6890 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6891 | int arg2 ; | |
6892 | wxString result; | |
6893 | PyObject * obj0 = 0 ; | |
6894 | PyObject * obj1 = 0 ; | |
6895 | char *kwnames[] = { | |
6896 | (char *) "self",(char *) "col", NULL | |
6897 | }; | |
6898 | ||
6899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6901 | { | |
6902 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | result = (arg1)->base_GetColLabelValue(arg2); | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
6912 | { | |
6913 | #if wxUSE_UNICODE | |
6914 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6915 | #else | |
6916 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6917 | #endif | |
6918 | } | |
6919 | return resultobj; | |
6920 | fail: | |
6921 | return NULL; | |
6922 | } | |
6923 | ||
6924 | ||
6925 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6926 | PyObject *resultobj; | |
6927 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6928 | int arg2 ; | |
6929 | wxString *arg3 = 0 ; | |
6930 | bool temp3 = False ; | |
6931 | PyObject * obj0 = 0 ; | |
6932 | PyObject * obj1 = 0 ; | |
6933 | PyObject * obj2 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6940 | { | |
6941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6942 | if (PyErr_Occurred()) SWIG_fail; | |
6943 | } | |
6944 | { | |
6945 | arg3 = wxString_in_helper(obj2); | |
6946 | if (arg3 == NULL) SWIG_fail; | |
6947 | temp3 = True; | |
6948 | } | |
6949 | { | |
6950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6951 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6952 | ||
6953 | wxPyEndAllowThreads(__tstate); | |
6954 | if (PyErr_Occurred()) SWIG_fail; | |
6955 | } | |
6956 | Py_INCREF(Py_None); resultobj = Py_None; | |
6957 | { | |
6958 | if (temp3) | |
6959 | delete arg3; | |
6960 | } | |
6961 | return resultobj; | |
6962 | fail: | |
6963 | { | |
6964 | if (temp3) | |
6965 | delete arg3; | |
6966 | } | |
6967 | return NULL; | |
6968 | } | |
6969 | ||
6970 | ||
6971 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject *resultobj; | |
6973 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6974 | int arg2 ; | |
6975 | wxString *arg3 = 0 ; | |
6976 | bool temp3 = False ; | |
6977 | PyObject * obj0 = 0 ; | |
6978 | PyObject * obj1 = 0 ; | |
6979 | PyObject * obj2 = 0 ; | |
6980 | char *kwnames[] = { | |
6981 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6982 | }; | |
6983 | ||
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6986 | { | |
6987 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | { | |
6991 | arg3 = wxString_in_helper(obj2); | |
6992 | if (arg3 == NULL) SWIG_fail; | |
6993 | temp3 = True; | |
6994 | } | |
6995 | { | |
6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6997 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); | |
6998 | ||
6999 | wxPyEndAllowThreads(__tstate); | |
7000 | if (PyErr_Occurred()) SWIG_fail; | |
7001 | } | |
7002 | Py_INCREF(Py_None); resultobj = Py_None; | |
7003 | { | |
7004 | if (temp3) | |
7005 | delete arg3; | |
7006 | } | |
7007 | return resultobj; | |
7008 | fail: | |
7009 | { | |
7010 | if (temp3) | |
7011 | delete arg3; | |
7012 | } | |
7013 | return NULL; | |
7014 | } | |
7015 | ||
7016 | ||
7017 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7018 | PyObject *resultobj; | |
7019 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7020 | bool result; | |
7021 | PyObject * obj0 = 0 ; | |
7022 | char *kwnames[] = { | |
7023 | (char *) "self", NULL | |
7024 | }; | |
7025 | ||
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
7027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7028 | { | |
7029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7030 | result = (bool)(arg1)->base_CanHaveAttributes(); | |
7031 | ||
7032 | wxPyEndAllowThreads(__tstate); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | } | |
7035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7036 | return resultobj; | |
7037 | fail: | |
7038 | return NULL; | |
7039 | } | |
7040 | ||
7041 | ||
7042 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject *resultobj; | |
7044 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7045 | int arg2 ; | |
7046 | int arg3 ; | |
7047 | int arg4 ; | |
7048 | wxGridCellAttr *result; | |
7049 | PyObject * obj0 = 0 ; | |
7050 | PyObject * obj1 = 0 ; | |
7051 | PyObject * obj2 = 0 ; | |
7052 | PyObject * obj3 = 0 ; | |
7053 | char *kwnames[] = { | |
7054 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
7055 | }; | |
7056 | ||
7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7059 | { | |
7060 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | { | |
7064 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7065 | if (PyErr_Occurred()) SWIG_fail; | |
7066 | } | |
7067 | { | |
7068 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | { | |
7079 | resultobj = wxPyMake_wxGridCellAttr(result); | |
7080 | } | |
7081 | return resultobj; | |
7082 | fail: | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
7087 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7088 | PyObject *resultobj; | |
7089 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7090 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7091 | int arg3 ; | |
7092 | int arg4 ; | |
7093 | PyObject * obj0 = 0 ; | |
7094 | PyObject * obj1 = 0 ; | |
7095 | PyObject * obj2 = 0 ; | |
7096 | PyObject * obj3 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7103 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7104 | { | |
7105 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7106 | if (PyErr_Occurred()) SWIG_fail; | |
7107 | } | |
7108 | { | |
7109 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
7111 | } | |
7112 | { | |
7113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7114 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
7115 | ||
7116 | wxPyEndAllowThreads(__tstate); | |
7117 | if (PyErr_Occurred()) SWIG_fail; | |
7118 | } | |
7119 | Py_INCREF(Py_None); resultobj = Py_None; | |
7120 | return resultobj; | |
7121 | fail: | |
7122 | return NULL; | |
7123 | } | |
7124 | ||
7125 | ||
7126 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7129 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7130 | int arg3 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | PyObject * obj1 = 0 ; | |
7133 | PyObject * obj2 = 0 ; | |
7134 | char *kwnames[] = { | |
7135 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
7136 | }; | |
7137 | ||
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7141 | { | |
7142 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | { | |
7146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7147 | (arg1)->base_SetRowAttr(arg2,arg3); | |
7148 | ||
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | Py_INCREF(Py_None); resultobj = Py_None; | |
7153 | return resultobj; | |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7162 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7163 | int arg3 ; | |
7164 | PyObject * obj0 = 0 ; | |
7165 | PyObject * obj1 = 0 ; | |
7166 | PyObject * obj2 = 0 ; | |
7167 | char *kwnames[] = { | |
7168 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
7169 | }; | |
7170 | ||
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7173 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7174 | { | |
7175 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
7177 | } | |
7178 | { | |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | (arg1)->base_SetColAttr(arg2,arg3); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | Py_INCREF(Py_None); resultobj = Py_None; | |
7186 | return resultobj; | |
7187 | fail: | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) { | |
7193 | PyObject *obj; | |
7194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7195 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); | |
7196 | Py_INCREF(obj); | |
7197 | return Py_BuildValue((char *)""); | |
7198 | } | |
7199 | static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | int arg1 = (int) 0 ; | |
7202 | int arg2 = (int) 0 ; | |
7203 | wxGridStringTable *result; | |
7204 | PyObject * obj0 = 0 ; | |
7205 | PyObject * obj1 = 0 ; | |
7206 | char *kwnames[] = { | |
7207 | (char *) "numRows",(char *) "numCols", NULL | |
7208 | }; | |
7209 | ||
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; | |
7211 | if (obj0) { | |
7212 | { | |
7213 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | } | |
7217 | if (obj1) { | |
7218 | { | |
7219 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7220 | if (PyErr_Occurred()) SWIG_fail; | |
7221 | } | |
7222 | } | |
7223 | { | |
7224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7225 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); | |
7226 | ||
7227 | wxPyEndAllowThreads(__tstate); | |
7228 | if (PyErr_Occurred()) SWIG_fail; | |
7229 | } | |
7230 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1); | |
7231 | return resultobj; | |
7232 | fail: | |
7233 | return NULL; | |
7234 | } | |
7235 | ||
7236 | ||
7237 | static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) { | |
7238 | PyObject *obj; | |
7239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7240 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); | |
7241 | Py_INCREF(obj); | |
7242 | return Py_BuildValue((char *)""); | |
7243 | } | |
7244 | static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject *resultobj; | |
7246 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
7247 | int arg2 ; | |
7248 | int arg3 = (int) -1 ; | |
7249 | int arg4 = (int) -1 ; | |
7250 | wxGridTableMessage *result; | |
7251 | PyObject * obj0 = 0 ; | |
7252 | PyObject * obj1 = 0 ; | |
7253 | PyObject * obj2 = 0 ; | |
7254 | PyObject * obj3 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7261 | { | |
7262 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7263 | if (PyErr_Occurred()) SWIG_fail; | |
7264 | } | |
7265 | if (obj2) { | |
7266 | { | |
7267 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7268 | if (PyErr_Occurred()) SWIG_fail; | |
7269 | } | |
7270 | } | |
7271 | if (obj3) { | |
7272 | { | |
7273 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
7276 | } | |
7277 | { | |
7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7279 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); | |
7280 | ||
7281 | wxPyEndAllowThreads(__tstate); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1); | |
7285 | return resultobj; | |
7286 | fail: | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
7291 | static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject *resultobj; | |
7293 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7294 | PyObject * obj0 = 0 ; | |
7295 | char *kwnames[] = { | |
7296 | (char *) "self", NULL | |
7297 | }; | |
7298 | ||
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; | |
7300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | delete arg1; | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | Py_INCREF(Py_None); resultobj = Py_None; | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
7315 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7318 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
7319 | PyObject * obj0 = 0 ; | |
7320 | PyObject * obj1 = 0 ; | |
7321 | char *kwnames[] = { | |
7322 | (char *) "self",(char *) "table", NULL | |
7323 | }; | |
7324 | ||
7325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; | |
7326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7328 | { | |
7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7330 | (arg1)->SetTableObject(arg2); | |
7331 | ||
7332 | wxPyEndAllowThreads(__tstate); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
7335 | Py_INCREF(Py_None); resultobj = Py_None; | |
7336 | return resultobj; | |
7337 | fail: | |
7338 | return NULL; | |
7339 | } | |
7340 | ||
7341 | ||
7342 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7343 | PyObject *resultobj; | |
7344 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7345 | wxGridTableBase *result; | |
7346 | PyObject * obj0 = 0 ; | |
7347 | char *kwnames[] = { | |
7348 | (char *) "self", NULL | |
7349 | }; | |
7350 | ||
7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; | |
7352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7353 | { | |
7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7355 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); | |
7356 | ||
7357 | wxPyEndAllowThreads(__tstate); | |
7358 | if (PyErr_Occurred()) SWIG_fail; | |
7359 | } | |
7360 | { | |
7361 | resultobj = wxPyMake_wxGridTableBase(result); | |
7362 | } | |
7363 | return resultobj; | |
7364 | fail: | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
7369 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7370 | PyObject *resultobj; | |
7371 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7372 | int arg2 ; | |
7373 | PyObject * obj0 = 0 ; | |
7374 | PyObject * obj1 = 0 ; | |
7375 | char *kwnames[] = { | |
7376 | (char *) "self",(char *) "id", NULL | |
7377 | }; | |
7378 | ||
7379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; | |
7380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7381 | { | |
7382 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7383 | if (PyErr_Occurred()) SWIG_fail; | |
7384 | } | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | (arg1)->SetId(arg2); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | Py_INCREF(Py_None); resultobj = Py_None; | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7402 | int result; | |
7403 | PyObject * obj0 = 0 ; | |
7404 | char *kwnames[] = { | |
7405 | (char *) "self", NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; | |
7409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7410 | { | |
7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7412 | result = (int)(arg1)->GetId(); | |
7413 | ||
7414 | wxPyEndAllowThreads(__tstate); | |
7415 | if (PyErr_Occurred()) SWIG_fail; | |
7416 | } | |
7417 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7418 | return resultobj; | |
7419 | fail: | |
7420 | return NULL; | |
7421 | } | |
7422 | ||
7423 | ||
7424 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject *resultobj; | |
7426 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7427 | int arg2 ; | |
7428 | PyObject * obj0 = 0 ; | |
7429 | PyObject * obj1 = 0 ; | |
7430 | char *kwnames[] = { | |
7431 | (char *) "self",(char *) "comInt1", NULL | |
7432 | }; | |
7433 | ||
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; | |
7435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7436 | { | |
7437 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | { | |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | (arg1)->SetCommandInt(arg2); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
7447 | Py_INCREF(Py_None); resultobj = Py_None; | |
7448 | return resultobj; | |
7449 | fail: | |
7450 | return NULL; | |
7451 | } | |
7452 | ||
7453 | ||
7454 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7455 | PyObject *resultobj; | |
7456 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7457 | int result; | |
7458 | PyObject * obj0 = 0 ; | |
7459 | char *kwnames[] = { | |
7460 | (char *) "self", NULL | |
7461 | }; | |
7462 | ||
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; | |
7464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7465 | { | |
7466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7467 | result = (int)(arg1)->GetCommandInt(); | |
7468 | ||
7469 | wxPyEndAllowThreads(__tstate); | |
7470 | if (PyErr_Occurred()) SWIG_fail; | |
7471 | } | |
7472 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7473 | return resultobj; | |
7474 | fail: | |
7475 | return NULL; | |
7476 | } | |
7477 | ||
7478 | ||
7479 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7480 | PyObject *resultobj; | |
7481 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7482 | int arg2 ; | |
7483 | PyObject * obj0 = 0 ; | |
7484 | PyObject * obj1 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self",(char *) "comInt2", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7491 | { | |
7492 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | } | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | (arg1)->SetCommandInt2(arg2); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | Py_INCREF(Py_None); resultobj = Py_None; | |
7503 | return resultobj; | |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
7509 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject *resultobj; | |
7511 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7512 | int result; | |
7513 | PyObject * obj0 = 0 ; | |
7514 | char *kwnames[] = { | |
7515 | (char *) "self", NULL | |
7516 | }; | |
7517 | ||
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; | |
7519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | result = (int)(arg1)->GetCommandInt2(); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
7527 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7528 | return resultobj; | |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) { | |
7535 | PyObject *obj; | |
7536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7537 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); | |
7538 | Py_INCREF(obj); | |
7539 | return Py_BuildValue((char *)""); | |
7540 | } | |
7541 | static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | int arg1 = (int) -1 ; | |
7544 | int arg2 = (int) -1 ; | |
7545 | wxGridCellCoords *result; | |
7546 | PyObject * obj0 = 0 ; | |
7547 | PyObject * obj1 = 0 ; | |
7548 | char *kwnames[] = { | |
7549 | (char *) "r",(char *) "c", NULL | |
7550 | }; | |
7551 | ||
7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; | |
7553 | if (obj0) { | |
7554 | { | |
7555 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
7558 | } | |
7559 | if (obj1) { | |
7560 | { | |
7561 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | } | |
7565 | { | |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1); | |
7573 | return resultobj; | |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
7579 | static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7580 | PyObject *resultobj; | |
7581 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7582 | PyObject * obj0 = 0 ; | |
7583 | char *kwnames[] = { | |
7584 | (char *) "self", NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; | |
7588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | delete arg1; | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
7596 | Py_INCREF(Py_None); resultobj = Py_None; | |
7597 | return resultobj; | |
7598 | fail: | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
7603 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7604 | PyObject *resultobj; | |
7605 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7606 | int result; | |
7607 | PyObject * obj0 = 0 ; | |
7608 | char *kwnames[] = { | |
7609 | (char *) "self", NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; | |
7613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); | |
7617 | ||
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
7621 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7622 | return resultobj; | |
7623 | fail: | |
7624 | return NULL; | |
7625 | } | |
7626 | ||
7627 | ||
7628 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7629 | PyObject *resultobj; | |
7630 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7631 | int arg2 ; | |
7632 | PyObject * obj0 = 0 ; | |
7633 | PyObject * obj1 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self",(char *) "n", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
7639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7640 | { | |
7641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7642 | if (PyErr_Occurred()) SWIG_fail; | |
7643 | } | |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | (arg1)->SetRow(arg2); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | Py_INCREF(Py_None); resultobj = Py_None; | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7661 | int result; | |
7662 | PyObject * obj0 = 0 ; | |
7663 | char *kwnames[] = { | |
7664 | (char *) "self", NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail; | |
7668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | result = (int)((wxGridCellCoords const *)arg1)->GetCol(); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) SWIG_fail; | |
7675 | } | |
7676 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7677 | return resultobj; | |
7678 | fail: | |
7679 | return NULL; | |
7680 | } | |
7681 | ||
7682 | ||
7683 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7684 | PyObject *resultobj; | |
7685 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7686 | int arg2 ; | |
7687 | PyObject * obj0 = 0 ; | |
7688 | PyObject * obj1 = 0 ; | |
7689 | char *kwnames[] = { | |
7690 | (char *) "self",(char *) "n", NULL | |
7691 | }; | |
7692 | ||
7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
7694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7695 | { | |
7696 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
7699 | { | |
7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7701 | (arg1)->SetCol(arg2); | |
7702 | ||
7703 | wxPyEndAllowThreads(__tstate); | |
7704 | if (PyErr_Occurred()) SWIG_fail; | |
7705 | } | |
7706 | Py_INCREF(Py_None); resultobj = Py_None; | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7716 | int arg2 ; | |
7717 | int arg3 ; | |
7718 | PyObject * obj0 = 0 ; | |
7719 | PyObject * obj1 = 0 ; | |
7720 | PyObject * obj2 = 0 ; | |
7721 | char *kwnames[] = { | |
7722 | (char *) "self",(char *) "row",(char *) "col", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7727 | { | |
7728 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | { | |
7732 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7733 | if (PyErr_Occurred()) SWIG_fail; | |
7734 | } | |
7735 | { | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | (arg1)->Set(arg2,arg3); | |
7738 | ||
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) SWIG_fail; | |
7741 | } | |
7742 | Py_INCREF(Py_None); resultobj = Py_None; | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | return NULL; | |
7746 | } | |
7747 | ||
7748 | ||
7749 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7750 | PyObject *resultobj; | |
7751 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7752 | wxGridCellCoords *arg2 = 0 ; | |
7753 | bool result; | |
7754 | wxGridCellCoords temp2 ; | |
7755 | PyObject * obj0 = 0 ; | |
7756 | PyObject * obj1 = 0 ; | |
7757 | char *kwnames[] = { | |
7758 | (char *) "self",(char *) "other", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7763 | { | |
7764 | arg2 = &temp2; | |
7765 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
7766 | } | |
7767 | { | |
7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7769 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); | |
7770 | ||
7771 | wxPyEndAllowThreads(__tstate); | |
7772 | if (PyErr_Occurred()) SWIG_fail; | |
7773 | } | |
7774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7775 | return resultobj; | |
7776 | fail: | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
7781 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7782 | PyObject *resultobj; | |
7783 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7784 | wxGridCellCoords *arg2 = 0 ; | |
7785 | bool result; | |
7786 | wxGridCellCoords temp2 ; | |
7787 | PyObject * obj0 = 0 ; | |
7788 | PyObject * obj1 = 0 ; | |
7789 | char *kwnames[] = { | |
7790 | (char *) "self",(char *) "other", NULL | |
7791 | }; | |
7792 | ||
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7795 | { | |
7796 | arg2 = &temp2; | |
7797 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
7798 | } | |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj; | |
7815 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7816 | PyObject *result; | |
7817 | PyObject * obj0 = 0 ; | |
7818 | char *kwnames[] = { | |
7819 | (char *) "self", NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail; | |
7823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7824 | { | |
7825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7826 | result = (PyObject *)wxGridCellCoords_asTuple(arg1); | |
7827 | ||
7828 | wxPyEndAllowThreads(__tstate); | |
7829 | if (PyErr_Occurred()) SWIG_fail; | |
7830 | } | |
7831 | resultobj = result; | |
7832 | return resultobj; | |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
7838 | static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) { | |
7839 | PyObject *obj; | |
7840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7841 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); | |
7842 | Py_INCREF(obj); | |
7843 | return Py_BuildValue((char *)""); | |
7844 | } | |
7845 | static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7848 | int arg2 ; | |
7849 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7850 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7851 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7852 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7853 | long arg5 = (long) wxWANTS_CHARS ; | |
7854 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
7855 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7856 | wxGrid *result; | |
7857 | wxPoint temp3 ; | |
7858 | wxSize temp4 ; | |
7859 | bool temp6 = False ; | |
7860 | PyObject * obj0 = 0 ; | |
7861 | PyObject * obj1 = 0 ; | |
7862 | PyObject * obj2 = 0 ; | |
7863 | PyObject * obj3 = 0 ; | |
7864 | PyObject * obj4 = 0 ; | |
7865 | PyObject * obj5 = 0 ; | |
7866 | char *kwnames[] = { | |
7867 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
7871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7872 | { | |
7873 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
7876 | if (obj2) { | |
7877 | { | |
7878 | arg3 = &temp3; | |
7879 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7880 | } | |
7881 | } | |
7882 | if (obj3) { | |
7883 | { | |
7884 | arg4 = &temp4; | |
7885 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7886 | } | |
7887 | } | |
7888 | if (obj4) { | |
7889 | { | |
7890 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
7891 | if (PyErr_Occurred()) SWIG_fail; | |
7892 | } | |
7893 | } | |
7894 | if (obj5) { | |
7895 | { | |
7896 | arg6 = wxString_in_helper(obj5); | |
7897 | if (arg6 == NULL) SWIG_fail; | |
7898 | temp6 = True; | |
7899 | } | |
7900 | } | |
7901 | { | |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7903 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | { | |
7909 | resultobj = wxPyMake_wxObject(result); | |
7910 | } | |
7911 | { | |
7912 | if (temp6) | |
7913 | delete arg6; | |
7914 | } | |
7915 | return resultobj; | |
7916 | fail: | |
7917 | { | |
7918 | if (temp6) | |
7919 | delete arg6; | |
7920 | } | |
7921 | return NULL; | |
7922 | } | |
7923 | ||
7924 | ||
7925 | static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7926 | PyObject *resultobj; | |
7927 | wxGrid *arg1 = (wxGrid *) 0 ; | |
7928 | int arg2 ; | |
7929 | int arg3 ; | |
7930 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
7931 | bool result; | |
7932 | PyObject * obj0 = 0 ; | |
7933 | PyObject * obj1 = 0 ; | |
7934 | PyObject * obj2 = 0 ; | |
7935 | PyObject * obj3 = 0 ; | |
7936 | char *kwnames[] = { | |
7937 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL | |
7938 | }; | |
7939 | ||
7940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7942 | { | |
7943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
7946 | { | |
7947 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
7950 | if (obj3) { | |
7951 | { | |
7952 | arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | } | |
7956 | { | |
7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7958 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); | |
7959 | ||
7960 | wxPyEndAllowThreads(__tstate); | |
7961 | if (PyErr_Occurred()) SWIG_fail; | |
7962 | } | |
7963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxGrid *arg1 = (wxGrid *) 0 ; | |
7973 | WXGRIDSELECTIONMODES arg2 ; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | PyObject * obj1 = 0 ; | |
7976 | char *kwnames[] = { | |
7977 | (char *) "self",(char *) "selmode", NULL | |
7978 | }; | |
7979 | ||
7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; | |
7981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7982 | { | |
7983 | arg2 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj1); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
7986 | { | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | (arg1)->SetSelectionMode(arg2); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
7993 | Py_INCREF(Py_None); resultobj = Py_None; | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8003 | WXGRIDSELECTIONMODES result; | |
8004 | PyObject * obj0 = 0 ; | |
8005 | char *kwnames[] = { | |
8006 | (char *) "self", NULL | |
8007 | }; | |
8008 | ||
8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; | |
8010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8011 | { | |
8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8013 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); | |
8014 | ||
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8019 | return resultobj; | |
8020 | fail: | |
8021 | return NULL; | |
8022 | } | |
8023 | ||
8024 | ||
8025 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8026 | PyObject *resultobj; | |
8027 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8028 | int result; | |
8029 | PyObject * obj0 = 0 ; | |
8030 | char *kwnames[] = { | |
8031 | (char *) "self", NULL | |
8032 | }; | |
8033 | ||
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; | |
8035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8036 | { | |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | result = (int)(arg1)->GetNumberRows(); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) SWIG_fail; | |
8042 | } | |
8043 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8044 | return resultobj; | |
8045 | fail: | |
8046 | return NULL; | |
8047 | } | |
8048 | ||
8049 | ||
8050 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8051 | PyObject *resultobj; | |
8052 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8053 | int result; | |
8054 | PyObject * obj0 = 0 ; | |
8055 | char *kwnames[] = { | |
8056 | (char *) "self", NULL | |
8057 | }; | |
8058 | ||
8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; | |
8060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8061 | { | |
8062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8063 | result = (int)(arg1)->GetNumberCols(); | |
8064 | ||
8065 | wxPyEndAllowThreads(__tstate); | |
8066 | if (PyErr_Occurred()) SWIG_fail; | |
8067 | } | |
8068 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8069 | return resultobj; | |
8070 | fail: | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8078 | wxGridTableMessage *arg2 = 0 ; | |
8079 | bool result; | |
8080 | PyObject * obj0 = 0 ; | |
8081 | PyObject * obj1 = 0 ; | |
8082 | char *kwnames[] = { | |
8083 | (char *) "self","arg2", NULL | |
8084 | }; | |
8085 | ||
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; | |
8087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8089 | if (arg2 == NULL) { | |
8090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8091 | } | |
8092 | { | |
8093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8094 | result = (bool)(arg1)->ProcessTableMessage(*arg2); | |
8095 | ||
8096 | wxPyEndAllowThreads(__tstate); | |
8097 | if (PyErr_Occurred()) SWIG_fail; | |
8098 | } | |
8099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
8106 | static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject *resultobj; | |
8108 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8109 | wxGridTableBase *result; | |
8110 | PyObject * obj0 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; | |
8116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | { | |
8118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8119 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); | |
8120 | ||
8121 | wxPyEndAllowThreads(__tstate); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8123 | } | |
8124 | { | |
8125 | resultobj = wxPyMake_wxGridTableBase(result); | |
8126 | } | |
8127 | return resultobj; | |
8128 | fail: | |
8129 | return NULL; | |
8130 | } | |
8131 | ||
8132 | ||
8133 | static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8134 | PyObject *resultobj; | |
8135 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8136 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
8137 | bool arg3 = (bool) False ; | |
8138 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
8139 | bool result; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | PyObject * obj1 = 0 ; | |
8142 | PyObject * obj2 = 0 ; | |
8143 | PyObject * obj3 = 0 ; | |
8144 | char *kwnames[] = { | |
8145 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL | |
8146 | }; | |
8147 | ||
8148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8150 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8151 | if (obj2) { | |
8152 | { | |
8153 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | } | |
8156 | } | |
8157 | if (obj3) { | |
8158 | { | |
8159 | arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | } | |
8162 | } | |
8163 | { | |
8164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8165 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); | |
8166 | ||
8167 | wxPyEndAllowThreads(__tstate); | |
8168 | if (PyErr_Occurred()) SWIG_fail; | |
8169 | } | |
8170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8171 | return resultobj; | |
8172 | fail: | |
8173 | return NULL; | |
8174 | } | |
8175 | ||
8176 | ||
8177 | static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8178 | PyObject *resultobj; | |
8179 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8180 | PyObject * obj0 = 0 ; | |
8181 | char *kwnames[] = { | |
8182 | (char *) "self", NULL | |
8183 | }; | |
8184 | ||
8185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; | |
8186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8187 | { | |
8188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8189 | (arg1)->ClearGrid(); | |
8190 | ||
8191 | wxPyEndAllowThreads(__tstate); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
8194 | Py_INCREF(Py_None); resultobj = Py_None; | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
8201 | static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8202 | PyObject *resultobj; | |
8203 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8204 | int arg2 = (int) 0 ; | |
8205 | int arg3 = (int) 1 ; | |
8206 | bool arg4 = (bool) True ; | |
8207 | bool result; | |
8208 | PyObject * obj0 = 0 ; | |
8209 | PyObject * obj1 = 0 ; | |
8210 | PyObject * obj2 = 0 ; | |
8211 | PyObject * obj3 = 0 ; | |
8212 | char *kwnames[] = { | |
8213 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8214 | }; | |
8215 | ||
8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8218 | if (obj1) { | |
8219 | { | |
8220 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | } | |
8224 | if (obj2) { | |
8225 | { | |
8226 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
8229 | } | |
8230 | if (obj3) { | |
8231 | { | |
8232 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | } | |
8236 | { | |
8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8238 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); | |
8239 | ||
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | } | |
8243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8244 | return resultobj; | |
8245 | fail: | |
8246 | return NULL; | |
8247 | } | |
8248 | ||
8249 | ||
8250 | static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8251 | PyObject *resultobj; | |
8252 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8253 | int arg2 = (int) 1 ; | |
8254 | bool arg3 = (bool) True ; | |
8255 | bool result; | |
8256 | PyObject * obj0 = 0 ; | |
8257 | PyObject * obj1 = 0 ; | |
8258 | PyObject * obj2 = 0 ; | |
8259 | char *kwnames[] = { | |
8260 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL | |
8261 | }; | |
8262 | ||
8263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8265 | if (obj1) { | |
8266 | { | |
8267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8268 | if (PyErr_Occurred()) SWIG_fail; | |
8269 | } | |
8270 | } | |
8271 | if (obj2) { | |
8272 | { | |
8273 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
8274 | if (PyErr_Occurred()) SWIG_fail; | |
8275 | } | |
8276 | } | |
8277 | { | |
8278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8279 | result = (bool)(arg1)->AppendRows(arg2,arg3); | |
8280 | ||
8281 | wxPyEndAllowThreads(__tstate); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
8284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8285 | return resultobj; | |
8286 | fail: | |
8287 | return NULL; | |
8288 | } | |
8289 | ||
8290 | ||
8291 | static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8292 | PyObject *resultobj; | |
8293 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8294 | int arg2 = (int) 0 ; | |
8295 | int arg3 = (int) 1 ; | |
8296 | bool arg4 = (bool) True ; | |
8297 | bool result; | |
8298 | PyObject * obj0 = 0 ; | |
8299 | PyObject * obj1 = 0 ; | |
8300 | PyObject * obj2 = 0 ; | |
8301 | PyObject * obj3 = 0 ; | |
8302 | char *kwnames[] = { | |
8303 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8304 | }; | |
8305 | ||
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8308 | if (obj1) { | |
8309 | { | |
8310 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
8313 | } | |
8314 | if (obj2) { | |
8315 | { | |
8316 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8317 | if (PyErr_Occurred()) SWIG_fail; | |
8318 | } | |
8319 | } | |
8320 | if (obj3) { | |
8321 | { | |
8322 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | } | |
8326 | { | |
8327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8328 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); | |
8329 | ||
8330 | wxPyEndAllowThreads(__tstate); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj; | |
8342 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8343 | int arg2 = (int) 0 ; | |
8344 | int arg3 = (int) 1 ; | |
8345 | bool arg4 = (bool) True ; | |
8346 | bool result; | |
8347 | PyObject * obj0 = 0 ; | |
8348 | PyObject * obj1 = 0 ; | |
8349 | PyObject * obj2 = 0 ; | |
8350 | PyObject * obj3 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8357 | if (obj1) { | |
8358 | { | |
8359 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | } | |
8362 | } | |
8363 | if (obj2) { | |
8364 | { | |
8365 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | } | |
8369 | if (obj3) { | |
8370 | { | |
8371 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
8372 | if (PyErr_Occurred()) SWIG_fail; | |
8373 | } | |
8374 | } | |
8375 | { | |
8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8377 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); | |
8378 | ||
8379 | wxPyEndAllowThreads(__tstate); | |
8380 | if (PyErr_Occurred()) SWIG_fail; | |
8381 | } | |
8382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8383 | return resultobj; | |
8384 | fail: | |
8385 | return NULL; | |
8386 | } | |
8387 | ||
8388 | ||
8389 | static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8390 | PyObject *resultobj; | |
8391 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8392 | int arg2 = (int) 1 ; | |
8393 | bool arg3 = (bool) True ; | |
8394 | bool result; | |
8395 | PyObject * obj0 = 0 ; | |
8396 | PyObject * obj1 = 0 ; | |
8397 | PyObject * obj2 = 0 ; | |
8398 | char *kwnames[] = { | |
8399 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL | |
8400 | }; | |
8401 | ||
8402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8404 | if (obj1) { | |
8405 | { | |
8406 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | } | |
8410 | if (obj2) { | |
8411 | { | |
8412 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | } | |
8416 | { | |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | result = (bool)(arg1)->AppendCols(arg2,arg3); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
8430 | static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8431 | PyObject *resultobj; | |
8432 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8433 | int arg2 = (int) 0 ; | |
8434 | int arg3 = (int) 1 ; | |
8435 | bool arg4 = (bool) True ; | |
8436 | bool result; | |
8437 | PyObject * obj0 = 0 ; | |
8438 | PyObject * obj1 = 0 ; | |
8439 | PyObject * obj2 = 0 ; | |
8440 | PyObject * obj3 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8447 | if (obj1) { | |
8448 | { | |
8449 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | } | |
8453 | if (obj2) { | |
8454 | { | |
8455 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | } | |
8458 | } | |
8459 | if (obj3) { | |
8460 | { | |
8461 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
8464 | } | |
8465 | { | |
8466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8467 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); | |
8468 | ||
8469 | wxPyEndAllowThreads(__tstate); | |
8470 | if (PyErr_Occurred()) SWIG_fail; | |
8471 | } | |
8472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8473 | return resultobj; | |
8474 | fail: | |
8475 | return NULL; | |
8476 | } | |
8477 | ||
8478 | ||
8479 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8480 | PyObject *resultobj; | |
8481 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8482 | wxDC *arg2 = 0 ; | |
8483 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
8484 | PyObject * obj0 = 0 ; | |
8485 | PyObject * obj1 = 0 ; | |
8486 | PyObject * obj2 = 0 ; | |
8487 | char *kwnames[] = { | |
8488 | (char *) "self",(char *) "dc",(char *) "attr", NULL | |
8489 | }; | |
8490 | ||
8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8493 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8494 | if (arg2 == NULL) { | |
8495 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8496 | } | |
8497 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8498 | { | |
8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8500 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); | |
8501 | ||
8502 | wxPyEndAllowThreads(__tstate); | |
8503 | if (PyErr_Occurred()) SWIG_fail; | |
8504 | } | |
8505 | Py_INCREF(Py_None); resultobj = Py_None; | |
8506 | return resultobj; | |
8507 | fail: | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
8512 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8513 | PyObject *resultobj; | |
8514 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8515 | wxDC *arg2 = 0 ; | |
8516 | wxString *arg3 = 0 ; | |
8517 | wxRect *arg4 = 0 ; | |
8518 | int arg5 = (int) wxLEFT ; | |
8519 | int arg6 = (int) wxTOP ; | |
8520 | int arg7 = (int) wxHORIZONTAL ; | |
8521 | bool temp3 = False ; | |
8522 | wxRect temp4 ; | |
8523 | PyObject * obj0 = 0 ; | |
8524 | PyObject * obj1 = 0 ; | |
8525 | PyObject * obj2 = 0 ; | |
8526 | PyObject * obj3 = 0 ; | |
8527 | PyObject * obj4 = 0 ; | |
8528 | PyObject * obj5 = 0 ; | |
8529 | PyObject * obj6 = 0 ; | |
8530 | char *kwnames[] = { | |
8531 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8536 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8537 | if (arg2 == NULL) { | |
8538 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8539 | } | |
8540 | { | |
8541 | arg3 = wxString_in_helper(obj2); | |
8542 | if (arg3 == NULL) SWIG_fail; | |
8543 | temp3 = True; | |
8544 | } | |
8545 | { | |
8546 | arg4 = &temp4; | |
8547 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
8548 | } | |
8549 | if (obj4) { | |
8550 | { | |
8551 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
8554 | } | |
8555 | if (obj5) { | |
8556 | { | |
8557 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8559 | } | |
8560 | } | |
8561 | if (obj6) { | |
8562 | { | |
8563 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | } | |
8566 | } | |
8567 | { | |
8568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8569 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
8570 | ||
8571 | wxPyEndAllowThreads(__tstate); | |
8572 | if (PyErr_Occurred()) SWIG_fail; | |
8573 | } | |
8574 | Py_INCREF(Py_None); resultobj = Py_None; | |
8575 | { | |
8576 | if (temp3) | |
8577 | delete arg3; | |
8578 | } | |
8579 | return resultobj; | |
8580 | fail: | |
8581 | { | |
8582 | if (temp3) | |
8583 | delete arg3; | |
8584 | } | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj; | |
8591 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8592 | wxDC *arg2 = 0 ; | |
8593 | wxArrayString *arg3 = 0 ; | |
8594 | long *arg4 = (long *) 0 ; | |
8595 | long *arg5 = (long *) 0 ; | |
8596 | bool temp3 = False ; | |
8597 | long temp4 ; | |
8598 | long temp5 ; | |
8599 | PyObject * obj0 = 0 ; | |
8600 | PyObject * obj1 = 0 ; | |
8601 | PyObject * obj2 = 0 ; | |
8602 | char *kwnames[] = { | |
8603 | (char *) "self",(char *) "dc",(char *) "lines", NULL | |
8604 | }; | |
8605 | ||
8606 | arg4 = &temp4; | |
8607 | arg5 = &temp5; | |
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8610 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8611 | if (arg2 == NULL) { | |
8612 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8613 | } | |
8614 | { | |
8615 | if (! PySequence_Check(obj2)) { | |
8616 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8617 | SWIG_fail; | |
8618 | } | |
8619 | arg3 = new wxArrayString; | |
8620 | temp3 = True; | |
8621 | int i, len=PySequence_Length(obj2); | |
8622 | for (i=0; i<len; i++) { | |
8623 | PyObject* item = PySequence_GetItem(obj2, i); | |
8624 | #if wxUSE_UNICODE | |
8625 | PyObject* str = PyObject_Unicode(item); | |
8626 | #else | |
8627 | PyObject* str = PyObject_Str(item); | |
8628 | #endif | |
8629 | arg3->Add(Py2wxString(str)); | |
8630 | Py_DECREF(item); | |
8631 | Py_DECREF(str); | |
8632 | } | |
8633 | } | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | Py_INCREF(Py_None); resultobj = Py_None; | |
8642 | { | |
8643 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8644 | resultobj = t_output_helper(resultobj,o); | |
8645 | } | |
8646 | { | |
8647 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
8648 | resultobj = t_output_helper(resultobj,o); | |
8649 | } | |
8650 | { | |
8651 | if (temp3) delete arg3; | |
8652 | } | |
8653 | return resultobj; | |
8654 | fail: | |
8655 | { | |
8656 | if (temp3) delete arg3; | |
8657 | } | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
8662 | static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject *resultobj; | |
8664 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8665 | PyObject * obj0 = 0 ; | |
8666 | char *kwnames[] = { | |
8667 | (char *) "self", NULL | |
8668 | }; | |
8669 | ||
8670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; | |
8671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | (arg1)->BeginBatch(); | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | Py_INCREF(Py_None); resultobj = Py_None; | |
8680 | return resultobj; | |
8681 | fail: | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
8686 | static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8687 | PyObject *resultobj; | |
8688 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8689 | PyObject * obj0 = 0 ; | |
8690 | char *kwnames[] = { | |
8691 | (char *) "self", NULL | |
8692 | }; | |
8693 | ||
8694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; | |
8695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8696 | { | |
8697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8698 | (arg1)->EndBatch(); | |
8699 | ||
8700 | wxPyEndAllowThreads(__tstate); | |
8701 | if (PyErr_Occurred()) SWIG_fail; | |
8702 | } | |
8703 | Py_INCREF(Py_None); resultobj = Py_None; | |
8704 | return resultobj; | |
8705 | fail: | |
8706 | return NULL; | |
8707 | } | |
8708 | ||
8709 | ||
8710 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8711 | PyObject *resultobj; | |
8712 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8713 | int result; | |
8714 | PyObject * obj0 = 0 ; | |
8715 | char *kwnames[] = { | |
8716 | (char *) "self", NULL | |
8717 | }; | |
8718 | ||
8719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; | |
8720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8721 | { | |
8722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8723 | result = (int)(arg1)->GetBatchCount(); | |
8724 | ||
8725 | wxPyEndAllowThreads(__tstate); | |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | return NULL; | |
8732 | } | |
8733 | ||
8734 | ||
8735 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8736 | PyObject *resultobj; | |
8737 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8738 | PyObject * obj0 = 0 ; | |
8739 | char *kwnames[] = { | |
8740 | (char *) "self", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; | |
8744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | (arg1)->ForceRefresh(); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | Py_INCREF(Py_None); resultobj = Py_None; | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj; | |
8761 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8762 | bool arg2 = (bool) True ; | |
8763 | wxRect *arg3 = (wxRect *) NULL ; | |
8764 | PyObject * obj0 = 0 ; | |
8765 | PyObject * obj1 = 0 ; | |
8766 | PyObject * obj2 = 0 ; | |
8767 | char *kwnames[] = { | |
8768 | (char *) "self",(char *) "eraseb",(char *) "rect", NULL | |
8769 | }; | |
8770 | ||
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8773 | if (obj1) { | |
8774 | { | |
8775 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
8778 | } | |
8779 | if (obj2) { | |
8780 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
8785 | ||
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | Py_INCREF(Py_None); resultobj = Py_None; | |
8790 | return resultobj; | |
8791 | fail: | |
8792 | return NULL; | |
8793 | } | |
8794 | ||
8795 | ||
8796 | static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8797 | PyObject *resultobj; | |
8798 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8799 | bool result; | |
8800 | PyObject * obj0 = 0 ; | |
8801 | char *kwnames[] = { | |
8802 | (char *) "self", NULL | |
8803 | }; | |
8804 | ||
8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; | |
8806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8807 | { | |
8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8809 | result = (bool)(arg1)->IsEditable(); | |
8810 | ||
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
8814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8815 | return resultobj; | |
8816 | fail: | |
8817 | return NULL; | |
8818 | } | |
8819 | ||
8820 | ||
8821 | static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject *resultobj; | |
8823 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8824 | bool arg2 ; | |
8825 | PyObject * obj0 = 0 ; | |
8826 | PyObject * obj1 = 0 ; | |
8827 | char *kwnames[] = { | |
8828 | (char *) "self",(char *) "edit", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8833 | { | |
8834 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | } | |
8837 | { | |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | (arg1)->EnableEditing(arg2); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | Py_INCREF(Py_None); resultobj = Py_None; | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | return NULL; | |
8848 | } | |
8849 | ||
8850 | ||
8851 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8852 | PyObject *resultobj; | |
8853 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8854 | bool arg2 = (bool) True ; | |
8855 | PyObject * obj0 = 0 ; | |
8856 | PyObject * obj1 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self",(char *) "enable", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; | |
8862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8863 | if (obj1) { | |
8864 | { | |
8865 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
8866 | if (PyErr_Occurred()) SWIG_fail; | |
8867 | } | |
8868 | } | |
8869 | { | |
8870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8871 | (arg1)->EnableCellEditControl(arg2); | |
8872 | ||
8873 | wxPyEndAllowThreads(__tstate); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
8875 | } | |
8876 | Py_INCREF(Py_None); resultobj = Py_None; | |
8877 | return resultobj; | |
8878 | fail: | |
8879 | return NULL; | |
8880 | } | |
8881 | ||
8882 | ||
8883 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8884 | PyObject *resultobj; | |
8885 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8886 | PyObject * obj0 = 0 ; | |
8887 | char *kwnames[] = { | |
8888 | (char *) "self", NULL | |
8889 | }; | |
8890 | ||
8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; | |
8892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8893 | { | |
8894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8895 | (arg1)->DisableCellEditControl(); | |
8896 | ||
8897 | wxPyEndAllowThreads(__tstate); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | } | |
8900 | Py_INCREF(Py_None); resultobj = Py_None; | |
8901 | return resultobj; | |
8902 | fail: | |
8903 | return NULL; | |
8904 | } | |
8905 | ||
8906 | ||
8907 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8908 | PyObject *resultobj; | |
8909 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8910 | bool result; | |
8911 | PyObject * obj0 = 0 ; | |
8912 | char *kwnames[] = { | |
8913 | (char *) "self", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; | |
8917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8918 | { | |
8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8920 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); | |
8921 | ||
8922 | wxPyEndAllowThreads(__tstate); | |
8923 | if (PyErr_Occurred()) SWIG_fail; | |
8924 | } | |
8925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8926 | return resultobj; | |
8927 | fail: | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
8932 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject *resultobj; | |
8934 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8935 | bool result; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | char *kwnames[] = { | |
8938 | (char *) "self", NULL | |
8939 | }; | |
8940 | ||
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; | |
8942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8943 | { | |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8945 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); | |
8946 | ||
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8951 | return resultobj; | |
8952 | fail: | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
8957 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8958 | PyObject *resultobj; | |
8959 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8960 | bool result; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; | |
8967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8985 | bool result; | |
8986 | PyObject * obj0 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | char *kwnames[] = { | |
9012 | (char *) "self", NULL | |
9013 | }; | |
9014 | ||
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; | |
9016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | (arg1)->ShowCellEditControl(); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | Py_INCREF(Py_None); resultobj = Py_None; | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | return NULL; | |
9028 | } | |
9029 | ||
9030 | ||
9031 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9032 | PyObject *resultobj; | |
9033 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9034 | PyObject * obj0 = 0 ; | |
9035 | char *kwnames[] = { | |
9036 | (char *) "self", NULL | |
9037 | }; | |
9038 | ||
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; | |
9040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9041 | { | |
9042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9043 | (arg1)->HideCellEditControl(); | |
9044 | ||
9045 | wxPyEndAllowThreads(__tstate); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
9048 | Py_INCREF(Py_None); resultobj = Py_None; | |
9049 | return resultobj; | |
9050 | fail: | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
9055 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject *resultobj; | |
9057 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9058 | PyObject * obj0 = 0 ; | |
9059 | char *kwnames[] = { | |
9060 | (char *) "self", NULL | |
9061 | }; | |
9062 | ||
9063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; | |
9064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9065 | { | |
9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9067 | (arg1)->SaveEditControlValue(); | |
9068 | ||
9069 | wxPyEndAllowThreads(__tstate); | |
9070 | if (PyErr_Occurred()) SWIG_fail; | |
9071 | } | |
9072 | Py_INCREF(Py_None); resultobj = Py_None; | |
9073 | return resultobj; | |
9074 | fail: | |
9075 | return NULL; | |
9076 | } | |
9077 | ||
9078 | ||
9079 | static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9080 | PyObject *resultobj; | |
9081 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9082 | int arg2 ; | |
9083 | int arg3 ; | |
9084 | wxGridCellCoords result; | |
9085 | PyObject * obj0 = 0 ; | |
9086 | PyObject * obj1 = 0 ; | |
9087 | PyObject * obj2 = 0 ; | |
9088 | char *kwnames[] = { | |
9089 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9094 | { | |
9095 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
9098 | { | |
9099 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | { | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | result = wxGrid_XYToCell(arg1,arg2,arg3); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
9109 | { | |
9110 | wxGridCellCoords * resultptr; | |
9111 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
9112 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
9113 | } | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
9120 | static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9121 | PyObject *resultobj; | |
9122 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9123 | int arg2 ; | |
9124 | int result; | |
9125 | PyObject * obj0 = 0 ; | |
9126 | PyObject * obj1 = 0 ; | |
9127 | char *kwnames[] = { | |
9128 | (char *) "self",(char *) "y", NULL | |
9129 | }; | |
9130 | ||
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; | |
9132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9133 | { | |
9134 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
9137 | { | |
9138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9139 | result = (int)(arg1)->YToRow(arg2); | |
9140 | ||
9141 | wxPyEndAllowThreads(__tstate); | |
9142 | if (PyErr_Occurred()) SWIG_fail; | |
9143 | } | |
9144 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9145 | return resultobj; | |
9146 | fail: | |
9147 | return NULL; | |
9148 | } | |
9149 | ||
9150 | ||
9151 | static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9152 | PyObject *resultobj; | |
9153 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9154 | int arg2 ; | |
9155 | int result; | |
9156 | PyObject * obj0 = 0 ; | |
9157 | PyObject * obj1 = 0 ; | |
9158 | char *kwnames[] = { | |
9159 | (char *) "self",(char *) "x", NULL | |
9160 | }; | |
9161 | ||
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; | |
9163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9164 | { | |
9165 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
9168 | { | |
9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9170 | result = (int)(arg1)->XToCol(arg2); | |
9171 | ||
9172 | wxPyEndAllowThreads(__tstate); | |
9173 | if (PyErr_Occurred()) SWIG_fail; | |
9174 | } | |
9175 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9176 | return resultobj; | |
9177 | fail: | |
9178 | return NULL; | |
9179 | } | |
9180 | ||
9181 | ||
9182 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9183 | PyObject *resultobj; | |
9184 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9185 | int arg2 ; | |
9186 | int result; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | PyObject * obj1 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "self",(char *) "y", NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; | |
9194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9195 | { | |
9196 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9197 | if (PyErr_Occurred()) SWIG_fail; | |
9198 | } | |
9199 | { | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9201 | result = (int)(arg1)->YToEdgeOfRow(arg2); | |
9202 | ||
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
9206 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
9213 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9214 | PyObject *resultobj; | |
9215 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9216 | int arg2 ; | |
9217 | int result; | |
9218 | PyObject * obj0 = 0 ; | |
9219 | PyObject * obj1 = 0 ; | |
9220 | char *kwnames[] = { | |
9221 | (char *) "self",(char *) "x", NULL | |
9222 | }; | |
9223 | ||
9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; | |
9225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9226 | { | |
9227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
9230 | { | |
9231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9232 | result = (int)(arg1)->XToEdgeOfCol(arg2); | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
9237 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9238 | return resultobj; | |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
9244 | static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9245 | PyObject *resultobj; | |
9246 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9247 | int arg2 ; | |
9248 | int arg3 ; | |
9249 | wxRect result; | |
9250 | PyObject * obj0 = 0 ; | |
9251 | PyObject * obj1 = 0 ; | |
9252 | PyObject * obj2 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9259 | { | |
9260 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
9263 | { | |
9264 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9265 | if (PyErr_Occurred()) SWIG_fail; | |
9266 | } | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | result = (arg1)->CellToRect(arg2,arg3); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | { | |
9275 | wxRect * resultptr; | |
9276 | resultptr = new wxRect((wxRect &) result); | |
9277 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
9278 | } | |
9279 | return resultobj; | |
9280 | fail: | |
9281 | return NULL; | |
9282 | } | |
9283 | ||
9284 | ||
9285 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject *resultobj; | |
9287 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9288 | int result; | |
9289 | PyObject * obj0 = 0 ; | |
9290 | char *kwnames[] = { | |
9291 | (char *) "self", NULL | |
9292 | }; | |
9293 | ||
9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; | |
9295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | result = (int)(arg1)->GetGridCursorRow(); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject *resultobj; | |
9312 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9313 | int result; | |
9314 | PyObject * obj0 = 0 ; | |
9315 | char *kwnames[] = { | |
9316 | (char *) "self", NULL | |
9317 | }; | |
9318 | ||
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; | |
9320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9321 | { | |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | result = (int)(arg1)->GetGridCursorCol(); | |
9324 | ||
9325 | wxPyEndAllowThreads(__tstate); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj; | |
9337 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9338 | int arg2 ; | |
9339 | int arg3 ; | |
9340 | bool arg4 = (bool) True ; | |
9341 | bool result; | |
9342 | PyObject * obj0 = 0 ; | |
9343 | PyObject * obj1 = 0 ; | |
9344 | PyObject * obj2 = 0 ; | |
9345 | PyObject * obj3 = 0 ; | |
9346 | char *kwnames[] = { | |
9347 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL | |
9348 | }; | |
9349 | ||
9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9352 | { | |
9353 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
9356 | { | |
9357 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
9360 | if (obj3) { | |
9361 | { | |
9362 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | } | |
9366 | { | |
9367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9368 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); | |
9369 | ||
9370 | wxPyEndAllowThreads(__tstate); | |
9371 | if (PyErr_Occurred()) SWIG_fail; | |
9372 | } | |
9373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9374 | return resultobj; | |
9375 | fail: | |
9376 | return NULL; | |
9377 | } | |
9378 | ||
9379 | ||
9380 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9381 | PyObject *resultobj; | |
9382 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9383 | int arg2 ; | |
9384 | int arg3 ; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | PyObject * obj1 = 0 ; | |
9387 | PyObject * obj2 = 0 ; | |
9388 | char *kwnames[] = { | |
9389 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9390 | }; | |
9391 | ||
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9394 | { | |
9395 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
9397 | } | |
9398 | { | |
9399 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
9402 | { | |
9403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9404 | (arg1)->MakeCellVisible(arg2,arg3); | |
9405 | ||
9406 | wxPyEndAllowThreads(__tstate); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | } | |
9409 | Py_INCREF(Py_None); resultobj = Py_None; | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj; | |
9418 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9419 | int arg2 ; | |
9420 | int arg3 ; | |
9421 | PyObject * obj0 = 0 ; | |
9422 | PyObject * obj1 = 0 ; | |
9423 | PyObject * obj2 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9430 | { | |
9431 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
9434 | { | |
9435 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | } | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | (arg1)->SetGridCursor(arg2,arg3); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
9445 | Py_INCREF(Py_None); resultobj = Py_None; | |
9446 | return resultobj; | |
9447 | fail: | |
9448 | return NULL; | |
9449 | } | |
9450 | ||
9451 | ||
9452 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9453 | PyObject *resultobj; | |
9454 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9455 | bool arg2 ; | |
9456 | bool result; | |
9457 | PyObject * obj0 = 0 ; | |
9458 | PyObject * obj1 = 0 ; | |
9459 | char *kwnames[] = { | |
9460 | (char *) "self",(char *) "expandSelection", NULL | |
9461 | }; | |
9462 | ||
9463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; | |
9464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9465 | { | |
9466 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9467 | if (PyErr_Occurred()) SWIG_fail; | |
9468 | } | |
9469 | { | |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | result = (bool)(arg1)->MoveCursorUp(arg2); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9477 | return resultobj; | |
9478 | fail: | |
9479 | return NULL; | |
9480 | } | |
9481 | ||
9482 | ||
9483 | static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9484 | PyObject *resultobj; | |
9485 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9486 | bool arg2 ; | |
9487 | bool result; | |
9488 | PyObject * obj0 = 0 ; | |
9489 | PyObject * obj1 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self",(char *) "expandSelection", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9496 | { | |
9497 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
9500 | { | |
9501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9502 | result = (bool)(arg1)->MoveCursorDown(arg2); | |
9503 | ||
9504 | wxPyEndAllowThreads(__tstate); | |
9505 | if (PyErr_Occurred()) SWIG_fail; | |
9506 | } | |
9507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9508 | return resultobj; | |
9509 | fail: | |
9510 | return NULL; | |
9511 | } | |
9512 | ||
9513 | ||
9514 | static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9515 | PyObject *resultobj; | |
9516 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9517 | bool arg2 ; | |
9518 | bool result; | |
9519 | PyObject * obj0 = 0 ; | |
9520 | PyObject * obj1 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self",(char *) "expandSelection", NULL | |
9523 | }; | |
9524 | ||
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail; | |
9526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9527 | { | |
9528 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | { | |
9532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9533 | result = (bool)(arg1)->MoveCursorLeft(arg2); | |
9534 | ||
9535 | wxPyEndAllowThreads(__tstate); | |
9536 | if (PyErr_Occurred()) SWIG_fail; | |
9537 | } | |
9538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9539 | return resultobj; | |
9540 | fail: | |
9541 | return NULL; | |
9542 | } | |
9543 | ||
9544 | ||
9545 | static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9546 | PyObject *resultobj; | |
9547 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9548 | bool arg2 ; | |
9549 | bool result; | |
9550 | PyObject * obj0 = 0 ; | |
9551 | PyObject * obj1 = 0 ; | |
9552 | char *kwnames[] = { | |
9553 | (char *) "self",(char *) "expandSelection", NULL | |
9554 | }; | |
9555 | ||
9556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail; | |
9557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9558 | { | |
9559 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | result = (bool)(arg1)->MoveCursorRight(arg2); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9570 | return resultobj; | |
9571 | fail: | |
9572 | return NULL; | |
9573 | } | |
9574 | ||
9575 | ||
9576 | static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject *resultobj; | |
9578 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9579 | bool result; | |
9580 | PyObject * obj0 = 0 ; | |
9581 | char *kwnames[] = { | |
9582 | (char *) "self", NULL | |
9583 | }; | |
9584 | ||
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; | |
9586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9587 | { | |
9588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9589 | result = (bool)(arg1)->MovePageDown(); | |
9590 | ||
9591 | wxPyEndAllowThreads(__tstate); | |
9592 | if (PyErr_Occurred()) SWIG_fail; | |
9593 | } | |
9594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9595 | return resultobj; | |
9596 | fail: | |
9597 | return NULL; | |
9598 | } | |
9599 | ||
9600 | ||
9601 | static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9602 | PyObject *resultobj; | |
9603 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9604 | bool result; | |
9605 | PyObject * obj0 = 0 ; | |
9606 | char *kwnames[] = { | |
9607 | (char *) "self", NULL | |
9608 | }; | |
9609 | ||
9610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; | |
9611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | result = (bool)(arg1)->MovePageUp(); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | return NULL; | |
9623 | } | |
9624 | ||
9625 | ||
9626 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9627 | PyObject *resultobj; | |
9628 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9629 | bool arg2 ; | |
9630 | bool result; | |
9631 | PyObject * obj0 = 0 ; | |
9632 | PyObject * obj1 = 0 ; | |
9633 | char *kwnames[] = { | |
9634 | (char *) "self",(char *) "expandSelection", NULL | |
9635 | }; | |
9636 | ||
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; | |
9638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9639 | { | |
9640 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); | |
9646 | ||
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
9650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9651 | return resultobj; | |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9660 | bool arg2 ; | |
9661 | bool result; | |
9662 | PyObject * obj0 = 0 ; | |
9663 | PyObject * obj1 = 0 ; | |
9664 | char *kwnames[] = { | |
9665 | (char *) "self",(char *) "expandSelection", NULL | |
9666 | }; | |
9667 | ||
9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; | |
9669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9670 | { | |
9671 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | { | |
9675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9676 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); | |
9677 | ||
9678 | wxPyEndAllowThreads(__tstate); | |
9679 | if (PyErr_Occurred()) SWIG_fail; | |
9680 | } | |
9681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9682 | return resultobj; | |
9683 | fail: | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj; | |
9690 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9691 | bool arg2 ; | |
9692 | bool result; | |
9693 | PyObject * obj0 = 0 ; | |
9694 | PyObject * obj1 = 0 ; | |
9695 | char *kwnames[] = { | |
9696 | (char *) "self",(char *) "expandSelection", NULL | |
9697 | }; | |
9698 | ||
9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; | |
9700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9701 | { | |
9702 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9722 | bool arg2 ; | |
9723 | bool result; | |
9724 | PyObject * obj0 = 0 ; | |
9725 | PyObject * obj1 = 0 ; | |
9726 | char *kwnames[] = { | |
9727 | (char *) "self",(char *) "expandSelection", NULL | |
9728 | }; | |
9729 | ||
9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; | |
9731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9732 | { | |
9733 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
9735 | } | |
9736 | { | |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
9743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9744 | return resultobj; | |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
9750 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject *resultobj; | |
9752 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9753 | int result; | |
9754 | PyObject * obj0 = 0 ; | |
9755 | char *kwnames[] = { | |
9756 | (char *) "self", NULL | |
9757 | }; | |
9758 | ||
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; | |
9760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | result = (int)(arg1)->GetDefaultRowLabelSize(); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) SWIG_fail; | |
9767 | } | |
9768 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9769 | return resultobj; | |
9770 | fail: | |
9771 | return NULL; | |
9772 | } | |
9773 | ||
9774 | ||
9775 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9776 | PyObject *resultobj; | |
9777 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9778 | int result; | |
9779 | PyObject * obj0 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "self", NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; | |
9785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | result = (int)(arg1)->GetRowLabelSize(); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9794 | return resultobj; | |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj; | |
9802 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9803 | int result; | |
9804 | PyObject * obj0 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (int)(arg1)->GetDefaultColLabelSize(); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9819 | return resultobj; | |
9820 | fail: | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
9825 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject *resultobj; | |
9827 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9828 | int result; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | char *kwnames[] = { | |
9831 | (char *) "self", NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; | |
9835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9836 | { | |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9838 | result = (int)(arg1)->GetColLabelSize(); | |
9839 | ||
9840 | wxPyEndAllowThreads(__tstate); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
9843 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9844 | return resultobj; | |
9845 | fail: | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9853 | wxColour result; | |
9854 | PyObject * obj0 = 0 ; | |
9855 | char *kwnames[] = { | |
9856 | (char *) "self", NULL | |
9857 | }; | |
9858 | ||
9859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; | |
9860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9861 | { | |
9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9863 | result = (arg1)->GetLabelBackgroundColour(); | |
9864 | ||
9865 | wxPyEndAllowThreads(__tstate); | |
9866 | if (PyErr_Occurred()) SWIG_fail; | |
9867 | } | |
9868 | { | |
9869 | wxColour * resultptr; | |
9870 | resultptr = new wxColour((wxColour &) result); | |
9871 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9872 | } | |
9873 | return resultobj; | |
9874 | fail: | |
9875 | return NULL; | |
9876 | } | |
9877 | ||
9878 | ||
9879 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9880 | PyObject *resultobj; | |
9881 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9882 | wxColour result; | |
9883 | PyObject * obj0 = 0 ; | |
9884 | char *kwnames[] = { | |
9885 | (char *) "self", NULL | |
9886 | }; | |
9887 | ||
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; | |
9889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | result = (arg1)->GetLabelTextColour(); | |
9893 | ||
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) SWIG_fail; | |
9896 | } | |
9897 | { | |
9898 | wxColour * resultptr; | |
9899 | resultptr = new wxColour((wxColour &) result); | |
9900 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9901 | } | |
9902 | return resultobj; | |
9903 | fail: | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
9908 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9909 | PyObject *resultobj; | |
9910 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9911 | wxFont result; | |
9912 | PyObject * obj0 = 0 ; | |
9913 | char *kwnames[] = { | |
9914 | (char *) "self", NULL | |
9915 | }; | |
9916 | ||
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; | |
9918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | result = (arg1)->GetLabelFont(); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | { | |
9927 | wxFont * resultptr; | |
9928 | resultptr = new wxFont((wxFont &) result); | |
9929 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
9930 | } | |
9931 | return resultobj; | |
9932 | fail: | |
9933 | return NULL; | |
9934 | } | |
9935 | ||
9936 | ||
9937 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9938 | PyObject *resultobj; | |
9939 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9940 | int *arg2 = (int *) 0 ; | |
9941 | int *arg3 = (int *) 0 ; | |
9942 | int temp2 ; | |
9943 | int temp3 ; | |
9944 | PyObject * obj0 = 0 ; | |
9945 | char *kwnames[] = { | |
9946 | (char *) "self", NULL | |
9947 | }; | |
9948 | ||
9949 | arg2 = &temp2; | |
9950 | arg3 = &temp3; | |
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; | |
9952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9953 | { | |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | (arg1)->GetRowLabelAlignment(arg2,arg3); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
9960 | Py_INCREF(Py_None); resultobj = Py_None; | |
9961 | { | |
9962 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9963 | resultobj = t_output_helper(resultobj,o); | |
9964 | } | |
9965 | { | |
9966 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9967 | resultobj = t_output_helper(resultobj,o); | |
9968 | } | |
9969 | return resultobj; | |
9970 | fail: | |
9971 | return NULL; | |
9972 | } | |
9973 | ||
9974 | ||
9975 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9976 | PyObject *resultobj; | |
9977 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9978 | int *arg2 = (int *) 0 ; | |
9979 | int *arg3 = (int *) 0 ; | |
9980 | int temp2 ; | |
9981 | int temp3 ; | |
9982 | PyObject * obj0 = 0 ; | |
9983 | char *kwnames[] = { | |
9984 | (char *) "self", NULL | |
9985 | }; | |
9986 | ||
9987 | arg2 = &temp2; | |
9988 | arg3 = &temp3; | |
9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; | |
9990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9991 | { | |
9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9993 | (arg1)->GetColLabelAlignment(arg2,arg3); | |
9994 | ||
9995 | wxPyEndAllowThreads(__tstate); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
9998 | Py_INCREF(Py_None); resultobj = Py_None; | |
9999 | { | |
10000 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
10001 | resultobj = t_output_helper(resultobj,o); | |
10002 | } | |
10003 | { | |
10004 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
10005 | resultobj = t_output_helper(resultobj,o); | |
10006 | } | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10016 | int result; | |
10017 | PyObject * obj0 = 0 ; | |
10018 | char *kwnames[] = { | |
10019 | (char *) "self", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; | |
10023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10024 | { | |
10025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10026 | result = (int)(arg1)->GetColLabelTextOrientation(); | |
10027 | ||
10028 | wxPyEndAllowThreads(__tstate); | |
10029 | if (PyErr_Occurred()) SWIG_fail; | |
10030 | } | |
10031 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10032 | return resultobj; | |
10033 | fail: | |
10034 | return NULL; | |
10035 | } | |
10036 | ||
10037 | ||
10038 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10039 | PyObject *resultobj; | |
10040 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10041 | int arg2 ; | |
10042 | wxString result; | |
10043 | PyObject * obj0 = 0 ; | |
10044 | PyObject * obj1 = 0 ; | |
10045 | char *kwnames[] = { | |
10046 | (char *) "self",(char *) "row", NULL | |
10047 | }; | |
10048 | ||
10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
10050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10051 | { | |
10052 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | result = (arg1)->GetRowLabelValue(arg2); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
10062 | { | |
10063 | #if wxUSE_UNICODE | |
10064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10065 | #else | |
10066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10067 | #endif | |
10068 | } | |
10069 | return resultobj; | |
10070 | fail: | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10076 | PyObject *resultobj; | |
10077 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10078 | int arg2 ; | |
10079 | wxString result; | |
10080 | PyObject * obj0 = 0 ; | |
10081 | PyObject * obj1 = 0 ; | |
10082 | char *kwnames[] = { | |
10083 | (char *) "self",(char *) "col", NULL | |
10084 | }; | |
10085 | ||
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
10087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10088 | { | |
10089 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | { | |
10093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10094 | result = (arg1)->GetColLabelValue(arg2); | |
10095 | ||
10096 | wxPyEndAllowThreads(__tstate); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
10099 | { | |
10100 | #if wxUSE_UNICODE | |
10101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10102 | #else | |
10103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10104 | #endif | |
10105 | } | |
10106 | return resultobj; | |
10107 | fail: | |
10108 | return NULL; | |
10109 | } | |
10110 | ||
10111 | ||
10112 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10113 | PyObject *resultobj; | |
10114 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10115 | wxColour result; | |
10116 | PyObject * obj0 = 0 ; | |
10117 | char *kwnames[] = { | |
10118 | (char *) "self", NULL | |
10119 | }; | |
10120 | ||
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; | |
10122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10123 | { | |
10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10125 | result = (arg1)->GetGridLineColour(); | |
10126 | ||
10127 | wxPyEndAllowThreads(__tstate); | |
10128 | if (PyErr_Occurred()) SWIG_fail; | |
10129 | } | |
10130 | { | |
10131 | wxColour * resultptr; | |
10132 | resultptr = new wxColour((wxColour &) result); | |
10133 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10134 | } | |
10135 | return resultobj; | |
10136 | fail: | |
10137 | return NULL; | |
10138 | } | |
10139 | ||
10140 | ||
10141 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject *resultobj; | |
10143 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10144 | wxColour result; | |
10145 | PyObject * obj0 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; | |
10151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10152 | { | |
10153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10154 | result = (arg1)->GetCellHighlightColour(); | |
10155 | ||
10156 | wxPyEndAllowThreads(__tstate); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
10159 | { | |
10160 | wxColour * resultptr; | |
10161 | resultptr = new wxColour((wxColour &) result); | |
10162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10163 | } | |
10164 | return resultobj; | |
10165 | fail: | |
10166 | return NULL; | |
10167 | } | |
10168 | ||
10169 | ||
10170 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10171 | PyObject *resultobj; | |
10172 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10173 | int result; | |
10174 | PyObject * obj0 = 0 ; | |
10175 | char *kwnames[] = { | |
10176 | (char *) "self", NULL | |
10177 | }; | |
10178 | ||
10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; | |
10180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10181 | { | |
10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10183 | result = (int)(arg1)->GetCellHighlightPenWidth(); | |
10184 | ||
10185 | wxPyEndAllowThreads(__tstate); | |
10186 | if (PyErr_Occurred()) SWIG_fail; | |
10187 | } | |
10188 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10189 | return resultobj; | |
10190 | fail: | |
10191 | return NULL; | |
10192 | } | |
10193 | ||
10194 | ||
10195 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10196 | PyObject *resultobj; | |
10197 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10198 | int result; | |
10199 | PyObject * obj0 = 0 ; | |
10200 | char *kwnames[] = { | |
10201 | (char *) "self", NULL | |
10202 | }; | |
10203 | ||
10204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; | |
10205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | result = (int)(arg1)->GetCellHighlightROPenWidth(); | |
10209 | ||
10210 | wxPyEndAllowThreads(__tstate); | |
10211 | if (PyErr_Occurred()) SWIG_fail; | |
10212 | } | |
10213 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10214 | return resultobj; | |
10215 | fail: | |
10216 | return NULL; | |
10217 | } | |
10218 | ||
10219 | ||
10220 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10221 | PyObject *resultobj; | |
10222 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10223 | int arg2 ; | |
10224 | PyObject * obj0 = 0 ; | |
10225 | PyObject * obj1 = 0 ; | |
10226 | char *kwnames[] = { | |
10227 | (char *) "self",(char *) "width", NULL | |
10228 | }; | |
10229 | ||
10230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
10231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10232 | { | |
10233 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | (arg1)->SetRowLabelSize(arg2); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | Py_INCREF(Py_None); resultobj = Py_None; | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10253 | int arg2 ; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | PyObject * obj1 = 0 ; | |
10256 | char *kwnames[] = { | |
10257 | (char *) "self",(char *) "height", NULL | |
10258 | }; | |
10259 | ||
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
10261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10262 | { | |
10263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
10266 | { | |
10267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10268 | (arg1)->SetColLabelSize(arg2); | |
10269 | ||
10270 | wxPyEndAllowThreads(__tstate); | |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
10272 | } | |
10273 | Py_INCREF(Py_None); resultobj = Py_None; | |
10274 | return resultobj; | |
10275 | fail: | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
10280 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10281 | PyObject *resultobj; | |
10282 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10283 | wxColour *arg2 = 0 ; | |
10284 | wxColour temp2 ; | |
10285 | PyObject * obj0 = 0 ; | |
10286 | PyObject * obj1 = 0 ; | |
10287 | char *kwnames[] = { | |
10288 | (char *) "self","arg2", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
10292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10293 | { | |
10294 | arg2 = &temp2; | |
10295 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10296 | } | |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | Py_INCREF(Py_None); resultobj = Py_None; | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject *resultobj; | |
10313 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10314 | wxColour *arg2 = 0 ; | |
10315 | wxColour temp2 ; | |
10316 | PyObject * obj0 = 0 ; | |
10317 | PyObject * obj1 = 0 ; | |
10318 | char *kwnames[] = { | |
10319 | (char *) "self","arg2", NULL | |
10320 | }; | |
10321 | ||
10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; | |
10323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10324 | { | |
10325 | arg2 = &temp2; | |
10326 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10327 | } | |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
10335 | Py_INCREF(Py_None); resultobj = Py_None; | |
10336 | return resultobj; | |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj; | |
10344 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10345 | wxFont *arg2 = 0 ; | |
10346 | PyObject * obj0 = 0 ; | |
10347 | PyObject * obj1 = 0 ; | |
10348 | char *kwnames[] = { | |
10349 | (char *) "self","arg2", NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; | |
10353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10355 | if (arg2 == NULL) { | |
10356 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10357 | } | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | (arg1)->SetLabelFont((wxFont const &)*arg2); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | Py_INCREF(Py_None); resultobj = Py_None; | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject *resultobj; | |
10374 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10375 | int arg2 ; | |
10376 | int arg3 ; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | PyObject * obj1 = 0 ; | |
10379 | PyObject * obj2 = 0 ; | |
10380 | char *kwnames[] = { | |
10381 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10382 | }; | |
10383 | ||
10384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10386 | { | |
10387 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10388 | if (PyErr_Occurred()) SWIG_fail; | |
10389 | } | |
10390 | { | |
10391 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | { | |
10395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10396 | (arg1)->SetRowLabelAlignment(arg2,arg3); | |
10397 | ||
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | Py_INCREF(Py_None); resultobj = Py_None; | |
10402 | return resultobj; | |
10403 | fail: | |
10404 | return NULL; | |
10405 | } | |
10406 | ||
10407 | ||
10408 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj; | |
10410 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10411 | int arg2 ; | |
10412 | int arg3 ; | |
10413 | PyObject * obj0 = 0 ; | |
10414 | PyObject * obj1 = 0 ; | |
10415 | PyObject * obj2 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10422 | { | |
10423 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10424 | if (PyErr_Occurred()) SWIG_fail; | |
10425 | } | |
10426 | { | |
10427 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | (arg1)->SetColLabelAlignment(arg2,arg3); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | Py_INCREF(Py_None); resultobj = Py_None; | |
10438 | return resultobj; | |
10439 | fail: | |
10440 | return NULL; | |
10441 | } | |
10442 | ||
10443 | ||
10444 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10445 | PyObject *resultobj; | |
10446 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10447 | int arg2 ; | |
10448 | PyObject * obj0 = 0 ; | |
10449 | PyObject * obj1 = 0 ; | |
10450 | char *kwnames[] = { | |
10451 | (char *) "self",(char *) "textOrientation", NULL | |
10452 | }; | |
10453 | ||
10454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; | |
10455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10456 | { | |
10457 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | (arg1)->SetColLabelTextOrientation(arg2); | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
10467 | Py_INCREF(Py_None); resultobj = Py_None; | |
10468 | return resultobj; | |
10469 | fail: | |
10470 | return NULL; | |
10471 | } | |
10472 | ||
10473 | ||
10474 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10475 | PyObject *resultobj; | |
10476 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10477 | int arg2 ; | |
10478 | wxString *arg3 = 0 ; | |
10479 | bool temp3 = False ; | |
10480 | PyObject * obj0 = 0 ; | |
10481 | PyObject * obj1 = 0 ; | |
10482 | PyObject * obj2 = 0 ; | |
10483 | char *kwnames[] = { | |
10484 | (char *) "self",(char *) "row","arg3", NULL | |
10485 | }; | |
10486 | ||
10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10489 | { | |
10490 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | { | |
10494 | arg3 = wxString_in_helper(obj2); | |
10495 | if (arg3 == NULL) SWIG_fail; | |
10496 | temp3 = True; | |
10497 | } | |
10498 | { | |
10499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10500 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
10501 | ||
10502 | wxPyEndAllowThreads(__tstate); | |
10503 | if (PyErr_Occurred()) SWIG_fail; | |
10504 | } | |
10505 | Py_INCREF(Py_None); resultobj = Py_None; | |
10506 | { | |
10507 | if (temp3) | |
10508 | delete arg3; | |
10509 | } | |
10510 | return resultobj; | |
10511 | fail: | |
10512 | { | |
10513 | if (temp3) | |
10514 | delete arg3; | |
10515 | } | |
10516 | return NULL; | |
10517 | } | |
10518 | ||
10519 | ||
10520 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10521 | PyObject *resultobj; | |
10522 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10523 | int arg2 ; | |
10524 | wxString *arg3 = 0 ; | |
10525 | bool temp3 = False ; | |
10526 | PyObject * obj0 = 0 ; | |
10527 | PyObject * obj1 = 0 ; | |
10528 | PyObject * obj2 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self",(char *) "col","arg3", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10535 | { | |
10536 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | { | |
10540 | arg3 = wxString_in_helper(obj2); | |
10541 | if (arg3 == NULL) SWIG_fail; | |
10542 | temp3 = True; | |
10543 | } | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | Py_INCREF(Py_None); resultobj = Py_None; | |
10552 | { | |
10553 | if (temp3) | |
10554 | delete arg3; | |
10555 | } | |
10556 | return resultobj; | |
10557 | fail: | |
10558 | { | |
10559 | if (temp3) | |
10560 | delete arg3; | |
10561 | } | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
10566 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10567 | PyObject *resultobj; | |
10568 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10569 | wxColour *arg2 = 0 ; | |
10570 | wxColour temp2 ; | |
10571 | PyObject * obj0 = 0 ; | |
10572 | PyObject * obj1 = 0 ; | |
10573 | char *kwnames[] = { | |
10574 | (char *) "self","arg2", NULL | |
10575 | }; | |
10576 | ||
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; | |
10578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10579 | { | |
10580 | arg2 = &temp2; | |
10581 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10582 | } | |
10583 | { | |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | (arg1)->SetGridLineColour((wxColour const &)*arg2); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | Py_INCREF(Py_None); resultobj = Py_None; | |
10591 | return resultobj; | |
10592 | fail: | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
10597 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10598 | PyObject *resultobj; | |
10599 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10600 | wxColour *arg2 = 0 ; | |
10601 | wxColour temp2 ; | |
10602 | PyObject * obj0 = 0 ; | |
10603 | PyObject * obj1 = 0 ; | |
10604 | char *kwnames[] = { | |
10605 | (char *) "self","arg2", NULL | |
10606 | }; | |
10607 | ||
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
10609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10610 | { | |
10611 | arg2 = &temp2; | |
10612 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10613 | } | |
10614 | { | |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | Py_INCREF(Py_None); resultobj = Py_None; | |
10622 | return resultobj; | |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10629 | PyObject *resultobj; | |
10630 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10631 | int arg2 ; | |
10632 | PyObject * obj0 = 0 ; | |
10633 | PyObject * obj1 = 0 ; | |
10634 | char *kwnames[] = { | |
10635 | (char *) "self",(char *) "width", NULL | |
10636 | }; | |
10637 | ||
10638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; | |
10639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10640 | { | |
10641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | { | |
10645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10646 | (arg1)->SetCellHighlightPenWidth(arg2); | |
10647 | ||
10648 | wxPyEndAllowThreads(__tstate); | |
10649 | if (PyErr_Occurred()) SWIG_fail; | |
10650 | } | |
10651 | Py_INCREF(Py_None); resultobj = Py_None; | |
10652 | return resultobj; | |
10653 | fail: | |
10654 | return NULL; | |
10655 | } | |
10656 | ||
10657 | ||
10658 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject *resultobj; | |
10660 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10661 | int arg2 ; | |
10662 | PyObject * obj0 = 0 ; | |
10663 | PyObject * obj1 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self",(char *) "width", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; | |
10669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10670 | { | |
10671 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | { | |
10675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10676 | (arg1)->SetCellHighlightROPenWidth(arg2); | |
10677 | ||
10678 | wxPyEndAllowThreads(__tstate); | |
10679 | if (PyErr_Occurred()) SWIG_fail; | |
10680 | } | |
10681 | Py_INCREF(Py_None); resultobj = Py_None; | |
10682 | return resultobj; | |
10683 | fail: | |
10684 | return NULL; | |
10685 | } | |
10686 | ||
10687 | ||
10688 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10689 | PyObject *resultobj; | |
10690 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10691 | bool arg2 = (bool) True ; | |
10692 | PyObject * obj0 = 0 ; | |
10693 | PyObject * obj1 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self",(char *) "enable", NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; | |
10699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10700 | if (obj1) { | |
10701 | { | |
10702 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
10703 | if (PyErr_Occurred()) SWIG_fail; | |
10704 | } | |
10705 | } | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | (arg1)->EnableDragRowSize(arg2); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | Py_INCREF(Py_None); resultobj = Py_None; | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | return NULL; | |
10717 | } | |
10718 | ||
10719 | ||
10720 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10721 | PyObject *resultobj; | |
10722 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10723 | PyObject * obj0 = 0 ; | |
10724 | char *kwnames[] = { | |
10725 | (char *) "self", NULL | |
10726 | }; | |
10727 | ||
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; | |
10729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10730 | { | |
10731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10732 | (arg1)->DisableDragRowSize(); | |
10733 | ||
10734 | wxPyEndAllowThreads(__tstate); | |
10735 | if (PyErr_Occurred()) SWIG_fail; | |
10736 | } | |
10737 | Py_INCREF(Py_None); resultobj = Py_None; | |
10738 | return resultobj; | |
10739 | fail: | |
10740 | return NULL; | |
10741 | } | |
10742 | ||
10743 | ||
10744 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10745 | PyObject *resultobj; | |
10746 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10747 | bool result; | |
10748 | PyObject * obj0 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; | |
10754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10755 | { | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (bool)(arg1)->CanDragRowSize(); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj; | |
10771 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10772 | bool arg2 = (bool) True ; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | PyObject * obj1 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self",(char *) "enable", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10781 | if (obj1) { | |
10782 | { | |
10783 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | } | |
10787 | { | |
10788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10789 | (arg1)->EnableDragColSize(arg2); | |
10790 | ||
10791 | wxPyEndAllowThreads(__tstate); | |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
10793 | } | |
10794 | Py_INCREF(Py_None); resultobj = Py_None; | |
10795 | return resultobj; | |
10796 | fail: | |
10797 | return NULL; | |
10798 | } | |
10799 | ||
10800 | ||
10801 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10802 | PyObject *resultobj; | |
10803 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10804 | PyObject * obj0 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; | |
10810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->DisableDragColSize(); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10828 | bool result; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | char *kwnames[] = { | |
10831 | (char *) "self", NULL | |
10832 | }; | |
10833 | ||
10834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; | |
10835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | result = (bool)(arg1)->CanDragColSize(); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
10850 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10853 | bool arg2 = (bool) True ; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | PyObject * obj1 = 0 ; | |
10856 | char *kwnames[] = { | |
10857 | (char *) "self",(char *) "enable", NULL | |
10858 | }; | |
10859 | ||
10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; | |
10861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10862 | if (obj1) { | |
10863 | { | |
10864 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
10867 | } | |
10868 | { | |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | (arg1)->EnableDragGridSize(arg2); | |
10871 | ||
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
10875 | Py_INCREF(Py_None); resultobj = Py_None; | |
10876 | return resultobj; | |
10877 | fail: | |
10878 | return NULL; | |
10879 | } | |
10880 | ||
10881 | ||
10882 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10883 | PyObject *resultobj; | |
10884 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10885 | PyObject * obj0 = 0 ; | |
10886 | char *kwnames[] = { | |
10887 | (char *) "self", NULL | |
10888 | }; | |
10889 | ||
10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; | |
10891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10892 | { | |
10893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10894 | (arg1)->DisableDragGridSize(); | |
10895 | ||
10896 | wxPyEndAllowThreads(__tstate); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
10898 | } | |
10899 | Py_INCREF(Py_None); resultobj = Py_None; | |
10900 | return resultobj; | |
10901 | fail: | |
10902 | return NULL; | |
10903 | } | |
10904 | ||
10905 | ||
10906 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10907 | PyObject *resultobj; | |
10908 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10909 | bool result; | |
10910 | PyObject * obj0 = 0 ; | |
10911 | char *kwnames[] = { | |
10912 | (char *) "self", NULL | |
10913 | }; | |
10914 | ||
10915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; | |
10916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | result = (bool)(arg1)->CanDragGridSize(); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10925 | return resultobj; | |
10926 | fail: | |
10927 | return NULL; | |
10928 | } | |
10929 | ||
10930 | ||
10931 | static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10932 | PyObject *resultobj; | |
10933 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10934 | int arg2 ; | |
10935 | int arg3 ; | |
10936 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; | |
10937 | PyObject * obj0 = 0 ; | |
10938 | PyObject * obj1 = 0 ; | |
10939 | PyObject * obj2 = 0 ; | |
10940 | PyObject * obj3 = 0 ; | |
10941 | char *kwnames[] = { | |
10942 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL | |
10943 | }; | |
10944 | ||
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10947 | { | |
10948 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10949 | if (PyErr_Occurred()) SWIG_fail; | |
10950 | } | |
10951 | { | |
10952 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10953 | if (PyErr_Occurred()) SWIG_fail; | |
10954 | } | |
10955 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | (arg1)->SetAttr(arg2,arg3,arg4); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | Py_INCREF(Py_None); resultobj = Py_None; | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject *resultobj; | |
10972 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10973 | int arg2 ; | |
10974 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
10975 | PyObject * obj0 = 0 ; | |
10976 | PyObject * obj1 = 0 ; | |
10977 | PyObject * obj2 = 0 ; | |
10978 | char *kwnames[] = { | |
10979 | (char *) "self",(char *) "row",(char *) "attr", NULL | |
10980 | }; | |
10981 | ||
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10984 | { | |
10985 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10989 | { | |
10990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10991 | (arg1)->SetRowAttr(arg2,arg3); | |
10992 | ||
10993 | wxPyEndAllowThreads(__tstate); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | Py_INCREF(Py_None); resultobj = Py_None; | |
10997 | return resultobj; | |
10998 | fail: | |
10999 | return NULL; | |
11000 | } | |
11001 | ||
11002 | ||
11003 | static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11004 | PyObject *resultobj; | |
11005 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11006 | int arg2 ; | |
11007 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11008 | PyObject * obj0 = 0 ; | |
11009 | PyObject * obj1 = 0 ; | |
11010 | PyObject * obj2 = 0 ; | |
11011 | char *kwnames[] = { | |
11012 | (char *) "self",(char *) "col",(char *) "attr", NULL | |
11013 | }; | |
11014 | ||
11015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11017 | { | |
11018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11019 | if (PyErr_Occurred()) SWIG_fail; | |
11020 | } | |
11021 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11022 | { | |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11024 | (arg1)->SetColAttr(arg2,arg3); | |
11025 | ||
11026 | wxPyEndAllowThreads(__tstate); | |
11027 | if (PyErr_Occurred()) SWIG_fail; | |
11028 | } | |
11029 | Py_INCREF(Py_None); resultobj = Py_None; | |
11030 | return resultobj; | |
11031 | fail: | |
11032 | return NULL; | |
11033 | } | |
11034 | ||
11035 | ||
11036 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11037 | PyObject *resultobj; | |
11038 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11039 | int arg2 ; | |
11040 | PyObject * obj0 = 0 ; | |
11041 | PyObject * obj1 = 0 ; | |
11042 | char *kwnames[] = { | |
11043 | (char *) "self",(char *) "col", NULL | |
11044 | }; | |
11045 | ||
11046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; | |
11047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11048 | { | |
11049 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | (arg1)->SetColFormatBool(arg2); | |
11055 | ||
11056 | wxPyEndAllowThreads(__tstate); | |
11057 | if (PyErr_Occurred()) SWIG_fail; | |
11058 | } | |
11059 | Py_INCREF(Py_None); resultobj = Py_None; | |
11060 | return resultobj; | |
11061 | fail: | |
11062 | return NULL; | |
11063 | } | |
11064 | ||
11065 | ||
11066 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11067 | PyObject *resultobj; | |
11068 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11069 | int arg2 ; | |
11070 | PyObject * obj0 = 0 ; | |
11071 | PyObject * obj1 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "col", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11078 | { | |
11079 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11080 | if (PyErr_Occurred()) SWIG_fail; | |
11081 | } | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11084 | (arg1)->SetColFormatNumber(arg2); | |
11085 | ||
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | Py_INCREF(Py_None); resultobj = Py_None; | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
11096 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11097 | PyObject *resultobj; | |
11098 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11099 | int arg2 ; | |
11100 | int arg3 = (int) -1 ; | |
11101 | int arg4 = (int) -1 ; | |
11102 | PyObject * obj0 = 0 ; | |
11103 | PyObject * obj1 = 0 ; | |
11104 | PyObject * obj2 = 0 ; | |
11105 | PyObject * obj3 = 0 ; | |
11106 | char *kwnames[] = { | |
11107 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11112 | { | |
11113 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | if (obj2) { | |
11117 | { | |
11118 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11119 | if (PyErr_Occurred()) SWIG_fail; | |
11120 | } | |
11121 | } | |
11122 | if (obj3) { | |
11123 | { | |
11124 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | } | |
11127 | } | |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | Py_INCREF(Py_None); resultobj = Py_None; | |
11136 | return resultobj; | |
11137 | fail: | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
11142 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11143 | PyObject *resultobj; | |
11144 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11145 | int arg2 ; | |
11146 | wxString *arg3 = 0 ; | |
11147 | bool temp3 = False ; | |
11148 | PyObject * obj0 = 0 ; | |
11149 | PyObject * obj1 = 0 ; | |
11150 | PyObject * obj2 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self",(char *) "col",(char *) "typeName", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11157 | { | |
11158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11159 | if (PyErr_Occurred()) SWIG_fail; | |
11160 | } | |
11161 | { | |
11162 | arg3 = wxString_in_helper(obj2); | |
11163 | if (arg3 == NULL) SWIG_fail; | |
11164 | temp3 = True; | |
11165 | } | |
11166 | { | |
11167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11168 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); | |
11169 | ||
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | Py_INCREF(Py_None); resultobj = Py_None; | |
11174 | { | |
11175 | if (temp3) | |
11176 | delete arg3; | |
11177 | } | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | { | |
11181 | if (temp3) | |
11182 | delete arg3; | |
11183 | } | |
11184 | return NULL; | |
11185 | } | |
11186 | ||
11187 | ||
11188 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11189 | PyObject *resultobj; | |
11190 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11191 | bool arg2 = (bool) True ; | |
11192 | PyObject * obj0 = 0 ; | |
11193 | PyObject * obj1 = 0 ; | |
11194 | char *kwnames[] = { | |
11195 | (char *) "self",(char *) "enable", NULL | |
11196 | }; | |
11197 | ||
11198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; | |
11199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11200 | if (obj1) { | |
11201 | { | |
11202 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | } | |
11205 | } | |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | (arg1)->EnableGridLines(arg2); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
11213 | Py_INCREF(Py_None); resultobj = Py_None; | |
11214 | return resultobj; | |
11215 | fail: | |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
11220 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11221 | PyObject *resultobj; | |
11222 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11223 | bool result; | |
11224 | PyObject * obj0 = 0 ; | |
11225 | char *kwnames[] = { | |
11226 | (char *) "self", NULL | |
11227 | }; | |
11228 | ||
11229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; | |
11230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11231 | { | |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | result = (bool)(arg1)->GridLinesEnabled(); | |
11234 | ||
11235 | wxPyEndAllowThreads(__tstate); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
11238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11239 | return resultobj; | |
11240 | fail: | |
11241 | return NULL; | |
11242 | } | |
11243 | ||
11244 | ||
11245 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11246 | PyObject *resultobj; | |
11247 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11248 | int result; | |
11249 | PyObject * obj0 = 0 ; | |
11250 | char *kwnames[] = { | |
11251 | (char *) "self", NULL | |
11252 | }; | |
11253 | ||
11254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; | |
11255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | result = (int)(arg1)->GetDefaultRowSize(); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
11270 | static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11271 | PyObject *resultobj; | |
11272 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11273 | int arg2 ; | |
11274 | int result; | |
11275 | PyObject * obj0 = 0 ; | |
11276 | PyObject * obj1 = 0 ; | |
11277 | char *kwnames[] = { | |
11278 | (char *) "self",(char *) "row", NULL | |
11279 | }; | |
11280 | ||
11281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; | |
11282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11283 | { | |
11284 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (int)(arg1)->GetRowSize(arg2); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11302 | PyObject *resultobj; | |
11303 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11304 | int result; | |
11305 | PyObject * obj0 = 0 ; | |
11306 | char *kwnames[] = { | |
11307 | (char *) "self", NULL | |
11308 | }; | |
11309 | ||
11310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; | |
11311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11312 | { | |
11313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11314 | result = (int)(arg1)->GetDefaultColSize(); | |
11315 | ||
11316 | wxPyEndAllowThreads(__tstate); | |
11317 | if (PyErr_Occurred()) SWIG_fail; | |
11318 | } | |
11319 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11320 | return resultobj; | |
11321 | fail: | |
11322 | return NULL; | |
11323 | } | |
11324 | ||
11325 | ||
11326 | static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11327 | PyObject *resultobj; | |
11328 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11329 | int arg2 ; | |
11330 | int result; | |
11331 | PyObject * obj0 = 0 ; | |
11332 | PyObject * obj1 = 0 ; | |
11333 | char *kwnames[] = { | |
11334 | (char *) "self",(char *) "col", NULL | |
11335 | }; | |
11336 | ||
11337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; | |
11338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11339 | { | |
11340 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11341 | if (PyErr_Occurred()) SWIG_fail; | |
11342 | } | |
11343 | { | |
11344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11345 | result = (int)(arg1)->GetColSize(arg2); | |
11346 | ||
11347 | wxPyEndAllowThreads(__tstate); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11358 | PyObject *resultobj; | |
11359 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11360 | wxColour result; | |
11361 | PyObject * obj0 = 0 ; | |
11362 | char *kwnames[] = { | |
11363 | (char *) "self", NULL | |
11364 | }; | |
11365 | ||
11366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; | |
11367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11370 | result = (arg1)->GetDefaultCellBackgroundColour(); | |
11371 | ||
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | { | |
11376 | wxColour * resultptr; | |
11377 | resultptr = new wxColour((wxColour &) result); | |
11378 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11379 | } | |
11380 | return resultobj; | |
11381 | fail: | |
11382 | return NULL; | |
11383 | } | |
11384 | ||
11385 | ||
11386 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11387 | PyObject *resultobj; | |
11388 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11389 | int arg2 ; | |
11390 | int arg3 ; | |
11391 | wxColour result; | |
11392 | PyObject * obj0 = 0 ; | |
11393 | PyObject * obj1 = 0 ; | |
11394 | PyObject * obj2 = 0 ; | |
11395 | char *kwnames[] = { | |
11396 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11397 | }; | |
11398 | ||
11399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11401 | { | |
11402 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | { | |
11406 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
11416 | { | |
11417 | wxColour * resultptr; | |
11418 | resultptr = new wxColour((wxColour &) result); | |
11419 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11420 | } | |
11421 | return resultobj; | |
11422 | fail: | |
11423 | return NULL; | |
11424 | } | |
11425 | ||
11426 | ||
11427 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11428 | PyObject *resultobj; | |
11429 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11430 | wxColour result; | |
11431 | PyObject * obj0 = 0 ; | |
11432 | char *kwnames[] = { | |
11433 | (char *) "self", NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; | |
11437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11438 | { | |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11440 | result = (arg1)->GetDefaultCellTextColour(); | |
11441 | ||
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
11445 | { | |
11446 | wxColour * resultptr; | |
11447 | resultptr = new wxColour((wxColour &) result); | |
11448 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11449 | } | |
11450 | return resultobj; | |
11451 | fail: | |
11452 | return NULL; | |
11453 | } | |
11454 | ||
11455 | ||
11456 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11457 | PyObject *resultobj; | |
11458 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11459 | int arg2 ; | |
11460 | int arg3 ; | |
11461 | wxColour result; | |
11462 | PyObject * obj0 = 0 ; | |
11463 | PyObject * obj1 = 0 ; | |
11464 | PyObject * obj2 = 0 ; | |
11465 | char *kwnames[] = { | |
11466 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11467 | }; | |
11468 | ||
11469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11471 | { | |
11472 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | { | |
11476 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
11479 | { | |
11480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11481 | result = (arg1)->GetCellTextColour(arg2,arg3); | |
11482 | ||
11483 | wxPyEndAllowThreads(__tstate); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | } | |
11486 | { | |
11487 | wxColour * resultptr; | |
11488 | resultptr = new wxColour((wxColour &) result); | |
11489 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11490 | } | |
11491 | return resultobj; | |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
11497 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11498 | PyObject *resultobj; | |
11499 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11500 | wxFont result; | |
11501 | PyObject * obj0 = 0 ; | |
11502 | char *kwnames[] = { | |
11503 | (char *) "self", NULL | |
11504 | }; | |
11505 | ||
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; | |
11507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11508 | { | |
11509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11510 | result = (arg1)->GetDefaultCellFont(); | |
11511 | ||
11512 | wxPyEndAllowThreads(__tstate); | |
11513 | if (PyErr_Occurred()) SWIG_fail; | |
11514 | } | |
11515 | { | |
11516 | wxFont * resultptr; | |
11517 | resultptr = new wxFont((wxFont &) result); | |
11518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
11519 | } | |
11520 | return resultobj; | |
11521 | fail: | |
11522 | return NULL; | |
11523 | } | |
11524 | ||
11525 | ||
11526 | static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11527 | PyObject *resultobj; | |
11528 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11529 | int arg2 ; | |
11530 | int arg3 ; | |
11531 | wxFont result; | |
11532 | PyObject * obj0 = 0 ; | |
11533 | PyObject * obj1 = 0 ; | |
11534 | PyObject * obj2 = 0 ; | |
11535 | char *kwnames[] = { | |
11536 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11537 | }; | |
11538 | ||
11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11541 | { | |
11542 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
11545 | { | |
11546 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | { | |
11550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11551 | result = (arg1)->GetCellFont(arg2,arg3); | |
11552 | ||
11553 | wxPyEndAllowThreads(__tstate); | |
11554 | if (PyErr_Occurred()) SWIG_fail; | |
11555 | } | |
11556 | { | |
11557 | wxFont * resultptr; | |
11558 | resultptr = new wxFont((wxFont &) result); | |
11559 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
11560 | } | |
11561 | return resultobj; | |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
11567 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11568 | PyObject *resultobj; | |
11569 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11570 | int *arg2 = (int *) 0 ; | |
11571 | int *arg3 = (int *) 0 ; | |
11572 | int temp2 ; | |
11573 | int temp3 ; | |
11574 | PyObject * obj0 = 0 ; | |
11575 | char *kwnames[] = { | |
11576 | (char *) "self", NULL | |
11577 | }; | |
11578 | ||
11579 | arg2 = &temp2; | |
11580 | arg3 = &temp3; | |
11581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; | |
11582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11583 | { | |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | (arg1)->GetDefaultCellAlignment(arg2,arg3); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | Py_INCREF(Py_None); resultobj = Py_None; | |
11591 | { | |
11592 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11593 | resultobj = t_output_helper(resultobj,o); | |
11594 | } | |
11595 | { | |
11596 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11597 | resultobj = t_output_helper(resultobj,o); | |
11598 | } | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
11605 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11606 | PyObject *resultobj; | |
11607 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11608 | int arg2 ; | |
11609 | int arg3 ; | |
11610 | int *arg4 = (int *) 0 ; | |
11611 | int *arg5 = (int *) 0 ; | |
11612 | int temp4 ; | |
11613 | int temp5 ; | |
11614 | PyObject * obj0 = 0 ; | |
11615 | PyObject * obj1 = 0 ; | |
11616 | PyObject * obj2 = 0 ; | |
11617 | char *kwnames[] = { | |
11618 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11619 | }; | |
11620 | ||
11621 | arg4 = &temp4; | |
11622 | arg5 = &temp5; | |
11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11625 | { | |
11626 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11627 | if (PyErr_Occurred()) SWIG_fail; | |
11628 | } | |
11629 | { | |
11630 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); | |
11636 | ||
11637 | wxPyEndAllowThreads(__tstate); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | } | |
11640 | Py_INCREF(Py_None); resultobj = Py_None; | |
11641 | { | |
11642 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11643 | resultobj = t_output_helper(resultobj,o); | |
11644 | } | |
11645 | { | |
11646 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11647 | resultobj = t_output_helper(resultobj,o); | |
11648 | } | |
11649 | return resultobj; | |
11650 | fail: | |
11651 | return NULL; | |
11652 | } | |
11653 | ||
11654 | ||
11655 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11656 | PyObject *resultobj; | |
11657 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11658 | bool result; | |
11659 | PyObject * obj0 = 0 ; | |
11660 | char *kwnames[] = { | |
11661 | (char *) "self", NULL | |
11662 | }; | |
11663 | ||
11664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; | |
11665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11666 | { | |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | result = (bool)(arg1)->GetDefaultCellOverflow(); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
11673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11674 | return resultobj; | |
11675 | fail: | |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
11680 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11681 | PyObject *resultobj; | |
11682 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11683 | int arg2 ; | |
11684 | int arg3 ; | |
11685 | bool result; | |
11686 | PyObject * obj0 = 0 ; | |
11687 | PyObject * obj1 = 0 ; | |
11688 | PyObject * obj2 = 0 ; | |
11689 | char *kwnames[] = { | |
11690 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11691 | }; | |
11692 | ||
11693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11695 | { | |
11696 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11697 | if (PyErr_Occurred()) SWIG_fail; | |
11698 | } | |
11699 | { | |
11700 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | { | |
11704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11705 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); | |
11706 | ||
11707 | wxPyEndAllowThreads(__tstate); | |
11708 | if (PyErr_Occurred()) SWIG_fail; | |
11709 | } | |
11710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11711 | return resultobj; | |
11712 | fail: | |
11713 | return NULL; | |
11714 | } | |
11715 | ||
11716 | ||
11717 | static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11718 | PyObject *resultobj; | |
11719 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11720 | int arg2 ; | |
11721 | int arg3 ; | |
11722 | int *arg4 = (int *) 0 ; | |
11723 | int *arg5 = (int *) 0 ; | |
11724 | int temp4 ; | |
11725 | int temp5 ; | |
11726 | PyObject * obj0 = 0 ; | |
11727 | PyObject * obj1 = 0 ; | |
11728 | PyObject * obj2 = 0 ; | |
11729 | char *kwnames[] = { | |
11730 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11731 | }; | |
11732 | ||
11733 | arg4 = &temp4; | |
11734 | arg5 = &temp5; | |
11735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11737 | { | |
11738 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | { | |
11742 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11743 | if (PyErr_Occurred()) SWIG_fail; | |
11744 | } | |
11745 | { | |
11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11747 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); | |
11748 | ||
11749 | wxPyEndAllowThreads(__tstate); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | } | |
11752 | Py_INCREF(Py_None); resultobj = Py_None; | |
11753 | { | |
11754 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11755 | resultobj = t_output_helper(resultobj,o); | |
11756 | } | |
11757 | { | |
11758 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11759 | resultobj = t_output_helper(resultobj,o); | |
11760 | } | |
11761 | return resultobj; | |
11762 | fail: | |
11763 | return NULL; | |
11764 | } | |
11765 | ||
11766 | ||
11767 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11768 | PyObject *resultobj; | |
11769 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11770 | int arg2 ; | |
11771 | bool arg3 = (bool) False ; | |
11772 | PyObject * obj0 = 0 ; | |
11773 | PyObject * obj1 = 0 ; | |
11774 | PyObject * obj2 = 0 ; | |
11775 | char *kwnames[] = { | |
11776 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL | |
11777 | }; | |
11778 | ||
11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11781 | { | |
11782 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
11785 | if (obj2) { | |
11786 | { | |
11787 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
11789 | } | |
11790 | } | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | (arg1)->SetDefaultRowSize(arg2,arg3); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | Py_INCREF(Py_None); resultobj = Py_None; | |
11799 | return resultobj; | |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
11805 | static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11806 | PyObject *resultobj; | |
11807 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11808 | int arg2 ; | |
11809 | int arg3 ; | |
11810 | PyObject * obj0 = 0 ; | |
11811 | PyObject * obj1 = 0 ; | |
11812 | PyObject * obj2 = 0 ; | |
11813 | char *kwnames[] = { | |
11814 | (char *) "self",(char *) "row",(char *) "height", NULL | |
11815 | }; | |
11816 | ||
11817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11819 | { | |
11820 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | { | |
11824 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | { | |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | (arg1)->SetRowSize(arg2,arg3); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
11834 | Py_INCREF(Py_None); resultobj = Py_None; | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
11841 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11842 | PyObject *resultobj; | |
11843 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11844 | int arg2 ; | |
11845 | bool arg3 = (bool) False ; | |
11846 | PyObject * obj0 = 0 ; | |
11847 | PyObject * obj1 = 0 ; | |
11848 | PyObject * obj2 = 0 ; | |
11849 | char *kwnames[] = { | |
11850 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL | |
11851 | }; | |
11852 | ||
11853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11855 | { | |
11856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | if (obj2) { | |
11860 | { | |
11861 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11862 | if (PyErr_Occurred()) SWIG_fail; | |
11863 | } | |
11864 | } | |
11865 | { | |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | (arg1)->SetDefaultColSize(arg2,arg3); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | Py_INCREF(Py_None); resultobj = Py_None; | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
11876 | } | |
11877 | ||
11878 | ||
11879 | static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11880 | PyObject *resultobj; | |
11881 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11882 | int arg2 ; | |
11883 | int arg3 ; | |
11884 | PyObject * obj0 = 0 ; | |
11885 | PyObject * obj1 = 0 ; | |
11886 | PyObject * obj2 = 0 ; | |
11887 | char *kwnames[] = { | |
11888 | (char *) "self",(char *) "col",(char *) "width", NULL | |
11889 | }; | |
11890 | ||
11891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11893 | { | |
11894 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | { | |
11898 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | } | |
11901 | { | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | (arg1)->SetColSize(arg2,arg3); | |
11904 | ||
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
11908 | Py_INCREF(Py_None); resultobj = Py_None; | |
11909 | return resultobj; | |
11910 | fail: | |
11911 | return NULL; | |
11912 | } | |
11913 | ||
11914 | ||
11915 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11916 | PyObject *resultobj; | |
11917 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11918 | int arg2 ; | |
11919 | bool arg3 = (bool) True ; | |
11920 | PyObject * obj0 = 0 ; | |
11921 | PyObject * obj1 = 0 ; | |
11922 | PyObject * obj2 = 0 ; | |
11923 | char *kwnames[] = { | |
11924 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL | |
11925 | }; | |
11926 | ||
11927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11929 | { | |
11930 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11931 | if (PyErr_Occurred()) SWIG_fail; | |
11932 | } | |
11933 | if (obj2) { | |
11934 | { | |
11935 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | } | |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | (arg1)->AutoSizeColumn(arg2,arg3); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | Py_INCREF(Py_None); resultobj = Py_None; | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | return NULL; | |
11950 | } | |
11951 | ||
11952 | ||
11953 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11954 | PyObject *resultobj; | |
11955 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11956 | int arg2 ; | |
11957 | bool arg3 = (bool) True ; | |
11958 | PyObject * obj0 = 0 ; | |
11959 | PyObject * obj1 = 0 ; | |
11960 | PyObject * obj2 = 0 ; | |
11961 | char *kwnames[] = { | |
11962 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL | |
11963 | }; | |
11964 | ||
11965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11967 | { | |
11968 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | if (obj2) { | |
11972 | { | |
11973 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
11976 | } | |
11977 | { | |
11978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11979 | (arg1)->AutoSizeRow(arg2,arg3); | |
11980 | ||
11981 | wxPyEndAllowThreads(__tstate); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
11984 | Py_INCREF(Py_None); resultobj = Py_None; | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | return NULL; | |
11988 | } | |
11989 | ||
11990 | ||
11991 | static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11992 | PyObject *resultobj; | |
11993 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11994 | bool arg2 = (bool) True ; | |
11995 | PyObject * obj0 = 0 ; | |
11996 | PyObject * obj1 = 0 ; | |
11997 | char *kwnames[] = { | |
11998 | (char *) "self",(char *) "setAsMin", NULL | |
11999 | }; | |
12000 | ||
12001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; | |
12002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12003 | if (obj1) { | |
12004 | { | |
12005 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
12006 | if (PyErr_Occurred()) SWIG_fail; | |
12007 | } | |
12008 | } | |
12009 | { | |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12011 | (arg1)->AutoSizeColumns(arg2); | |
12012 | ||
12013 | wxPyEndAllowThreads(__tstate); | |
12014 | if (PyErr_Occurred()) SWIG_fail; | |
12015 | } | |
12016 | Py_INCREF(Py_None); resultobj = Py_None; | |
12017 | return resultobj; | |
12018 | fail: | |
12019 | return NULL; | |
12020 | } | |
12021 | ||
12022 | ||
12023 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12024 | PyObject *resultobj; | |
12025 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12026 | bool arg2 = (bool) True ; | |
12027 | PyObject * obj0 = 0 ; | |
12028 | PyObject * obj1 = 0 ; | |
12029 | char *kwnames[] = { | |
12030 | (char *) "self",(char *) "setAsMin", NULL | |
12031 | }; | |
12032 | ||
12033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; | |
12034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12035 | if (obj1) { | |
12036 | { | |
12037 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | } | |
12041 | { | |
12042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12043 | (arg1)->AutoSizeRows(arg2); | |
12044 | ||
12045 | wxPyEndAllowThreads(__tstate); | |
12046 | if (PyErr_Occurred()) SWIG_fail; | |
12047 | } | |
12048 | Py_INCREF(Py_None); resultobj = Py_None; | |
12049 | return resultobj; | |
12050 | fail: | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12058 | PyObject * obj0 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; | |
12064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12065 | { | |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | (arg1)->AutoSize(); | |
12068 | ||
12069 | wxPyEndAllowThreads(__tstate); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | Py_INCREF(Py_None); resultobj = Py_None; | |
12073 | return resultobj; | |
12074 | fail: | |
12075 | return NULL; | |
12076 | } | |
12077 | ||
12078 | ||
12079 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12080 | PyObject *resultobj; | |
12081 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12082 | int arg2 ; | |
12083 | PyObject * obj0 = 0 ; | |
12084 | PyObject * obj1 = 0 ; | |
12085 | char *kwnames[] = { | |
12086 | (char *) "self",(char *) "row", NULL | |
12087 | }; | |
12088 | ||
12089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
12090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12091 | { | |
12092 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | (arg1)->AutoSizeRowLabelSize(arg2); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | Py_INCREF(Py_None); resultobj = Py_None; | |
12103 | return resultobj; | |
12104 | fail: | |
12105 | return NULL; | |
12106 | } | |
12107 | ||
12108 | ||
12109 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12110 | PyObject *resultobj; | |
12111 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12112 | int arg2 ; | |
12113 | PyObject * obj0 = 0 ; | |
12114 | PyObject * obj1 = 0 ; | |
12115 | char *kwnames[] = { | |
12116 | (char *) "self",(char *) "col", NULL | |
12117 | }; | |
12118 | ||
12119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
12120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12121 | { | |
12122 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | { | |
12126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12127 | (arg1)->AutoSizeColLabelSize(arg2); | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
12132 | Py_INCREF(Py_None); resultobj = Py_None; | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
12139 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12140 | PyObject *resultobj; | |
12141 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12142 | int arg2 ; | |
12143 | int arg3 ; | |
12144 | PyObject * obj0 = 0 ; | |
12145 | PyObject * obj1 = 0 ; | |
12146 | PyObject * obj2 = 0 ; | |
12147 | char *kwnames[] = { | |
12148 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12149 | }; | |
12150 | ||
12151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12153 | { | |
12154 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12155 | if (PyErr_Occurred()) SWIG_fail; | |
12156 | } | |
12157 | { | |
12158 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | { | |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | (arg1)->SetColMinimalWidth(arg2,arg3); | |
12164 | ||
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
12168 | Py_INCREF(Py_None); resultobj = Py_None; | |
12169 | return resultobj; | |
12170 | fail: | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj; | |
12177 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12178 | int arg2 ; | |
12179 | int arg3 ; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | PyObject * obj1 = 0 ; | |
12182 | PyObject * obj2 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self",(char *) "row",(char *) "width", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12189 | { | |
12190 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12191 | if (PyErr_Occurred()) SWIG_fail; | |
12192 | } | |
12193 | { | |
12194 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
12197 | { | |
12198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12199 | (arg1)->SetRowMinimalHeight(arg2,arg3); | |
12200 | ||
12201 | wxPyEndAllowThreads(__tstate); | |
12202 | if (PyErr_Occurred()) SWIG_fail; | |
12203 | } | |
12204 | Py_INCREF(Py_None); resultobj = Py_None; | |
12205 | return resultobj; | |
12206 | fail: | |
12207 | return NULL; | |
12208 | } | |
12209 | ||
12210 | ||
12211 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12212 | PyObject *resultobj; | |
12213 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12214 | int arg2 ; | |
12215 | PyObject * obj0 = 0 ; | |
12216 | PyObject * obj1 = 0 ; | |
12217 | char *kwnames[] = { | |
12218 | (char *) "self",(char *) "width", NULL | |
12219 | }; | |
12220 | ||
12221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; | |
12222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12223 | { | |
12224 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
12227 | { | |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | (arg1)->SetColMinimalAcceptableWidth(arg2); | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12242 | PyObject *resultobj; | |
12243 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12244 | int arg2 ; | |
12245 | PyObject * obj0 = 0 ; | |
12246 | PyObject * obj1 = 0 ; | |
12247 | char *kwnames[] = { | |
12248 | (char *) "self",(char *) "width", NULL | |
12249 | }; | |
12250 | ||
12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; | |
12252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12253 | { | |
12254 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | (arg1)->SetRowMinimalAcceptableHeight(arg2); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | Py_INCREF(Py_None); resultobj = Py_None; | |
12265 | return resultobj; | |
12266 | fail: | |
12267 | return NULL; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12272 | PyObject *resultobj; | |
12273 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12274 | int result; | |
12275 | PyObject * obj0 = 0 ; | |
12276 | char *kwnames[] = { | |
12277 | (char *) "self", NULL | |
12278 | }; | |
12279 | ||
12280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; | |
12281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12282 | { | |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
12289 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12299 | int result; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | char *kwnames[] = { | |
12302 | (char *) "self", NULL | |
12303 | }; | |
12304 | ||
12305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; | |
12306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12324 | wxColour *arg2 = 0 ; | |
12325 | wxColour temp2 ; | |
12326 | PyObject * obj0 = 0 ; | |
12327 | PyObject * obj1 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self","arg2", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
12333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12334 | { | |
12335 | arg2 = &temp2; | |
12336 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12337 | } | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | Py_INCREF(Py_None); resultobj = Py_None; | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12355 | int arg2 ; | |
12356 | int arg3 ; | |
12357 | wxColour *arg4 = 0 ; | |
12358 | wxColour temp4 ; | |
12359 | PyObject * obj0 = 0 ; | |
12360 | PyObject * obj1 = 0 ; | |
12361 | PyObject * obj2 = 0 ; | |
12362 | PyObject * obj3 = 0 ; | |
12363 | char *kwnames[] = { | |
12364 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12365 | }; | |
12366 | ||
12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12369 | { | |
12370 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
12373 | { | |
12374 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
12377 | { | |
12378 | arg4 = &temp4; | |
12379 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12380 | } | |
12381 | { | |
12382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12383 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); | |
12384 | ||
12385 | wxPyEndAllowThreads(__tstate); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | Py_INCREF(Py_None); resultobj = Py_None; | |
12389 | return resultobj; | |
12390 | fail: | |
12391 | return NULL; | |
12392 | } | |
12393 | ||
12394 | ||
12395 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12396 | PyObject *resultobj; | |
12397 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12398 | wxColour *arg2 = 0 ; | |
12399 | wxColour temp2 ; | |
12400 | PyObject * obj0 = 0 ; | |
12401 | PyObject * obj1 = 0 ; | |
12402 | char *kwnames[] = { | |
12403 | (char *) "self","arg2", NULL | |
12404 | }; | |
12405 | ||
12406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; | |
12407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12408 | { | |
12409 | arg2 = &temp2; | |
12410 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12411 | } | |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | Py_INCREF(Py_None); resultobj = Py_None; | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12427 | PyObject *resultobj; | |
12428 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12429 | int arg2 ; | |
12430 | int arg3 ; | |
12431 | wxColour *arg4 = 0 ; | |
12432 | wxColour temp4 ; | |
12433 | PyObject * obj0 = 0 ; | |
12434 | PyObject * obj1 = 0 ; | |
12435 | PyObject * obj2 = 0 ; | |
12436 | PyObject * obj3 = 0 ; | |
12437 | char *kwnames[] = { | |
12438 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12443 | { | |
12444 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | { | |
12448 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12449 | if (PyErr_Occurred()) SWIG_fail; | |
12450 | } | |
12451 | { | |
12452 | arg4 = &temp4; | |
12453 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12454 | } | |
12455 | { | |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | } | |
12462 | Py_INCREF(Py_None); resultobj = Py_None; | |
12463 | return resultobj; | |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12472 | wxFont *arg2 = 0 ; | |
12473 | PyObject * obj0 = 0 ; | |
12474 | PyObject * obj1 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self","arg2", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12482 | if (arg2 == NULL) { | |
12483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12484 | } | |
12485 | { | |
12486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12487 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); | |
12488 | ||
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | Py_INCREF(Py_None); resultobj = Py_None; | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12502 | int arg2 ; | |
12503 | int arg3 ; | |
12504 | wxFont *arg4 = 0 ; | |
12505 | PyObject * obj0 = 0 ; | |
12506 | PyObject * obj1 = 0 ; | |
12507 | PyObject * obj2 = 0 ; | |
12508 | PyObject * obj3 = 0 ; | |
12509 | char *kwnames[] = { | |
12510 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12511 | }; | |
12512 | ||
12513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12515 | { | |
12516 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | { | |
12520 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12524 | if (arg4 == NULL) { | |
12525 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12526 | } | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | Py_INCREF(Py_None); resultobj = Py_None; | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
12541 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12542 | PyObject *resultobj; | |
12543 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12544 | int arg2 ; | |
12545 | int arg3 ; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | PyObject * obj1 = 0 ; | |
12548 | PyObject * obj2 = 0 ; | |
12549 | char *kwnames[] = { | |
12550 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
12551 | }; | |
12552 | ||
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
12559 | { | |
12560 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12561 | if (PyErr_Occurred()) SWIG_fail; | |
12562 | } | |
12563 | { | |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | (arg1)->SetDefaultCellAlignment(arg2,arg3); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
12570 | Py_INCREF(Py_None); resultobj = Py_None; | |
12571 | return resultobj; | |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12580 | int arg2 ; | |
12581 | int arg3 ; | |
12582 | int arg4 ; | |
12583 | int arg5 ; | |
12584 | PyObject * obj0 = 0 ; | |
12585 | PyObject * obj1 = 0 ; | |
12586 | PyObject * obj2 = 0 ; | |
12587 | PyObject * obj3 = 0 ; | |
12588 | PyObject * obj4 = 0 ; | |
12589 | char *kwnames[] = { | |
12590 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL | |
12591 | }; | |
12592 | ||
12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12595 | { | |
12596 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | } | |
12599 | { | |
12600 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | } | |
12603 | { | |
12604 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | { | |
12608 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
12611 | { | |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12613 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | Py_INCREF(Py_None); resultobj = Py_None; | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | return NULL; | |
12622 | } | |
12623 | ||
12624 | ||
12625 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12626 | PyObject *resultobj; | |
12627 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12628 | bool arg2 ; | |
12629 | PyObject * obj0 = 0 ; | |
12630 | PyObject * obj1 = 0 ; | |
12631 | char *kwnames[] = { | |
12632 | (char *) "self",(char *) "allow", NULL | |
12633 | }; | |
12634 | ||
12635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; | |
12636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12637 | { | |
12638 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
12641 | { | |
12642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12643 | (arg1)->SetDefaultCellOverflow(arg2); | |
12644 | ||
12645 | wxPyEndAllowThreads(__tstate); | |
12646 | if (PyErr_Occurred()) SWIG_fail; | |
12647 | } | |
12648 | Py_INCREF(Py_None); resultobj = Py_None; | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | return NULL; | |
12652 | } | |
12653 | ||
12654 | ||
12655 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12656 | PyObject *resultobj; | |
12657 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12658 | int arg2 ; | |
12659 | int arg3 ; | |
12660 | bool arg4 ; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | PyObject * obj1 = 0 ; | |
12663 | PyObject * obj2 = 0 ; | |
12664 | PyObject * obj3 = 0 ; | |
12665 | char *kwnames[] = { | |
12666 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL | |
12667 | }; | |
12668 | ||
12669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12671 | { | |
12672 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12673 | if (PyErr_Occurred()) SWIG_fail; | |
12674 | } | |
12675 | { | |
12676 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12677 | if (PyErr_Occurred()) SWIG_fail; | |
12678 | } | |
12679 | { | |
12680 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | { | |
12684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12685 | (arg1)->SetCellOverflow(arg2,arg3,arg4); | |
12686 | ||
12687 | wxPyEndAllowThreads(__tstate); | |
12688 | if (PyErr_Occurred()) SWIG_fail; | |
12689 | } | |
12690 | Py_INCREF(Py_None); resultobj = Py_None; | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12698 | PyObject *resultobj; | |
12699 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12700 | int arg2 ; | |
12701 | int arg3 ; | |
12702 | int arg4 ; | |
12703 | int arg5 ; | |
12704 | PyObject * obj0 = 0 ; | |
12705 | PyObject * obj1 = 0 ; | |
12706 | PyObject * obj2 = 0 ; | |
12707 | PyObject * obj3 = 0 ; | |
12708 | PyObject * obj4 = 0 ; | |
12709 | char *kwnames[] = { | |
12710 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL | |
12711 | }; | |
12712 | ||
12713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12715 | { | |
12716 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | { | |
12720 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12721 | if (PyErr_Occurred()) SWIG_fail; | |
12722 | } | |
12723 | { | |
12724 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12725 | if (PyErr_Occurred()) SWIG_fail; | |
12726 | } | |
12727 | { | |
12728 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12729 | if (PyErr_Occurred()) SWIG_fail; | |
12730 | } | |
12731 | { | |
12732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12733 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); | |
12734 | ||
12735 | wxPyEndAllowThreads(__tstate); | |
12736 | if (PyErr_Occurred()) SWIG_fail; | |
12737 | } | |
12738 | Py_INCREF(Py_None); resultobj = Py_None; | |
12739 | return resultobj; | |
12740 | fail: | |
12741 | return NULL; | |
12742 | } | |
12743 | ||
12744 | ||
12745 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12746 | PyObject *resultobj; | |
12747 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12748 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
12749 | PyObject * obj0 = 0 ; | |
12750 | PyObject * obj1 = 0 ; | |
12751 | char *kwnames[] = { | |
12752 | (char *) "self",(char *) "renderer", NULL | |
12753 | }; | |
12754 | ||
12755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; | |
12756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12757 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12758 | { | |
12759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12760 | (arg1)->SetDefaultRenderer(arg2); | |
12761 | ||
12762 | wxPyEndAllowThreads(__tstate); | |
12763 | if (PyErr_Occurred()) SWIG_fail; | |
12764 | } | |
12765 | Py_INCREF(Py_None); resultobj = Py_None; | |
12766 | return resultobj; | |
12767 | fail: | |
12768 | return NULL; | |
12769 | } | |
12770 | ||
12771 | ||
12772 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12773 | PyObject *resultobj; | |
12774 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12775 | int arg2 ; | |
12776 | int arg3 ; | |
12777 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; | |
12778 | PyObject * obj0 = 0 ; | |
12779 | PyObject * obj1 = 0 ; | |
12780 | PyObject * obj2 = 0 ; | |
12781 | PyObject * obj3 = 0 ; | |
12782 | char *kwnames[] = { | |
12783 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL | |
12784 | }; | |
12785 | ||
12786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12788 | { | |
12789 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12790 | if (PyErr_Occurred()) SWIG_fail; | |
12791 | } | |
12792 | { | |
12793 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
12796 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12797 | { | |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12799 | (arg1)->SetCellRenderer(arg2,arg3,arg4); | |
12800 | ||
12801 | wxPyEndAllowThreads(__tstate); | |
12802 | if (PyErr_Occurred()) SWIG_fail; | |
12803 | } | |
12804 | Py_INCREF(Py_None); resultobj = Py_None; | |
12805 | return resultobj; | |
12806 | fail: | |
12807 | return NULL; | |
12808 | } | |
12809 | ||
12810 | ||
12811 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12812 | PyObject *resultobj; | |
12813 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12814 | wxGridCellRenderer *result; | |
12815 | PyObject * obj0 = 0 ; | |
12816 | char *kwnames[] = { | |
12817 | (char *) "self", NULL | |
12818 | }; | |
12819 | ||
12820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; | |
12821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12822 | { | |
12823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12824 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); | |
12825 | ||
12826 | wxPyEndAllowThreads(__tstate); | |
12827 | if (PyErr_Occurred()) SWIG_fail; | |
12828 | } | |
12829 | { | |
12830 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12831 | } | |
12832 | return resultobj; | |
12833 | fail: | |
12834 | return NULL; | |
12835 | } | |
12836 | ||
12837 | ||
12838 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12839 | PyObject *resultobj; | |
12840 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12841 | int arg2 ; | |
12842 | int arg3 ; | |
12843 | wxGridCellRenderer *result; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | PyObject * obj1 = 0 ; | |
12846 | PyObject * obj2 = 0 ; | |
12847 | char *kwnames[] = { | |
12848 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12849 | }; | |
12850 | ||
12851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12853 | { | |
12854 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12855 | if (PyErr_Occurred()) SWIG_fail; | |
12856 | } | |
12857 | { | |
12858 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12859 | if (PyErr_Occurred()) SWIG_fail; | |
12860 | } | |
12861 | { | |
12862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12863 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); | |
12864 | ||
12865 | wxPyEndAllowThreads(__tstate); | |
12866 | if (PyErr_Occurred()) SWIG_fail; | |
12867 | } | |
12868 | { | |
12869 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12870 | } | |
12871 | return resultobj; | |
12872 | fail: | |
12873 | return NULL; | |
12874 | } | |
12875 | ||
12876 | ||
12877 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12878 | PyObject *resultobj; | |
12879 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12880 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | PyObject * obj1 = 0 ; | |
12883 | char *kwnames[] = { | |
12884 | (char *) "self",(char *) "editor", NULL | |
12885 | }; | |
12886 | ||
12887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; | |
12888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12889 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12890 | { | |
12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12892 | (arg1)->SetDefaultEditor(arg2); | |
12893 | ||
12894 | wxPyEndAllowThreads(__tstate); | |
12895 | if (PyErr_Occurred()) SWIG_fail; | |
12896 | } | |
12897 | Py_INCREF(Py_None); resultobj = Py_None; | |
12898 | return resultobj; | |
12899 | fail: | |
12900 | return NULL; | |
12901 | } | |
12902 | ||
12903 | ||
12904 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12905 | PyObject *resultobj; | |
12906 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12907 | int arg2 ; | |
12908 | int arg3 ; | |
12909 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
12910 | PyObject * obj0 = 0 ; | |
12911 | PyObject * obj1 = 0 ; | |
12912 | PyObject * obj2 = 0 ; | |
12913 | PyObject * obj3 = 0 ; | |
12914 | char *kwnames[] = { | |
12915 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL | |
12916 | }; | |
12917 | ||
12918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12920 | { | |
12921 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12922 | if (PyErr_Occurred()) SWIG_fail; | |
12923 | } | |
12924 | { | |
12925 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12926 | if (PyErr_Occurred()) SWIG_fail; | |
12927 | } | |
12928 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12929 | { | |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | (arg1)->SetCellEditor(arg2,arg3,arg4); | |
12932 | ||
12933 | wxPyEndAllowThreads(__tstate); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | Py_INCREF(Py_None); resultobj = Py_None; | |
12937 | return resultobj; | |
12938 | fail: | |
12939 | return NULL; | |
12940 | } | |
12941 | ||
12942 | ||
12943 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12944 | PyObject *resultobj; | |
12945 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12946 | wxGridCellEditor *result; | |
12947 | PyObject * obj0 = 0 ; | |
12948 | char *kwnames[] = { | |
12949 | (char *) "self", NULL | |
12950 | }; | |
12951 | ||
12952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; | |
12953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12954 | { | |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
12961 | { | |
12962 | resultobj = wxPyMake_wxGridCellEditor(result); | |
12963 | } | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
12970 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12971 | PyObject *resultobj; | |
12972 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12973 | int arg2 ; | |
12974 | int arg3 ; | |
12975 | wxGridCellEditor *result; | |
12976 | PyObject * obj0 = 0 ; | |
12977 | PyObject * obj1 = 0 ; | |
12978 | PyObject * obj2 = 0 ; | |
12979 | char *kwnames[] = { | |
12980 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12981 | }; | |
12982 | ||
12983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12985 | { | |
12986 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12987 | if (PyErr_Occurred()) SWIG_fail; | |
12988 | } | |
12989 | { | |
12990 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | { | |
12994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12995 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); | |
12996 | ||
12997 | wxPyEndAllowThreads(__tstate); | |
12998 | if (PyErr_Occurred()) SWIG_fail; | |
12999 | } | |
13000 | { | |
13001 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13002 | } | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
13009 | static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13010 | PyObject *resultobj; | |
13011 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13012 | int arg2 ; | |
13013 | int arg3 ; | |
13014 | wxString result; | |
13015 | PyObject * obj0 = 0 ; | |
13016 | PyObject * obj1 = 0 ; | |
13017 | PyObject * obj2 = 0 ; | |
13018 | char *kwnames[] = { | |
13019 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13020 | }; | |
13021 | ||
13022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13024 | { | |
13025 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | { | |
13029 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | { | |
13033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13034 | result = (arg1)->GetCellValue(arg2,arg3); | |
13035 | ||
13036 | wxPyEndAllowThreads(__tstate); | |
13037 | if (PyErr_Occurred()) SWIG_fail; | |
13038 | } | |
13039 | { | |
13040 | #if wxUSE_UNICODE | |
13041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13042 | #else | |
13043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13044 | #endif | |
13045 | } | |
13046 | return resultobj; | |
13047 | fail: | |
13048 | return NULL; | |
13049 | } | |
13050 | ||
13051 | ||
13052 | static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13053 | PyObject *resultobj; | |
13054 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13055 | int arg2 ; | |
13056 | int arg3 ; | |
13057 | wxString *arg4 = 0 ; | |
13058 | bool temp4 = False ; | |
13059 | PyObject * obj0 = 0 ; | |
13060 | PyObject * obj1 = 0 ; | |
13061 | PyObject * obj2 = 0 ; | |
13062 | PyObject * obj3 = 0 ; | |
13063 | char *kwnames[] = { | |
13064 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL | |
13065 | }; | |
13066 | ||
13067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13069 | { | |
13070 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13071 | if (PyErr_Occurred()) SWIG_fail; | |
13072 | } | |
13073 | { | |
13074 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | { | |
13078 | arg4 = wxString_in_helper(obj3); | |
13079 | if (arg4 == NULL) SWIG_fail; | |
13080 | temp4 = True; | |
13081 | } | |
13082 | { | |
13083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13084 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); | |
13085 | ||
13086 | wxPyEndAllowThreads(__tstate); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | } | |
13089 | Py_INCREF(Py_None); resultobj = Py_None; | |
13090 | { | |
13091 | if (temp4) | |
13092 | delete arg4; | |
13093 | } | |
13094 | return resultobj; | |
13095 | fail: | |
13096 | { | |
13097 | if (temp4) | |
13098 | delete arg4; | |
13099 | } | |
13100 | return NULL; | |
13101 | } | |
13102 | ||
13103 | ||
13104 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13105 | PyObject *resultobj; | |
13106 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13107 | int arg2 ; | |
13108 | int arg3 ; | |
13109 | bool result; | |
13110 | PyObject * obj0 = 0 ; | |
13111 | PyObject * obj1 = 0 ; | |
13112 | PyObject * obj2 = 0 ; | |
13113 | char *kwnames[] = { | |
13114 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13115 | }; | |
13116 | ||
13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13119 | { | |
13120 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13121 | if (PyErr_Occurred()) SWIG_fail; | |
13122 | } | |
13123 | { | |
13124 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13144 | int arg2 ; | |
13145 | int arg3 ; | |
13146 | bool arg4 = (bool) True ; | |
13147 | PyObject * obj0 = 0 ; | |
13148 | PyObject * obj1 = 0 ; | |
13149 | PyObject * obj2 = 0 ; | |
13150 | PyObject * obj3 = 0 ; | |
13151 | char *kwnames[] = { | |
13152 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL | |
13153 | }; | |
13154 | ||
13155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13157 | { | |
13158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | } | |
13161 | { | |
13162 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | if (obj3) { | |
13166 | { | |
13167 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | } | |
13170 | } | |
13171 | { | |
13172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13173 | (arg1)->SetReadOnly(arg2,arg3,arg4); | |
13174 | ||
13175 | wxPyEndAllowThreads(__tstate); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
13178 | Py_INCREF(Py_None); resultobj = Py_None; | |
13179 | return resultobj; | |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
13185 | static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13186 | PyObject *resultobj; | |
13187 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13188 | int arg2 ; | |
13189 | bool arg3 = (bool) False ; | |
13190 | PyObject * obj0 = 0 ; | |
13191 | PyObject * obj1 = 0 ; | |
13192 | PyObject * obj2 = 0 ; | |
13193 | char *kwnames[] = { | |
13194 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL | |
13195 | }; | |
13196 | ||
13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13199 | { | |
13200 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | } | |
13203 | if (obj2) { | |
13204 | { | |
13205 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
13208 | } | |
13209 | { | |
13210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13211 | (arg1)->SelectRow(arg2,arg3); | |
13212 | ||
13213 | wxPyEndAllowThreads(__tstate); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
13216 | Py_INCREF(Py_None); resultobj = Py_None; | |
13217 | return resultobj; | |
13218 | fail: | |
13219 | return NULL; | |
13220 | } | |
13221 | ||
13222 | ||
13223 | static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13224 | PyObject *resultobj; | |
13225 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13226 | int arg2 ; | |
13227 | bool arg3 = (bool) False ; | |
13228 | PyObject * obj0 = 0 ; | |
13229 | PyObject * obj1 = 0 ; | |
13230 | PyObject * obj2 = 0 ; | |
13231 | char *kwnames[] = { | |
13232 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL | |
13233 | }; | |
13234 | ||
13235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13237 | { | |
13238 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
13240 | } | |
13241 | if (obj2) { | |
13242 | { | |
13243 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | } | |
13247 | { | |
13248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13249 | (arg1)->SelectCol(arg2,arg3); | |
13250 | ||
13251 | wxPyEndAllowThreads(__tstate); | |
13252 | if (PyErr_Occurred()) SWIG_fail; | |
13253 | } | |
13254 | Py_INCREF(Py_None); resultobj = Py_None; | |
13255 | return resultobj; | |
13256 | fail: | |
13257 | return NULL; | |
13258 | } | |
13259 | ||
13260 | ||
13261 | static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13262 | PyObject *resultobj; | |
13263 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13264 | int arg2 ; | |
13265 | int arg3 ; | |
13266 | int arg4 ; | |
13267 | int arg5 ; | |
13268 | bool arg6 = (bool) False ; | |
13269 | PyObject * obj0 = 0 ; | |
13270 | PyObject * obj1 = 0 ; | |
13271 | PyObject * obj2 = 0 ; | |
13272 | PyObject * obj3 = 0 ; | |
13273 | PyObject * obj4 = 0 ; | |
13274 | PyObject * obj5 = 0 ; | |
13275 | char *kwnames[] = { | |
13276 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL | |
13277 | }; | |
13278 | ||
13279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13281 | { | |
13282 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | } | |
13285 | { | |
13286 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | { | |
13290 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13291 | if (PyErr_Occurred()) SWIG_fail; | |
13292 | } | |
13293 | { | |
13294 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | if (obj5) { | |
13298 | { | |
13299 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
13302 | } | |
13303 | { | |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13305 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); | |
13306 | ||
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | Py_INCREF(Py_None); resultobj = Py_None; | |
13311 | return resultobj; | |
13312 | fail: | |
13313 | return NULL; | |
13314 | } | |
13315 | ||
13316 | ||
13317 | static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13318 | PyObject *resultobj; | |
13319 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13320 | PyObject * obj0 = 0 ; | |
13321 | char *kwnames[] = { | |
13322 | (char *) "self", NULL | |
13323 | }; | |
13324 | ||
13325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; | |
13326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | (arg1)->SelectAll(); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | Py_INCREF(Py_None); resultobj = Py_None; | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj; | |
13343 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13344 | bool result; | |
13345 | PyObject * obj0 = 0 ; | |
13346 | char *kwnames[] = { | |
13347 | (char *) "self", NULL | |
13348 | }; | |
13349 | ||
13350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; | |
13351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13352 | { | |
13353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13354 | result = (bool)(arg1)->IsSelection(); | |
13355 | ||
13356 | wxPyEndAllowThreads(__tstate); | |
13357 | if (PyErr_Occurred()) SWIG_fail; | |
13358 | } | |
13359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13360 | return resultobj; | |
13361 | fail: | |
13362 | return NULL; | |
13363 | } | |
13364 | ||
13365 | ||
13366 | static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13367 | PyObject *resultobj; | |
13368 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13369 | PyObject * obj0 = 0 ; | |
13370 | char *kwnames[] = { | |
13371 | (char *) "self", NULL | |
13372 | }; | |
13373 | ||
13374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; | |
13375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13376 | { | |
13377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13378 | (arg1)->ClearSelection(); | |
13379 | ||
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
13383 | Py_INCREF(Py_None); resultobj = Py_None; | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13393 | int arg2 ; | |
13394 | int arg3 ; | |
13395 | bool result; | |
13396 | PyObject * obj0 = 0 ; | |
13397 | PyObject * obj1 = 0 ; | |
13398 | PyObject * obj2 = 0 ; | |
13399 | char *kwnames[] = { | |
13400 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13401 | }; | |
13402 | ||
13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13405 | { | |
13406 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
13409 | { | |
13410 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | { | |
13414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13415 | result = (bool)(arg1)->IsInSelection(arg2,arg3); | |
13416 | ||
13417 | wxPyEndAllowThreads(__tstate); | |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
13419 | } | |
13420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13421 | return resultobj; | |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13428 | PyObject *resultobj; | |
13429 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13430 | wxGridCellCoordsArray result; | |
13431 | PyObject * obj0 = 0 ; | |
13432 | char *kwnames[] = { | |
13433 | (char *) "self", NULL | |
13434 | }; | |
13435 | ||
13436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; | |
13437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13438 | { | |
13439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13440 | result = ((wxGrid const *)arg1)->GetSelectedCells(); | |
13441 | ||
13442 | wxPyEndAllowThreads(__tstate); | |
13443 | if (PyErr_Occurred()) SWIG_fail; | |
13444 | } | |
13445 | { | |
13446 | resultobj = wxGridCellCoordsArray_helper(result); | |
13447 | } | |
13448 | return resultobj; | |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13455 | PyObject *resultobj; | |
13456 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13457 | wxGridCellCoordsArray result; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; | |
13464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13465 | { | |
13466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13467 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); | |
13468 | ||
13469 | wxPyEndAllowThreads(__tstate); | |
13470 | if (PyErr_Occurred()) SWIG_fail; | |
13471 | } | |
13472 | { | |
13473 | resultobj = wxGridCellCoordsArray_helper(result); | |
13474 | } | |
13475 | return resultobj; | |
13476 | fail: | |
13477 | return NULL; | |
13478 | } | |
13479 | ||
13480 | ||
13481 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13482 | PyObject *resultobj; | |
13483 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13484 | wxGridCellCoordsArray result; | |
13485 | PyObject * obj0 = 0 ; | |
13486 | char *kwnames[] = { | |
13487 | (char *) "self", NULL | |
13488 | }; | |
13489 | ||
13490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; | |
13491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13492 | { | |
13493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13494 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); | |
13495 | ||
13496 | wxPyEndAllowThreads(__tstate); | |
13497 | if (PyErr_Occurred()) SWIG_fail; | |
13498 | } | |
13499 | { | |
13500 | resultobj = wxGridCellCoordsArray_helper(result); | |
13501 | } | |
13502 | return resultobj; | |
13503 | fail: | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
13508 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13509 | PyObject *resultobj; | |
13510 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13511 | wxArrayInt result; | |
13512 | PyObject * obj0 = 0 ; | |
13513 | char *kwnames[] = { | |
13514 | (char *) "self", NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; | |
13518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13519 | { | |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13521 | result = ((wxGrid const *)arg1)->GetSelectedRows(); | |
13522 | ||
13523 | wxPyEndAllowThreads(__tstate); | |
13524 | if (PyErr_Occurred()) SWIG_fail; | |
13525 | } | |
13526 | { | |
13527 | resultobj = PyList_New(0); | |
13528 | size_t idx; | |
13529 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13530 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13531 | PyList_Append(resultobj, val); | |
13532 | Py_DECREF(val); | |
13533 | } | |
13534 | } | |
13535 | return resultobj; | |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj; | |
13543 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13544 | wxArrayInt result; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | char *kwnames[] = { | |
13547 | (char *) "self", NULL | |
13548 | }; | |
13549 | ||
13550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; | |
13551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13552 | { | |
13553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13554 | result = ((wxGrid const *)arg1)->GetSelectedCols(); | |
13555 | ||
13556 | wxPyEndAllowThreads(__tstate); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | } | |
13559 | { | |
13560 | resultobj = PyList_New(0); | |
13561 | size_t idx; | |
13562 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13563 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13564 | PyList_Append(resultobj, val); | |
13565 | Py_DECREF(val); | |
13566 | } | |
13567 | } | |
13568 | return resultobj; | |
13569 | fail: | |
13570 | return NULL; | |
13571 | } | |
13572 | ||
13573 | ||
13574 | static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13575 | PyObject *resultobj; | |
13576 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13577 | int arg2 ; | |
13578 | PyObject * obj0 = 0 ; | |
13579 | PyObject * obj1 = 0 ; | |
13580 | char *kwnames[] = { | |
13581 | (char *) "self",(char *) "row", NULL | |
13582 | }; | |
13583 | ||
13584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; | |
13585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13586 | { | |
13587 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
13590 | { | |
13591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13592 | (arg1)->DeselectRow(arg2); | |
13593 | ||
13594 | wxPyEndAllowThreads(__tstate); | |
13595 | if (PyErr_Occurred()) SWIG_fail; | |
13596 | } | |
13597 | Py_INCREF(Py_None); resultobj = Py_None; | |
13598 | return resultobj; | |
13599 | fail: | |
13600 | return NULL; | |
13601 | } | |
13602 | ||
13603 | ||
13604 | static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13605 | PyObject *resultobj; | |
13606 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13607 | int arg2 ; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | PyObject * obj1 = 0 ; | |
13610 | char *kwnames[] = { | |
13611 | (char *) "self",(char *) "col", NULL | |
13612 | }; | |
13613 | ||
13614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; | |
13615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13616 | { | |
13617 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13618 | if (PyErr_Occurred()) SWIG_fail; | |
13619 | } | |
13620 | { | |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | (arg1)->DeselectCol(arg2); | |
13623 | ||
13624 | wxPyEndAllowThreads(__tstate); | |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
13627 | Py_INCREF(Py_None); resultobj = Py_None; | |
13628 | return resultobj; | |
13629 | fail: | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
13634 | static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13635 | PyObject *resultobj; | |
13636 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13637 | int arg2 ; | |
13638 | int arg3 ; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | PyObject * obj1 = 0 ; | |
13641 | PyObject * obj2 = 0 ; | |
13642 | char *kwnames[] = { | |
13643 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13644 | }; | |
13645 | ||
13646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13648 | { | |
13649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13650 | if (PyErr_Occurred()) SWIG_fail; | |
13651 | } | |
13652 | { | |
13653 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13654 | if (PyErr_Occurred()) SWIG_fail; | |
13655 | } | |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | (arg1)->DeselectCell(arg2,arg3); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | Py_INCREF(Py_None); resultobj = Py_None; | |
13664 | return resultobj; | |
13665 | fail: | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
13670 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13671 | PyObject *resultobj; | |
13672 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13673 | wxGridCellCoords *arg2 = 0 ; | |
13674 | wxGridCellCoords *arg3 = 0 ; | |
13675 | wxRect result; | |
13676 | wxGridCellCoords temp2 ; | |
13677 | wxGridCellCoords temp3 ; | |
13678 | PyObject * obj0 = 0 ; | |
13679 | PyObject * obj1 = 0 ; | |
13680 | PyObject * obj2 = 0 ; | |
13681 | char *kwnames[] = { | |
13682 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL | |
13683 | }; | |
13684 | ||
13685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13687 | { | |
13688 | arg2 = &temp2; | |
13689 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
13690 | } | |
13691 | { | |
13692 | arg3 = &temp3; | |
13693 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; | |
13694 | } | |
13695 | { | |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
13702 | { | |
13703 | wxRect * resultptr; | |
13704 | resultptr = new wxRect((wxRect &) result); | |
13705 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
13706 | } | |
13707 | return resultobj; | |
13708 | fail: | |
13709 | return NULL; | |
13710 | } | |
13711 | ||
13712 | ||
13713 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13714 | PyObject *resultobj; | |
13715 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13716 | wxColour result; | |
13717 | PyObject * obj0 = 0 ; | |
13718 | char *kwnames[] = { | |
13719 | (char *) "self", NULL | |
13720 | }; | |
13721 | ||
13722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
13723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13724 | { | |
13725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13726 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); | |
13727 | ||
13728 | wxPyEndAllowThreads(__tstate); | |
13729 | if (PyErr_Occurred()) SWIG_fail; | |
13730 | } | |
13731 | { | |
13732 | wxColour * resultptr; | |
13733 | resultptr = new wxColour((wxColour &) result); | |
13734 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
13735 | } | |
13736 | return resultobj; | |
13737 | fail: | |
13738 | return NULL; | |
13739 | } | |
13740 | ||
13741 | ||
13742 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13743 | PyObject *resultobj; | |
13744 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13745 | wxColour result; | |
13746 | PyObject * obj0 = 0 ; | |
13747 | char *kwnames[] = { | |
13748 | (char *) "self", NULL | |
13749 | }; | |
13750 | ||
13751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; | |
13752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13753 | { | |
13754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13755 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); | |
13756 | ||
13757 | wxPyEndAllowThreads(__tstate); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
13760 | { | |
13761 | wxColour * resultptr; | |
13762 | resultptr = new wxColour((wxColour &) result); | |
13763 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
13764 | } | |
13765 | return resultobj; | |
13766 | fail: | |
13767 | return NULL; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13772 | PyObject *resultobj; | |
13773 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13774 | wxColour *arg2 = 0 ; | |
13775 | wxColour temp2 ; | |
13776 | PyObject * obj0 = 0 ; | |
13777 | PyObject * obj1 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "self",(char *) "c", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
13783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13784 | { | |
13785 | arg2 = &temp2; | |
13786 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13787 | } | |
13788 | { | |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | Py_INCREF(Py_None); resultobj = Py_None; | |
13796 | return resultobj; | |
13797 | fail: | |
13798 | return NULL; | |
13799 | } | |
13800 | ||
13801 | ||
13802 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13803 | PyObject *resultobj; | |
13804 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13805 | wxColour *arg2 = 0 ; | |
13806 | wxColour temp2 ; | |
13807 | PyObject * obj0 = 0 ; | |
13808 | PyObject * obj1 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self",(char *) "c", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; | |
13814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13815 | { | |
13816 | arg2 = &temp2; | |
13817 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13818 | } | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | Py_INCREF(Py_None); resultobj = Py_None; | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13836 | wxString *arg2 = 0 ; | |
13837 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; | |
13838 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
13839 | bool temp2 = False ; | |
13840 | PyObject * obj0 = 0 ; | |
13841 | PyObject * obj1 = 0 ; | |
13842 | PyObject * obj2 = 0 ; | |
13843 | PyObject * obj3 = 0 ; | |
13844 | char *kwnames[] = { | |
13845 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL | |
13846 | }; | |
13847 | ||
13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13850 | { | |
13851 | arg2 = wxString_in_helper(obj1); | |
13852 | if (arg2 == NULL) SWIG_fail; | |
13853 | temp2 = True; | |
13854 | } | |
13855 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13856 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13857 | { | |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); | |
13860 | ||
13861 | wxPyEndAllowThreads(__tstate); | |
13862 | if (PyErr_Occurred()) SWIG_fail; | |
13863 | } | |
13864 | Py_INCREF(Py_None); resultobj = Py_None; | |
13865 | { | |
13866 | if (temp2) | |
13867 | delete arg2; | |
13868 | } | |
13869 | return resultobj; | |
13870 | fail: | |
13871 | { | |
13872 | if (temp2) | |
13873 | delete arg2; | |
13874 | } | |
13875 | return NULL; | |
13876 | } | |
13877 | ||
13878 | ||
13879 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13880 | PyObject *resultobj; | |
13881 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13882 | int arg2 ; | |
13883 | int arg3 ; | |
13884 | wxGridCellEditor *result; | |
13885 | PyObject * obj0 = 0 ; | |
13886 | PyObject * obj1 = 0 ; | |
13887 | PyObject * obj2 = 0 ; | |
13888 | char *kwnames[] = { | |
13889 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13890 | }; | |
13891 | ||
13892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13894 | { | |
13895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | { | |
13899 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | { | |
13910 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13911 | } | |
13912 | return resultobj; | |
13913 | fail: | |
13914 | return NULL; | |
13915 | } | |
13916 | ||
13917 | ||
13918 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13919 | PyObject *resultobj; | |
13920 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13921 | int arg2 ; | |
13922 | int arg3 ; | |
13923 | wxGridCellRenderer *result; | |
13924 | PyObject * obj0 = 0 ; | |
13925 | PyObject * obj1 = 0 ; | |
13926 | PyObject * obj2 = 0 ; | |
13927 | char *kwnames[] = { | |
13928 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13929 | }; | |
13930 | ||
13931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13933 | { | |
13934 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
13937 | { | |
13938 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13939 | if (PyErr_Occurred()) SWIG_fail; | |
13940 | } | |
13941 | { | |
13942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13943 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); | |
13944 | ||
13945 | wxPyEndAllowThreads(__tstate); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
13950 | } | |
13951 | return resultobj; | |
13952 | fail: | |
13953 | return NULL; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13958 | PyObject *resultobj; | |
13959 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13960 | wxString *arg2 = 0 ; | |
13961 | wxGridCellEditor *result; | |
13962 | bool temp2 = False ; | |
13963 | PyObject * obj0 = 0 ; | |
13964 | PyObject * obj1 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self",(char *) "typeName", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; | |
13970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13971 | { | |
13972 | arg2 = wxString_in_helper(obj1); | |
13973 | if (arg2 == NULL) SWIG_fail; | |
13974 | temp2 = True; | |
13975 | } | |
13976 | { | |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13978 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); | |
13979 | ||
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | { | |
13984 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13985 | } | |
13986 | { | |
13987 | if (temp2) | |
13988 | delete arg2; | |
13989 | } | |
13990 | return resultobj; | |
13991 | fail: | |
13992 | { | |
13993 | if (temp2) | |
13994 | delete arg2; | |
13995 | } | |
13996 | return NULL; | |
13997 | } | |
13998 | ||
13999 | ||
14000 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14001 | PyObject *resultobj; | |
14002 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14003 | wxString *arg2 = 0 ; | |
14004 | wxGridCellRenderer *result; | |
14005 | bool temp2 = False ; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | PyObject * obj1 = 0 ; | |
14008 | char *kwnames[] = { | |
14009 | (char *) "self",(char *) "typeName", NULL | |
14010 | }; | |
14011 | ||
14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; | |
14013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14014 | { | |
14015 | arg2 = wxString_in_helper(obj1); | |
14016 | if (arg2 == NULL) SWIG_fail; | |
14017 | temp2 = True; | |
14018 | } | |
14019 | { | |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
14026 | { | |
14027 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14028 | } | |
14029 | { | |
14030 | if (temp2) | |
14031 | delete arg2; | |
14032 | } | |
14033 | return resultobj; | |
14034 | fail: | |
14035 | { | |
14036 | if (temp2) | |
14037 | delete arg2; | |
14038 | } | |
14039 | return NULL; | |
14040 | } | |
14041 | ||
14042 | ||
14043 | static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14044 | PyObject *resultobj; | |
14045 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14046 | int arg2 ; | |
14047 | int arg3 ; | |
14048 | PyObject * obj0 = 0 ; | |
14049 | PyObject * obj1 = 0 ; | |
14050 | PyObject * obj2 = 0 ; | |
14051 | char *kwnames[] = { | |
14052 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL | |
14053 | }; | |
14054 | ||
14055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14057 | { | |
14058 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14059 | if (PyErr_Occurred()) SWIG_fail; | |
14060 | } | |
14061 | { | |
14062 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
14065 | { | |
14066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14067 | (arg1)->SetMargins(arg2,arg3); | |
14068 | ||
14069 | wxPyEndAllowThreads(__tstate); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
14072 | Py_INCREF(Py_None); resultobj = Py_None; | |
14073 | return resultobj; | |
14074 | fail: | |
14075 | return NULL; | |
14076 | } | |
14077 | ||
14078 | ||
14079 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14080 | PyObject *resultobj; | |
14081 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14082 | wxWindow *result; | |
14083 | PyObject * obj0 = 0 ; | |
14084 | char *kwnames[] = { | |
14085 | (char *) "self", NULL | |
14086 | }; | |
14087 | ||
14088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; | |
14089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | result = (wxWindow *)(arg1)->GetGridWindow(); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
14097 | { | |
14098 | resultobj = wxPyMake_wxObject(result); | |
14099 | } | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
14106 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14107 | PyObject *resultobj; | |
14108 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14109 | wxWindow *result; | |
14110 | PyObject * obj0 = 0 ; | |
14111 | char *kwnames[] = { | |
14112 | (char *) "self", NULL | |
14113 | }; | |
14114 | ||
14115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; | |
14116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14117 | { | |
14118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14119 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); | |
14120 | ||
14121 | wxPyEndAllowThreads(__tstate); | |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | } | |
14124 | { | |
14125 | resultobj = wxPyMake_wxObject(result); | |
14126 | } | |
14127 | return resultobj; | |
14128 | fail: | |
14129 | return NULL; | |
14130 | } | |
14131 | ||
14132 | ||
14133 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14134 | PyObject *resultobj; | |
14135 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14136 | wxWindow *result; | |
14137 | PyObject * obj0 = 0 ; | |
14138 | char *kwnames[] = { | |
14139 | (char *) "self", NULL | |
14140 | }; | |
14141 | ||
14142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; | |
14143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14144 | { | |
14145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14146 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); | |
14147 | ||
14148 | wxPyEndAllowThreads(__tstate); | |
14149 | if (PyErr_Occurred()) SWIG_fail; | |
14150 | } | |
14151 | { | |
14152 | resultobj = wxPyMake_wxObject(result); | |
14153 | } | |
14154 | return resultobj; | |
14155 | fail: | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
14160 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14161 | PyObject *resultobj; | |
14162 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14163 | wxWindow *result; | |
14164 | PyObject * obj0 = 0 ; | |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; | |
14170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14171 | { | |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
14178 | { | |
14179 | resultobj = wxPyMake_wxObject(result); | |
14180 | } | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject * Grid_swigregister(PyObject *self, PyObject *args) { | |
14188 | PyObject *obj; | |
14189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14190 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); | |
14191 | Py_INCREF(obj); | |
14192 | return Py_BuildValue((char *)""); | |
14193 | } | |
14194 | static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14195 | PyObject *resultobj; | |
14196 | int arg1 ; | |
14197 | wxEventType arg2 ; | |
14198 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14199 | int arg4 = (int) -1 ; | |
14200 | int arg5 = (int) -1 ; | |
14201 | int arg6 = (int) -1 ; | |
14202 | int arg7 = (int) -1 ; | |
14203 | bool arg8 = (bool) True ; | |
14204 | bool arg9 = (bool) False ; | |
14205 | bool arg10 = (bool) False ; | |
14206 | bool arg11 = (bool) False ; | |
14207 | bool arg12 = (bool) False ; | |
14208 | wxGridEvent *result; | |
14209 | PyObject * obj0 = 0 ; | |
14210 | PyObject * obj1 = 0 ; | |
14211 | PyObject * obj2 = 0 ; | |
14212 | PyObject * obj3 = 0 ; | |
14213 | PyObject * obj4 = 0 ; | |
14214 | PyObject * obj5 = 0 ; | |
14215 | PyObject * obj6 = 0 ; | |
14216 | PyObject * obj7 = 0 ; | |
14217 | PyObject * obj8 = 0 ; | |
14218 | PyObject * obj9 = 0 ; | |
14219 | PyObject * obj10 = 0 ; | |
14220 | PyObject * obj11 = 0 ; | |
14221 | char *kwnames[] = { | |
14222 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "x",(char *) "y",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOOO:new_GridEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; | |
14226 | { | |
14227 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14228 | if (PyErr_Occurred()) SWIG_fail; | |
14229 | } | |
14230 | { | |
14231 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14232 | if (PyErr_Occurred()) SWIG_fail; | |
14233 | } | |
14234 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14235 | if (obj3) { | |
14236 | { | |
14237 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | } | |
14240 | } | |
14241 | if (obj4) { | |
14242 | { | |
14243 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
14244 | if (PyErr_Occurred()) SWIG_fail; | |
14245 | } | |
14246 | } | |
14247 | if (obj5) { | |
14248 | { | |
14249 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
14250 | if (PyErr_Occurred()) SWIG_fail; | |
14251 | } | |
14252 | } | |
14253 | if (obj6) { | |
14254 | { | |
14255 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
14256 | if (PyErr_Occurred()) SWIG_fail; | |
14257 | } | |
14258 | } | |
14259 | if (obj7) { | |
14260 | { | |
14261 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); | |
14262 | if (PyErr_Occurred()) SWIG_fail; | |
14263 | } | |
14264 | } | |
14265 | if (obj8) { | |
14266 | { | |
14267 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); | |
14268 | if (PyErr_Occurred()) SWIG_fail; | |
14269 | } | |
14270 | } | |
14271 | if (obj9) { | |
14272 | { | |
14273 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); | |
14274 | if (PyErr_Occurred()) SWIG_fail; | |
14275 | } | |
14276 | } | |
14277 | if (obj10) { | |
14278 | { | |
14279 | arg11 = (bool) SWIG_PyObj_AsBool(obj10); | |
14280 | if (PyErr_Occurred()) SWIG_fail; | |
14281 | } | |
14282 | } | |
14283 | if (obj11) { | |
14284 | { | |
14285 | arg12 = (bool) SWIG_PyObj_AsBool(obj11); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | } | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1); | |
14297 | return resultobj; | |
14298 | fail: | |
14299 | return NULL; | |
14300 | } | |
14301 | ||
14302 | ||
14303 | static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14304 | PyObject *resultobj; | |
14305 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14306 | int result; | |
14307 | PyObject * obj0 = 0 ; | |
14308 | char *kwnames[] = { | |
14309 | (char *) "self", NULL | |
14310 | }; | |
14311 | ||
14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; | |
14313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14314 | { | |
14315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14316 | result = (int)(arg1)->GetRow(); | |
14317 | ||
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14322 | return resultobj; | |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
14328 | static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14329 | PyObject *resultobj; | |
14330 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14331 | int result; | |
14332 | PyObject * obj0 = 0 ; | |
14333 | char *kwnames[] = { | |
14334 | (char *) "self", NULL | |
14335 | }; | |
14336 | ||
14337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; | |
14338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14339 | { | |
14340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14341 | result = (int)(arg1)->GetCol(); | |
14342 | ||
14343 | wxPyEndAllowThreads(__tstate); | |
14344 | if (PyErr_Occurred()) SWIG_fail; | |
14345 | } | |
14346 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj; | |
14355 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14356 | wxPoint result; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14364 | { | |
14365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14366 | result = (arg1)->GetPosition(); | |
14367 | ||
14368 | wxPyEndAllowThreads(__tstate); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | } | |
14371 | { | |
14372 | wxPoint * resultptr; | |
14373 | resultptr = new wxPoint((wxPoint &) result); | |
14374 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14375 | } | |
14376 | return resultobj; | |
14377 | fail: | |
14378 | return NULL; | |
14379 | } | |
14380 | ||
14381 | ||
14382 | static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14383 | PyObject *resultobj; | |
14384 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14385 | bool result; | |
14386 | PyObject * obj0 = 0 ; | |
14387 | char *kwnames[] = { | |
14388 | (char *) "self", NULL | |
14389 | }; | |
14390 | ||
14391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; | |
14392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14393 | { | |
14394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14395 | result = (bool)(arg1)->Selecting(); | |
14396 | ||
14397 | wxPyEndAllowThreads(__tstate); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
14399 | } | |
14400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14401 | return resultobj; | |
14402 | fail: | |
14403 | return NULL; | |
14404 | } | |
14405 | ||
14406 | ||
14407 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14408 | PyObject *resultobj; | |
14409 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14410 | bool result; | |
14411 | PyObject * obj0 = 0 ; | |
14412 | char *kwnames[] = { | |
14413 | (char *) "self", NULL | |
14414 | }; | |
14415 | ||
14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14418 | { | |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14420 | result = (bool)(arg1)->ControlDown(); | |
14421 | ||
14422 | wxPyEndAllowThreads(__tstate); | |
14423 | if (PyErr_Occurred()) SWIG_fail; | |
14424 | } | |
14425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj; | |
14434 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14435 | bool result; | |
14436 | PyObject * obj0 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "self", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14443 | { | |
14444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14445 | result = (bool)(arg1)->MetaDown(); | |
14446 | ||
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
14450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14460 | bool result; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = (bool)(arg1)->ShiftDown(); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14485 | bool result; | |
14486 | PyObject * obj0 = 0 ; | |
14487 | char *kwnames[] = { | |
14488 | (char *) "self", NULL | |
14489 | }; | |
14490 | ||
14491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; | |
14492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (bool)(arg1)->AltDown(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) { | |
14508 | PyObject *obj; | |
14509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14510 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); | |
14511 | Py_INCREF(obj); | |
14512 | return Py_BuildValue((char *)""); | |
14513 | } | |
14514 | static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14515 | PyObject *resultobj; | |
14516 | int arg1 ; | |
14517 | wxEventType arg2 ; | |
14518 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14519 | int arg4 = (int) -1 ; | |
14520 | int arg5 = (int) -1 ; | |
14521 | int arg6 = (int) -1 ; | |
14522 | bool arg7 = (bool) False ; | |
14523 | bool arg8 = (bool) False ; | |
14524 | bool arg9 = (bool) False ; | |
14525 | bool arg10 = (bool) False ; | |
14526 | wxGridSizeEvent *result; | |
14527 | PyObject * obj0 = 0 ; | |
14528 | PyObject * obj1 = 0 ; | |
14529 | PyObject * obj2 = 0 ; | |
14530 | PyObject * obj3 = 0 ; | |
14531 | PyObject * obj4 = 0 ; | |
14532 | PyObject * obj5 = 0 ; | |
14533 | PyObject * obj6 = 0 ; | |
14534 | PyObject * obj7 = 0 ; | |
14535 | PyObject * obj8 = 0 ; | |
14536 | PyObject * obj9 = 0 ; | |
14537 | char *kwnames[] = { | |
14538 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14539 | }; | |
14540 | ||
14541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
14542 | { | |
14543 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14544 | if (PyErr_Occurred()) SWIG_fail; | |
14545 | } | |
14546 | { | |
14547 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14551 | if (obj3) { | |
14552 | { | |
14553 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14554 | if (PyErr_Occurred()) SWIG_fail; | |
14555 | } | |
14556 | } | |
14557 | if (obj4) { | |
14558 | { | |
14559 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
14560 | if (PyErr_Occurred()) SWIG_fail; | |
14561 | } | |
14562 | } | |
14563 | if (obj5) { | |
14564 | { | |
14565 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
14566 | if (PyErr_Occurred()) SWIG_fail; | |
14567 | } | |
14568 | } | |
14569 | if (obj6) { | |
14570 | { | |
14571 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); | |
14572 | if (PyErr_Occurred()) SWIG_fail; | |
14573 | } | |
14574 | } | |
14575 | if (obj7) { | |
14576 | { | |
14577 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
14580 | } | |
14581 | if (obj8) { | |
14582 | { | |
14583 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); | |
14584 | if (PyErr_Occurred()) SWIG_fail; | |
14585 | } | |
14586 | } | |
14587 | if (obj9) { | |
14588 | { | |
14589 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | } | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1); | |
14601 | return resultobj; | |
14602 | fail: | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14610 | int result; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | char *kwnames[] = { | |
14613 | (char *) "self", NULL | |
14614 | }; | |
14615 | ||
14616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; | |
14617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14618 | { | |
14619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14620 | result = (int)(arg1)->GetRowOrCol(); | |
14621 | ||
14622 | wxPyEndAllowThreads(__tstate); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
14625 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14635 | wxPoint result; | |
14636 | PyObject * obj0 = 0 ; | |
14637 | char *kwnames[] = { | |
14638 | (char *) "self", NULL | |
14639 | }; | |
14640 | ||
14641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14643 | { | |
14644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14645 | result = (arg1)->GetPosition(); | |
14646 | ||
14647 | wxPyEndAllowThreads(__tstate); | |
14648 | if (PyErr_Occurred()) SWIG_fail; | |
14649 | } | |
14650 | { | |
14651 | wxPoint * resultptr; | |
14652 | resultptr = new wxPoint((wxPoint &) result); | |
14653 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14654 | } | |
14655 | return resultobj; | |
14656 | fail: | |
14657 | return NULL; | |
14658 | } | |
14659 | ||
14660 | ||
14661 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14662 | PyObject *resultobj; | |
14663 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14664 | bool result; | |
14665 | PyObject * obj0 = 0 ; | |
14666 | char *kwnames[] = { | |
14667 | (char *) "self", NULL | |
14668 | }; | |
14669 | ||
14670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14672 | { | |
14673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14674 | result = (bool)(arg1)->ControlDown(); | |
14675 | ||
14676 | wxPyEndAllowThreads(__tstate); | |
14677 | if (PyErr_Occurred()) SWIG_fail; | |
14678 | } | |
14679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14680 | return resultobj; | |
14681 | fail: | |
14682 | return NULL; | |
14683 | } | |
14684 | ||
14685 | ||
14686 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14687 | PyObject *resultobj; | |
14688 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14689 | bool result; | |
14690 | PyObject * obj0 = 0 ; | |
14691 | char *kwnames[] = { | |
14692 | (char *) "self", NULL | |
14693 | }; | |
14694 | ||
14695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14697 | { | |
14698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14699 | result = (bool)(arg1)->MetaDown(); | |
14700 | ||
14701 | wxPyEndAllowThreads(__tstate); | |
14702 | if (PyErr_Occurred()) SWIG_fail; | |
14703 | } | |
14704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | return NULL; | |
14708 | } | |
14709 | ||
14710 | ||
14711 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14712 | PyObject *resultobj; | |
14713 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14714 | bool result; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | char *kwnames[] = { | |
14717 | (char *) "self", NULL | |
14718 | }; | |
14719 | ||
14720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14722 | { | |
14723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14724 | result = (bool)(arg1)->ShiftDown(); | |
14725 | ||
14726 | wxPyEndAllowThreads(__tstate); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | } | |
14729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14730 | return resultobj; | |
14731 | fail: | |
14732 | return NULL; | |
14733 | } | |
14734 | ||
14735 | ||
14736 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14737 | PyObject *resultobj; | |
14738 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14739 | bool result; | |
14740 | PyObject * obj0 = 0 ; | |
14741 | char *kwnames[] = { | |
14742 | (char *) "self", NULL | |
14743 | }; | |
14744 | ||
14745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; | |
14746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14747 | { | |
14748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14749 | result = (bool)(arg1)->AltDown(); | |
14750 | ||
14751 | wxPyEndAllowThreads(__tstate); | |
14752 | if (PyErr_Occurred()) SWIG_fail; | |
14753 | } | |
14754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14755 | return resultobj; | |
14756 | fail: | |
14757 | return NULL; | |
14758 | } | |
14759 | ||
14760 | ||
14761 | static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14762 | PyObject *obj; | |
14763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14764 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); | |
14765 | Py_INCREF(obj); | |
14766 | return Py_BuildValue((char *)""); | |
14767 | } | |
14768 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | int arg1 ; | |
14771 | wxEventType arg2 ; | |
14772 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14773 | wxGridCellCoords *arg4 = 0 ; | |
14774 | wxGridCellCoords *arg5 = 0 ; | |
14775 | bool arg6 = (bool) True ; | |
14776 | bool arg7 = (bool) False ; | |
14777 | bool arg8 = (bool) False ; | |
14778 | bool arg9 = (bool) False ; | |
14779 | bool arg10 = (bool) False ; | |
14780 | wxGridRangeSelectEvent *result; | |
14781 | wxGridCellCoords temp4 ; | |
14782 | wxGridCellCoords temp5 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | PyObject * obj2 = 0 ; | |
14786 | PyObject * obj3 = 0 ; | |
14787 | PyObject * obj4 = 0 ; | |
14788 | PyObject * obj5 = 0 ; | |
14789 | PyObject * obj6 = 0 ; | |
14790 | PyObject * obj7 = 0 ; | |
14791 | PyObject * obj8 = 0 ; | |
14792 | PyObject * obj9 = 0 ; | |
14793 | char *kwnames[] = { | |
14794 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14795 | }; | |
14796 | ||
14797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
14798 | { | |
14799 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | { | |
14803 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14804 | if (PyErr_Occurred()) SWIG_fail; | |
14805 | } | |
14806 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14807 | { | |
14808 | arg4 = &temp4; | |
14809 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; | |
14810 | } | |
14811 | { | |
14812 | arg5 = &temp5; | |
14813 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; | |
14814 | } | |
14815 | if (obj5) { | |
14816 | { | |
14817 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
14818 | if (PyErr_Occurred()) SWIG_fail; | |
14819 | } | |
14820 | } | |
14821 | if (obj6) { | |
14822 | { | |
14823 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); | |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
14825 | } | |
14826 | } | |
14827 | if (obj7) { | |
14828 | { | |
14829 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); | |
14830 | if (PyErr_Occurred()) SWIG_fail; | |
14831 | } | |
14832 | } | |
14833 | if (obj8) { | |
14834 | { | |
14835 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
14838 | } | |
14839 | if (obj9) { | |
14840 | { | |
14841 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); | |
14842 | if (PyErr_Occurred()) SWIG_fail; | |
14843 | } | |
14844 | } | |
14845 | { | |
14846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14847 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); | |
14848 | ||
14849 | wxPyEndAllowThreads(__tstate); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1); | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14862 | wxGridCellCoords result; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | char *kwnames[] = { | |
14865 | (char *) "self", NULL | |
14866 | }; | |
14867 | ||
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; | |
14869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14870 | { | |
14871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14872 | result = (arg1)->GetTopLeftCoords(); | |
14873 | ||
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | { | |
14878 | wxGridCellCoords * resultptr; | |
14879 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
14880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
14881 | } | |
14882 | return resultobj; | |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
14888 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14889 | PyObject *resultobj; | |
14890 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14891 | wxGridCellCoords result; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; | |
14898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (arg1)->GetBottomRightCoords(); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | { | |
14907 | wxGridCellCoords * resultptr; | |
14908 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
14909 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
14910 | } | |
14911 | return resultobj; | |
14912 | fail: | |
14913 | return NULL; | |
14914 | } | |
14915 | ||
14916 | ||
14917 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14918 | PyObject *resultobj; | |
14919 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14920 | int result; | |
14921 | PyObject * obj0 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; | |
14927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14928 | { | |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | result = (int)(arg1)->GetTopRow(); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
14935 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14936 | return resultobj; | |
14937 | fail: | |
14938 | return NULL; | |
14939 | } | |
14940 | ||
14941 | ||
14942 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14943 | PyObject *resultobj; | |
14944 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14945 | int result; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14953 | { | |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14955 | result = (int)(arg1)->GetBottomRow(); | |
14956 | ||
14957 | wxPyEndAllowThreads(__tstate); | |
14958 | if (PyErr_Occurred()) SWIG_fail; | |
14959 | } | |
14960 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14961 | return resultobj; | |
14962 | fail: | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj; | |
14969 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14970 | int result; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | char *kwnames[] = { | |
14973 | (char *) "self", NULL | |
14974 | }; | |
14975 | ||
14976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; | |
14977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14978 | { | |
14979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14980 | result = (int)(arg1)->GetLeftCol(); | |
14981 | ||
14982 | wxPyEndAllowThreads(__tstate); | |
14983 | if (PyErr_Occurred()) SWIG_fail; | |
14984 | } | |
14985 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14986 | return resultobj; | |
14987 | fail: | |
14988 | return NULL; | |
14989 | } | |
14990 | ||
14991 | ||
14992 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14993 | PyObject *resultobj; | |
14994 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14995 | int result; | |
14996 | PyObject * obj0 = 0 ; | |
14997 | char *kwnames[] = { | |
14998 | (char *) "self", NULL | |
14999 | }; | |
15000 | ||
15001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; | |
15002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15003 | { | |
15004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15005 | result = (int)(arg1)->GetRightCol(); | |
15006 | ||
15007 | wxPyEndAllowThreads(__tstate); | |
15008 | if (PyErr_Occurred()) SWIG_fail; | |
15009 | } | |
15010 | resultobj = SWIG_PyObj_FromInt((int)result); | |
15011 | return resultobj; | |
15012 | fail: | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
15017 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15018 | PyObject *resultobj; | |
15019 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15020 | bool result; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | result = (bool)(arg1)->Selecting(); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15036 | return resultobj; | |
15037 | fail: | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15045 | bool result; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | char *kwnames[] = { | |
15048 | (char *) "self", NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (bool)(arg1)->ControlDown(); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15070 | bool result; | |
15071 | PyObject * obj0 = 0 ; | |
15072 | char *kwnames[] = { | |
15073 | (char *) "self", NULL | |
15074 | }; | |
15075 | ||
15076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15078 | { | |
15079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15080 | result = (bool)(arg1)->MetaDown(); | |
15081 | ||
15082 | wxPyEndAllowThreads(__tstate); | |
15083 | if (PyErr_Occurred()) SWIG_fail; | |
15084 | } | |
15085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15086 | return resultobj; | |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
15092 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15095 | bool result; | |
15096 | PyObject * obj0 = 0 ; | |
15097 | char *kwnames[] = { | |
15098 | (char *) "self", NULL | |
15099 | }; | |
15100 | ||
15101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = (bool)(arg1)->ShiftDown(); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj; | |
15119 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15120 | bool result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; | |
15127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15128 | { | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | result = (bool)(arg1)->AltDown(); | |
15131 | ||
15132 | wxPyEndAllowThreads(__tstate); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
15134 | } | |
15135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15136 | return resultobj; | |
15137 | fail: | |
15138 | return NULL; | |
15139 | } | |
15140 | ||
15141 | ||
15142 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) { | |
15143 | PyObject *obj; | |
15144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15145 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); | |
15146 | Py_INCREF(obj); | |
15147 | return Py_BuildValue((char *)""); | |
15148 | } | |
15149 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15150 | PyObject *resultobj; | |
15151 | int arg1 ; | |
15152 | wxEventType arg2 ; | |
15153 | wxObject *arg3 = (wxObject *) 0 ; | |
15154 | int arg4 ; | |
15155 | int arg5 ; | |
15156 | wxControl *arg6 = (wxControl *) 0 ; | |
15157 | wxGridEditorCreatedEvent *result; | |
15158 | PyObject * obj0 = 0 ; | |
15159 | PyObject * obj1 = 0 ; | |
15160 | PyObject * obj2 = 0 ; | |
15161 | PyObject * obj3 = 0 ; | |
15162 | PyObject * obj4 = 0 ; | |
15163 | PyObject * obj5 = 0 ; | |
15164 | char *kwnames[] = { | |
15165 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL | |
15166 | }; | |
15167 | ||
15168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15169 | { | |
15170 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15171 | if (PyErr_Occurred()) SWIG_fail; | |
15172 | } | |
15173 | { | |
15174 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
15177 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15178 | { | |
15179 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
15182 | { | |
15183 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15184 | if (PyErr_Occurred()) SWIG_fail; | |
15185 | } | |
15186 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15187 | { | |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15189 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); | |
15190 | ||
15191 | wxPyEndAllowThreads(__tstate); | |
15192 | if (PyErr_Occurred()) SWIG_fail; | |
15193 | } | |
15194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1); | |
15195 | return resultobj; | |
15196 | fail: | |
15197 | return NULL; | |
15198 | } | |
15199 | ||
15200 | ||
15201 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15204 | int result; | |
15205 | PyObject * obj0 = 0 ; | |
15206 | char *kwnames[] = { | |
15207 | (char *) "self", NULL | |
15208 | }; | |
15209 | ||
15210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; | |
15211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15212 | { | |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15214 | result = (int)(arg1)->GetRow(); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
15217 | if (PyErr_Occurred()) SWIG_fail; | |
15218 | } | |
15219 | resultobj = SWIG_PyObj_FromInt((int)result); | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
15226 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15227 | PyObject *resultobj; | |
15228 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15229 | int result; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | char *kwnames[] = { | |
15232 | (char *) "self", NULL | |
15233 | }; | |
15234 | ||
15235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; | |
15236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15237 | { | |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (int)(arg1)->GetCol(); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
15244 | resultobj = SWIG_PyObj_FromInt((int)result); | |
15245 | return resultobj; | |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
15251 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15252 | PyObject *resultobj; | |
15253 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15254 | wxControl *result; | |
15255 | PyObject * obj0 = 0 ; | |
15256 | char *kwnames[] = { | |
15257 | (char *) "self", NULL | |
15258 | }; | |
15259 | ||
15260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; | |
15261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15262 | { | |
15263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15264 | result = (wxControl *)(arg1)->GetControl(); | |
15265 | ||
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15269 | { | |
15270 | resultobj = wxPyMake_wxObject(result); | |
15271 | } | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15279 | PyObject *resultobj; | |
15280 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15281 | int arg2 ; | |
15282 | PyObject * obj0 = 0 ; | |
15283 | PyObject * obj1 = 0 ; | |
15284 | char *kwnames[] = { | |
15285 | (char *) "self",(char *) "row", NULL | |
15286 | }; | |
15287 | ||
15288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
15289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15290 | { | |
15291 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15292 | if (PyErr_Occurred()) SWIG_fail; | |
15293 | } | |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | (arg1)->SetRow(arg2); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | Py_INCREF(Py_None); resultobj = Py_None; | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | return NULL; | |
15305 | } | |
15306 | ||
15307 | ||
15308 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15309 | PyObject *resultobj; | |
15310 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15311 | int arg2 ; | |
15312 | PyObject * obj0 = 0 ; | |
15313 | PyObject * obj1 = 0 ; | |
15314 | char *kwnames[] = { | |
15315 | (char *) "self",(char *) "col", NULL | |
15316 | }; | |
15317 | ||
15318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
15319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15320 | { | |
15321 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | { | |
15325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15326 | (arg1)->SetCol(arg2); | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | } | |
15331 | Py_INCREF(Py_None); resultobj = Py_None; | |
15332 | return resultobj; | |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
15338 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15339 | PyObject *resultobj; | |
15340 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15341 | wxControl *arg2 = (wxControl *) 0 ; | |
15342 | PyObject * obj0 = 0 ; | |
15343 | PyObject * obj1 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "self",(char *) "ctrl", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
15349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15351 | { | |
15352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15353 | (arg1)->SetControl(arg2); | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
15358 | Py_INCREF(Py_None); resultobj = Py_None; | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
15365 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) { | |
15366 | PyObject *obj; | |
15367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15368 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); | |
15369 | Py_INCREF(obj); | |
15370 | return Py_BuildValue((char *)""); | |
15371 | } | |
15372 | static PyMethodDef SwigMethods[] = { | |
15373 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15374 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15375 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15376 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15377 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS }, | |
15378 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
15379 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15380 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS }, | |
15381 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15382 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15383 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15384 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS }, | |
15385 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15386 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS }, | |
15387 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15388 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS }, | |
15389 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15390 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15391 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15392 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15393 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15394 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS }, | |
15395 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15396 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS }, | |
15397 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15398 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS }, | |
15399 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15400 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS }, | |
15401 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15402 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS }, | |
15403 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15404 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS }, | |
15405 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15406 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15407 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15408 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15409 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15410 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15411 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15412 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS }, | |
15413 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS }, | |
15414 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS }, | |
15415 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS }, | |
15416 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15417 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15418 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS }, | |
15419 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15420 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15421 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15422 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15423 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15424 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15425 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS }, | |
15426 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15427 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15428 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15429 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS }, | |
15430 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15431 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15432 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15433 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15434 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15435 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15436 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15437 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS }, | |
15438 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS }, | |
15439 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15440 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS }, | |
15441 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS }, | |
15442 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15443 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS }, | |
15444 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS }, | |
15445 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15446 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS }, | |
15447 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS }, | |
15448 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15449 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS }, | |
15450 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS }, | |
15451 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15452 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS }, | |
15453 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS }, | |
15454 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15455 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS }, | |
15456 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS }, | |
15457 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15458 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS }, | |
15459 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15460 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15461 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15462 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS }, | |
15463 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15464 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15465 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15466 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15467 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
15468 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15469 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15470 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15471 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15472 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15473 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15474 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
15475 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15476 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15477 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
15478 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15479 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15480 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS }, | |
15481 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS }, | |
15482 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS }, | |
15483 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15484 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15485 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
15486 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15487 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
15488 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15489 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15490 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15491 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15492 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS }, | |
15493 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS }, | |
15494 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15495 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15496 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15497 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15498 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15499 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15500 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS }, | |
15501 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS }, | |
15502 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS }, | |
15503 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15504 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15505 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15506 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15507 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15508 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15509 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS }, | |
15510 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15511 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15512 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15513 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS }, | |
15514 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS }, | |
15515 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15516 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15517 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS }, | |
15518 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15519 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
15520 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15521 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15522 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15523 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15524 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15525 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15526 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15527 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15528 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15529 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15530 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15531 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15532 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15533 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15534 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15535 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15536 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15537 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15538 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15539 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15540 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15541 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15542 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15543 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15544 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15545 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS }, | |
15546 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS }, | |
15547 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15548 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15549 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15550 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15551 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15552 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15553 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15554 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15555 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15556 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15557 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15558 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15559 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15560 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15561 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15562 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15563 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15564 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15565 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15566 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15567 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15568 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS }, | |
15569 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS }, | |
15570 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS }, | |
15571 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15572 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15573 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15574 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15575 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS }, | |
15576 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS }, | |
15577 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15578 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15579 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15580 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15581 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS }, | |
15582 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15583 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15584 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15585 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15586 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15587 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15588 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS }, | |
15589 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15590 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15591 | { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
15592 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS }, | |
15593 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS }, | |
15594 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS }, | |
15595 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15596 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15597 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15598 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15599 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15600 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS }, | |
15601 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS }, | |
15602 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS }, | |
15603 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15604 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15605 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15606 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15607 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15608 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15609 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS }, | |
15610 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS }, | |
15611 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS }, | |
15612 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS }, | |
15613 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS }, | |
15614 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS }, | |
15615 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS }, | |
15616 | { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
15617 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
15618 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS }, | |
15619 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15620 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15621 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS }, | |
15622 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15623 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS }, | |
15624 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15625 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15626 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15627 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS }, | |
15628 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS }, | |
15629 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS }, | |
15630 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS }, | |
15631 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS }, | |
15632 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS }, | |
15633 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS }, | |
15634 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS }, | |
15635 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS }, | |
15636 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
15637 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS }, | |
15638 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS }, | |
15639 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS }, | |
15640 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS }, | |
15641 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS }, | |
15642 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS }, | |
15643 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS }, | |
15644 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS }, | |
15645 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS }, | |
15646 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS }, | |
15647 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS }, | |
15648 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS }, | |
15649 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15650 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15651 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15652 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15653 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15654 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15655 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15656 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15657 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15658 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15659 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15660 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15661 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15662 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15663 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15664 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15665 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15666 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15667 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15668 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15669 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15670 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15671 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15672 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15673 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15674 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15675 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15676 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15677 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15678 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15679 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15680 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15681 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15682 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15683 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15684 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15685 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15686 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15687 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15688 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15689 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15690 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15691 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS }, | |
15692 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS }, | |
15693 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS }, | |
15694 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS }, | |
15695 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS }, | |
15696 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15697 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15698 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15699 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15700 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15701 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15702 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15703 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15704 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15705 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15706 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15707 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15708 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15709 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15710 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15711 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15712 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15713 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15714 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15715 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15716 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS }, | |
15717 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS }, | |
15718 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS }, | |
15719 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS }, | |
15720 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS }, | |
15721 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15722 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15723 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS }, | |
15724 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS }, | |
15725 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15726 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15727 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15728 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15729 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15730 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15731 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15732 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15733 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15734 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15735 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15736 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15737 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15738 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15739 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15740 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15741 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15742 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15743 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15744 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15745 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15746 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15747 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15748 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15749 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15750 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15751 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15752 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS }, | |
15753 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS }, | |
15754 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS }, | |
15755 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
15756 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
15757 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS }, | |
15758 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS }, | |
15759 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS }, | |
15760 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
15761 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
15762 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS }, | |
15763 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS }, | |
15764 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS }, | |
15765 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS }, | |
15766 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS }, | |
15767 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS }, | |
15768 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15769 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15770 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15771 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15772 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS }, | |
15773 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS }, | |
15774 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS }, | |
15775 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS }, | |
15776 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS }, | |
15777 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
15778 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS }, | |
15779 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15780 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15781 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15782 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS }, | |
15783 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS }, | |
15784 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15785 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15786 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15787 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15788 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15789 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15790 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15791 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15792 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS }, | |
15793 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
15794 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS }, | |
15795 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15796 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15797 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15798 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15799 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15800 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS }, | |
15801 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS }, | |
15802 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS }, | |
15803 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS }, | |
15804 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS }, | |
15805 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS }, | |
15806 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS }, | |
15807 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS }, | |
15808 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15809 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15810 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15811 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15812 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15813 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS }, | |
15814 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS }, | |
15815 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15816 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15817 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15818 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15819 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15820 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15821 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS }, | |
15822 | { NULL, NULL } | |
15823 | }; | |
15824 | ||
15825 | ||
15826 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
15827 | ||
15828 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { | |
15829 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); | |
15830 | } | |
15831 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15832 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); | |
15833 | } | |
15834 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { | |
15835 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15836 | } | |
15837 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { | |
15838 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15839 | } | |
15840 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { | |
15841 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); | |
15842 | } | |
15843 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { | |
15844 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15845 | } | |
15846 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { | |
15847 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15848 | } | |
15849 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15850 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15851 | } | |
15852 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15853 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15854 | } | |
15855 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15856 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15857 | } | |
15858 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15859 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15860 | } | |
15861 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15862 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15863 | } | |
15864 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15865 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15866 | } | |
15867 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
15868 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
15869 | } | |
15870 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
15871 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
15872 | } | |
15873 | static void *_p_wxGridTo_p_wxPanel(void *x) { | |
15874 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); | |
15875 | } | |
15876 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
15877 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
15878 | } | |
15879 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
15880 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
15881 | } | |
15882 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
15883 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
15884 | } | |
15885 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
15886 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15887 | } | |
15888 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
15889 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
15890 | } | |
15891 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
15892 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
15893 | } | |
15894 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { | |
15895 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
15896 | } | |
15897 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { | |
15898 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
15899 | } | |
15900 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
15901 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
15902 | } | |
15903 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { | |
15904 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); | |
15905 | } | |
15906 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { | |
15907 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); | |
15908 | } | |
15909 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
15910 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15911 | } | |
15912 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
15913 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
15914 | } | |
15915 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
15916 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
15917 | } | |
15918 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
15919 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
15920 | } | |
15921 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
15922 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
15923 | } | |
15924 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
15925 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
15926 | } | |
15927 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
15928 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
15929 | } | |
15930 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
15931 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
15932 | } | |
15933 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
15934 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
15935 | } | |
15936 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
15937 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
15938 | } | |
15939 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
15940 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
15941 | } | |
15942 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
15943 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
15944 | } | |
15945 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
15946 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
15947 | } | |
15948 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
15949 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
15950 | } | |
15951 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
15952 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
15953 | } | |
15954 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
15955 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
15956 | } | |
15957 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
15958 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
15959 | } | |
15960 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
15961 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
15962 | } | |
15963 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
15964 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
15965 | } | |
15966 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
15967 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
15968 | } | |
15969 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
15970 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
15971 | } | |
15972 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
15973 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
15974 | } | |
15975 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
15976 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
15977 | } | |
15978 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
15979 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
15980 | } | |
15981 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
15982 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
15983 | } | |
15984 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
15985 | return (void *)((wxWindow *) ((wxControl *) x)); | |
15986 | } | |
15987 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
15988 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
15989 | } | |
15990 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
15991 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
15992 | } | |
15993 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
15994 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
15995 | } | |
15996 | static void *_p_wxGridTo_p_wxWindow(void *x) { | |
15997 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
15998 | } | |
15999 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
16000 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
16001 | } | |
16002 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
16003 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
16004 | } | |
16005 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
16006 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16007 | } | |
16008 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
16009 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16010 | } | |
16011 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
16012 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16013 | } | |
16014 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
16015 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
16016 | } | |
16017 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
16018 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16019 | } | |
16020 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
16021 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
16022 | } | |
16023 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
16024 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16025 | } | |
16026 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
16027 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16028 | } | |
16029 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
16030 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16031 | } | |
16032 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
16033 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
16034 | } | |
16035 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
16036 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16037 | } | |
16038 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
16039 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16040 | } | |
16041 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
16042 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16043 | } | |
16044 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
16045 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
16046 | } | |
16047 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
16048 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16049 | } | |
16050 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
16051 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
16052 | } | |
16053 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
16054 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
16055 | } | |
16056 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
16057 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
16058 | } | |
16059 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
16060 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
16061 | } | |
16062 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
16063 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
16064 | } | |
16065 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
16066 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16067 | } | |
16068 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
16069 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
16070 | } | |
16071 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
16072 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
16073 | } | |
16074 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
16075 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16076 | } | |
16077 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
16078 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
16079 | } | |
16080 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
16081 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16082 | } | |
16083 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
16084 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16085 | } | |
16086 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { | |
16087 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16088 | } | |
16089 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
16090 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
16091 | } | |
16092 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
16093 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16094 | } | |
16095 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
16096 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16097 | } | |
16098 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
16099 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
16100 | } | |
16101 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
16102 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
16103 | } | |
16104 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
16105 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
16106 | } | |
16107 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
16108 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
16109 | } | |
16110 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
16111 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
16112 | } | |
16113 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { | |
16114 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16115 | } | |
16116 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
16117 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
16118 | } | |
16119 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
16120 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
16121 | } | |
16122 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
16123 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16124 | } | |
16125 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
16126 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16127 | } | |
16128 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
16129 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16130 | } | |
16131 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
16132 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16133 | } | |
16134 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
16135 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16136 | } | |
16137 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { | |
16138 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16139 | } | |
16140 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { | |
16141 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16142 | } | |
16143 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
16144 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
16145 | } | |
16146 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
16147 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
16148 | } | |
16149 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
16150 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16151 | } | |
16152 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
16153 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
16154 | } | |
16155 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
16156 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16157 | } | |
16158 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
16159 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
16160 | } | |
16161 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
16162 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
16163 | } | |
16164 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
16165 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16166 | } | |
16167 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
16168 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16169 | } | |
16170 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
16171 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16172 | } | |
16173 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
16174 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
16175 | } | |
16176 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
16177 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
16178 | } | |
16179 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
16180 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16181 | } | |
16182 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
16183 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16184 | } | |
16185 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
16186 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16187 | } | |
16188 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
16189 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16190 | } | |
16191 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
16192 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16193 | } | |
16194 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16195 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16196 | } | |
16197 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16198 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16199 | } | |
16200 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16201 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16202 | } | |
16203 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16204 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16205 | } | |
16206 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16207 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16208 | } | |
16209 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16210 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16211 | } | |
16212 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16213 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16214 | } | |
16215 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16216 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16217 | } | |
16218 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16219 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16220 | } | |
16221 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
16222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16223 | } | |
16224 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16225 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16226 | } | |
16227 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
16228 | return (void *)((wxObject *) ((wxFontData *) x)); | |
16229 | } | |
16230 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
16231 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
16232 | } | |
16233 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16234 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16235 | } | |
16236 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16237 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16238 | } | |
16239 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16240 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16241 | } | |
16242 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
16243 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
16244 | } | |
16245 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
16246 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16247 | } | |
16248 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
16249 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16250 | } | |
16251 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { | |
16252 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); | |
16253 | } | |
16254 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16255 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16256 | } | |
16257 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16258 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16259 | } | |
16260 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16261 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16262 | } | |
16263 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16264 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16265 | } | |
16266 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16267 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16268 | } | |
16269 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16270 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16271 | } | |
16272 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
16273 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16274 | } | |
16275 | static void *_p_wxGridEventTo_p_wxObject(void *x) { | |
16276 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16277 | } | |
16278 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { | |
16279 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16280 | } | |
16281 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16282 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16283 | } | |
16284 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16285 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16286 | } | |
16287 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
16288 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16289 | } | |
16290 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16291 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16292 | } | |
16293 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
16294 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
16295 | } | |
16296 | static void *_p_wxGridTo_p_wxObject(void *x) { | |
16297 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16298 | } | |
16299 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16300 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16301 | } | |
16302 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
16303 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16304 | } | |
16305 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
16306 | return (void *)((wxObject *) ((wxColourData *) x)); | |
16307 | } | |
16308 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16309 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16310 | } | |
16311 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16312 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16313 | } | |
16314 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
16315 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
16316 | } | |
16317 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
16318 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16319 | } | |
16320 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
16321 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16322 | } | |
16323 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
16324 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16325 | } | |
16326 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
16327 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16328 | } | |
16329 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
16330 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16331 | } | |
16332 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
16333 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16334 | } | |
16335 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
16336 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16337 | } | |
16338 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
16339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16340 | } | |
16341 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
16342 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
16343 | } | |
16344 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
16345 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
16346 | } | |
16347 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
16348 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
16349 | } | |
16350 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
16351 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
16352 | } | |
16353 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
16354 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16355 | } | |
16356 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
16357 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16358 | } | |
16359 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
16360 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
16361 | } | |
16362 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
16363 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
16364 | } | |
16365 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
16366 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
16367 | } | |
16368 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
16369 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
16370 | } | |
16371 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
16372 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
16373 | } | |
16374 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { | |
16375 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16376 | } | |
16377 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
16378 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
16379 | } | |
16380 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
16381 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
16382 | } | |
16383 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
16384 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
16385 | } | |
16386 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
16387 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
16388 | } | |
16389 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
16390 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
16391 | } | |
16392 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
16393 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
16394 | } | |
16395 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
16396 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
16397 | } | |
16398 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
16399 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
16400 | } | |
16401 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
16402 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
16403 | } | |
16404 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
16405 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
16406 | } | |
16407 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
16408 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
16409 | } | |
16410 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
16411 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
16412 | } | |
16413 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
16414 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
16415 | } | |
16416 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
16417 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16418 | } | |
16419 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { | |
16420 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16421 | } | |
16422 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
16423 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16424 | } | |
16425 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
16426 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16427 | } | |
16428 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
16429 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
16430 | } | |
16431 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
16432 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16433 | } | |
16434 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
16435 | return (void *)((wxObject *) ((wxImage *) x)); | |
16436 | } | |
16437 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
16438 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16439 | } | |
16440 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
16441 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
16442 | } | |
16443 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
16444 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
16445 | } | |
16446 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
16447 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16448 | } | |
16449 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
16450 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
16451 | } | |
16452 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
16453 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16454 | } | |
16455 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
16456 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16457 | } | |
16458 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
16459 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16460 | } | |
16461 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
16462 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
16463 | } | |
16464 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
16465 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
16466 | } | |
16467 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
16468 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
16469 | } | |
16470 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
16471 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
16472 | } | |
16473 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
16474 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16475 | } | |
16476 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
16477 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
16478 | } | |
16479 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
16480 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
16481 | } | |
16482 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
16483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
16484 | } | |
16485 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
16486 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
16487 | } | |
16488 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
16489 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16490 | } | |
16491 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
16492 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
16493 | } | |
16494 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
16495 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16496 | } | |
16497 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
16498 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16499 | } | |
16500 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
16501 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16502 | } | |
16503 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
16504 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
16505 | } | |
16506 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
16507 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
16508 | } | |
16509 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
16510 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
16511 | } | |
16512 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
16513 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
16514 | } | |
16515 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
16516 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
16517 | } | |
16518 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
16519 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16520 | } | |
16521 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
16522 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16523 | } | |
16524 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
16525 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16526 | } | |
16527 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
16528 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16529 | } | |
16530 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
16531 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16532 | } | |
16533 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
16534 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16535 | } | |
16536 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
16537 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
16538 | } | |
16539 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
16540 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16541 | } | |
16542 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
16543 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
16544 | } | |
16545 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
16546 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
16547 | } | |
16548 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
16549 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
16550 | } | |
16551 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
16552 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
16553 | } | |
16554 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
16555 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
16556 | } | |
16557 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { | |
16558 | return (void *)((wxObject *) ((wxGridTableBase *) x)); | |
16559 | } | |
16560 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { | |
16561 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16562 | } | |
16563 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
16564 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16565 | } | |
16566 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
16567 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
16568 | } | |
16569 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
16570 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16571 | } | |
16572 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
16573 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16574 | } | |
16575 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
16576 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
16577 | } | |
16578 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
16579 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
16580 | } | |
16581 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
16582 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16583 | } | |
16584 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
16585 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16586 | } | |
16587 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
16588 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
16589 | } | |
16590 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
16591 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
16592 | } | |
16593 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
16594 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
16595 | } | |
16596 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
16597 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
16598 | } | |
16599 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
16600 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16601 | } | |
16602 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
16603 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16604 | } | |
16605 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
16606 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16607 | } | |
16608 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
16609 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
16610 | } | |
16611 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
16612 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
16613 | } | |
16614 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
16615 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
16616 | } | |
16617 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
16618 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
16619 | } | |
16620 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
16621 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16622 | } | |
16623 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16624 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16625 | } | |
16626 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16627 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16628 | } | |
16629 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
16630 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16631 | } | |
16632 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
16633 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16634 | } | |
16635 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
16636 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16637 | } | |
16638 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
16639 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16640 | } | |
16641 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
16642 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
16643 | } | |
16644 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
16645 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
16646 | } | |
16647 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16648 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16649 | } | |
16650 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
16651 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16652 | } | |
16653 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
16654 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16655 | } | |
16656 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
16657 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
16658 | } | |
16659 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
16660 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16661 | } | |
16662 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
16663 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
16664 | } | |
16665 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
16666 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
16667 | } | |
16668 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
16669 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
16670 | } | |
16671 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
16672 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
16673 | } | |
16674 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16675 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16676 | } | |
16677 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
16678 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
16679 | } | |
16680 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
16681 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
16682 | } | |
16683 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
16684 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
16685 | } | |
16686 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16687 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16688 | } | |
16689 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16690 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16691 | } | |
16692 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
16693 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16694 | } | |
16695 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
16696 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
16697 | } | |
16698 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { | |
16699 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16700 | } | |
16701 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
16702 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16703 | } | |
16704 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
16705 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
16706 | } | |
16707 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
16708 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16709 | } | |
16710 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
16711 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16712 | } | |
16713 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
16714 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16715 | } | |
16716 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16717 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16718 | } | |
16719 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16720 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16721 | } | |
16722 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
16723 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16724 | } | |
16725 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
16726 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16727 | } | |
16728 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
16729 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16730 | } | |
16731 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
16732 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16733 | } | |
16734 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
16735 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16736 | } | |
16737 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
16738 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16739 | } | |
16740 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
16741 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16742 | } | |
16743 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
16744 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16745 | } | |
16746 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
16747 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16748 | } | |
16749 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { | |
16750 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); | |
16751 | } | |
16752 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { | |
16753 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16754 | } | |
16755 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { | |
16756 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); | |
16757 | } | |
16758 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { | |
16759 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); | |
16760 | } | |
16761 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { | |
16762 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16763 | } | |
16764 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { | |
16765 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16766 | } | |
16767 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { | |
16768 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); | |
16769 | } | |
16770 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { | |
16771 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); | |
16772 | } | |
16773 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { | |
16774 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16775 | } | |
16776 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { | |
16777 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16778 | } | |
16779 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { | |
16780 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16781 | } | |
16782 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { | |
16783 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16784 | } | |
16785 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { | |
16786 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16787 | } | |
16788 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
16789 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
16790 | } | |
16791 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
16792 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16793 | } | |
16794 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
16795 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16796 | } | |
16797 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
16798 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
16799 | } | |
16800 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
16801 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16802 | } | |
16803 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
16804 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16805 | } | |
16806 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
16807 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16808 | } | |
16809 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { | |
16810 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16811 | } | |
16812 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { | |
16813 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16814 | } | |
16815 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
16816 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16817 | } | |
16818 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { | |
16819 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); | |
16820 | } | |
16821 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { | |
16822 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16823 | } | |
16824 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
16825 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16826 | } | |
16827 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
16828 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16829 | } | |
16830 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
16831 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16832 | } | |
16833 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { | |
16834 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); | |
16835 | } | |
16836 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { | |
16837 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16838 | } | |
16839 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}}; | |
16840 | static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}}; | |
16841 | static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}}; | |
16842 | static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}}; | |
16843 | static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}}; | |
16844 | static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}}; | |
16845 | static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}}; | |
16846 | static swig_type_info _swigt__p_wxGridCellRenderer[] = {{"_p_wxGridCellRenderer", 0, "wxGridCellRenderer *", 0},{"_p_wxGridCellRenderer"},{"_p_wxPyGridCellRenderer", _p_wxPyGridCellRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellStringRenderer", _p_wxGridCellStringRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellBoolRenderer", _p_wxGridCellBoolRendererTo_p_wxGridCellRenderer},{0}}; | |
16847 | static swig_type_info _swigt__p_wxGridCellStringRenderer[] = {{"_p_wxGridCellStringRenderer", 0, "wxGridCellStringRenderer *", 0},{"_p_wxGridCellStringRenderer"},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer},{0}}; | |
16848 | static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}}; | |
16849 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
16850 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
16851 | static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}}; | |
16852 | static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}}; | |
16853 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; | |
16854 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{"_p_wxGrid", _p_wxGridTo_p_wxPanel},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel},{0}}; | |
16855 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxNotifyEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxNotifyEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; | |
16856 | static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}}; | |
16857 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
16858 | static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}}; | |
16859 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0},{"_p_wxGrid", _p_wxGridTo_p_wxScrolledWindow},{"_p_wxScrolledWindow"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow},{0}}; | |
16860 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxGrid", _p_wxGridTo_p_wxWindow},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow},{0}}; | |
16861 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
16862 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
16863 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent},{0}}; | |
16864 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxObject},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxObject},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxObject},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxObject},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxFrame", _p_wxFrameTo_p_wxObject},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxGrid", _p_wxGridTo_p_wxObject},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject},{"_p_wxPanel", _p_wxPanelTo_p_wxObject},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject},{"_p_wxDialog", _p_wxDialogTo_p_wxObject},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxGridTableBase", _p_wxGridTableBaseTo_p_wxObject},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; | |
16865 | static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}}; | |
16866 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
16867 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
16868 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
16869 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxGrid", _p_wxGridTo_p_wxEvtHandler},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler},{0}}; | |
16870 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
16871 | static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}}; | |
16872 | static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}}; | |
16873 | static swig_type_info _swigt__p_wxGridTableBase[] = {{"_p_wxGridTableBase", 0, "wxGridTableBase *", 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxGridTableBase},{"_p_wxGridTableBase"},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxGridTableBase},{0}}; | |
16874 | static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}}; | |
16875 | static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}}; | |
16876 | static swig_type_info _swigt__p_wxGridCellEditor[] = {{"_p_wxGridCellEditor", 0, "wxGridCellEditor *", 0},{"_p_wxGridCellEditor"},{"_p_wxPyGridCellEditor", _p_wxPyGridCellEditorTo_p_wxGridCellEditor},{"_p_wxGridCellTextEditor", _p_wxGridCellTextEditorTo_p_wxGridCellEditor},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellEditor},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellEditor},{"_p_wxGridCellBoolEditor", _p_wxGridCellBoolEditorTo_p_wxGridCellEditor},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor},{"_p_wxGridCellChoiceEditor", _p_wxGridCellChoiceEditorTo_p_wxGridCellEditor},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellEditor},{0}}; | |
16877 | static swig_type_info _swigt__p_wxGridCellTextEditor[] = {{"_p_wxGridCellTextEditor", 0, "wxGridCellTextEditor *", 0},{"_p_wxGridCellTextEditor"},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor},{0}}; | |
16878 | static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}}; | |
16879 | static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}}; | |
16880 | static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}}; | |
16881 | static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}}; | |
16882 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
16883 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxCommandEvent},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxCommandEvent},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}}; | |
16884 | static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}}; | |
16885 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
16886 | static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}}; | |
16887 | static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}}; | |
16888 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}}; | |
16889 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
16890 | static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}}; | |
16891 | ||
16892 | static swig_type_info *swig_types_initial[] = { | |
16893 | _swigt__p_wxGridCellAutoWrapStringRenderer, | |
16894 | _swigt__p_wxGridCellEnumRenderer, | |
16895 | _swigt__p_wxGridCellDateTimeRenderer, | |
16896 | _swigt__p_wxGridCellBoolRenderer, | |
16897 | _swigt__p_wxGridCellFloatRenderer, | |
16898 | _swigt__p_wxGridCellNumberRenderer, | |
16899 | _swigt__p_wxPyGridCellRenderer, | |
16900 | _swigt__p_wxGridCellRenderer, | |
16901 | _swigt__p_wxGridCellStringRenderer, | |
16902 | _swigt__p_wxGridCellAttr, | |
16903 | _swigt__p_wxColour, | |
16904 | _swigt__p_wxDC, | |
16905 | _swigt__p_wxGridTableMessage, | |
16906 | _swigt__p_wxGrid, | |
16907 | _swigt__p_char, | |
16908 | _swigt__p_wxPanel, | |
16909 | _swigt__p_wxNotifyEvent, | |
16910 | _swigt__p_wxGridRangeSelectEvent, | |
16911 | _swigt__p_wxSize, | |
16912 | _swigt__p_wxGridCellCoords, | |
16913 | _swigt__p_wxScrolledWindow, | |
16914 | _swigt__p_wxWindow, | |
16915 | _swigt__p_wxFont, | |
16916 | _swigt__p_wxControl, | |
16917 | _swigt__p_wxEvent, | |
16918 | _swigt__p_wxObject, | |
16919 | _swigt__p_wxGridSizeEvent, | |
16920 | _swigt__p_wxRect, | |
16921 | _swigt__p_long, | |
16922 | _swigt__p_wxString, | |
16923 | _swigt__p_wxEvtHandler, | |
16924 | _swigt__p_wxPoint, | |
16925 | _swigt__p_wxGridEvent, | |
16926 | _swigt__p_wxGridEditorCreatedEvent, | |
16927 | _swigt__p_wxGridTableBase, | |
16928 | _swigt__p_wxGridCellNumberEditor, | |
16929 | _swigt__p_wxPyGridCellEditor, | |
16930 | _swigt__p_wxGridCellEditor, | |
16931 | _swigt__p_wxGridCellTextEditor, | |
16932 | _swigt__p_wxGridCellFloatEditor, | |
16933 | _swigt__p_wxGridCellBoolEditor, | |
16934 | _swigt__p_wxPyGridTableBase, | |
16935 | _swigt__p_wxGridStringTable, | |
16936 | _swigt__p_wxArrayString, | |
16937 | _swigt__p_wxCommandEvent, | |
16938 | _swigt__p_wxGridCellAttrProvider, | |
16939 | _swigt__p_wxKeyEvent, | |
16940 | _swigt__p_wxGridCellChoiceEditor, | |
16941 | _swigt__p_wxGridCellEnumEditor, | |
16942 | _swigt__p_wxGridCellAutoWrapStringEditor, | |
16943 | _swigt__p_int, | |
16944 | _swigt__p_wxPyGridCellAttrProvider, | |
16945 | 0 | |
16946 | }; | |
16947 | ||
16948 | ||
16949 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
16950 | ||
16951 | static swig_const_info swig_const_table[] = { | |
16952 | { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0}, | |
16953 | { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0}, | |
16954 | { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0}, | |
16955 | { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0}, | |
16956 | { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0}, | |
16957 | { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0}, | |
16958 | { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0}, | |
16959 | { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0}, | |
16960 | { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0}, | |
16961 | {0}}; | |
16962 | ||
16963 | #ifdef __cplusplus | |
16964 | } | |
16965 | #endif | |
16966 | ||
16967 | #ifdef __cplusplus | |
16968 | extern "C" | |
16969 | #endif | |
16970 | SWIGEXPORT(void) SWIG_init(void) { | |
16971 | static PyObject *SWIG_globals = 0; | |
16972 | static int typeinit = 0; | |
16973 | PyObject *m, *d; | |
16974 | int i; | |
16975 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
16976 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
16977 | d = PyModule_GetDict(m); | |
16978 | ||
16979 | if (!typeinit) { | |
16980 | for (i = 0; swig_types_initial[i]; i++) { | |
16981 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
16982 | } | |
16983 | typeinit = 1; | |
16984 | } | |
16985 | SWIG_InstallConstants(d,swig_const_table); | |
16986 | ||
16987 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
16988 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); | |
16989 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); | |
16990 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); | |
16991 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_PyObj_FromInt((int)wxGridCellAttr::Any)); | |
16992 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_PyObj_FromInt((int)wxGridCellAttr::Default)); | |
16993 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_PyObj_FromInt((int)wxGridCellAttr::Cell)); | |
16994 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_PyObj_FromInt((int)wxGridCellAttr::Row)); | |
16995 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_PyObj_FromInt((int)wxGridCellAttr::Col)); | |
16996 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_PyObj_FromInt((int)wxGridCellAttr::Merged)); | |
16997 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); | |
16998 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); | |
16999 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); | |
17000 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); | |
17001 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); | |
17002 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); | |
17003 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); | |
17004 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); | |
17005 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectCells)); | |
17006 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectRows)); | |
17007 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectColumns)); | |
17008 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); | |
17009 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); | |
17010 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); | |
17011 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); | |
17012 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); | |
17013 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); | |
17014 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); | |
17015 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); | |
17016 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); | |
17017 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); | |
17018 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); | |
17019 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); | |
17020 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); | |
17021 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); | |
17022 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); | |
17023 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); | |
17024 | ||
17025 | ||
17026 | } | |
17027 |