]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
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 | ||
0f774bef RD |
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 | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
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 { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
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 *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
0f774bef | 126 | |
d14a1e28 RD |
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 | ||
d14a1e28 RD |
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 | ||
d14a1e28 RD |
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) | |
2dbef272 | 174 | |
d14a1e28 RD |
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) | |
d14a1e28 RD |
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 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
0f774bef RD |
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[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
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); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
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] | |
8edf1c75 RD |
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] | |
d14a1e28 RD |
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] | |
8edf1c75 RD |
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]; | |
d14a1e28 RD |
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 | ||
8edf1c75 RD |
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 | ||
d14a1e28 RD |
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 | ||
d14a1e28 | 342 | |
cbd72d4f RD |
343 | static const wxString wxPyEmptyString(wxEmptyString); |
344 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
32958cea | 345 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); |
d14a1e28 RD |
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) { \ | |
423f194a | 362 | target = wxPyConstructObject(source, wxT(#TYPE), False); \ |
d14a1e28 RD |
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 | ||
8edf1c75 RD |
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 | ||
d14a1e28 RD |
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) { | |
423f194a | 933 | bool rv = False; |
d14a1e28 RD |
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 | ||
8edf1c75 RD |
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 | ||
d14a1e28 RD |
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 | PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){ | |
1227 | PyObject* tup = PyTuple_New(2); | |
1228 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1229 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1230 | return tup; | |
1231 | } | |
1232 | ||
1233 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { | |
1234 | ||
1235 | // If source is an object instance then it may already be the right type | |
1236 | if (wxPySwigInstance_Check(source)) { | |
1237 | wxGridCellCoords* ptr; | |
1238 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1239 | goto error; | |
1240 | *obj = ptr; | |
423f194a | 1241 | return True; |
d14a1e28 RD |
1242 | } |
1243 | // otherwise a 2-tuple of integers is expected | |
1244 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { | |
1245 | PyObject* o1 = PySequence_GetItem(source, 0); | |
1246 | PyObject* o2 = PySequence_GetItem(source, 1); | |
1247 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { | |
1248 | Py_DECREF(o1); | |
1249 | Py_DECREF(o2); | |
1250 | goto error; | |
1251 | } | |
1252 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1253 | Py_DECREF(o1); | |
1254 | Py_DECREF(o2); | |
423f194a | 1255 | return True; |
d14a1e28 RD |
1256 | } |
1257 | ||
1258 | error: | |
1259 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); | |
423f194a | 1260 | return False; |
d14a1e28 RD |
1261 | } |
1262 | ||
1263 | ||
1264 | bool wxGridCellCoords_typecheck(PyObject* source) { | |
1265 | void* ptr; | |
1266 | ||
1267 | if (wxPySwigInstance_Check(source) && | |
1268 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
423f194a | 1269 | return True; |
d14a1e28 RD |
1270 | |
1271 | PyErr_Clear(); | |
1272 | if (PySequence_Check(source) && PySequence_Length(source) == 2) | |
423f194a | 1273 | return True; |
d14a1e28 | 1274 | |
423f194a | 1275 | return False; |
d14a1e28 RD |
1276 | } |
1277 | ||
1278 | ||
1279 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) | |
1280 | { | |
1281 | PyObject* list = PyList_New(0); | |
1282 | size_t idx; | |
1283 | for (idx = 0; idx < source.GetCount(); idx += 1) { | |
1284 | wxGridCellCoords& coord = source.Item(idx); | |
1285 | PyObject* tup = PyTuple_New(2); | |
1286 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); | |
1287 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); | |
1288 | PyList_Append(list, tup); | |
1289 | Py_DECREF(tup); | |
1290 | } | |
1291 | return list; | |
1292 | } | |
1293 | ||
1294 | ||
1295 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; | |
1296 | ||
1297 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ | |
1298 | wxGridCellCoords rv; | |
1299 | self->XYToCell(x, y, rv); | |
1300 | return rv; | |
1301 | } | |
1302 | #ifdef __cplusplus | |
1303 | extern "C" { | |
1304 | #endif | |
8edf1c75 | 1305 | static int _wrap_DateTimeFormatStr_set(PyObject *) { |
cbd72d4f RD |
1306 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); |
1307 | return 1; | |
1308 | } | |
1309 | ||
1310 | ||
1311 | static PyObject *_wrap_DateTimeFormatStr_get() { | |
1312 | PyObject *pyobj; | |
1313 | ||
1314 | { | |
1315 | #if wxUSE_UNICODE | |
1316 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1317 | #else | |
1318 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1319 | #endif | |
1320 | } | |
1321 | return pyobj; | |
1322 | } | |
1323 | ||
1324 | ||
8edf1c75 | 1325 | static int _wrap_GridNoCellCoords_set(PyObject *) { |
d14a1e28 RD |
1326 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); |
1327 | return 1; | |
1328 | } | |
1329 | ||
1330 | ||
1331 | static PyObject *_wrap_GridNoCellCoords_get() { | |
1332 | PyObject *pyobj; | |
1333 | ||
1334 | pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0); | |
1335 | return pyobj; | |
1336 | } | |
1337 | ||
1338 | ||
8edf1c75 | 1339 | static int _wrap_GridNoCellRect_set(PyObject *) { |
d14a1e28 RD |
1340 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); |
1341 | return 1; | |
1342 | } | |
1343 | ||
1344 | ||
1345 | static PyObject *_wrap_GridNoCellRect_get() { | |
1346 | PyObject *pyobj; | |
1347 | ||
1348 | pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0); | |
1349 | return pyobj; | |
1350 | } | |
1351 | ||
1352 | ||
1353 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1354 | PyObject *resultobj; | |
1355 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1356 | PyObject *arg2 = (PyObject *) 0 ; | |
1357 | PyObject * obj0 = 0 ; | |
1358 | PyObject * obj1 = 0 ; | |
1359 | char *kwnames[] = { | |
1360 | (char *) "self",(char *) "_self", NULL | |
1361 | }; | |
1362 | ||
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
1364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1365 | arg2 = obj1; | |
1366 | { | |
1367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1368 | wxGridCellRenderer__setOORInfo(arg1,arg2); | |
1369 | ||
1370 | wxPyEndAllowThreads(__tstate); | |
1371 | if (PyErr_Occurred()) SWIG_fail; | |
1372 | } | |
1373 | Py_INCREF(Py_None); resultobj = Py_None; | |
1374 | return resultobj; | |
1375 | fail: | |
1376 | return NULL; | |
1377 | } | |
1378 | ||
1379 | ||
1380 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject *resultobj; | |
1382 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1383 | wxString *arg2 = 0 ; | |
423f194a | 1384 | bool temp2 = False ; |
d14a1e28 RD |
1385 | PyObject * obj0 = 0 ; |
1386 | PyObject * obj1 = 0 ; | |
1387 | char *kwnames[] = { | |
1388 | (char *) "self",(char *) "params", NULL | |
1389 | }; | |
1390 | ||
1391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1393 | { | |
1394 | arg2 = wxString_in_helper(obj1); | |
1395 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1396 | temp2 = True; |
d14a1e28 RD |
1397 | } |
1398 | { | |
1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1400 | (arg1)->SetParameters((wxString const &)*arg2); | |
1401 | ||
1402 | wxPyEndAllowThreads(__tstate); | |
1403 | if (PyErr_Occurred()) SWIG_fail; | |
1404 | } | |
1405 | Py_INCREF(Py_None); resultobj = Py_None; | |
1406 | { | |
1407 | if (temp2) | |
1408 | delete arg2; | |
1409 | } | |
1410 | return resultobj; | |
1411 | fail: | |
1412 | { | |
1413 | if (temp2) | |
1414 | delete arg2; | |
1415 | } | |
1416 | return NULL; | |
1417 | } | |
1418 | ||
1419 | ||
1420 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject *resultobj; | |
1422 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1423 | PyObject * obj0 = 0 ; | |
1424 | char *kwnames[] = { | |
1425 | (char *) "self", NULL | |
1426 | }; | |
1427 | ||
1428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; | |
1429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1430 | { | |
1431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1432 | (arg1)->IncRef(); | |
1433 | ||
1434 | wxPyEndAllowThreads(__tstate); | |
1435 | if (PyErr_Occurred()) SWIG_fail; | |
1436 | } | |
1437 | Py_INCREF(Py_None); resultobj = Py_None; | |
1438 | return resultobj; | |
1439 | fail: | |
1440 | return NULL; | |
1441 | } | |
1442 | ||
1443 | ||
1444 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1445 | PyObject *resultobj; | |
1446 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1447 | PyObject * obj0 = 0 ; | |
1448 | char *kwnames[] = { | |
1449 | (char *) "self", NULL | |
1450 | }; | |
1451 | ||
1452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; | |
1453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1454 | { | |
1455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1456 | (arg1)->DecRef(); | |
1457 | ||
1458 | wxPyEndAllowThreads(__tstate); | |
1459 | if (PyErr_Occurred()) SWIG_fail; | |
1460 | } | |
1461 | Py_INCREF(Py_None); resultobj = Py_None; | |
1462 | return resultobj; | |
1463 | fail: | |
1464 | return NULL; | |
1465 | } | |
1466 | ||
1467 | ||
1468 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1469 | PyObject *resultobj; | |
1470 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1471 | wxGrid *arg2 = 0 ; | |
1472 | wxGridCellAttr *arg3 = 0 ; | |
1473 | wxDC *arg4 = 0 ; | |
1474 | wxRect *arg5 = 0 ; | |
1475 | int arg6 ; | |
1476 | int arg7 ; | |
1477 | bool arg8 ; | |
1478 | wxRect temp5 ; | |
1479 | PyObject * obj0 = 0 ; | |
1480 | PyObject * obj1 = 0 ; | |
1481 | PyObject * obj2 = 0 ; | |
1482 | PyObject * obj3 = 0 ; | |
1483 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
1484 | PyObject * obj5 = 0 ; |
1485 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
1486 | PyObject * obj7 = 0 ; |
1487 | char *kwnames[] = { | |
1488 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL | |
1489 | }; | |
1490 | ||
8edf1c75 | 1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
1492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1493 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1494 | if (arg2 == NULL) { | |
1495 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1496 | } | |
1497 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1498 | if (arg3 == NULL) { | |
1499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1500 | } | |
1501 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1502 | if (arg4 == NULL) { | |
1503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1504 | } | |
1505 | { | |
1506 | arg5 = &temp5; | |
1507 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
1508 | } | |
2dbef272 | 1509 | { |
8edf1c75 RD |
1510 | arg6 = (int) SWIG_PyObj_AsInt(obj5); |
1511 | if (PyErr_Occurred()) SWIG_fail; | |
1512 | } | |
1513 | { | |
1514 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
1517 | { | |
1518 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); | |
2dbef272 RD |
1519 | if (PyErr_Occurred()) SWIG_fail; |
1520 | } | |
d14a1e28 RD |
1521 | { |
1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1523 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); | |
1524 | ||
1525 | wxPyEndAllowThreads(__tstate); | |
1526 | if (PyErr_Occurred()) SWIG_fail; | |
1527 | } | |
1528 | Py_INCREF(Py_None); resultobj = Py_None; | |
1529 | return resultobj; | |
1530 | fail: | |
1531 | return NULL; | |
1532 | } | |
1533 | ||
1534 | ||
1535 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1536 | PyObject *resultobj; | |
1537 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1538 | wxGrid *arg2 = 0 ; | |
1539 | wxGridCellAttr *arg3 = 0 ; | |
1540 | wxDC *arg4 = 0 ; | |
1541 | int arg5 ; | |
1542 | int arg6 ; | |
1543 | wxSize result; | |
1544 | PyObject * obj0 = 0 ; | |
1545 | PyObject * obj1 = 0 ; | |
1546 | PyObject * obj2 = 0 ; | |
1547 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
1548 | PyObject * obj4 = 0 ; |
1549 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
1550 | char *kwnames[] = { |
1551 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL | |
1552 | }; | |
1553 | ||
8edf1c75 | 1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
1555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1557 | if (arg2 == NULL) { | |
1558 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1559 | } | |
1560 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1561 | if (arg3 == NULL) { | |
1562 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1563 | } | |
1564 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1565 | if (arg4 == NULL) { | |
1566 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1567 | } | |
8edf1c75 RD |
1568 | { |
1569 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
1570 | if (PyErr_Occurred()) SWIG_fail; | |
1571 | } | |
1572 | { | |
1573 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
d14a1e28 RD |
1576 | { |
1577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1578 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); | |
1579 | ||
1580 | wxPyEndAllowThreads(__tstate); | |
1581 | if (PyErr_Occurred()) SWIG_fail; | |
1582 | } | |
1583 | { | |
1584 | wxSize * resultptr; | |
1585 | resultptr = new wxSize((wxSize &) result); | |
1586 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1587 | } | |
1588 | return resultobj; | |
1589 | fail: | |
1590 | return NULL; | |
1591 | } | |
1592 | ||
1593 | ||
1594 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject *resultobj; | |
1596 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1597 | wxGridCellRenderer *result; | |
1598 | PyObject * obj0 = 0 ; | |
1599 | char *kwnames[] = { | |
1600 | (char *) "self", NULL | |
1601 | }; | |
1602 | ||
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; | |
1604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1605 | { | |
1606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1607 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); | |
1608 | ||
1609 | wxPyEndAllowThreads(__tstate); | |
1610 | if (PyErr_Occurred()) SWIG_fail; | |
1611 | } | |
1612 | { | |
1613 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
1614 | } | |
1615 | return resultobj; | |
1616 | fail: | |
1617 | return NULL; | |
1618 | } | |
1619 | ||
1620 | ||
1621 | static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1622 | PyObject *obj; | |
1623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1624 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); | |
1625 | Py_INCREF(obj); | |
1626 | return Py_BuildValue((char *)""); | |
1627 | } | |
1628 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | wxPyGridCellRenderer *result; | |
1631 | char *kwnames[] = { | |
1632 | NULL | |
1633 | }; | |
1634 | ||
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; | |
1636 | { | |
1637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1638 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); | |
1639 | ||
1640 | wxPyEndAllowThreads(__tstate); | |
1641 | if (PyErr_Occurred()) SWIG_fail; | |
1642 | } | |
1643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1); | |
1644 | return resultobj; | |
1645 | fail: | |
1646 | return NULL; | |
1647 | } | |
1648 | ||
1649 | ||
1650 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1651 | PyObject *resultobj; | |
1652 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1653 | PyObject *arg2 = (PyObject *) 0 ; | |
1654 | PyObject *arg3 = (PyObject *) 0 ; | |
1655 | PyObject * obj0 = 0 ; | |
1656 | PyObject * obj1 = 0 ; | |
1657 | PyObject * obj2 = 0 ; | |
1658 | char *kwnames[] = { | |
1659 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1660 | }; | |
1661 | ||
1662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1664 | arg2 = obj1; | |
1665 | arg3 = obj2; | |
1666 | { | |
1667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1668 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1669 | ||
1670 | wxPyEndAllowThreads(__tstate); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | } | |
1673 | Py_INCREF(Py_None); resultobj = Py_None; | |
1674 | return resultobj; | |
1675 | fail: | |
1676 | return NULL; | |
1677 | } | |
1678 | ||
1679 | ||
1680 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1681 | PyObject *resultobj; | |
1682 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1683 | wxString *arg2 = 0 ; | |
423f194a | 1684 | bool temp2 = False ; |
d14a1e28 RD |
1685 | PyObject * obj0 = 0 ; |
1686 | PyObject * obj1 = 0 ; | |
1687 | char *kwnames[] = { | |
1688 | (char *) "self",(char *) "params", NULL | |
1689 | }; | |
1690 | ||
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1693 | { | |
1694 | arg2 = wxString_in_helper(obj1); | |
1695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1696 | temp2 = True; |
d14a1e28 RD |
1697 | } |
1698 | { | |
1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1700 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
1701 | ||
1702 | wxPyEndAllowThreads(__tstate); | |
1703 | if (PyErr_Occurred()) SWIG_fail; | |
1704 | } | |
1705 | Py_INCREF(Py_None); resultobj = Py_None; | |
1706 | { | |
1707 | if (temp2) | |
1708 | delete arg2; | |
1709 | } | |
1710 | return resultobj; | |
1711 | fail: | |
1712 | { | |
1713 | if (temp2) | |
1714 | delete arg2; | |
1715 | } | |
1716 | return NULL; | |
1717 | } | |
1718 | ||
1719 | ||
1720 | static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1721 | PyObject *obj; | |
1722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1723 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); | |
1724 | Py_INCREF(obj); | |
1725 | return Py_BuildValue((char *)""); | |
1726 | } | |
1727 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1728 | PyObject *resultobj; | |
1729 | wxGridCellStringRenderer *result; | |
1730 | char *kwnames[] = { | |
1731 | NULL | |
1732 | }; | |
1733 | ||
1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; | |
1735 | { | |
1736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1737 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); | |
1738 | ||
1739 | wxPyEndAllowThreads(__tstate); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | } | |
1742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1); | |
1743 | return resultobj; | |
1744 | fail: | |
1745 | return NULL; | |
1746 | } | |
1747 | ||
1748 | ||
1749 | static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
1750 | PyObject *obj; | |
1751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1752 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); | |
1753 | Py_INCREF(obj); | |
1754 | return Py_BuildValue((char *)""); | |
1755 | } | |
1756 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject *resultobj; | |
1758 | wxGridCellNumberRenderer *result; | |
1759 | char *kwnames[] = { | |
1760 | NULL | |
1761 | }; | |
1762 | ||
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; | |
1764 | { | |
1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1766 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); | |
1767 | ||
1768 | wxPyEndAllowThreads(__tstate); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
1771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1); | |
1772 | return resultobj; | |
1773 | fail: | |
1774 | return NULL; | |
1775 | } | |
1776 | ||
1777 | ||
1778 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) { | |
1779 | PyObject *obj; | |
1780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1781 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); | |
1782 | Py_INCREF(obj); | |
1783 | return Py_BuildValue((char *)""); | |
1784 | } | |
1785 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1786 | PyObject *resultobj; | |
1787 | int arg1 = (int) -1 ; | |
1788 | int arg2 = (int) -1 ; | |
1789 | wxGridCellFloatRenderer *result; | |
8edf1c75 RD |
1790 | PyObject * obj0 = 0 ; |
1791 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1792 | char *kwnames[] = { |
1793 | (char *) "width",(char *) "precision", NULL | |
1794 | }; | |
1795 | ||
8edf1c75 RD |
1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; |
1797 | if (obj0) { | |
1798 | { | |
1799 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | } | |
1803 | if (obj1) { | |
1804 | { | |
1805 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1806 | if (PyErr_Occurred()) SWIG_fail; | |
1807 | } | |
1808 | } | |
d14a1e28 RD |
1809 | { |
1810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1811 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); | |
1812 | ||
1813 | wxPyEndAllowThreads(__tstate); | |
1814 | if (PyErr_Occurred()) SWIG_fail; | |
1815 | } | |
1816 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1); | |
1817 | return resultobj; | |
1818 | fail: | |
1819 | return NULL; | |
1820 | } | |
1821 | ||
1822 | ||
1823 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1824 | PyObject *resultobj; | |
1825 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1826 | int result; | |
1827 | PyObject * obj0 = 0 ; | |
1828 | char *kwnames[] = { | |
1829 | (char *) "self", NULL | |
1830 | }; | |
1831 | ||
1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; | |
1833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1834 | { | |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
8edf1c75 | 1841 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1842 | return resultobj; |
1843 | fail: | |
1844 | return NULL; | |
1845 | } | |
1846 | ||
1847 | ||
1848 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject *resultobj; | |
1850 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1851 | int arg2 ; | |
1852 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1854 | char *kwnames[] = { |
1855 | (char *) "self",(char *) "width", NULL | |
1856 | }; | |
1857 | ||
8edf1c75 | 1858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1860 | { |
1861 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1862 | if (PyErr_Occurred()) SWIG_fail; | |
1863 | } | |
d14a1e28 RD |
1864 | { |
1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1866 | (arg1)->SetWidth(arg2); | |
1867 | ||
1868 | wxPyEndAllowThreads(__tstate); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
1870 | } | |
1871 | Py_INCREF(Py_None); resultobj = Py_None; | |
1872 | return resultobj; | |
1873 | fail: | |
1874 | return NULL; | |
1875 | } | |
1876 | ||
1877 | ||
1878 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1879 | PyObject *resultobj; | |
1880 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1881 | int result; | |
1882 | PyObject * obj0 = 0 ; | |
1883 | char *kwnames[] = { | |
1884 | (char *) "self", NULL | |
1885 | }; | |
1886 | ||
1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; | |
1888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1889 | { | |
1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1891 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); | |
1892 | ||
1893 | wxPyEndAllowThreads(__tstate); | |
1894 | if (PyErr_Occurred()) SWIG_fail; | |
1895 | } | |
8edf1c75 | 1896 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1897 | return resultobj; |
1898 | fail: | |
1899 | return NULL; | |
1900 | } | |
1901 | ||
1902 | ||
1903 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1904 | PyObject *resultobj; | |
1905 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1906 | int arg2 ; | |
1907 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1909 | char *kwnames[] = { |
1910 | (char *) "self",(char *) "precision", NULL | |
1911 | }; | |
1912 | ||
8edf1c75 | 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1915 | { |
1916 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1917 | if (PyErr_Occurred()) SWIG_fail; | |
1918 | } | |
d14a1e28 RD |
1919 | { |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | (arg1)->SetPrecision(arg2); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
1925 | } | |
1926 | Py_INCREF(Py_None); resultobj = Py_None; | |
1927 | return resultobj; | |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
1933 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) { | |
1934 | PyObject *obj; | |
1935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1936 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); | |
1937 | Py_INCREF(obj); | |
1938 | return Py_BuildValue((char *)""); | |
1939 | } | |
1940 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject *resultobj; | |
1942 | wxGridCellBoolRenderer *result; | |
1943 | char *kwnames[] = { | |
1944 | NULL | |
1945 | }; | |
1946 | ||
1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; | |
1948 | { | |
1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1950 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); | |
1951 | ||
1952 | wxPyEndAllowThreads(__tstate); | |
1953 | if (PyErr_Occurred()) SWIG_fail; | |
1954 | } | |
1955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1); | |
1956 | return resultobj; | |
1957 | fail: | |
1958 | return NULL; | |
1959 | } | |
1960 | ||
1961 | ||
1962 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) { | |
1963 | PyObject *obj; | |
1964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1965 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); | |
1966 | Py_INCREF(obj); | |
1967 | return Py_BuildValue((char *)""); | |
1968 | } | |
1969 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject *resultobj; | |
1971 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; | |
1972 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; | |
1973 | wxGridCellDateTimeRenderer *result; | |
d14a1e28 RD |
1974 | PyObject * obj0 = 0 ; |
1975 | PyObject * obj1 = 0 ; | |
1976 | char *kwnames[] = { | |
1977 | (char *) "outformat",(char *) "informat", NULL | |
1978 | }; | |
1979 | ||
1980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; | |
1981 | if (obj0) { | |
423f194a RD |
1982 | { |
1983 | wxString* sptr = wxString_in_helper(obj0); | |
1984 | if (sptr == NULL) SWIG_fail; | |
1985 | arg1 = *sptr; | |
1986 | delete sptr; | |
1987 | } | |
d14a1e28 RD |
1988 | } |
1989 | if (obj1) { | |
423f194a RD |
1990 | { |
1991 | wxString* sptr = wxString_in_helper(obj1); | |
1992 | if (sptr == NULL) SWIG_fail; | |
1993 | arg2 = *sptr; | |
1994 | delete sptr; | |
1995 | } | |
d14a1e28 RD |
1996 | } |
1997 | { | |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) { | |
2012 | PyObject *obj; | |
2013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2014 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); | |
2015 | Py_INCREF(obj); | |
2016 | return Py_BuildValue((char *)""); | |
2017 | } | |
2018 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject *resultobj; | |
2020 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2021 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2022 | wxGridCellEnumRenderer *result; | |
423f194a | 2023 | bool temp1 = False ; |
d14a1e28 RD |
2024 | PyObject * obj0 = 0 ; |
2025 | char *kwnames[] = { | |
2026 | (char *) "choices", NULL | |
2027 | }; | |
2028 | ||
2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; | |
2030 | if (obj0) { | |
2031 | { | |
2032 | arg1 = wxString_in_helper(obj0); | |
2033 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2034 | temp1 = True; |
d14a1e28 RD |
2035 | } |
2036 | } | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1); | |
2045 | { | |
2046 | if (temp1) | |
2047 | delete arg1; | |
2048 | } | |
2049 | return resultobj; | |
2050 | fail: | |
2051 | { | |
2052 | if (temp1) | |
2053 | delete arg1; | |
2054 | } | |
2055 | return NULL; | |
2056 | } | |
2057 | ||
2058 | ||
2059 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) { | |
2060 | PyObject *obj; | |
2061 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2062 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); | |
2063 | Py_INCREF(obj); | |
2064 | return Py_BuildValue((char *)""); | |
2065 | } | |
2066 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject *resultobj; | |
2068 | wxGridCellAutoWrapStringRenderer *result; | |
2069 | char *kwnames[] = { | |
2070 | NULL | |
2071 | }; | |
2072 | ||
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; | |
2074 | { | |
2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2076 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); | |
2077 | ||
2078 | wxPyEndAllowThreads(__tstate); | |
2079 | if (PyErr_Occurred()) SWIG_fail; | |
2080 | } | |
2081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); | |
2082 | return resultobj; | |
2083 | fail: | |
2084 | return NULL; | |
2085 | } | |
2086 | ||
2087 | ||
2088 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
2089 | PyObject *obj; | |
2090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2091 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); | |
2092 | Py_INCREF(obj); | |
2093 | return Py_BuildValue((char *)""); | |
2094 | } | |
2095 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2096 | PyObject *resultobj; | |
2097 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2098 | PyObject *arg2 = (PyObject *) 0 ; | |
2099 | PyObject * obj0 = 0 ; | |
2100 | PyObject * obj1 = 0 ; | |
2101 | char *kwnames[] = { | |
2102 | (char *) "self",(char *) "_self", NULL | |
2103 | }; | |
2104 | ||
2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2107 | arg2 = obj1; | |
2108 | { | |
2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2110 | wxGridCellEditor__setOORInfo(arg1,arg2); | |
2111 | ||
2112 | wxPyEndAllowThreads(__tstate); | |
2113 | if (PyErr_Occurred()) SWIG_fail; | |
2114 | } | |
2115 | Py_INCREF(Py_None); resultobj = Py_None; | |
2116 | return resultobj; | |
2117 | fail: | |
2118 | return NULL; | |
2119 | } | |
2120 | ||
2121 | ||
2122 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2123 | PyObject *resultobj; | |
2124 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2125 | bool result; | |
2126 | PyObject * obj0 = 0 ; | |
2127 | char *kwnames[] = { | |
2128 | (char *) "self", NULL | |
2129 | }; | |
2130 | ||
2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; | |
2132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2133 | { | |
2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2135 | result = (bool)(arg1)->IsCreated(); | |
2136 | ||
2137 | wxPyEndAllowThreads(__tstate); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | } | |
02a34c4c | 2140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2141 | return resultobj; |
2142 | fail: | |
2143 | return NULL; | |
2144 | } | |
2145 | ||
2146 | ||
2147 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2148 | PyObject *resultobj; | |
2149 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2150 | wxControl *result; | |
2151 | PyObject * obj0 = 0 ; | |
2152 | char *kwnames[] = { | |
2153 | (char *) "self", NULL | |
2154 | }; | |
2155 | ||
2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; | |
2157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2158 | { | |
2159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2160 | result = (wxControl *)(arg1)->GetControl(); | |
2161 | ||
2162 | wxPyEndAllowThreads(__tstate); | |
2163 | if (PyErr_Occurred()) SWIG_fail; | |
2164 | } | |
2165 | { | |
2166 | resultobj = wxPyMake_wxObject(result); | |
2167 | } | |
2168 | return resultobj; | |
2169 | fail: | |
2170 | return NULL; | |
2171 | } | |
2172 | ||
2173 | ||
2174 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2175 | PyObject *resultobj; | |
2176 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2177 | wxControl *arg2 = (wxControl *) 0 ; | |
2178 | PyObject * obj0 = 0 ; | |
2179 | PyObject * obj1 = 0 ; | |
2180 | char *kwnames[] = { | |
2181 | (char *) "self",(char *) "control", NULL | |
2182 | }; | |
2183 | ||
2184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
2185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2186 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | (arg1)->SetControl(arg2); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) SWIG_fail; | |
2193 | } | |
2194 | Py_INCREF(Py_None); resultobj = Py_None; | |
2195 | return resultobj; | |
2196 | fail: | |
2197 | return NULL; | |
2198 | } | |
2199 | ||
2200 | ||
2201 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2202 | PyObject *resultobj; | |
2203 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2204 | wxGridCellAttr *result; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "self", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2212 | { | |
2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2214 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); | |
2215 | ||
2216 | wxPyEndAllowThreads(__tstate); | |
2217 | if (PyErr_Occurred()) SWIG_fail; | |
2218 | } | |
2219 | { | |
2220 | resultobj = wxPyMake_wxGridCellAttr(result); | |
2221 | } | |
2222 | return resultobj; | |
2223 | fail: | |
2224 | return NULL; | |
2225 | } | |
2226 | ||
2227 | ||
2228 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject *resultobj; | |
2230 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2231 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
2232 | PyObject * obj0 = 0 ; | |
2233 | PyObject * obj1 = 0 ; | |
2234 | char *kwnames[] = { | |
2235 | (char *) "self",(char *) "attr", NULL | |
2236 | }; | |
2237 | ||
2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; | |
2239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2240 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2241 | { | |
2242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2243 | (arg1)->SetCellAttr(arg2); | |
2244 | ||
2245 | wxPyEndAllowThreads(__tstate); | |
2246 | if (PyErr_Occurred()) SWIG_fail; | |
2247 | } | |
2248 | Py_INCREF(Py_None); resultobj = Py_None; | |
2249 | return resultobj; | |
2250 | fail: | |
2251 | return NULL; | |
2252 | } | |
2253 | ||
2254 | ||
2255 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2256 | PyObject *resultobj; | |
2257 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2258 | wxString *arg2 = 0 ; | |
423f194a | 2259 | bool temp2 = False ; |
d14a1e28 RD |
2260 | PyObject * obj0 = 0 ; |
2261 | PyObject * obj1 = 0 ; | |
2262 | char *kwnames[] = { | |
2263 | (char *) "self",(char *) "params", NULL | |
2264 | }; | |
2265 | ||
2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2268 | { | |
2269 | arg2 = wxString_in_helper(obj1); | |
2270 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2271 | temp2 = True; |
d14a1e28 RD |
2272 | } |
2273 | { | |
2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2275 | (arg1)->SetParameters((wxString const &)*arg2); | |
2276 | ||
2277 | wxPyEndAllowThreads(__tstate); | |
2278 | if (PyErr_Occurred()) SWIG_fail; | |
2279 | } | |
2280 | Py_INCREF(Py_None); resultobj = Py_None; | |
2281 | { | |
2282 | if (temp2) | |
2283 | delete arg2; | |
2284 | } | |
2285 | return resultobj; | |
2286 | fail: | |
2287 | { | |
2288 | if (temp2) | |
2289 | delete arg2; | |
2290 | } | |
2291 | return NULL; | |
2292 | } | |
2293 | ||
2294 | ||
2295 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2296 | PyObject *resultobj; | |
2297 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2298 | PyObject * obj0 = 0 ; | |
2299 | char *kwnames[] = { | |
2300 | (char *) "self", NULL | |
2301 | }; | |
2302 | ||
2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; | |
2304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2305 | { | |
2306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2307 | (arg1)->IncRef(); | |
2308 | ||
2309 | wxPyEndAllowThreads(__tstate); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
2312 | Py_INCREF(Py_None); resultobj = Py_None; | |
2313 | return resultobj; | |
2314 | fail: | |
2315 | return NULL; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2320 | PyObject *resultobj; | |
2321 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2322 | PyObject * obj0 = 0 ; | |
2323 | char *kwnames[] = { | |
2324 | (char *) "self", NULL | |
2325 | }; | |
2326 | ||
2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; | |
2328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2329 | { | |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | (arg1)->DecRef(); | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
2336 | Py_INCREF(Py_None); resultobj = Py_None; | |
2337 | return resultobj; | |
2338 | fail: | |
2339 | return NULL; | |
2340 | } | |
2341 | ||
2342 | ||
2343 | static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2344 | PyObject *resultobj; | |
2345 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2347 | int arg3 ; |
d14a1e28 RD |
2348 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; |
2349 | PyObject * obj0 = 0 ; | |
2350 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2351 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2352 | PyObject * obj3 = 0 ; |
2353 | char *kwnames[] = { | |
2354 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL | |
2355 | }; | |
2356 | ||
8edf1c75 | 2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
2358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2359 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2360 | { |
2361 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2362 | if (PyErr_Occurred()) SWIG_fail; | |
2363 | } | |
d14a1e28 RD |
2364 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2367 | (arg1)->Create(arg2,arg3,arg4); | |
2368 | ||
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | Py_INCREF(Py_None); resultobj = Py_None; | |
2373 | return resultobj; | |
2374 | fail: | |
2375 | return NULL; | |
2376 | } | |
2377 | ||
2378 | ||
2379 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2380 | PyObject *resultobj; | |
2381 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2382 | int arg2 ; | |
2383 | int arg3 ; | |
2384 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2385 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2386 | PyObject * obj1 = 0 ; |
2387 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2388 | PyObject * obj3 = 0 ; |
2389 | char *kwnames[] = { | |
2390 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2391 | }; | |
2392 | ||
8edf1c75 | 2393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2395 | { |
2396 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | { | |
2400 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2401 | if (PyErr_Occurred()) SWIG_fail; | |
2402 | } | |
d14a1e28 RD |
2403 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2404 | { | |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | (arg1)->BeginEdit(arg2,arg3,arg4); | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
2411 | Py_INCREF(Py_None); resultobj = Py_None; | |
2412 | return resultobj; | |
2413 | fail: | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
2418 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2419 | PyObject *resultobj; | |
2420 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2421 | int arg2 ; | |
2422 | int arg3 ; | |
2423 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2424 | bool result; | |
2425 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2426 | PyObject * obj1 = 0 ; |
2427 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2428 | PyObject * obj3 = 0 ; |
2429 | char *kwnames[] = { | |
2430 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2431 | }; | |
2432 | ||
8edf1c75 | 2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2435 | { |
2436 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2437 | if (PyErr_Occurred()) SWIG_fail; | |
2438 | } | |
2439 | { | |
2440 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2441 | if (PyErr_Occurred()) SWIG_fail; | |
2442 | } | |
d14a1e28 RD |
2443 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2444 | { | |
2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2446 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); | |
2447 | ||
2448 | wxPyEndAllowThreads(__tstate); | |
2449 | if (PyErr_Occurred()) SWIG_fail; | |
2450 | } | |
02a34c4c | 2451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2452 | return resultobj; |
2453 | fail: | |
2454 | return NULL; | |
2455 | } | |
2456 | ||
2457 | ||
2458 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2459 | PyObject *resultobj; | |
2460 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2461 | PyObject * obj0 = 0 ; | |
2462 | char *kwnames[] = { | |
2463 | (char *) "self", NULL | |
2464 | }; | |
2465 | ||
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; | |
2467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2468 | { | |
2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2470 | (arg1)->Reset(); | |
2471 | ||
2472 | wxPyEndAllowThreads(__tstate); | |
2473 | if (PyErr_Occurred()) SWIG_fail; | |
2474 | } | |
2475 | Py_INCREF(Py_None); resultobj = Py_None; | |
2476 | return resultobj; | |
2477 | fail: | |
2478 | return NULL; | |
2479 | } | |
2480 | ||
2481 | ||
2482 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2483 | PyObject *resultobj; | |
2484 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2485 | wxGridCellEditor *result; | |
2486 | PyObject * obj0 = 0 ; | |
2487 | char *kwnames[] = { | |
2488 | (char *) "self", NULL | |
2489 | }; | |
2490 | ||
2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; | |
2492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2493 | { | |
2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2495 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); | |
2496 | ||
2497 | wxPyEndAllowThreads(__tstate); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
2500 | { | |
2501 | resultobj = wxPyMake_wxGridCellEditor(result); | |
2502 | } | |
2503 | return resultobj; | |
2504 | fail: | |
2505 | return NULL; | |
2506 | } | |
2507 | ||
2508 | ||
2509 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject *resultobj; | |
2511 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2512 | wxRect *arg2 = 0 ; | |
2513 | wxRect temp2 ; | |
2514 | PyObject * obj0 = 0 ; | |
2515 | PyObject * obj1 = 0 ; | |
2516 | char *kwnames[] = { | |
2517 | (char *) "self",(char *) "rect", NULL | |
2518 | }; | |
2519 | ||
2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2522 | { | |
2523 | arg2 = &temp2; | |
2524 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2525 | } | |
2526 | { | |
2527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2528 | (arg1)->SetSize((wxRect const &)*arg2); | |
2529 | ||
2530 | wxPyEndAllowThreads(__tstate); | |
2531 | if (PyErr_Occurred()) SWIG_fail; | |
2532 | } | |
2533 | Py_INCREF(Py_None); resultobj = Py_None; | |
2534 | return resultobj; | |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject *resultobj; | |
2542 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2543 | bool arg2 ; | |
2544 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2545 | PyObject * obj0 = 0 ; | |
2546 | PyObject * obj1 = 0 ; | |
2547 | PyObject * obj2 = 0 ; | |
2548 | char *kwnames[] = { | |
2549 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2550 | }; | |
2551 | ||
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 2554 | { |
8edf1c75 | 2555 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
2556 | if (PyErr_Occurred()) SWIG_fail; |
2557 | } | |
d14a1e28 RD |
2558 | if (obj2) { |
2559 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2560 | } | |
2561 | { | |
2562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2563 | (arg1)->Show(arg2,arg3); | |
2564 | ||
2565 | wxPyEndAllowThreads(__tstate); | |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
2567 | } | |
2568 | Py_INCREF(Py_None); resultobj = Py_None; | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
2575 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2576 | PyObject *resultobj; | |
2577 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2578 | wxRect *arg2 = 0 ; | |
2579 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2580 | wxRect temp2 ; | |
2581 | PyObject * obj0 = 0 ; | |
2582 | PyObject * obj1 = 0 ; | |
2583 | PyObject * obj2 = 0 ; | |
2584 | char *kwnames[] = { | |
2585 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2586 | }; | |
2587 | ||
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2590 | { | |
2591 | arg2 = &temp2; | |
2592 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2593 | } | |
2594 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2595 | { | |
2596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2597 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); | |
2598 | ||
2599 | wxPyEndAllowThreads(__tstate); | |
2600 | if (PyErr_Occurred()) SWIG_fail; | |
2601 | } | |
2602 | Py_INCREF(Py_None); resultobj = Py_None; | |
2603 | return resultobj; | |
2604 | fail: | |
2605 | return NULL; | |
2606 | } | |
2607 | ||
2608 | ||
2609 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject *resultobj; | |
2611 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2612 | wxKeyEvent *arg2 = 0 ; | |
2613 | bool result; | |
2614 | PyObject * obj0 = 0 ; | |
2615 | PyObject * obj1 = 0 ; | |
2616 | char *kwnames[] = { | |
2617 | (char *) "self",(char *) "event", NULL | |
2618 | }; | |
2619 | ||
2620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2623 | if (arg2 == NULL) { | |
2624 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | result = (bool)(arg1)->IsAcceptedKey(*arg2); | |
2629 | ||
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) SWIG_fail; | |
2632 | } | |
02a34c4c | 2633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2634 | return resultobj; |
2635 | fail: | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject *resultobj; | |
2642 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2643 | wxKeyEvent *arg2 = 0 ; | |
2644 | PyObject * obj0 = 0 ; | |
2645 | PyObject * obj1 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "self",(char *) "event", NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2653 | if (arg2 == NULL) { | |
2654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2655 | } | |
2656 | { | |
2657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2658 | (arg1)->StartingKey(*arg2); | |
2659 | ||
2660 | wxPyEndAllowThreads(__tstate); | |
2661 | if (PyErr_Occurred()) SWIG_fail; | |
2662 | } | |
2663 | Py_INCREF(Py_None); resultobj = Py_None; | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
2670 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2671 | PyObject *resultobj; | |
2672 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2673 | PyObject * obj0 = 0 ; | |
2674 | char *kwnames[] = { | |
2675 | (char *) "self", NULL | |
2676 | }; | |
2677 | ||
2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; | |
2679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2680 | { | |
2681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2682 | (arg1)->StartingClick(); | |
2683 | ||
2684 | wxPyEndAllowThreads(__tstate); | |
2685 | if (PyErr_Occurred()) SWIG_fail; | |
2686 | } | |
2687 | Py_INCREF(Py_None); resultobj = Py_None; | |
2688 | return resultobj; | |
2689 | fail: | |
2690 | return NULL; | |
2691 | } | |
2692 | ||
2693 | ||
2694 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2695 | PyObject *resultobj; | |
2696 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2697 | wxKeyEvent *arg2 = 0 ; | |
2698 | PyObject * obj0 = 0 ; | |
2699 | PyObject * obj1 = 0 ; | |
2700 | char *kwnames[] = { | |
2701 | (char *) "self",(char *) "event", NULL | |
2702 | }; | |
2703 | ||
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
2705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2707 | if (arg2 == NULL) { | |
2708 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2709 | } | |
2710 | { | |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2712 | (arg1)->HandleReturn(*arg2); | |
2713 | ||
2714 | wxPyEndAllowThreads(__tstate); | |
2715 | if (PyErr_Occurred()) SWIG_fail; | |
2716 | } | |
2717 | Py_INCREF(Py_None); resultobj = Py_None; | |
2718 | return resultobj; | |
2719 | fail: | |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
2724 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject *resultobj; | |
2726 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2727 | PyObject * obj0 = 0 ; | |
2728 | char *kwnames[] = { | |
2729 | (char *) "self", NULL | |
2730 | }; | |
2731 | ||
2732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; | |
2733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2734 | { | |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2736 | (arg1)->Destroy(); | |
2737 | ||
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
2741 | Py_INCREF(Py_None); resultobj = Py_None; | |
2742 | return resultobj; | |
2743 | fail: | |
2744 | return NULL; | |
2745 | } | |
2746 | ||
2747 | ||
2748 | static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
2749 | PyObject *obj; | |
2750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2751 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); | |
2752 | Py_INCREF(obj); | |
2753 | return Py_BuildValue((char *)""); | |
2754 | } | |
2755 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2756 | PyObject *resultobj; | |
2757 | wxPyGridCellEditor *result; | |
2758 | char *kwnames[] = { | |
2759 | NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; | |
2763 | { | |
2764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2765 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); | |
2766 | ||
2767 | wxPyEndAllowThreads(__tstate); | |
2768 | if (PyErr_Occurred()) SWIG_fail; | |
2769 | } | |
2770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1); | |
2771 | return resultobj; | |
2772 | fail: | |
2773 | return NULL; | |
2774 | } | |
2775 | ||
2776 | ||
2777 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2778 | PyObject *resultobj; | |
2779 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2780 | PyObject *arg2 = (PyObject *) 0 ; | |
2781 | PyObject *arg3 = (PyObject *) 0 ; | |
2782 | PyObject * obj0 = 0 ; | |
2783 | PyObject * obj1 = 0 ; | |
2784 | PyObject * obj2 = 0 ; | |
2785 | char *kwnames[] = { | |
2786 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2787 | }; | |
2788 | ||
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2791 | arg2 = obj1; | |
2792 | arg3 = obj2; | |
2793 | { | |
2794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2795 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2796 | ||
2797 | wxPyEndAllowThreads(__tstate); | |
2798 | if (PyErr_Occurred()) SWIG_fail; | |
2799 | } | |
2800 | Py_INCREF(Py_None); resultobj = Py_None; | |
2801 | return resultobj; | |
2802 | fail: | |
2803 | return NULL; | |
2804 | } | |
2805 | ||
2806 | ||
2807 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2808 | PyObject *resultobj; | |
2809 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2810 | wxRect *arg2 = 0 ; | |
2811 | wxRect temp2 ; | |
2812 | PyObject * obj0 = 0 ; | |
2813 | PyObject * obj1 = 0 ; | |
2814 | char *kwnames[] = { | |
2815 | (char *) "self",(char *) "rect", NULL | |
2816 | }; | |
2817 | ||
2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2820 | { | |
2821 | arg2 = &temp2; | |
2822 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2823 | } | |
2824 | { | |
2825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2826 | (arg1)->base_SetSize((wxRect const &)*arg2); | |
2827 | ||
2828 | wxPyEndAllowThreads(__tstate); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
2830 | } | |
2831 | Py_INCREF(Py_None); resultobj = Py_None; | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | return NULL; | |
2835 | } | |
2836 | ||
2837 | ||
2838 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2839 | PyObject *resultobj; | |
2840 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2841 | bool arg2 ; | |
2842 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2843 | PyObject * obj0 = 0 ; | |
2844 | PyObject * obj1 = 0 ; | |
2845 | PyObject * obj2 = 0 ; | |
2846 | char *kwnames[] = { | |
2847 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2848 | }; | |
2849 | ||
2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 2852 | { |
8edf1c75 | 2853 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
2854 | if (PyErr_Occurred()) SWIG_fail; |
2855 | } | |
d14a1e28 RD |
2856 | if (obj2) { |
2857 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2858 | } | |
2859 | { | |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | (arg1)->base_Show(arg2,arg3); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
2866 | Py_INCREF(Py_None); resultobj = Py_None; | |
2867 | return resultobj; | |
2868 | fail: | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
2873 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2876 | wxRect *arg2 = 0 ; | |
2877 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2878 | wxRect temp2 ; | |
2879 | PyObject * obj0 = 0 ; | |
2880 | PyObject * obj1 = 0 ; | |
2881 | PyObject * obj2 = 0 ; | |
2882 | char *kwnames[] = { | |
2883 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2888 | { | |
2889 | arg2 = &temp2; | |
2890 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2891 | } | |
2892 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2893 | { | |
2894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2895 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); | |
2896 | ||
2897 | wxPyEndAllowThreads(__tstate); | |
2898 | if (PyErr_Occurred()) SWIG_fail; | |
2899 | } | |
2900 | Py_INCREF(Py_None); resultobj = Py_None; | |
2901 | return resultobj; | |
2902 | fail: | |
2903 | return NULL; | |
2904 | } | |
2905 | ||
2906 | ||
2907 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2908 | PyObject *resultobj; | |
2909 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2910 | wxKeyEvent *arg2 = 0 ; | |
2911 | bool result; | |
2912 | PyObject * obj0 = 0 ; | |
2913 | PyObject * obj1 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "self",(char *) "event", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2920 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2921 | if (arg2 == NULL) { | |
2922 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2923 | } | |
2924 | { | |
2925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2926 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); | |
2927 | ||
2928 | wxPyEndAllowThreads(__tstate); | |
2929 | if (PyErr_Occurred()) SWIG_fail; | |
2930 | } | |
02a34c4c | 2931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2932 | return resultobj; |
2933 | fail: | |
2934 | return NULL; | |
2935 | } | |
2936 | ||
2937 | ||
2938 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2939 | PyObject *resultobj; | |
2940 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2941 | wxKeyEvent *arg2 = 0 ; | |
2942 | PyObject * obj0 = 0 ; | |
2943 | PyObject * obj1 = 0 ; | |
2944 | char *kwnames[] = { | |
2945 | (char *) "self",(char *) "event", NULL | |
2946 | }; | |
2947 | ||
2948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2951 | if (arg2 == NULL) { | |
2952 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2953 | } | |
2954 | { | |
2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2956 | (arg1)->base_StartingKey(*arg2); | |
2957 | ||
2958 | wxPyEndAllowThreads(__tstate); | |
2959 | if (PyErr_Occurred()) SWIG_fail; | |
2960 | } | |
2961 | Py_INCREF(Py_None); resultobj = Py_None; | |
2962 | return resultobj; | |
2963 | fail: | |
2964 | return NULL; | |
2965 | } | |
2966 | ||
2967 | ||
2968 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2969 | PyObject *resultobj; | |
2970 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2971 | PyObject * obj0 = 0 ; | |
2972 | char *kwnames[] = { | |
2973 | (char *) "self", NULL | |
2974 | }; | |
2975 | ||
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; | |
2977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2978 | { | |
2979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2980 | (arg1)->base_StartingClick(); | |
2981 | ||
2982 | wxPyEndAllowThreads(__tstate); | |
2983 | if (PyErr_Occurred()) SWIG_fail; | |
2984 | } | |
2985 | Py_INCREF(Py_None); resultobj = Py_None; | |
2986 | return resultobj; | |
2987 | fail: | |
2988 | return NULL; | |
2989 | } | |
2990 | ||
2991 | ||
2992 | static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2993 | PyObject *resultobj; | |
2994 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2995 | wxKeyEvent *arg2 = 0 ; | |
2996 | PyObject * obj0 = 0 ; | |
2997 | PyObject * obj1 = 0 ; | |
2998 | char *kwnames[] = { | |
2999 | (char *) "self",(char *) "event", NULL | |
3000 | }; | |
3001 | ||
3002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
3003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3004 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3005 | if (arg2 == NULL) { | |
3006 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3007 | } | |
3008 | { | |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | (arg1)->base_HandleReturn(*arg2); | |
3011 | ||
3012 | wxPyEndAllowThreads(__tstate); | |
3013 | if (PyErr_Occurred()) SWIG_fail; | |
3014 | } | |
3015 | Py_INCREF(Py_None); resultobj = Py_None; | |
3016 | return resultobj; | |
3017 | fail: | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3023 | PyObject *resultobj; | |
3024 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3025 | PyObject * obj0 = 0 ; | |
3026 | char *kwnames[] = { | |
3027 | (char *) "self", NULL | |
3028 | }; | |
3029 | ||
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; | |
3031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3032 | { | |
3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3034 | (arg1)->base_Destroy(); | |
3035 | ||
3036 | wxPyEndAllowThreads(__tstate); | |
3037 | if (PyErr_Occurred()) SWIG_fail; | |
3038 | } | |
3039 | Py_INCREF(Py_None); resultobj = Py_None; | |
3040 | return resultobj; | |
3041 | fail: | |
3042 | return NULL; | |
3043 | } | |
3044 | ||
3045 | ||
3046 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3047 | PyObject *resultobj; | |
3048 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3049 | wxString *arg2 = 0 ; | |
423f194a | 3050 | bool temp2 = False ; |
d14a1e28 RD |
3051 | PyObject * obj0 = 0 ; |
3052 | PyObject * obj1 = 0 ; | |
3053 | char *kwnames[] = { | |
3054 | (char *) "self",(char *) "params", NULL | |
3055 | }; | |
3056 | ||
3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
3058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3059 | { | |
3060 | arg2 = wxString_in_helper(obj1); | |
3061 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3062 | temp2 = True; |
d14a1e28 RD |
3063 | } |
3064 | { | |
3065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3066 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
3067 | ||
3068 | wxPyEndAllowThreads(__tstate); | |
3069 | if (PyErr_Occurred()) SWIG_fail; | |
3070 | } | |
3071 | Py_INCREF(Py_None); resultobj = Py_None; | |
3072 | { | |
3073 | if (temp2) | |
3074 | delete arg2; | |
3075 | } | |
3076 | return resultobj; | |
3077 | fail: | |
3078 | { | |
3079 | if (temp2) | |
3080 | delete arg2; | |
3081 | } | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
3086 | static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
3087 | PyObject *obj; | |
3088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3089 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); | |
3090 | Py_INCREF(obj); | |
3091 | return Py_BuildValue((char *)""); | |
3092 | } | |
3093 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject *resultobj; | |
3095 | wxGridCellTextEditor *result; | |
3096 | char *kwnames[] = { | |
3097 | NULL | |
3098 | }; | |
3099 | ||
3100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1); | |
3109 | return resultobj; | |
3110 | fail: | |
3111 | return NULL; | |
3112 | } | |
3113 | ||
3114 | ||
3115 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject *resultobj; | |
3117 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; | |
3118 | wxString result; | |
3119 | PyObject * obj0 = 0 ; | |
3120 | char *kwnames[] = { | |
3121 | (char *) "self", NULL | |
3122 | }; | |
3123 | ||
3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; | |
3125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3126 | { | |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | result = (arg1)->GetValue(); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
3133 | { | |
3134 | #if wxUSE_UNICODE | |
3135 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3136 | #else | |
3137 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3138 | #endif | |
3139 | } | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
3146 | static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) { | |
3147 | PyObject *obj; | |
3148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3149 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); | |
3150 | Py_INCREF(obj); | |
3151 | return Py_BuildValue((char *)""); | |
3152 | } | |
3153 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3154 | PyObject *resultobj; | |
3155 | int arg1 = (int) -1 ; | |
3156 | int arg2 = (int) -1 ; | |
3157 | wxGridCellNumberEditor *result; | |
8edf1c75 RD |
3158 | PyObject * obj0 = 0 ; |
3159 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
3160 | char *kwnames[] = { |
3161 | (char *) "min",(char *) "max", NULL | |
3162 | }; | |
3163 | ||
8edf1c75 RD |
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; |
3165 | if (obj0) { | |
3166 | { | |
3167 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
3168 | if (PyErr_Occurred()) SWIG_fail; | |
3169 | } | |
3170 | } | |
3171 | if (obj1) { | |
3172 | { | |
3173 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3174 | if (PyErr_Occurred()) SWIG_fail; | |
3175 | } | |
3176 | } | |
d14a1e28 RD |
3177 | { |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1); | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; | |
3194 | wxString result; | |
3195 | PyObject * obj0 = 0 ; | |
3196 | char *kwnames[] = { | |
3197 | (char *) "self", NULL | |
3198 | }; | |
3199 | ||
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; | |
3201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3202 | { | |
3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3204 | result = (arg1)->GetValue(); | |
3205 | ||
3206 | wxPyEndAllowThreads(__tstate); | |
3207 | if (PyErr_Occurred()) SWIG_fail; | |
3208 | } | |
3209 | { | |
3210 | #if wxUSE_UNICODE | |
3211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3212 | #else | |
3213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3214 | #endif | |
3215 | } | |
3216 | return resultobj; | |
3217 | fail: | |
3218 | return NULL; | |
3219 | } | |
3220 | ||
3221 | ||
3222 | static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) { | |
3223 | PyObject *obj; | |
3224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3225 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); | |
3226 | Py_INCREF(obj); | |
3227 | return Py_BuildValue((char *)""); | |
3228 | } | |
3229 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject *resultobj; | |
3231 | wxGridCellFloatEditor *result; | |
3232 | char *kwnames[] = { | |
3233 | NULL | |
3234 | }; | |
3235 | ||
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail; | |
3237 | { | |
3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3239 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(); | |
3240 | ||
3241 | wxPyEndAllowThreads(__tstate); | |
3242 | if (PyErr_Occurred()) SWIG_fail; | |
3243 | } | |
3244 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1); | |
3245 | return resultobj; | |
3246 | fail: | |
3247 | return NULL; | |
3248 | } | |
3249 | ||
3250 | ||
3251 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject *resultobj; | |
3253 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; | |
3254 | wxString result; | |
3255 | PyObject * obj0 = 0 ; | |
3256 | char *kwnames[] = { | |
3257 | (char *) "self", NULL | |
3258 | }; | |
3259 | ||
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; | |
3261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | result = (arg1)->GetValue(); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | { | |
3270 | #if wxUSE_UNICODE | |
3271 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3272 | #else | |
3273 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3274 | #endif | |
3275 | } | |
3276 | return resultobj; | |
3277 | fail: | |
3278 | return NULL; | |
3279 | } | |
3280 | ||
3281 | ||
3282 | static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) { | |
3283 | PyObject *obj; | |
3284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3285 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); | |
3286 | Py_INCREF(obj); | |
3287 | return Py_BuildValue((char *)""); | |
3288 | } | |
3289 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3290 | PyObject *resultobj; | |
3291 | wxGridCellBoolEditor *result; | |
3292 | char *kwnames[] = { | |
3293 | NULL | |
3294 | }; | |
3295 | ||
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; | |
3297 | { | |
3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3299 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); | |
3300 | ||
3301 | wxPyEndAllowThreads(__tstate); | |
3302 | if (PyErr_Occurred()) SWIG_fail; | |
3303 | } | |
3304 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1); | |
3305 | return resultobj; | |
3306 | fail: | |
3307 | return NULL; | |
3308 | } | |
3309 | ||
3310 | ||
3311 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3312 | PyObject *resultobj; | |
3313 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; | |
3314 | wxString result; | |
3315 | PyObject * obj0 = 0 ; | |
3316 | char *kwnames[] = { | |
3317 | (char *) "self", NULL | |
3318 | }; | |
3319 | ||
3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; | |
3321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3322 | { | |
3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3324 | result = (arg1)->GetValue(); | |
3325 | ||
3326 | wxPyEndAllowThreads(__tstate); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
3329 | { | |
3330 | #if wxUSE_UNICODE | |
3331 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3332 | #else | |
3333 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3334 | #endif | |
3335 | } | |
3336 | return resultobj; | |
3337 | fail: | |
3338 | return NULL; | |
3339 | } | |
3340 | ||
3341 | ||
3342 | static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) { | |
3343 | PyObject *obj; | |
3344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3345 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); | |
3346 | Py_INCREF(obj); | |
3347 | return Py_BuildValue((char *)""); | |
3348 | } | |
3349 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject *resultobj; | |
3351 | int arg1 = (int) 0 ; | |
3352 | wxString *arg2 = (wxString *) NULL ; | |
423f194a | 3353 | bool arg3 = (bool) False ; |
d14a1e28 | 3354 | wxGridCellChoiceEditor *result; |
44127b65 | 3355 | PyObject * obj0 = 0 ; |
d14a1e28 | 3356 | PyObject * obj1 = 0 ; |
d14a1e28 | 3357 | char *kwnames[] = { |
44127b65 | 3358 | (char *) "choices",(char *) "allowOthers", NULL |
d14a1e28 RD |
3359 | }; |
3360 | ||
44127b65 RD |
3361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; |
3362 | if (obj0) { | |
3363 | { | |
3364 | arg1 = PyList_Size(obj0); | |
3365 | arg2 = wxString_LIST_helper(obj0); | |
3366 | if (arg2 == NULL) SWIG_fail; | |
3367 | } | |
d14a1e28 | 3368 | } |
44127b65 | 3369 | if (obj1) { |
2dbef272 | 3370 | { |
8edf1c75 | 3371 | arg3 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3372 | if (PyErr_Occurred()) SWIG_fail; |
3373 | } | |
d14a1e28 RD |
3374 | } |
3375 | { | |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); | |
3378 | ||
3379 | wxPyEndAllowThreads(__tstate); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | } | |
3382 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1); | |
44127b65 RD |
3383 | { |
3384 | if (arg2) delete [] arg2; | |
3385 | } | |
d14a1e28 RD |
3386 | return resultobj; |
3387 | fail: | |
44127b65 RD |
3388 | { |
3389 | if (arg2) delete [] arg2; | |
3390 | } | |
d14a1e28 RD |
3391 | return NULL; |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; | |
3398 | wxString result; | |
3399 | PyObject * obj0 = 0 ; | |
3400 | char *kwnames[] = { | |
3401 | (char *) "self", NULL | |
3402 | }; | |
3403 | ||
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; | |
3405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3406 | { | |
3407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3408 | result = (arg1)->GetValue(); | |
3409 | ||
3410 | wxPyEndAllowThreads(__tstate); | |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
3412 | } | |
3413 | { | |
3414 | #if wxUSE_UNICODE | |
3415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3416 | #else | |
3417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3418 | #endif | |
3419 | } | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
3426 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) { | |
3427 | PyObject *obj; | |
3428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3429 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); | |
3430 | Py_INCREF(obj); | |
3431 | return Py_BuildValue((char *)""); | |
3432 | } | |
3433 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3436 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3437 | wxGridCellEnumEditor *result; | |
423f194a | 3438 | bool temp1 = False ; |
d14a1e28 RD |
3439 | PyObject * obj0 = 0 ; |
3440 | char *kwnames[] = { | |
3441 | (char *) "choices", NULL | |
3442 | }; | |
3443 | ||
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; | |
3445 | if (obj0) { | |
3446 | { | |
3447 | arg1 = wxString_in_helper(obj0); | |
3448 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3449 | temp1 = True; |
d14a1e28 RD |
3450 | } |
3451 | } | |
3452 | { | |
3453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3454 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); | |
3455 | ||
3456 | wxPyEndAllowThreads(__tstate); | |
3457 | if (PyErr_Occurred()) SWIG_fail; | |
3458 | } | |
3459 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1); | |
3460 | { | |
3461 | if (temp1) | |
3462 | delete arg1; | |
3463 | } | |
3464 | return resultobj; | |
3465 | fail: | |
3466 | { | |
3467 | if (temp1) | |
3468 | delete arg1; | |
3469 | } | |
3470 | return NULL; | |
3471 | } | |
3472 | ||
3473 | ||
3474 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject *resultobj; | |
3476 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; | |
3477 | wxString result; | |
3478 | PyObject * obj0 = 0 ; | |
3479 | char *kwnames[] = { | |
3480 | (char *) "self", NULL | |
3481 | }; | |
3482 | ||
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; | |
3484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3485 | { | |
3486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3487 | result = (arg1)->GetValue(); | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | { | |
3493 | #if wxUSE_UNICODE | |
3494 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3495 | #else | |
3496 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3497 | #endif | |
3498 | } | |
3499 | return resultobj; | |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) { | |
3506 | PyObject *obj; | |
3507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3508 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); | |
3509 | Py_INCREF(obj); | |
3510 | return Py_BuildValue((char *)""); | |
3511 | } | |
3512 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject *resultobj; | |
3514 | wxGridCellAutoWrapStringEditor *result; | |
3515 | char *kwnames[] = { | |
3516 | NULL | |
3517 | }; | |
3518 | ||
3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; | |
3520 | { | |
3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3522 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); | |
3523 | ||
3524 | wxPyEndAllowThreads(__tstate); | |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
3526 | } | |
3527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); | |
3528 | return resultobj; | |
3529 | fail: | |
3530 | return NULL; | |
3531 | } | |
3532 | ||
3533 | ||
3534 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3535 | PyObject *resultobj; | |
3536 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; | |
3537 | wxString result; | |
3538 | PyObject * obj0 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "self", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; | |
3544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3545 | { | |
3546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3547 | result = (arg1)->GetValue(); | |
3548 | ||
3549 | wxPyEndAllowThreads(__tstate); | |
3550 | if (PyErr_Occurred()) SWIG_fail; | |
3551 | } | |
3552 | { | |
3553 | #if wxUSE_UNICODE | |
3554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3555 | #else | |
3556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3557 | #endif | |
3558 | } | |
3559 | return resultobj; | |
3560 | fail: | |
3561 | return NULL; | |
3562 | } | |
3563 | ||
3564 | ||
3565 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) { | |
3566 | PyObject *obj; | |
3567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3568 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); | |
3569 | Py_INCREF(obj); | |
3570 | return Py_BuildValue((char *)""); | |
3571 | } | |
3572 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3573 | PyObject *resultobj; | |
3574 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3575 | PyObject *arg2 = (PyObject *) 0 ; | |
3576 | PyObject * obj0 = 0 ; | |
3577 | PyObject * obj1 = 0 ; | |
3578 | char *kwnames[] = { | |
3579 | (char *) "self",(char *) "_self", NULL | |
3580 | }; | |
3581 | ||
3582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
3583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3584 | arg2 = obj1; | |
3585 | { | |
3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3587 | wxGridCellAttr__setOORInfo(arg1,arg2); | |
3588 | ||
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) SWIG_fail; | |
3591 | } | |
3592 | Py_INCREF(Py_None); resultobj = Py_None; | |
3593 | return resultobj; | |
3594 | fail: | |
3595 | return NULL; | |
3596 | } | |
3597 | ||
3598 | ||
3599 | static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject *resultobj; | |
3601 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; | |
3602 | wxGridCellAttr *result; | |
3603 | PyObject * obj0 = 0 ; | |
3604 | char *kwnames[] = { | |
3605 | (char *) "attrDefault", NULL | |
3606 | }; | |
3607 | ||
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; | |
3609 | if (obj0) { | |
3610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3611 | } | |
3612 | { | |
3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3614 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); | |
3615 | ||
3616 | wxPyEndAllowThreads(__tstate); | |
3617 | if (PyErr_Occurred()) SWIG_fail; | |
3618 | } | |
3619 | { | |
3620 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3621 | } | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3629 | PyObject *resultobj; | |
3630 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3631 | wxGridCellAttr *result; | |
3632 | PyObject * obj0 = 0 ; | |
3633 | char *kwnames[] = { | |
3634 | (char *) "self", NULL | |
3635 | }; | |
3636 | ||
3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; | |
3638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3639 | { | |
3640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3641 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); | |
3642 | ||
3643 | wxPyEndAllowThreads(__tstate); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
3646 | { | |
3647 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3648 | } | |
3649 | return resultobj; | |
3650 | fail: | |
3651 | return NULL; | |
3652 | } | |
3653 | ||
3654 | ||
3655 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject *resultobj; | |
3657 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3658 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
3659 | PyObject * obj0 = 0 ; | |
3660 | PyObject * obj1 = 0 ; | |
3661 | char *kwnames[] = { | |
3662 | (char *) "self",(char *) "mergefrom", NULL | |
3663 | }; | |
3664 | ||
3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; | |
3666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3668 | { | |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | (arg1)->MergeWith(arg2); | |
3671 | ||
3672 | wxPyEndAllowThreads(__tstate); | |
3673 | if (PyErr_Occurred()) SWIG_fail; | |
3674 | } | |
3675 | Py_INCREF(Py_None); resultobj = Py_None; | |
3676 | return resultobj; | |
3677 | fail: | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
3682 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject *resultobj; | |
3684 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3685 | PyObject * obj0 = 0 ; | |
3686 | char *kwnames[] = { | |
3687 | (char *) "self", NULL | |
3688 | }; | |
3689 | ||
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; | |
3691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3692 | { | |
3693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3694 | (arg1)->IncRef(); | |
3695 | ||
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | Py_INCREF(Py_None); resultobj = Py_None; | |
3700 | return resultobj; | |
3701 | fail: | |
3702 | return NULL; | |
3703 | } | |
3704 | ||
3705 | ||
3706 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3707 | PyObject *resultobj; | |
3708 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3709 | PyObject * obj0 = 0 ; | |
3710 | char *kwnames[] = { | |
3711 | (char *) "self", NULL | |
3712 | }; | |
3713 | ||
3714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; | |
3715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3716 | { | |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | (arg1)->DecRef(); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | Py_INCREF(Py_None); resultobj = Py_None; | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
3730 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3731 | PyObject *resultobj; | |
3732 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3733 | wxColour *arg2 = 0 ; | |
3734 | wxColour temp2 ; | |
3735 | PyObject * obj0 = 0 ; | |
3736 | PyObject * obj1 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "self",(char *) "colText", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
3742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3743 | { | |
3744 | arg2 = &temp2; | |
3745 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3746 | } | |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3750 | ||
3751 | wxPyEndAllowThreads(__tstate); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | } | |
3754 | Py_INCREF(Py_None); resultobj = Py_None; | |
3755 | return resultobj; | |
3756 | fail: | |
3757 | return NULL; | |
3758 | } | |
3759 | ||
3760 | ||
3761 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3762 | PyObject *resultobj; | |
3763 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3764 | wxColour *arg2 = 0 ; | |
3765 | wxColour temp2 ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | char *kwnames[] = { | |
3769 | (char *) "self",(char *) "colBack", NULL | |
3770 | }; | |
3771 | ||
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
3773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3774 | { | |
3775 | arg2 = &temp2; | |
3776 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
3785 | Py_INCREF(Py_None); resultobj = Py_None; | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject *resultobj; | |
3794 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3795 | wxFont *arg2 = 0 ; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | PyObject * obj1 = 0 ; | |
3798 | char *kwnames[] = { | |
3799 | (char *) "self",(char *) "font", NULL | |
3800 | }; | |
3801 | ||
3802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
3803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3805 | if (arg2 == NULL) { | |
3806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3807 | } | |
3808 | { | |
3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3810 | (arg1)->SetFont((wxFont const &)*arg2); | |
3811 | ||
3812 | wxPyEndAllowThreads(__tstate); | |
3813 | if (PyErr_Occurred()) SWIG_fail; | |
3814 | } | |
3815 | Py_INCREF(Py_None); resultobj = Py_None; | |
3816 | return resultobj; | |
3817 | fail: | |
3818 | return NULL; | |
3819 | } | |
3820 | ||
3821 | ||
3822 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject *resultobj; | |
3824 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3825 | int arg2 ; | |
3826 | int arg3 ; | |
3827 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3828 | PyObject * obj1 = 0 ; |
3829 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3830 | char *kwnames[] = { |
3831 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL | |
3832 | }; | |
3833 | ||
8edf1c75 | 3834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3836 | { |
3837 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
3840 | { | |
3841 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3842 | if (PyErr_Occurred()) SWIG_fail; | |
3843 | } | |
d14a1e28 RD |
3844 | { |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | (arg1)->SetAlignment(arg2,arg3); | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
3851 | Py_INCREF(Py_None); resultobj = Py_None; | |
3852 | return resultobj; | |
3853 | fail: | |
3854 | return NULL; | |
3855 | } | |
3856 | ||
3857 | ||
3858 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3859 | PyObject *resultobj; | |
3860 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3861 | int arg2 ; | |
3862 | int arg3 ; | |
3863 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3864 | PyObject * obj1 = 0 ; |
3865 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3866 | char *kwnames[] = { |
3867 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL | |
3868 | }; | |
3869 | ||
8edf1c75 | 3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3872 | { |
3873 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3874 | if (PyErr_Occurred()) SWIG_fail; | |
3875 | } | |
3876 | { | |
3877 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3878 | if (PyErr_Occurred()) SWIG_fail; | |
3879 | } | |
d14a1e28 RD |
3880 | { |
3881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3882 | (arg1)->SetSize(arg2,arg3); | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
3886 | } | |
3887 | Py_INCREF(Py_None); resultobj = Py_None; | |
3888 | return resultobj; | |
3889 | fail: | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
423f194a | 3897 | bool arg2 = (bool) True ; |
d14a1e28 RD |
3898 | PyObject * obj0 = 0 ; |
3899 | PyObject * obj1 = 0 ; | |
3900 | char *kwnames[] = { | |
3901 | (char *) "self",(char *) "allow", NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; | |
3905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3906 | if (obj1) { | |
2dbef272 | 3907 | { |
8edf1c75 | 3908 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3909 | if (PyErr_Occurred()) SWIG_fail; |
3910 | } | |
d14a1e28 RD |
3911 | } |
3912 | { | |
3913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3914 | (arg1)->SetOverflow(arg2); | |
3915 | ||
3916 | wxPyEndAllowThreads(__tstate); | |
3917 | if (PyErr_Occurred()) SWIG_fail; | |
3918 | } | |
3919 | Py_INCREF(Py_None); resultobj = Py_None; | |
3920 | return resultobj; | |
3921 | fail: | |
3922 | return NULL; | |
3923 | } | |
3924 | ||
3925 | ||
3926 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3927 | PyObject *resultobj; | |
3928 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
423f194a | 3929 | bool arg2 = (bool) True ; |
d14a1e28 RD |
3930 | PyObject * obj0 = 0 ; |
3931 | PyObject * obj1 = 0 ; | |
3932 | char *kwnames[] = { | |
3933 | (char *) "self",(char *) "isReadOnly", NULL | |
3934 | }; | |
3935 | ||
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; | |
3937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3938 | if (obj1) { | |
2dbef272 | 3939 | { |
8edf1c75 | 3940 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3941 | if (PyErr_Occurred()) SWIG_fail; |
3942 | } | |
d14a1e28 RD |
3943 | } |
3944 | { | |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | (arg1)->SetReadOnly(arg2); | |
3947 | ||
3948 | wxPyEndAllowThreads(__tstate); | |
3949 | if (PyErr_Occurred()) SWIG_fail; | |
3950 | } | |
3951 | Py_INCREF(Py_None); resultobj = Py_None; | |
3952 | return resultobj; | |
3953 | fail: | |
3954 | return NULL; | |
3955 | } | |
3956 | ||
3957 | ||
3958 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3959 | PyObject *resultobj; | |
3960 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3961 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
3962 | PyObject * obj0 = 0 ; | |
3963 | PyObject * obj1 = 0 ; | |
3964 | char *kwnames[] = { | |
3965 | (char *) "self",(char *) "renderer", NULL | |
3966 | }; | |
3967 | ||
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; | |
3969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3971 | { | |
3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3973 | (arg1)->SetRenderer(arg2); | |
3974 | ||
3975 | wxPyEndAllowThreads(__tstate); | |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
3977 | } | |
3978 | Py_INCREF(Py_None); resultobj = Py_None; | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | return NULL; | |
3982 | } | |
3983 | ||
3984 | ||
3985 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3986 | PyObject *resultobj; | |
3987 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3988 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
3989 | PyObject * obj0 = 0 ; | |
3990 | PyObject * obj1 = 0 ; | |
3991 | char *kwnames[] = { | |
3992 | (char *) "self",(char *) "editor", NULL | |
3993 | }; | |
3994 | ||
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; | |
3996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3998 | { | |
3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4000 | (arg1)->SetEditor(arg2); | |
4001 | ||
4002 | wxPyEndAllowThreads(__tstate); | |
4003 | if (PyErr_Occurred()) SWIG_fail; | |
4004 | } | |
4005 | Py_INCREF(Py_None); resultobj = Py_None; | |
4006 | return resultobj; | |
4007 | fail: | |
4008 | return NULL; | |
4009 | } | |
4010 | ||
4011 | ||
4012 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject *resultobj; | |
4014 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4015 | int arg2 ; | |
4016 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4018 | char *kwnames[] = { |
4019 | (char *) "self",(char *) "kind", NULL | |
4020 | }; | |
4021 | ||
8edf1c75 | 4022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4024 | { |
4025 | arg2 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj1); | |
4026 | if (PyErr_Occurred()) SWIG_fail; | |
4027 | } | |
d14a1e28 RD |
4028 | { |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4030 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); | |
4031 | ||
4032 | wxPyEndAllowThreads(__tstate); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | Py_INCREF(Py_None); resultobj = Py_None; | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | return NULL; | |
4039 | } | |
4040 | ||
4041 | ||
4042 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4043 | PyObject *resultobj; | |
4044 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4045 | bool result; | |
4046 | PyObject * obj0 = 0 ; | |
4047 | char *kwnames[] = { | |
4048 | (char *) "self", NULL | |
4049 | }; | |
4050 | ||
4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
4052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4053 | { | |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
02a34c4c | 4060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4061 | return resultobj; |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
4067 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject *resultobj; | |
4069 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4070 | bool result; | |
4071 | PyObject * obj0 = 0 ; | |
4072 | char *kwnames[] = { | |
4073 | (char *) "self", NULL | |
4074 | }; | |
4075 | ||
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
4077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4078 | { | |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4080 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); | |
4081 | ||
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
02a34c4c | 4085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4086 | return resultobj; |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
4092 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4093 | PyObject *resultobj; | |
4094 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4095 | bool result; | |
4096 | PyObject * obj0 = 0 ; | |
4097 | char *kwnames[] = { | |
4098 | (char *) "self", NULL | |
4099 | }; | |
4100 | ||
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; | |
4102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4103 | { | |
4104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4105 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); | |
4106 | ||
4107 | wxPyEndAllowThreads(__tstate); | |
4108 | if (PyErr_Occurred()) SWIG_fail; | |
4109 | } | |
02a34c4c | 4110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4111 | return resultobj; |
4112 | fail: | |
4113 | return NULL; | |
4114 | } | |
4115 | ||
4116 | ||
4117 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4118 | PyObject *resultobj; | |
4119 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4120 | bool result; | |
4121 | PyObject * obj0 = 0 ; | |
4122 | char *kwnames[] = { | |
4123 | (char *) "self", NULL | |
4124 | }; | |
4125 | ||
4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
4127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4128 | { | |
4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4130 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); | |
4131 | ||
4132 | wxPyEndAllowThreads(__tstate); | |
4133 | if (PyErr_Occurred()) SWIG_fail; | |
4134 | } | |
02a34c4c | 4135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4136 | return resultobj; |
4137 | fail: | |
4138 | return NULL; | |
4139 | } | |
4140 | ||
4141 | ||
4142 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4143 | PyObject *resultobj; | |
4144 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4145 | bool result; | |
4146 | PyObject * obj0 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; | |
4152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4153 | { | |
4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4155 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
02a34c4c | 4160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4161 | return resultobj; |
4162 | fail: | |
4163 | return NULL; | |
4164 | } | |
4165 | ||
4166 | ||
4167 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4168 | PyObject *resultobj; | |
4169 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4170 | bool result; | |
4171 | PyObject * obj0 = 0 ; | |
4172 | char *kwnames[] = { | |
4173 | (char *) "self", NULL | |
4174 | }; | |
4175 | ||
4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; | |
4177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4178 | { | |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); | |
4181 | ||
4182 | wxPyEndAllowThreads(__tstate); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
02a34c4c | 4185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4186 | return resultobj; |
4187 | fail: | |
4188 | return NULL; | |
4189 | } | |
4190 | ||
4191 | ||
4192 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject *resultobj; | |
4194 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4195 | bool result; | |
4196 | PyObject * obj0 = 0 ; | |
4197 | char *kwnames[] = { | |
4198 | (char *) "self", NULL | |
4199 | }; | |
4200 | ||
4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; | |
4202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4203 | { | |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); | |
4206 | ||
4207 | wxPyEndAllowThreads(__tstate); | |
4208 | if (PyErr_Occurred()) SWIG_fail; | |
4209 | } | |
02a34c4c | 4210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4211 | return resultobj; |
4212 | fail: | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
4217 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject *resultobj; | |
4219 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4220 | bool result; | |
4221 | PyObject * obj0 = 0 ; | |
4222 | char *kwnames[] = { | |
4223 | (char *) "self", NULL | |
4224 | }; | |
4225 | ||
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; | |
4227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4228 | { | |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); | |
4231 | ||
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
02a34c4c | 4235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4236 | return resultobj; |
4237 | fail: | |
4238 | return NULL; | |
4239 | } | |
4240 | ||
4241 | ||
4242 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4243 | PyObject *resultobj; | |
4244 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4245 | wxColour result; | |
4246 | PyObject * obj0 = 0 ; | |
4247 | char *kwnames[] = { | |
4248 | (char *) "self", NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
4252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4253 | { | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | wxColour * resultptr; | |
4262 | resultptr = new wxColour((wxColour &) result); | |
4263 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
4264 | } | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
4271 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject *resultobj; | |
4273 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4274 | wxColour result; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | char *kwnames[] = { | |
4277 | (char *) "self", NULL | |
4278 | }; | |
4279 | ||
4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
4281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4282 | { | |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) SWIG_fail; | |
4288 | } | |
4289 | { | |
4290 | wxColour * resultptr; | |
4291 | resultptr = new wxColour((wxColour &) result); | |
4292 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
4293 | } | |
4294 | return resultobj; | |
4295 | fail: | |
4296 | return NULL; | |
4297 | } | |
4298 | ||
4299 | ||
4300 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4301 | PyObject *resultobj; | |
4302 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4303 | wxFont result; | |
4304 | PyObject * obj0 = 0 ; | |
4305 | char *kwnames[] = { | |
4306 | (char *) "self", NULL | |
4307 | }; | |
4308 | ||
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; | |
4310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4311 | { | |
4312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4313 | result = ((wxGridCellAttr const *)arg1)->GetFont(); | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | { | |
4319 | wxFont * resultptr; | |
4320 | resultptr = new wxFont((wxFont &) result); | |
4321 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
4322 | } | |
4323 | return resultobj; | |
4324 | fail: | |
4325 | return NULL; | |
4326 | } | |
4327 | ||
4328 | ||
4329 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject *resultobj; | |
4331 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4332 | int *arg2 = (int *) 0 ; | |
4333 | int *arg3 = (int *) 0 ; | |
4334 | int temp2 ; | |
4335 | int temp3 ; | |
4336 | PyObject * obj0 = 0 ; | |
4337 | char *kwnames[] = { | |
4338 | (char *) "self", NULL | |
4339 | }; | |
4340 | ||
4341 | arg2 = &temp2; | |
4342 | arg3 = &temp3; | |
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
4344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4345 | { | |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4347 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | Py_INCREF(Py_None); resultobj = Py_None; | |
4353 | { | |
4354 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4355 | resultobj = t_output_helper(resultobj,o); | |
4356 | } | |
4357 | { | |
4358 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4359 | resultobj = t_output_helper(resultobj,o); | |
4360 | } | |
4361 | return resultobj; | |
4362 | fail: | |
4363 | return NULL; | |
4364 | } | |
4365 | ||
4366 | ||
4367 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject *resultobj; | |
4369 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4370 | int *arg2 = (int *) 0 ; | |
4371 | int *arg3 = (int *) 0 ; | |
4372 | int temp2 ; | |
4373 | int temp3 ; | |
4374 | PyObject * obj0 = 0 ; | |
4375 | char *kwnames[] = { | |
4376 | (char *) "self", NULL | |
4377 | }; | |
4378 | ||
4379 | arg2 = &temp2; | |
4380 | arg3 = &temp3; | |
4381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; | |
4382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | Py_INCREF(Py_None); resultobj = Py_None; | |
4391 | { | |
4392 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4393 | resultobj = t_output_helper(resultobj,o); | |
4394 | } | |
4395 | { | |
4396 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4397 | resultobj = t_output_helper(resultobj,o); | |
4398 | } | |
4399 | return resultobj; | |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
4405 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject *resultobj; | |
4407 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4408 | bool result; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | char *kwnames[] = { | |
4411 | (char *) "self", NULL | |
4412 | }; | |
4413 | ||
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; | |
4415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4416 | { | |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
02a34c4c | 4423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4424 | return resultobj; |
4425 | fail: | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
4430 | static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject *resultobj; | |
4432 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4433 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4434 | int arg3 ; | |
4435 | int arg4 ; | |
4436 | wxGridCellRenderer *result; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4439 | PyObject * obj2 = 0 ; |
4440 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4441 | char *kwnames[] = { |
4442 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4443 | }; | |
4444 | ||
8edf1c75 | 4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4447 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4448 | { |
4449 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | { | |
4453 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
d14a1e28 RD |
4456 | { |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | { | |
4464 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
4465 | } | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
4472 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject *resultobj; | |
4474 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4475 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4476 | int arg3 ; | |
4477 | int arg4 ; | |
4478 | wxGridCellEditor *result; | |
4479 | PyObject * obj0 = 0 ; | |
4480 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4481 | PyObject * obj2 = 0 ; |
4482 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4483 | char *kwnames[] = { |
4484 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4485 | }; | |
4486 | ||
8edf1c75 | 4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4490 | { |
4491 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4492 | if (PyErr_Occurred()) SWIG_fail; | |
4493 | } | |
4494 | { | |
4495 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
d14a1e28 RD |
4498 | { |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4500 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | } | |
4505 | { | |
4506 | resultobj = wxPyMake_wxGridCellEditor(result); | |
4507 | } | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | return NULL; | |
4511 | } | |
4512 | ||
4513 | ||
4514 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4515 | PyObject *resultobj; | |
4516 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4517 | bool result; | |
4518 | PyObject * obj0 = 0 ; | |
4519 | char *kwnames[] = { | |
4520 | (char *) "self", NULL | |
4521 | }; | |
4522 | ||
4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; | |
4524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4525 | { | |
4526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4527 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); | |
4528 | ||
4529 | wxPyEndAllowThreads(__tstate); | |
4530 | if (PyErr_Occurred()) SWIG_fail; | |
4531 | } | |
02a34c4c | 4532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4533 | return resultobj; |
4534 | fail: | |
4535 | return NULL; | |
4536 | } | |
4537 | ||
4538 | ||
4539 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4540 | PyObject *resultobj; | |
4541 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4542 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4543 | PyObject * obj0 = 0 ; | |
4544 | PyObject * obj1 = 0 ; | |
4545 | char *kwnames[] = { | |
4546 | (char *) "self",(char *) "defAttr", NULL | |
4547 | }; | |
4548 | ||
4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; | |
4550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4552 | { | |
4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4554 | (arg1)->SetDefAttr(arg2); | |
4555 | ||
4556 | wxPyEndAllowThreads(__tstate); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | Py_INCREF(Py_None); resultobj = Py_None; | |
4560 | return resultobj; | |
4561 | fail: | |
4562 | return NULL; | |
4563 | } | |
4564 | ||
4565 | ||
4566 | static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) { | |
4567 | PyObject *obj; | |
4568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4569 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); | |
4570 | Py_INCREF(obj); | |
4571 | return Py_BuildValue((char *)""); | |
4572 | } | |
4573 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4574 | PyObject *resultobj; | |
4575 | wxGridCellAttrProvider *result; | |
4576 | char *kwnames[] = { | |
4577 | NULL | |
4578 | }; | |
4579 | ||
4580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; | |
4581 | { | |
4582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4583 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); | |
4584 | ||
4585 | wxPyEndAllowThreads(__tstate); | |
4586 | if (PyErr_Occurred()) SWIG_fail; | |
4587 | } | |
4588 | { | |
4589 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
4590 | } | |
4591 | return resultobj; | |
4592 | fail: | |
4593 | return NULL; | |
4594 | } | |
4595 | ||
4596 | ||
4597 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4598 | PyObject *resultobj; | |
4599 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4600 | PyObject *arg2 = (PyObject *) 0 ; | |
4601 | PyObject * obj0 = 0 ; | |
4602 | PyObject * obj1 = 0 ; | |
4603 | char *kwnames[] = { | |
4604 | (char *) "self",(char *) "_self", NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
4608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4609 | arg2 = obj1; | |
4610 | { | |
4611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4612 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); | |
4613 | ||
4614 | wxPyEndAllowThreads(__tstate); | |
4615 | if (PyErr_Occurred()) SWIG_fail; | |
4616 | } | |
4617 | Py_INCREF(Py_None); resultobj = Py_None; | |
4618 | return resultobj; | |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj; | |
4626 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4627 | int arg2 ; | |
4628 | int arg3 ; | |
4629 | int arg4 ; | |
4630 | wxGridCellAttr *result; | |
4631 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4632 | PyObject * obj1 = 0 ; |
4633 | PyObject * obj2 = 0 ; | |
4634 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4635 | char *kwnames[] = { |
4636 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4637 | }; | |
4638 | ||
8edf1c75 | 4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 4640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4641 | { |
4642 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4643 | if (PyErr_Occurred()) SWIG_fail; | |
4644 | } | |
4645 | { | |
4646 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4647 | if (PyErr_Occurred()) SWIG_fail; | |
4648 | } | |
4649 | { | |
4650 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
d14a1e28 RD |
4653 | { |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4655 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4656 | ||
4657 | wxPyEndAllowThreads(__tstate); | |
4658 | if (PyErr_Occurred()) SWIG_fail; | |
4659 | } | |
4660 | { | |
4661 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4662 | } | |
4663 | return resultobj; | |
4664 | fail: | |
4665 | return NULL; | |
4666 | } | |
4667 | ||
4668 | ||
4669 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4670 | PyObject *resultobj; | |
4671 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4672 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4673 | int arg3 ; | |
4674 | int arg4 ; | |
4675 | PyObject * obj0 = 0 ; | |
4676 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4677 | PyObject * obj2 = 0 ; |
4678 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4679 | char *kwnames[] = { |
4680 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4681 | }; | |
4682 | ||
8edf1c75 | 4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4685 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4686 | { |
4687 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4692 | if (PyErr_Occurred()) SWIG_fail; | |
4693 | } | |
d14a1e28 RD |
4694 | { |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | (arg1)->SetAttr(arg2,arg3,arg4); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | Py_INCREF(Py_None); resultobj = Py_None; | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
4708 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4709 | PyObject *resultobj; | |
4710 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4711 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4712 | int arg3 ; | |
4713 | PyObject * obj0 = 0 ; | |
4714 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4715 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4716 | char *kwnames[] = { |
4717 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
4718 | }; | |
4719 | ||
8edf1c75 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4723 | { |
4724 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
d14a1e28 RD |
4727 | { |
4728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4729 | (arg1)->SetRowAttr(arg2,arg3); | |
4730 | ||
4731 | wxPyEndAllowThreads(__tstate); | |
4732 | if (PyErr_Occurred()) SWIG_fail; | |
4733 | } | |
4734 | Py_INCREF(Py_None); resultobj = Py_None; | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
4741 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4742 | PyObject *resultobj; | |
4743 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4744 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4745 | int arg3 ; | |
4746 | PyObject * obj0 = 0 ; | |
4747 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4748 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4749 | char *kwnames[] = { |
4750 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
4751 | }; | |
4752 | ||
8edf1c75 | 4753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4756 | { |
4757 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
d14a1e28 RD |
4760 | { |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | (arg1)->SetColAttr(arg2,arg3); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | Py_INCREF(Py_None); resultobj = Py_None; | |
4768 | return resultobj; | |
4769 | fail: | |
4770 | return NULL; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject *resultobj; | |
4776 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4777 | size_t arg2 ; | |
4778 | int arg3 ; | |
4779 | PyObject * obj0 = 0 ; | |
4780 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4781 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4782 | char *kwnames[] = { |
4783 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
4784 | }; | |
4785 | ||
8edf1c75 | 4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 4788 | { |
8edf1c75 RD |
4789 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
4790 | if (PyErr_Occurred()) SWIG_fail; | |
4791 | } | |
4792 | { | |
4793 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
4794 | if (PyErr_Occurred()) SWIG_fail; |
4795 | } | |
d14a1e28 RD |
4796 | { |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | (arg1)->UpdateAttrRows(arg2,arg3); | |
4799 | ||
4800 | wxPyEndAllowThreads(__tstate); | |
4801 | if (PyErr_Occurred()) SWIG_fail; | |
4802 | } | |
4803 | Py_INCREF(Py_None); resultobj = Py_None; | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | return NULL; | |
4807 | } | |
4808 | ||
4809 | ||
4810 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject *resultobj; | |
4812 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4813 | size_t arg2 ; | |
4814 | int arg3 ; | |
4815 | PyObject * obj0 = 0 ; | |
4816 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4817 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4818 | char *kwnames[] = { |
4819 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
4820 | }; | |
4821 | ||
8edf1c75 | 4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 4824 | { |
8edf1c75 RD |
4825 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | { | |
4829 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
4830 | if (PyErr_Occurred()) SWIG_fail; |
4831 | } | |
d14a1e28 RD |
4832 | { |
4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4834 | (arg1)->UpdateAttrCols(arg2,arg3); | |
4835 | ||
4836 | wxPyEndAllowThreads(__tstate); | |
4837 | if (PyErr_Occurred()) SWIG_fail; | |
4838 | } | |
4839 | Py_INCREF(Py_None); resultobj = Py_None; | |
4840 | return resultobj; | |
4841 | fail: | |
4842 | return NULL; | |
4843 | } | |
4844 | ||
4845 | ||
4846 | static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
4847 | PyObject *obj; | |
4848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4849 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); | |
4850 | Py_INCREF(obj); | |
4851 | return Py_BuildValue((char *)""); | |
4852 | } | |
4853 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4854 | PyObject *resultobj; | |
4855 | wxPyGridCellAttrProvider *result; | |
4856 | char *kwnames[] = { | |
4857 | NULL | |
4858 | }; | |
4859 | ||
4860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
4867 | } | |
4868 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1); | |
4869 | return resultobj; | |
4870 | fail: | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4878 | PyObject *arg2 = (PyObject *) 0 ; | |
4879 | PyObject *arg3 = (PyObject *) 0 ; | |
4880 | PyObject * obj0 = 0 ; | |
4881 | PyObject * obj1 = 0 ; | |
4882 | PyObject * obj2 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
4885 | }; | |
4886 | ||
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4889 | arg2 = obj1; | |
4890 | arg3 = obj2; | |
4891 | { | |
4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4893 | (arg1)->_setCallbackInfo(arg2,arg3); | |
4894 | ||
4895 | wxPyEndAllowThreads(__tstate); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
4897 | } | |
4898 | Py_INCREF(Py_None); resultobj = Py_None; | |
4899 | return resultobj; | |
4900 | fail: | |
4901 | return NULL; | |
4902 | } | |
4903 | ||
4904 | ||
4905 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4906 | PyObject *resultobj; | |
4907 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4908 | int arg2 ; | |
4909 | int arg3 ; | |
4910 | int arg4 ; | |
4911 | wxGridCellAttr *result; | |
4912 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4913 | PyObject * obj1 = 0 ; |
4914 | PyObject * obj2 = 0 ; | |
4915 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4916 | char *kwnames[] = { |
4917 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4918 | }; | |
4919 | ||
8edf1c75 | 4920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 4921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4922 | { |
4923 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4924 | if (PyErr_Occurred()) SWIG_fail; | |
4925 | } | |
4926 | { | |
4927 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
4930 | { | |
4931 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | } | |
d14a1e28 RD |
4934 | { |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | { | |
4942 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4943 | } | |
4944 | return resultobj; | |
4945 | fail: | |
4946 | return NULL; | |
4947 | } | |
4948 | ||
4949 | ||
4950 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject *resultobj; | |
4952 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4953 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4954 | int arg3 ; | |
4955 | int arg4 ; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4958 | PyObject * obj2 = 0 ; |
4959 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4960 | char *kwnames[] = { |
4961 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4962 | }; | |
4963 | ||
8edf1c75 | 4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
4965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4966 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4967 | { |
4968 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | { | |
4972 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
d14a1e28 RD |
4975 | { |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4977 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
4978 | ||
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | Py_INCREF(Py_None); resultobj = Py_None; | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
4986 | } | |
4987 | ||
4988 | ||
4989 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject *resultobj; | |
4991 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
4992 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4993 | int arg3 ; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4996 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4997 | char *kwnames[] = { |
4998 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
4999 | }; | |
5000 | ||
8edf1c75 | 5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5003 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5004 | { |
5005 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
d14a1e28 RD |
5008 | { |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | (arg1)->base_SetRowAttr(arg2,arg3); | |
5011 | ||
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | Py_INCREF(Py_None); resultobj = Py_None; | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5025 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5026 | int arg3 ; | |
5027 | PyObject * obj0 = 0 ; | |
5028 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5029 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5030 | char *kwnames[] = { |
5031 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5032 | }; | |
5033 | ||
8edf1c75 | 5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5037 | { |
5038 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5039 | if (PyErr_Occurred()) SWIG_fail; | |
5040 | } | |
d14a1e28 RD |
5041 | { |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | (arg1)->base_SetColAttr(arg2,arg3); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | Py_INCREF(Py_None); resultobj = Py_None; | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5056 | PyObject *obj; | |
5057 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5058 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); | |
5059 | Py_INCREF(obj); | |
5060 | return Py_BuildValue((char *)""); | |
5061 | } | |
5062 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj; | |
5064 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5065 | PyObject *arg2 = (PyObject *) 0 ; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | PyObject * obj1 = 0 ; | |
5068 | char *kwnames[] = { | |
5069 | (char *) "self",(char *) "_self", NULL | |
5070 | }; | |
5071 | ||
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | arg2 = obj1; | |
5075 | { | |
5076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5077 | wxGridTableBase__setOORInfo(arg1,arg2); | |
5078 | ||
5079 | wxPyEndAllowThreads(__tstate); | |
5080 | if (PyErr_Occurred()) SWIG_fail; | |
5081 | } | |
5082 | Py_INCREF(Py_None); resultobj = Py_None; | |
5083 | return resultobj; | |
5084 | fail: | |
5085 | return NULL; | |
5086 | } | |
5087 | ||
5088 | ||
5089 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5090 | PyObject *resultobj; | |
5091 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5092 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | PyObject * obj1 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "self",(char *) "attrProvider", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; | |
5100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | (arg1)->SetAttrProvider(arg2); | |
5105 | ||
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) SWIG_fail; | |
5108 | } | |
5109 | Py_INCREF(Py_None); resultobj = Py_None; | |
5110 | return resultobj; | |
5111 | fail: | |
5112 | return NULL; | |
5113 | } | |
5114 | ||
5115 | ||
5116 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5117 | PyObject *resultobj; | |
5118 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5119 | wxGridCellAttrProvider *result; | |
5120 | PyObject * obj0 = 0 ; | |
5121 | char *kwnames[] = { | |
5122 | (char *) "self", NULL | |
5123 | }; | |
5124 | ||
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; | |
5126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
5134 | { | |
5135 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
5136 | } | |
5137 | return resultobj; | |
5138 | fail: | |
5139 | return NULL; | |
5140 | } | |
5141 | ||
5142 | ||
5143 | static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5144 | PyObject *resultobj; | |
5145 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5146 | wxGrid *arg2 = (wxGrid *) 0 ; | |
5147 | PyObject * obj0 = 0 ; | |
5148 | PyObject * obj1 = 0 ; | |
5149 | char *kwnames[] = { | |
5150 | (char *) "self",(char *) "grid", NULL | |
5151 | }; | |
5152 | ||
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; | |
5154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5156 | { | |
5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5158 | (arg1)->SetView(arg2); | |
5159 | ||
5160 | wxPyEndAllowThreads(__tstate); | |
5161 | if (PyErr_Occurred()) SWIG_fail; | |
5162 | } | |
5163 | Py_INCREF(Py_None); resultobj = Py_None; | |
5164 | return resultobj; | |
5165 | fail: | |
5166 | return NULL; | |
5167 | } | |
5168 | ||
5169 | ||
5170 | static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5171 | PyObject *resultobj; | |
5172 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5173 | wxGrid *result; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | char *kwnames[] = { | |
5176 | (char *) "self", NULL | |
5177 | }; | |
5178 | ||
5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; | |
5180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5181 | { | |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); | |
5184 | ||
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
5188 | { | |
5189 | resultobj = wxPyMake_wxObject(result); | |
5190 | } | |
5191 | return resultobj; | |
5192 | fail: | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
5197 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5200 | int result; | |
5201 | PyObject * obj0 = 0 ; | |
5202 | char *kwnames[] = { | |
5203 | (char *) "self", NULL | |
5204 | }; | |
5205 | ||
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; | |
5207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = (int)(arg1)->GetNumberRows(); | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
8edf1c75 | 5215 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5216 | return resultobj; |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5222 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5225 | int result; | |
5226 | PyObject * obj0 = 0 ; | |
5227 | char *kwnames[] = { | |
5228 | (char *) "self", NULL | |
5229 | }; | |
5230 | ||
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; | |
5232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | result = (int)(arg1)->GetNumberCols(); | |
5236 | ||
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
8edf1c75 | 5240 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5241 | return resultobj; |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5248 | PyObject *resultobj; | |
5249 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5250 | int arg2 ; | |
5251 | int arg3 ; | |
5252 | bool result; | |
5253 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5254 | PyObject * obj1 = 0 ; |
5255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5256 | char *kwnames[] = { |
5257 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5258 | }; | |
5259 | ||
8edf1c75 | 5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5262 | { |
5263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | { | |
5267 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
d14a1e28 RD |
5270 | { |
5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5272 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); | |
5273 | ||
5274 | wxPyEndAllowThreads(__tstate); | |
5275 | if (PyErr_Occurred()) SWIG_fail; | |
5276 | } | |
02a34c4c | 5277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5278 | return resultobj; |
5279 | fail: | |
5280 | return NULL; | |
5281 | } | |
5282 | ||
5283 | ||
5284 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5285 | PyObject *resultobj; | |
5286 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5287 | int arg2 ; | |
5288 | int arg3 ; | |
5289 | wxString result; | |
5290 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5291 | PyObject * obj1 = 0 ; |
5292 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5293 | char *kwnames[] = { |
5294 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5295 | }; | |
5296 | ||
8edf1c75 | 5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5299 | { |
5300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5301 | if (PyErr_Occurred()) SWIG_fail; | |
5302 | } | |
5303 | { | |
5304 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | } | |
d14a1e28 RD |
5307 | { |
5308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5309 | result = (arg1)->GetValue(arg2,arg3); | |
5310 | ||
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
5314 | { | |
5315 | #if wxUSE_UNICODE | |
5316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5317 | #else | |
5318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5319 | #endif | |
5320 | } | |
5321 | return resultobj; | |
5322 | fail: | |
5323 | return NULL; | |
5324 | } | |
5325 | ||
5326 | ||
5327 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5328 | PyObject *resultobj; | |
5329 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5330 | int arg2 ; | |
5331 | int arg3 ; | |
5332 | wxString *arg4 = 0 ; | |
423f194a | 5333 | bool temp4 = False ; |
d14a1e28 | 5334 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5335 | PyObject * obj1 = 0 ; |
5336 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5337 | PyObject * obj3 = 0 ; |
5338 | char *kwnames[] = { | |
5339 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5340 | }; | |
5341 | ||
8edf1c75 | 5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5344 | { |
5345 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5346 | if (PyErr_Occurred()) SWIG_fail; | |
5347 | } | |
5348 | { | |
5349 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
d14a1e28 RD |
5352 | { |
5353 | arg4 = wxString_in_helper(obj3); | |
5354 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5355 | temp4 = True; |
d14a1e28 RD |
5356 | } |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); | |
5360 | ||
5361 | wxPyEndAllowThreads(__tstate); | |
5362 | if (PyErr_Occurred()) SWIG_fail; | |
5363 | } | |
5364 | Py_INCREF(Py_None); resultobj = Py_None; | |
5365 | { | |
5366 | if (temp4) | |
5367 | delete arg4; | |
5368 | } | |
5369 | return resultobj; | |
5370 | fail: | |
5371 | { | |
5372 | if (temp4) | |
5373 | delete arg4; | |
5374 | } | |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
5379 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5380 | PyObject *resultobj; | |
5381 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5382 | int arg2 ; | |
5383 | int arg3 ; | |
5384 | wxString result; | |
5385 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5386 | PyObject * obj1 = 0 ; |
5387 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5388 | char *kwnames[] = { |
5389 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5390 | }; | |
5391 | ||
8edf1c75 | 5392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5394 | { |
5395 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5396 | if (PyErr_Occurred()) SWIG_fail; | |
5397 | } | |
5398 | { | |
5399 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
d14a1e28 RD |
5402 | { |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | result = (arg1)->GetTypeName(arg2,arg3); | |
5405 | ||
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
5409 | { | |
5410 | #if wxUSE_UNICODE | |
5411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5412 | #else | |
5413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5414 | #endif | |
5415 | } | |
5416 | return resultobj; | |
5417 | fail: | |
5418 | return NULL; | |
5419 | } | |
5420 | ||
5421 | ||
5422 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5423 | PyObject *resultobj; | |
5424 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5425 | int arg2 ; | |
5426 | int arg3 ; | |
5427 | wxString *arg4 = 0 ; | |
5428 | bool result; | |
423f194a | 5429 | bool temp4 = False ; |
d14a1e28 | 5430 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5431 | PyObject * obj1 = 0 ; |
5432 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5433 | PyObject * obj3 = 0 ; |
5434 | char *kwnames[] = { | |
5435 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5436 | }; | |
5437 | ||
8edf1c75 | 5438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5440 | { |
5441 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5442 | if (PyErr_Occurred()) SWIG_fail; | |
5443 | } | |
5444 | { | |
5445 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5446 | if (PyErr_Occurred()) SWIG_fail; | |
5447 | } | |
d14a1e28 RD |
5448 | { |
5449 | arg4 = wxString_in_helper(obj3); | |
5450 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5451 | temp4 = True; |
d14a1e28 RD |
5452 | } |
5453 | { | |
5454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5455 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5456 | ||
5457 | wxPyEndAllowThreads(__tstate); | |
5458 | if (PyErr_Occurred()) SWIG_fail; | |
5459 | } | |
02a34c4c | 5460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5461 | { |
5462 | if (temp4) | |
5463 | delete arg4; | |
5464 | } | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | { | |
5468 | if (temp4) | |
5469 | delete arg4; | |
5470 | } | |
5471 | return NULL; | |
5472 | } | |
5473 | ||
5474 | ||
5475 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5476 | PyObject *resultobj; | |
5477 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5478 | int arg2 ; | |
5479 | int arg3 ; | |
5480 | wxString *arg4 = 0 ; | |
5481 | bool result; | |
423f194a | 5482 | bool temp4 = False ; |
d14a1e28 | 5483 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5484 | PyObject * obj1 = 0 ; |
5485 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5486 | PyObject * obj3 = 0 ; |
5487 | char *kwnames[] = { | |
5488 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5489 | }; | |
5490 | ||
8edf1c75 | 5491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5493 | { |
5494 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
5497 | { | |
5498 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
d14a1e28 RD |
5501 | { |
5502 | arg4 = wxString_in_helper(obj3); | |
5503 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5504 | temp4 = True; |
d14a1e28 RD |
5505 | } |
5506 | { | |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
02a34c4c | 5513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5514 | { |
5515 | if (temp4) | |
5516 | delete arg4; | |
5517 | } | |
5518 | return resultobj; | |
5519 | fail: | |
5520 | { | |
5521 | if (temp4) | |
5522 | delete arg4; | |
5523 | } | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5531 | int arg2 ; | |
5532 | int arg3 ; | |
5533 | long result; | |
5534 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5535 | PyObject * obj1 = 0 ; |
5536 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5537 | char *kwnames[] = { |
5538 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5539 | }; | |
5540 | ||
8edf1c75 | 5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5543 | { |
5544 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
5546 | } | |
5547 | { | |
5548 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5549 | if (PyErr_Occurred()) SWIG_fail; | |
5550 | } | |
d14a1e28 RD |
5551 | { |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
8edf1c75 | 5558 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5559 | return resultobj; |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject *resultobj; | |
5567 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5568 | int arg2 ; | |
5569 | int arg3 ; | |
5570 | double result; | |
5571 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5572 | PyObject * obj1 = 0 ; |
5573 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5574 | char *kwnames[] = { |
5575 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5576 | }; | |
5577 | ||
8edf1c75 | 5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5580 | { |
5581 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | { | |
5585 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5586 | if (PyErr_Occurred()) SWIG_fail; | |
5587 | } | |
d14a1e28 RD |
5588 | { |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); | |
5591 | ||
5592 | wxPyEndAllowThreads(__tstate); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
5594 | } | |
8edf1c75 | 5595 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5596 | return resultobj; |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject *resultobj; | |
5604 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5605 | int arg2 ; | |
5606 | int arg3 ; | |
5607 | bool result; | |
5608 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5609 | PyObject * obj1 = 0 ; |
5610 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5611 | char *kwnames[] = { |
5612 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5613 | }; | |
5614 | ||
8edf1c75 | 5615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5617 | { |
5618 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
5621 | { | |
5622 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | } | |
d14a1e28 RD |
5625 | { |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
02a34c4c | 5632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5633 | return resultobj; |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
5639 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5640 | PyObject *resultobj; | |
5641 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5642 | int arg2 ; | |
5643 | int arg3 ; | |
5644 | long arg4 ; | |
5645 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5646 | PyObject * obj1 = 0 ; |
5647 | PyObject * obj2 = 0 ; | |
5648 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5649 | char *kwnames[] = { |
5650 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5651 | }; | |
5652 | ||
8edf1c75 | 5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5655 | { |
5656 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
5658 | } | |
5659 | { | |
5660 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5661 | if (PyErr_Occurred()) SWIG_fail; | |
5662 | } | |
5663 | { | |
5664 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
5665 | if (PyErr_Occurred()) SWIG_fail; | |
5666 | } | |
d14a1e28 RD |
5667 | { |
5668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5669 | (arg1)->SetValueAsLong(arg2,arg3,arg4); | |
5670 | ||
5671 | wxPyEndAllowThreads(__tstate); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
5674 | Py_INCREF(Py_None); resultobj = Py_None; | |
5675 | return resultobj; | |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject *resultobj; | |
5683 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5684 | int arg2 ; | |
5685 | int arg3 ; | |
5686 | double arg4 ; | |
5687 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5688 | PyObject * obj1 = 0 ; |
5689 | PyObject * obj2 = 0 ; | |
5690 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5691 | char *kwnames[] = { |
5692 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5693 | }; | |
5694 | ||
8edf1c75 | 5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5697 | { |
5698 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
5701 | { | |
5702 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | { | |
5706 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
d14a1e28 RD |
5709 | { |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5711 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); | |
5712 | ||
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
5716 | Py_INCREF(Py_None); resultobj = Py_None; | |
5717 | return resultobj; | |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
5723 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5724 | PyObject *resultobj; | |
5725 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5726 | int arg2 ; | |
5727 | int arg3 ; | |
5728 | bool arg4 ; | |
5729 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5730 | PyObject * obj1 = 0 ; |
5731 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5732 | PyObject * obj3 = 0 ; |
5733 | char *kwnames[] = { | |
5734 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5735 | }; | |
5736 | ||
8edf1c75 | 5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 5739 | { |
8edf1c75 RD |
5740 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
5743 | { | |
5744 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5745 | if (PyErr_Occurred()) SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
2dbef272 RD |
5749 | if (PyErr_Occurred()) SWIG_fail; |
5750 | } | |
d14a1e28 RD |
5751 | { |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | (arg1)->SetValueAsBool(arg2,arg3,arg4); | |
5754 | ||
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | Py_INCREF(Py_None); resultobj = Py_None; | |
5759 | return resultobj; | |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
5765 | static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject *resultobj; | |
5767 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5768 | PyObject * obj0 = 0 ; | |
5769 | char *kwnames[] = { | |
5770 | (char *) "self", NULL | |
5771 | }; | |
5772 | ||
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; | |
5774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5775 | { | |
5776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5777 | (arg1)->Clear(); | |
5778 | ||
5779 | wxPyEndAllowThreads(__tstate); | |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
5781 | } | |
5782 | Py_INCREF(Py_None); resultobj = Py_None; | |
5783 | return resultobj; | |
5784 | fail: | |
5785 | return NULL; | |
5786 | } | |
5787 | ||
5788 | ||
5789 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5790 | PyObject *resultobj; | |
5791 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5792 | size_t arg2 = (size_t) 0 ; | |
5793 | size_t arg3 = (size_t) 1 ; | |
5794 | bool result; | |
5795 | PyObject * obj0 = 0 ; | |
5796 | PyObject * obj1 = 0 ; | |
5797 | PyObject * obj2 = 0 ; | |
5798 | char *kwnames[] = { | |
5799 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5800 | }; | |
5801 | ||
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5804 | if (obj1) { | |
2dbef272 | 5805 | { |
8edf1c75 | 5806 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5807 | if (PyErr_Occurred()) SWIG_fail; |
5808 | } | |
d14a1e28 RD |
5809 | } |
5810 | if (obj2) { | |
2dbef272 | 5811 | { |
8edf1c75 | 5812 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
5813 | if (PyErr_Occurred()) SWIG_fail; |
5814 | } | |
d14a1e28 RD |
5815 | } |
5816 | { | |
5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5818 | result = (bool)(arg1)->InsertRows(arg2,arg3); | |
5819 | ||
5820 | wxPyEndAllowThreads(__tstate); | |
5821 | if (PyErr_Occurred()) SWIG_fail; | |
5822 | } | |
02a34c4c | 5823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5824 | return resultobj; |
5825 | fail: | |
5826 | return NULL; | |
5827 | } | |
5828 | ||
5829 | ||
5830 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5831 | PyObject *resultobj; | |
5832 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5833 | size_t arg2 = (size_t) 1 ; | |
5834 | bool result; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | PyObject * obj1 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self",(char *) "numRows", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
5842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5843 | if (obj1) { | |
2dbef272 | 5844 | { |
8edf1c75 | 5845 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5846 | if (PyErr_Occurred()) SWIG_fail; |
5847 | } | |
d14a1e28 RD |
5848 | } |
5849 | { | |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | result = (bool)(arg1)->AppendRows(arg2); | |
5852 | ||
5853 | wxPyEndAllowThreads(__tstate); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
02a34c4c | 5856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5857 | return resultobj; |
5858 | fail: | |
5859 | return NULL; | |
5860 | } | |
5861 | ||
5862 | ||
5863 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject *resultobj; | |
5865 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5866 | size_t arg2 = (size_t) 0 ; | |
5867 | size_t arg3 = (size_t) 1 ; | |
5868 | bool result; | |
5869 | PyObject * obj0 = 0 ; | |
5870 | PyObject * obj1 = 0 ; | |
5871 | PyObject * obj2 = 0 ; | |
5872 | char *kwnames[] = { | |
5873 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5874 | }; | |
5875 | ||
5876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5878 | if (obj1) { | |
2dbef272 | 5879 | { |
8edf1c75 | 5880 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5881 | if (PyErr_Occurred()) SWIG_fail; |
5882 | } | |
d14a1e28 RD |
5883 | } |
5884 | if (obj2) { | |
2dbef272 | 5885 | { |
8edf1c75 | 5886 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
5887 | if (PyErr_Occurred()) SWIG_fail; |
5888 | } | |
d14a1e28 RD |
5889 | } |
5890 | { | |
5891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5892 | result = (bool)(arg1)->DeleteRows(arg2,arg3); | |
5893 | ||
5894 | wxPyEndAllowThreads(__tstate); | |
5895 | if (PyErr_Occurred()) SWIG_fail; | |
5896 | } | |
02a34c4c | 5897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5898 | return resultobj; |
5899 | fail: | |
5900 | return NULL; | |
5901 | } | |
5902 | ||
5903 | ||
5904 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5905 | PyObject *resultobj; | |
5906 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5907 | size_t arg2 = (size_t) 0 ; | |
5908 | size_t arg3 = (size_t) 1 ; | |
5909 | bool result; | |
5910 | PyObject * obj0 = 0 ; | |
5911 | PyObject * obj1 = 0 ; | |
5912 | PyObject * obj2 = 0 ; | |
5913 | char *kwnames[] = { | |
5914 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5915 | }; | |
5916 | ||
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5919 | if (obj1) { | |
2dbef272 | 5920 | { |
8edf1c75 | 5921 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5922 | if (PyErr_Occurred()) SWIG_fail; |
5923 | } | |
d14a1e28 RD |
5924 | } |
5925 | if (obj2) { | |
2dbef272 | 5926 | { |
8edf1c75 | 5927 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
5928 | if (PyErr_Occurred()) SWIG_fail; |
5929 | } | |
d14a1e28 RD |
5930 | } |
5931 | { | |
5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5933 | result = (bool)(arg1)->InsertCols(arg2,arg3); | |
5934 | ||
5935 | wxPyEndAllowThreads(__tstate); | |
5936 | if (PyErr_Occurred()) SWIG_fail; | |
5937 | } | |
02a34c4c | 5938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5939 | return resultobj; |
5940 | fail: | |
5941 | return NULL; | |
5942 | } | |
5943 | ||
5944 | ||
5945 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5946 | PyObject *resultobj; | |
5947 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5948 | size_t arg2 = (size_t) 1 ; | |
5949 | bool result; | |
5950 | PyObject * obj0 = 0 ; | |
5951 | PyObject * obj1 = 0 ; | |
5952 | char *kwnames[] = { | |
5953 | (char *) "self",(char *) "numCols", NULL | |
5954 | }; | |
5955 | ||
5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
5957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5958 | if (obj1) { | |
2dbef272 | 5959 | { |
8edf1c75 | 5960 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5961 | if (PyErr_Occurred()) SWIG_fail; |
5962 | } | |
d14a1e28 RD |
5963 | } |
5964 | { | |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5966 | result = (bool)(arg1)->AppendCols(arg2); | |
5967 | ||
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) SWIG_fail; | |
5970 | } | |
02a34c4c | 5971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5972 | return resultobj; |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject *resultobj; | |
5980 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5981 | size_t arg2 = (size_t) 0 ; | |
5982 | size_t arg3 = (size_t) 1 ; | |
5983 | bool result; | |
5984 | PyObject * obj0 = 0 ; | |
5985 | PyObject * obj1 = 0 ; | |
5986 | PyObject * obj2 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5993 | if (obj1) { | |
2dbef272 | 5994 | { |
8edf1c75 | 5995 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
5996 | if (PyErr_Occurred()) SWIG_fail; |
5997 | } | |
d14a1e28 RD |
5998 | } |
5999 | if (obj2) { | |
2dbef272 | 6000 | { |
8edf1c75 | 6001 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
6002 | if (PyErr_Occurred()) SWIG_fail; |
6003 | } | |
d14a1e28 RD |
6004 | } |
6005 | { | |
6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6007 | result = (bool)(arg1)->DeleteCols(arg2,arg3); | |
6008 | ||
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
02a34c4c | 6012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6013 | return resultobj; |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
6019 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject *resultobj; | |
6021 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6022 | int arg2 ; | |
6023 | wxString result; | |
6024 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6025 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6026 | char *kwnames[] = { |
6027 | (char *) "self",(char *) "row", NULL | |
6028 | }; | |
6029 | ||
8edf1c75 | 6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6032 | { |
6033 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6034 | if (PyErr_Occurred()) SWIG_fail; | |
6035 | } | |
d14a1e28 RD |
6036 | { |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | result = (arg1)->GetRowLabelValue(arg2); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | { | |
6044 | #if wxUSE_UNICODE | |
6045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6046 | #else | |
6047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6048 | #endif | |
6049 | } | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
6056 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6057 | PyObject *resultobj; | |
6058 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6059 | int arg2 ; | |
6060 | wxString result; | |
6061 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6063 | char *kwnames[] = { |
6064 | (char *) "self",(char *) "col", NULL | |
6065 | }; | |
6066 | ||
8edf1c75 | 6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6069 | { |
6070 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6071 | if (PyErr_Occurred()) SWIG_fail; | |
6072 | } | |
d14a1e28 RD |
6073 | { |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6075 | result = (arg1)->GetColLabelValue(arg2); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
6079 | } | |
6080 | { | |
6081 | #if wxUSE_UNICODE | |
6082 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6083 | #else | |
6084 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6085 | #endif | |
6086 | } | |
6087 | return resultobj; | |
6088 | fail: | |
6089 | return NULL; | |
6090 | } | |
6091 | ||
6092 | ||
6093 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6094 | PyObject *resultobj; | |
6095 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6096 | int arg2 ; | |
6097 | wxString *arg3 = 0 ; | |
423f194a | 6098 | bool temp3 = False ; |
d14a1e28 | 6099 | PyObject * obj0 = 0 ; |
8edf1c75 | 6100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6101 | PyObject * obj2 = 0 ; |
6102 | char *kwnames[] = { | |
6103 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6104 | }; | |
6105 | ||
8edf1c75 | 6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6108 | { |
6109 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
d14a1e28 RD |
6112 | { |
6113 | arg3 = wxString_in_helper(obj2); | |
6114 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6115 | temp3 = True; |
d14a1e28 RD |
6116 | } |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | Py_INCREF(Py_None); resultobj = Py_None; | |
6125 | { | |
6126 | if (temp3) | |
6127 | delete arg3; | |
6128 | } | |
6129 | return resultobj; | |
6130 | fail: | |
6131 | { | |
6132 | if (temp3) | |
6133 | delete arg3; | |
6134 | } | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
6139 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject *resultobj; | |
6141 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6142 | int arg2 ; | |
6143 | wxString *arg3 = 0 ; | |
423f194a | 6144 | bool temp3 = False ; |
d14a1e28 | 6145 | PyObject * obj0 = 0 ; |
8edf1c75 | 6146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6147 | PyObject * obj2 = 0 ; |
6148 | char *kwnames[] = { | |
6149 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6150 | }; | |
6151 | ||
8edf1c75 | 6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6154 | { |
6155 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6156 | if (PyErr_Occurred()) SWIG_fail; | |
6157 | } | |
d14a1e28 RD |
6158 | { |
6159 | arg3 = wxString_in_helper(obj2); | |
6160 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6161 | temp3 = True; |
d14a1e28 RD |
6162 | } |
6163 | { | |
6164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6165 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
6166 | ||
6167 | wxPyEndAllowThreads(__tstate); | |
6168 | if (PyErr_Occurred()) SWIG_fail; | |
6169 | } | |
6170 | Py_INCREF(Py_None); resultobj = Py_None; | |
6171 | { | |
6172 | if (temp3) | |
6173 | delete arg3; | |
6174 | } | |
6175 | return resultobj; | |
6176 | fail: | |
6177 | { | |
6178 | if (temp3) | |
6179 | delete arg3; | |
6180 | } | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
6185 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6186 | PyObject *resultobj; | |
6187 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6188 | bool result; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | char *kwnames[] = { | |
6191 | (char *) "self", NULL | |
6192 | }; | |
6193 | ||
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
6195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6196 | { | |
6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6198 | result = (bool)(arg1)->CanHaveAttributes(); | |
6199 | ||
6200 | wxPyEndAllowThreads(__tstate); | |
6201 | if (PyErr_Occurred()) SWIG_fail; | |
6202 | } | |
02a34c4c | 6203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6204 | return resultobj; |
6205 | fail: | |
6206 | return NULL; | |
6207 | } | |
6208 | ||
6209 | ||
6210 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject *resultobj; | |
6212 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6213 | int arg2 ; | |
6214 | int arg3 ; | |
6215 | int arg4 ; | |
6216 | wxGridCellAttr *result; | |
6217 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6218 | PyObject * obj1 = 0 ; |
6219 | PyObject * obj2 = 0 ; | |
6220 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6221 | char *kwnames[] = { |
6222 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
6223 | }; | |
6224 | ||
8edf1c75 | 6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6227 | { |
6228 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6229 | if (PyErr_Occurred()) SWIG_fail; | |
6230 | } | |
6231 | { | |
6232 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6233 | if (PyErr_Occurred()) SWIG_fail; | |
6234 | } | |
6235 | { | |
6236 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
6237 | if (PyErr_Occurred()) SWIG_fail; | |
6238 | } | |
d14a1e28 RD |
6239 | { |
6240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6241 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
6242 | ||
6243 | wxPyEndAllowThreads(__tstate); | |
6244 | if (PyErr_Occurred()) SWIG_fail; | |
6245 | } | |
6246 | { | |
6247 | resultobj = wxPyMake_wxGridCellAttr(result); | |
6248 | } | |
6249 | return resultobj; | |
6250 | fail: | |
6251 | return NULL; | |
6252 | } | |
6253 | ||
6254 | ||
6255 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6256 | PyObject *resultobj; | |
6257 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6258 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6259 | int arg3 ; | |
6260 | int arg4 ; | |
6261 | PyObject * obj0 = 0 ; | |
6262 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
6263 | PyObject * obj2 = 0 ; |
6264 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6265 | char *kwnames[] = { |
6266 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
6267 | }; | |
6268 | ||
8edf1c75 | 6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6272 | { |
6273 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | { | |
6277 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
6278 | if (PyErr_Occurred()) SWIG_fail; | |
6279 | } | |
d14a1e28 RD |
6280 | { |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | (arg1)->SetAttr(arg2,arg3,arg4); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | Py_INCREF(Py_None); resultobj = Py_None; | |
6288 | return resultobj; | |
6289 | fail: | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6297 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6298 | int arg3 ; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6301 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6302 | char *kwnames[] = { |
6303 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
6304 | }; | |
6305 | ||
8edf1c75 | 6306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6309 | { |
6310 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6311 | if (PyErr_Occurred()) SWIG_fail; | |
6312 | } | |
d14a1e28 RD |
6313 | { |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | (arg1)->SetRowAttr(arg2,arg3); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | Py_INCREF(Py_None); resultobj = Py_None; | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
6327 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject *resultobj; | |
6329 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6330 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6331 | int arg3 ; | |
6332 | PyObject * obj0 = 0 ; | |
6333 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6334 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6335 | char *kwnames[] = { |
6336 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
6337 | }; | |
6338 | ||
8edf1c75 | 6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6341 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6342 | { |
6343 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | } | |
d14a1e28 RD |
6346 | { |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | (arg1)->SetColAttr(arg2,arg3); | |
6349 | ||
6350 | wxPyEndAllowThreads(__tstate); | |
6351 | if (PyErr_Occurred()) SWIG_fail; | |
6352 | } | |
6353 | Py_INCREF(Py_None); resultobj = Py_None; | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | return NULL; | |
6357 | } | |
6358 | ||
6359 | ||
6360 | static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) { | |
6361 | PyObject *obj; | |
6362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6363 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); | |
6364 | Py_INCREF(obj); | |
6365 | return Py_BuildValue((char *)""); | |
6366 | } | |
6367 | static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6368 | PyObject *resultobj; | |
6369 | wxPyGridTableBase *result; | |
6370 | char *kwnames[] = { | |
6371 | NULL | |
6372 | }; | |
6373 | ||
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; | |
6375 | { | |
6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6377 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); | |
6378 | ||
6379 | wxPyEndAllowThreads(__tstate); | |
6380 | if (PyErr_Occurred()) SWIG_fail; | |
6381 | } | |
6382 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1); | |
6383 | return resultobj; | |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject *resultobj; | |
6391 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6392 | PyObject *arg2 = (PyObject *) 0 ; | |
6393 | PyObject *arg3 = (PyObject *) 0 ; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | PyObject * obj1 = 0 ; | |
6396 | PyObject * obj2 = 0 ; | |
6397 | char *kwnames[] = { | |
6398 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6399 | }; | |
6400 | ||
6401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6403 | arg2 = obj1; | |
6404 | arg3 = obj2; | |
6405 | { | |
6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6407 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6408 | ||
6409 | wxPyEndAllowThreads(__tstate); | |
6410 | if (PyErr_Occurred()) SWIG_fail; | |
6411 | } | |
6412 | Py_INCREF(Py_None); resultobj = Py_None; | |
6413 | return resultobj; | |
6414 | fail: | |
6415 | return NULL; | |
6416 | } | |
6417 | ||
6418 | ||
6419 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject *resultobj; | |
6421 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6422 | PyObject * obj0 = 0 ; | |
6423 | char *kwnames[] = { | |
6424 | (char *) "self", NULL | |
6425 | }; | |
6426 | ||
6427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; | |
6428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6429 | { | |
6430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6431 | wxPyGridTableBase_Destroy(arg1); | |
6432 | ||
6433 | wxPyEndAllowThreads(__tstate); | |
6434 | if (PyErr_Occurred()) SWIG_fail; | |
6435 | } | |
6436 | Py_INCREF(Py_None); resultobj = Py_None; | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
6443 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject *resultobj; | |
6445 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6446 | int arg2 ; | |
6447 | int arg3 ; | |
6448 | wxString result; | |
6449 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6450 | PyObject * obj1 = 0 ; |
6451 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6452 | char *kwnames[] = { |
6453 | (char *) "self",(char *) "row",(char *) "col", NULL | |
6454 | }; | |
6455 | ||
8edf1c75 | 6456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6458 | { |
6459 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
d14a1e28 RD |
6466 | { |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (arg1)->base_GetTypeName(arg2,arg3); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
6473 | { | |
6474 | #if wxUSE_UNICODE | |
6475 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6476 | #else | |
6477 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6478 | #endif | |
6479 | } | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
6483 | } | |
6484 | ||
6485 | ||
6486 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6487 | PyObject *resultobj; | |
6488 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6489 | int arg2 ; | |
6490 | int arg3 ; | |
6491 | wxString *arg4 = 0 ; | |
6492 | bool result; | |
423f194a | 6493 | bool temp4 = False ; |
d14a1e28 | 6494 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6495 | PyObject * obj1 = 0 ; |
6496 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6497 | PyObject * obj3 = 0 ; |
6498 | char *kwnames[] = { | |
6499 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6500 | }; | |
6501 | ||
8edf1c75 | 6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6504 | { |
6505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6506 | if (PyErr_Occurred()) SWIG_fail; | |
6507 | } | |
6508 | { | |
6509 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
d14a1e28 RD |
6512 | { |
6513 | arg4 = wxString_in_helper(obj3); | |
6514 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6515 | temp4 = True; |
d14a1e28 RD |
6516 | } |
6517 | { | |
6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6519 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6520 | ||
6521 | wxPyEndAllowThreads(__tstate); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
02a34c4c | 6524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6525 | { |
6526 | if (temp4) | |
6527 | delete arg4; | |
6528 | } | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | { | |
6532 | if (temp4) | |
6533 | delete arg4; | |
6534 | } | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
6539 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject *resultobj; | |
6541 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6542 | int arg2 ; | |
6543 | int arg3 ; | |
6544 | wxString *arg4 = 0 ; | |
6545 | bool result; | |
423f194a | 6546 | bool temp4 = False ; |
d14a1e28 | 6547 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6548 | PyObject * obj1 = 0 ; |
6549 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6550 | PyObject * obj3 = 0 ; |
6551 | char *kwnames[] = { | |
6552 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6553 | }; | |
6554 | ||
8edf1c75 | 6555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6557 | { |
6558 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6559 | if (PyErr_Occurred()) SWIG_fail; | |
6560 | } | |
6561 | { | |
6562 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | } | |
d14a1e28 RD |
6565 | { |
6566 | arg4 = wxString_in_helper(obj3); | |
6567 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6568 | temp4 = True; |
d14a1e28 RD |
6569 | } |
6570 | { | |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
02a34c4c | 6577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6578 | { |
6579 | if (temp4) | |
6580 | delete arg4; | |
6581 | } | |
6582 | return resultobj; | |
6583 | fail: | |
6584 | { | |
6585 | if (temp4) | |
6586 | delete arg4; | |
6587 | } | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
6592 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6593 | PyObject *resultobj; | |
6594 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; | |
6601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6602 | { | |
6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6604 | (arg1)->base_Clear(); | |
6605 | ||
6606 | wxPyEndAllowThreads(__tstate); | |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | Py_INCREF(Py_None); resultobj = Py_None; | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
6616 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject *resultobj; | |
6618 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6619 | size_t arg2 = (size_t) 0 ; | |
6620 | size_t arg3 = (size_t) 1 ; | |
6621 | bool result; | |
6622 | PyObject * obj0 = 0 ; | |
6623 | PyObject * obj1 = 0 ; | |
6624 | PyObject * obj2 = 0 ; | |
6625 | char *kwnames[] = { | |
6626 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6627 | }; | |
6628 | ||
6629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6631 | if (obj1) { | |
2dbef272 | 6632 | { |
8edf1c75 | 6633 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6634 | if (PyErr_Occurred()) SWIG_fail; |
6635 | } | |
d14a1e28 RD |
6636 | } |
6637 | if (obj2) { | |
2dbef272 | 6638 | { |
8edf1c75 | 6639 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
6640 | if (PyErr_Occurred()) SWIG_fail; |
6641 | } | |
d14a1e28 RD |
6642 | } |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
02a34c4c | 6650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6651 | return resultobj; |
6652 | fail: | |
6653 | return NULL; | |
6654 | } | |
6655 | ||
6656 | ||
6657 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject *resultobj; | |
6659 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6660 | size_t arg2 = (size_t) 1 ; | |
6661 | bool result; | |
6662 | PyObject * obj0 = 0 ; | |
6663 | PyObject * obj1 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self",(char *) "numRows", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
6669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6670 | if (obj1) { | |
2dbef272 | 6671 | { |
8edf1c75 | 6672 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6673 | if (PyErr_Occurred()) SWIG_fail; |
6674 | } | |
d14a1e28 RD |
6675 | } |
6676 | { | |
6677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6678 | result = (bool)(arg1)->base_AppendRows(arg2); | |
6679 | ||
6680 | wxPyEndAllowThreads(__tstate); | |
6681 | if (PyErr_Occurred()) SWIG_fail; | |
6682 | } | |
02a34c4c | 6683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6684 | return resultobj; |
6685 | fail: | |
6686 | return NULL; | |
6687 | } | |
6688 | ||
6689 | ||
6690 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6691 | PyObject *resultobj; | |
6692 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6693 | size_t arg2 = (size_t) 0 ; | |
6694 | size_t arg3 = (size_t) 1 ; | |
6695 | bool result; | |
6696 | PyObject * obj0 = 0 ; | |
6697 | PyObject * obj1 = 0 ; | |
6698 | PyObject * obj2 = 0 ; | |
6699 | char *kwnames[] = { | |
6700 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6701 | }; | |
6702 | ||
6703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6705 | if (obj1) { | |
2dbef272 | 6706 | { |
8edf1c75 | 6707 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6708 | if (PyErr_Occurred()) SWIG_fail; |
6709 | } | |
d14a1e28 RD |
6710 | } |
6711 | if (obj2) { | |
2dbef272 | 6712 | { |
8edf1c75 | 6713 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
6714 | if (PyErr_Occurred()) SWIG_fail; |
6715 | } | |
d14a1e28 RD |
6716 | } |
6717 | { | |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6719 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) SWIG_fail; | |
6723 | } | |
02a34c4c | 6724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6725 | return resultobj; |
6726 | fail: | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
6731 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6732 | PyObject *resultobj; | |
6733 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6734 | size_t arg2 = (size_t) 0 ; | |
6735 | size_t arg3 = (size_t) 1 ; | |
6736 | bool result; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | PyObject * obj1 = 0 ; | |
6739 | PyObject * obj2 = 0 ; | |
6740 | char *kwnames[] = { | |
6741 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6742 | }; | |
6743 | ||
6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6746 | if (obj1) { | |
2dbef272 | 6747 | { |
8edf1c75 | 6748 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6749 | if (PyErr_Occurred()) SWIG_fail; |
6750 | } | |
d14a1e28 RD |
6751 | } |
6752 | if (obj2) { | |
2dbef272 | 6753 | { |
8edf1c75 | 6754 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
6755 | if (PyErr_Occurred()) SWIG_fail; |
6756 | } | |
d14a1e28 RD |
6757 | } |
6758 | { | |
6759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6760 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); | |
6761 | ||
6762 | wxPyEndAllowThreads(__tstate); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
6764 | } | |
02a34c4c | 6765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6766 | return resultobj; |
6767 | fail: | |
6768 | return NULL; | |
6769 | } | |
6770 | ||
6771 | ||
6772 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6773 | PyObject *resultobj; | |
6774 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6775 | size_t arg2 = (size_t) 1 ; | |
6776 | bool result; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | PyObject * obj1 = 0 ; | |
6779 | char *kwnames[] = { | |
6780 | (char *) "self",(char *) "numCols", NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
6784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6785 | if (obj1) { | |
2dbef272 | 6786 | { |
8edf1c75 | 6787 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6788 | if (PyErr_Occurred()) SWIG_fail; |
6789 | } | |
d14a1e28 RD |
6790 | } |
6791 | { | |
6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6793 | result = (bool)(arg1)->base_AppendCols(arg2); | |
6794 | ||
6795 | wxPyEndAllowThreads(__tstate); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
02a34c4c | 6798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6799 | return resultobj; |
6800 | fail: | |
6801 | return NULL; | |
6802 | } | |
6803 | ||
6804 | ||
6805 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject *resultobj; | |
6807 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6808 | size_t arg2 = (size_t) 0 ; | |
6809 | size_t arg3 = (size_t) 1 ; | |
6810 | bool result; | |
6811 | PyObject * obj0 = 0 ; | |
6812 | PyObject * obj1 = 0 ; | |
6813 | PyObject * obj2 = 0 ; | |
6814 | char *kwnames[] = { | |
6815 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6816 | }; | |
6817 | ||
6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6820 | if (obj1) { | |
2dbef272 | 6821 | { |
8edf1c75 | 6822 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6823 | if (PyErr_Occurred()) SWIG_fail; |
6824 | } | |
d14a1e28 RD |
6825 | } |
6826 | if (obj2) { | |
2dbef272 | 6827 | { |
8edf1c75 | 6828 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
6829 | if (PyErr_Occurred()) SWIG_fail; |
6830 | } | |
d14a1e28 RD |
6831 | } |
6832 | { | |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
02a34c4c | 6839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6840 | return resultobj; |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6849 | int arg2 ; | |
6850 | wxString result; | |
6851 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6853 | char *kwnames[] = { |
6854 | (char *) "self",(char *) "row", NULL | |
6855 | }; | |
6856 | ||
8edf1c75 | 6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6859 | { |
6860 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
6862 | } | |
d14a1e28 RD |
6863 | { |
6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6865 | result = (arg1)->base_GetRowLabelValue(arg2); | |
6866 | ||
6867 | wxPyEndAllowThreads(__tstate); | |
6868 | if (PyErr_Occurred()) SWIG_fail; | |
6869 | } | |
6870 | { | |
6871 | #if wxUSE_UNICODE | |
6872 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6873 | #else | |
6874 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6875 | #endif | |
6876 | } | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
6883 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject *resultobj; | |
6885 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6886 | int arg2 ; | |
6887 | wxString result; | |
6888 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6890 | char *kwnames[] = { |
6891 | (char *) "self",(char *) "col", NULL | |
6892 | }; | |
6893 | ||
8edf1c75 | 6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6896 | { |
6897 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6898 | if (PyErr_Occurred()) SWIG_fail; | |
6899 | } | |
d14a1e28 RD |
6900 | { |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | result = (arg1)->base_GetColLabelValue(arg2); | |
6903 | ||
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
6907 | { | |
6908 | #if wxUSE_UNICODE | |
6909 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6910 | #else | |
6911 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6912 | #endif | |
6913 | } | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
6920 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6921 | PyObject *resultobj; | |
6922 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6923 | int arg2 ; | |
6924 | wxString *arg3 = 0 ; | |
423f194a | 6925 | bool temp3 = False ; |
d14a1e28 | 6926 | PyObject * obj0 = 0 ; |
8edf1c75 | 6927 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6928 | PyObject * obj2 = 0 ; |
6929 | char *kwnames[] = { | |
6930 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6931 | }; | |
6932 | ||
8edf1c75 | 6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6935 | { |
6936 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
d14a1e28 RD |
6939 | { |
6940 | arg3 = wxString_in_helper(obj2); | |
6941 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6942 | temp3 = True; |
d14a1e28 RD |
6943 | } |
6944 | { | |
6945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6946 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6947 | ||
6948 | wxPyEndAllowThreads(__tstate); | |
6949 | if (PyErr_Occurred()) SWIG_fail; | |
6950 | } | |
6951 | Py_INCREF(Py_None); resultobj = Py_None; | |
6952 | { | |
6953 | if (temp3) | |
6954 | delete arg3; | |
6955 | } | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | { | |
6959 | if (temp3) | |
6960 | delete arg3; | |
6961 | } | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6969 | int arg2 ; | |
6970 | wxString *arg3 = 0 ; | |
423f194a | 6971 | bool temp3 = False ; |
d14a1e28 | 6972 | PyObject * obj0 = 0 ; |
8edf1c75 | 6973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6974 | PyObject * obj2 = 0 ; |
6975 | char *kwnames[] = { | |
6976 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6977 | }; | |
6978 | ||
8edf1c75 | 6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6981 | { |
6982 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6983 | if (PyErr_Occurred()) SWIG_fail; | |
6984 | } | |
d14a1e28 RD |
6985 | { |
6986 | arg3 = wxString_in_helper(obj2); | |
6987 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6988 | temp3 = True; |
d14a1e28 RD |
6989 | } |
6990 | { | |
6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6992 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); | |
6993 | ||
6994 | wxPyEndAllowThreads(__tstate); | |
6995 | if (PyErr_Occurred()) SWIG_fail; | |
6996 | } | |
6997 | Py_INCREF(Py_None); resultobj = Py_None; | |
6998 | { | |
6999 | if (temp3) | |
7000 | delete arg3; | |
7001 | } | |
7002 | return resultobj; | |
7003 | fail: | |
7004 | { | |
7005 | if (temp3) | |
7006 | delete arg3; | |
7007 | } | |
7008 | return NULL; | |
7009 | } | |
7010 | ||
7011 | ||
7012 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7013 | PyObject *resultobj; | |
7014 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7015 | bool result; | |
7016 | PyObject * obj0 = 0 ; | |
7017 | char *kwnames[] = { | |
7018 | (char *) "self", NULL | |
7019 | }; | |
7020 | ||
7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
7022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (bool)(arg1)->base_CanHaveAttributes(); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
02a34c4c | 7030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7031 | return resultobj; |
7032 | fail: | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj; | |
7039 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7040 | int arg2 ; | |
7041 | int arg3 ; | |
7042 | int arg4 ; | |
7043 | wxGridCellAttr *result; | |
7044 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7045 | PyObject * obj1 = 0 ; |
7046 | PyObject * obj2 = 0 ; | |
7047 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7048 | char *kwnames[] = { |
7049 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
7050 | }; | |
7051 | ||
8edf1c75 | 7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7054 | { |
7055 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
7058 | { | |
7059 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7060 | if (PyErr_Occurred()) SWIG_fail; | |
7061 | } | |
7062 | { | |
7063 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
d14a1e28 RD |
7066 | { |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | { | |
7074 | resultobj = wxPyMake_wxGridCellAttr(result); | |
7075 | } | |
7076 | return resultobj; | |
7077 | fail: | |
7078 | return NULL; | |
7079 | } | |
7080 | ||
7081 | ||
7082 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7083 | PyObject *resultobj; | |
7084 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7085 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7086 | int arg3 ; | |
7087 | int arg4 ; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
7090 | PyObject * obj2 = 0 ; |
7091 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7092 | char *kwnames[] = { |
7093 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
7094 | }; | |
7095 | ||
8edf1c75 | 7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
7097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7099 | { |
7100 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
7103 | { | |
7104 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7105 | if (PyErr_Occurred()) SWIG_fail; | |
7106 | } | |
d14a1e28 RD |
7107 | { |
7108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7109 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
7110 | ||
7111 | wxPyEndAllowThreads(__tstate); | |
7112 | if (PyErr_Occurred()) SWIG_fail; | |
7113 | } | |
7114 | Py_INCREF(Py_None); resultobj = Py_None; | |
7115 | return resultobj; | |
7116 | fail: | |
7117 | return NULL; | |
7118 | } | |
7119 | ||
7120 | ||
7121 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7122 | PyObject *resultobj; | |
7123 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7124 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7125 | int arg3 ; | |
7126 | PyObject * obj0 = 0 ; | |
7127 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7128 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7129 | char *kwnames[] = { |
7130 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
7131 | }; | |
7132 | ||
8edf1c75 | 7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7135 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7136 | { |
7137 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7138 | if (PyErr_Occurred()) SWIG_fail; | |
7139 | } | |
d14a1e28 RD |
7140 | { |
7141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7142 | (arg1)->base_SetRowAttr(arg2,arg3); | |
7143 | ||
7144 | wxPyEndAllowThreads(__tstate); | |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
7146 | } | |
7147 | Py_INCREF(Py_None); resultobj = Py_None; | |
7148 | return resultobj; | |
7149 | fail: | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
7154 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject *resultobj; | |
7156 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7157 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7158 | int arg3 ; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7161 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7162 | char *kwnames[] = { |
7163 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
7164 | }; | |
7165 | ||
8edf1c75 | 7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7168 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7169 | { |
7170 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | } | |
d14a1e28 RD |
7173 | { |
7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7175 | (arg1)->base_SetColAttr(arg2,arg3); | |
7176 | ||
7177 | wxPyEndAllowThreads(__tstate); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
7180 | Py_INCREF(Py_None); resultobj = Py_None; | |
7181 | return resultobj; | |
7182 | fail: | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) { | |
7188 | PyObject *obj; | |
7189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7190 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); | |
7191 | Py_INCREF(obj); | |
7192 | return Py_BuildValue((char *)""); | |
7193 | } | |
7194 | static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7195 | PyObject *resultobj; | |
7196 | int arg1 = (int) 0 ; | |
7197 | int arg2 = (int) 0 ; | |
7198 | wxGridStringTable *result; | |
8edf1c75 RD |
7199 | PyObject * obj0 = 0 ; |
7200 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7201 | char *kwnames[] = { |
7202 | (char *) "numRows",(char *) "numCols", NULL | |
7203 | }; | |
7204 | ||
8edf1c75 RD |
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; |
7206 | if (obj0) { | |
7207 | { | |
7208 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | } | |
7212 | if (obj1) { | |
7213 | { | |
7214 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | } | |
d14a1e28 RD |
7218 | { |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1); | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
7232 | static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) { | |
7233 | PyObject *obj; | |
7234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7235 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); | |
7236 | Py_INCREF(obj); | |
7237 | return Py_BuildValue((char *)""); | |
7238 | } | |
7239 | static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject *resultobj; | |
7241 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
7242 | int arg2 ; | |
7243 | int arg3 = (int) -1 ; | |
7244 | int arg4 = (int) -1 ; | |
7245 | wxGridTableMessage *result; | |
7246 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7247 | PyObject * obj1 = 0 ; |
7248 | PyObject * obj2 = 0 ; | |
7249 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7250 | char *kwnames[] = { |
7251 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL | |
7252 | }; | |
7253 | ||
8edf1c75 | 7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7256 | { |
7257 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7258 | if (PyErr_Occurred()) SWIG_fail; | |
7259 | } | |
7260 | if (obj2) { | |
7261 | { | |
7262 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7263 | if (PyErr_Occurred()) SWIG_fail; | |
7264 | } | |
7265 | } | |
7266 | if (obj3) { | |
7267 | { | |
7268 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | } | |
d14a1e28 RD |
7272 | { |
7273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7274 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); | |
7275 | ||
7276 | wxPyEndAllowThreads(__tstate); | |
7277 | if (PyErr_Occurred()) SWIG_fail; | |
7278 | } | |
7279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1); | |
7280 | return resultobj; | |
7281 | fail: | |
7282 | return NULL; | |
7283 | } | |
7284 | ||
7285 | ||
7286 | static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7287 | PyObject *resultobj; | |
7288 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7289 | PyObject * obj0 = 0 ; | |
7290 | char *kwnames[] = { | |
7291 | (char *) "self", NULL | |
7292 | }; | |
7293 | ||
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; | |
7295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7296 | { | |
7297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7298 | delete arg1; | |
7299 | ||
7300 | wxPyEndAllowThreads(__tstate); | |
7301 | if (PyErr_Occurred()) SWIG_fail; | |
7302 | } | |
7303 | Py_INCREF(Py_None); resultobj = Py_None; | |
7304 | return resultobj; | |
7305 | fail: | |
7306 | return NULL; | |
7307 | } | |
7308 | ||
7309 | ||
7310 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject *resultobj; | |
7312 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7313 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
7314 | PyObject * obj0 = 0 ; | |
7315 | PyObject * obj1 = 0 ; | |
7316 | char *kwnames[] = { | |
7317 | (char *) "self",(char *) "table", NULL | |
7318 | }; | |
7319 | ||
7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; | |
7321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7323 | { | |
7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7325 | (arg1)->SetTableObject(arg2); | |
7326 | ||
7327 | wxPyEndAllowThreads(__tstate); | |
7328 | if (PyErr_Occurred()) SWIG_fail; | |
7329 | } | |
7330 | Py_INCREF(Py_None); resultobj = Py_None; | |
7331 | return resultobj; | |
7332 | fail: | |
7333 | return NULL; | |
7334 | } | |
7335 | ||
7336 | ||
7337 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7338 | PyObject *resultobj; | |
7339 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7340 | wxGridTableBase *result; | |
7341 | PyObject * obj0 = 0 ; | |
7342 | char *kwnames[] = { | |
7343 | (char *) "self", NULL | |
7344 | }; | |
7345 | ||
7346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; | |
7347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7348 | { | |
7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7350 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); | |
7351 | ||
7352 | wxPyEndAllowThreads(__tstate); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
7355 | { | |
7356 | resultobj = wxPyMake_wxGridTableBase(result); | |
7357 | } | |
7358 | return resultobj; | |
7359 | fail: | |
7360 | return NULL; | |
7361 | } | |
7362 | ||
7363 | ||
7364 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7365 | PyObject *resultobj; | |
7366 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7367 | int arg2 ; | |
7368 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7370 | char *kwnames[] = { |
7371 | (char *) "self",(char *) "id", NULL | |
7372 | }; | |
7373 | ||
8edf1c75 | 7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7376 | { |
7377 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7378 | if (PyErr_Occurred()) SWIG_fail; | |
7379 | } | |
d14a1e28 RD |
7380 | { |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | (arg1)->SetId(arg2); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
7387 | Py_INCREF(Py_None); resultobj = Py_None; | |
7388 | return resultobj; | |
7389 | fail: | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
7394 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7395 | PyObject *resultobj; | |
7396 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7397 | int result; | |
7398 | PyObject * obj0 = 0 ; | |
7399 | char *kwnames[] = { | |
7400 | (char *) "self", NULL | |
7401 | }; | |
7402 | ||
7403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; | |
7404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | result = (int)(arg1)->GetId(); | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
8edf1c75 | 7412 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7413 | return resultobj; |
7414 | fail: | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
7419 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7420 | PyObject *resultobj; | |
7421 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7422 | int arg2 ; | |
7423 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7425 | char *kwnames[] = { |
7426 | (char *) "self",(char *) "comInt1", NULL | |
7427 | }; | |
7428 | ||
8edf1c75 | 7429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7431 | { |
7432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
d14a1e28 RD |
7435 | { |
7436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7437 | (arg1)->SetCommandInt(arg2); | |
7438 | ||
7439 | wxPyEndAllowThreads(__tstate); | |
7440 | if (PyErr_Occurred()) SWIG_fail; | |
7441 | } | |
7442 | Py_INCREF(Py_None); resultobj = Py_None; | |
7443 | return resultobj; | |
7444 | fail: | |
7445 | return NULL; | |
7446 | } | |
7447 | ||
7448 | ||
7449 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7450 | PyObject *resultobj; | |
7451 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7452 | int result; | |
7453 | PyObject * obj0 = 0 ; | |
7454 | char *kwnames[] = { | |
7455 | (char *) "self", NULL | |
7456 | }; | |
7457 | ||
7458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; | |
7459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7460 | { | |
7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7462 | result = (int)(arg1)->GetCommandInt(); | |
7463 | ||
7464 | wxPyEndAllowThreads(__tstate); | |
7465 | if (PyErr_Occurred()) SWIG_fail; | |
7466 | } | |
8edf1c75 | 7467 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7468 | return resultobj; |
7469 | fail: | |
7470 | return NULL; | |
7471 | } | |
7472 | ||
7473 | ||
7474 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject *resultobj; | |
7476 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7477 | int arg2 ; | |
7478 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7480 | char *kwnames[] = { |
7481 | (char *) "self",(char *) "comInt2", NULL | |
7482 | }; | |
7483 | ||
8edf1c75 | 7484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7486 | { |
7487 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
d14a1e28 RD |
7490 | { |
7491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7492 | (arg1)->SetCommandInt2(arg2); | |
7493 | ||
7494 | wxPyEndAllowThreads(__tstate); | |
7495 | if (PyErr_Occurred()) SWIG_fail; | |
7496 | } | |
7497 | Py_INCREF(Py_None); resultobj = Py_None; | |
7498 | return resultobj; | |
7499 | fail: | |
7500 | return NULL; | |
7501 | } | |
7502 | ||
7503 | ||
7504 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7505 | PyObject *resultobj; | |
7506 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7507 | int result; | |
7508 | PyObject * obj0 = 0 ; | |
7509 | char *kwnames[] = { | |
7510 | (char *) "self", NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; | |
7514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7515 | { | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | result = (int)(arg1)->GetCommandInt2(); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
8edf1c75 | 7522 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7523 | return resultobj; |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) { | |
7530 | PyObject *obj; | |
7531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7532 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); | |
7533 | Py_INCREF(obj); | |
7534 | return Py_BuildValue((char *)""); | |
7535 | } | |
7536 | static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | int arg1 = (int) -1 ; | |
7539 | int arg2 = (int) -1 ; | |
7540 | wxGridCellCoords *result; | |
8edf1c75 RD |
7541 | PyObject * obj0 = 0 ; |
7542 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7543 | char *kwnames[] = { |
7544 | (char *) "r",(char *) "c", NULL | |
7545 | }; | |
7546 | ||
8edf1c75 RD |
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; |
7548 | if (obj0) { | |
7549 | { | |
7550 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7551 | if (PyErr_Occurred()) SWIG_fail; | |
7552 | } | |
7553 | } | |
7554 | if (obj1) { | |
7555 | { | |
7556 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | } | |
d14a1e28 RD |
7560 | { |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1); | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | return NULL; | |
7571 | } | |
7572 | ||
7573 | ||
7574 | static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject *resultobj; | |
7576 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7577 | PyObject * obj0 = 0 ; | |
7578 | char *kwnames[] = { | |
7579 | (char *) "self", NULL | |
7580 | }; | |
7581 | ||
7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; | |
7583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7584 | { | |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7586 | delete arg1; | |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | Py_INCREF(Py_None); resultobj = Py_None; | |
7592 | return resultobj; | |
7593 | fail: | |
7594 | return NULL; | |
7595 | } | |
7596 | ||
7597 | ||
7598 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7599 | PyObject *resultobj; | |
7600 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7601 | int result; | |
7602 | PyObject * obj0 = 0 ; | |
7603 | char *kwnames[] = { | |
7604 | (char *) "self", NULL | |
7605 | }; | |
7606 | ||
7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; | |
7608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7609 | { | |
7610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7611 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); | |
7612 | ||
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
8edf1c75 | 7616 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7617 | return resultobj; |
7618 | fail: | |
7619 | return NULL; | |
7620 | } | |
7621 | ||
7622 | ||
7623 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7624 | PyObject *resultobj; | |
7625 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7626 | int arg2 ; | |
7627 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7628 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7629 | char *kwnames[] = { |
7630 | (char *) "self",(char *) "n", NULL | |
7631 | }; | |
7632 | ||
8edf1c75 | 7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7635 | { |
7636 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
d14a1e28 RD |
7639 | { |
7640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7641 | (arg1)->SetRow(arg2); | |
7642 | ||
7643 | wxPyEndAllowThreads(__tstate); | |
7644 | if (PyErr_Occurred()) SWIG_fail; | |
7645 | } | |
7646 | Py_INCREF(Py_None); resultobj = Py_None; | |
7647 | return resultobj; | |
7648 | fail: | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
7653 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject *resultobj; | |
7655 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7656 | int result; | |
7657 | PyObject * obj0 = 0 ; | |
7658 | char *kwnames[] = { | |
7659 | (char *) "self", NULL | |
7660 | }; | |
7661 | ||
7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail; | |
7663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7664 | { | |
7665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7666 | result = (int)((wxGridCellCoords const *)arg1)->GetCol(); | |
7667 | ||
7668 | wxPyEndAllowThreads(__tstate); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
7670 | } | |
8edf1c75 | 7671 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7672 | return resultobj; |
7673 | fail: | |
7674 | return NULL; | |
7675 | } | |
7676 | ||
7677 | ||
7678 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7679 | PyObject *resultobj; | |
7680 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7681 | int arg2 ; | |
7682 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7684 | char *kwnames[] = { |
7685 | (char *) "self",(char *) "n", NULL | |
7686 | }; | |
7687 | ||
8edf1c75 | 7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7690 | { |
7691 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
d14a1e28 RD |
7694 | { |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | (arg1)->SetCol(arg2); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | Py_INCREF(Py_None); resultobj = Py_None; | |
7702 | return resultobj; | |
7703 | fail: | |
7704 | return NULL; | |
7705 | } | |
7706 | ||
7707 | ||
7708 | static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7709 | PyObject *resultobj; | |
7710 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7711 | int arg2 ; | |
7712 | int arg3 ; | |
7713 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7714 | PyObject * obj1 = 0 ; |
7715 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7716 | char *kwnames[] = { |
7717 | (char *) "self",(char *) "row",(char *) "col", NULL | |
7718 | }; | |
7719 | ||
8edf1c75 | 7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7722 | { |
7723 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
7726 | { | |
7727 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
d14a1e28 RD |
7730 | { |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | (arg1)->Set(arg2,arg3); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
7744 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7745 | PyObject *resultobj; | |
7746 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7747 | wxGridCellCoords *arg2 = 0 ; | |
7748 | bool result; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | PyObject * obj1 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self",(char *) "other", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7757 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7758 | if (arg2 == NULL) { | |
7759 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7760 | } | |
7761 | { | |
7762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7763 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); | |
7764 | ||
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
02a34c4c | 7768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7769 | return resultobj; |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7776 | PyObject *resultobj; | |
7777 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7778 | wxGridCellCoords *arg2 = 0 ; | |
7779 | bool result; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | PyObject * obj1 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "self",(char *) "other", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7788 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7789 | if (arg2 == NULL) { | |
7790 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7791 | } | |
7792 | { | |
7793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7794 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); | |
7795 | ||
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) SWIG_fail; | |
7798 | } | |
02a34c4c | 7799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7800 | return resultobj; |
7801 | fail: | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
7806 | static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7807 | PyObject *resultobj; | |
7808 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7809 | PyObject *result; | |
7810 | PyObject * obj0 = 0 ; | |
7811 | char *kwnames[] = { | |
7812 | (char *) "self", NULL | |
7813 | }; | |
7814 | ||
7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail; | |
7816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | result = (PyObject *)wxGridCellCoords_asTuple(arg1); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) SWIG_fail; | |
7823 | } | |
7824 | resultobj = result; | |
7825 | return resultobj; | |
7826 | fail: | |
7827 | return NULL; | |
7828 | } | |
7829 | ||
7830 | ||
7831 | static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) { | |
7832 | PyObject *obj; | |
7833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7834 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); | |
7835 | Py_INCREF(obj); | |
7836 | return Py_BuildValue((char *)""); | |
7837 | } | |
7838 | static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7839 | PyObject *resultobj; | |
7840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7841 | int arg2 ; |
d14a1e28 RD |
7842 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7843 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7844 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7845 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7846 | long arg5 = (long) wxWANTS_CHARS ; | |
7847 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
7848 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7849 | wxGrid *result; | |
7850 | wxPoint temp3 ; | |
7851 | wxSize temp4 ; | |
423f194a | 7852 | bool temp6 = False ; |
d14a1e28 | 7853 | PyObject * obj0 = 0 ; |
8edf1c75 | 7854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7855 | PyObject * obj2 = 0 ; |
7856 | PyObject * obj3 = 0 ; | |
8edf1c75 | 7857 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7858 | PyObject * obj5 = 0 ; |
7859 | char *kwnames[] = { | |
7860 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7861 | }; | |
7862 | ||
8edf1c75 | 7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 7864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7865 | { |
7866 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
d14a1e28 RD |
7869 | if (obj2) { |
7870 | { | |
7871 | arg3 = &temp3; | |
7872 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7873 | } | |
7874 | } | |
7875 | if (obj3) { | |
7876 | { | |
7877 | arg4 = &temp4; | |
7878 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7879 | } | |
7880 | } | |
8edf1c75 RD |
7881 | if (obj4) { |
7882 | { | |
7883 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | } | |
d14a1e28 RD |
7887 | if (obj5) { |
7888 | { | |
7889 | arg6 = wxString_in_helper(obj5); | |
7890 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7891 | temp6 = True; |
d14a1e28 RD |
7892 | } |
7893 | } | |
7894 | { | |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
7901 | { | |
7902 | resultobj = wxPyMake_wxObject(result); | |
7903 | } | |
7904 | { | |
7905 | if (temp6) | |
7906 | delete arg6; | |
7907 | } | |
7908 | return resultobj; | |
7909 | fail: | |
7910 | { | |
7911 | if (temp6) | |
7912 | delete arg6; | |
7913 | } | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7919 | PyObject *resultobj; | |
7920 | wxGrid *arg1 = (wxGrid *) 0 ; | |
7921 | int arg2 ; | |
7922 | int arg3 ; | |
7923 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
7924 | bool result; | |
7925 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7926 | PyObject * obj1 = 0 ; |
7927 | PyObject * obj2 = 0 ; | |
7928 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7929 | char *kwnames[] = { |
7930 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL | |
7931 | }; | |
7932 | ||
8edf1c75 | 7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7935 | { |
7936 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | { | |
7940 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
7943 | if (obj3) { | |
7944 | { | |
7945 | arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
7948 | } | |
d14a1e28 RD |
7949 | { |
7950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7951 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); | |
7952 | ||
7953 | wxPyEndAllowThreads(__tstate); | |
7954 | if (PyErr_Occurred()) SWIG_fail; | |
7955 | } | |
02a34c4c | 7956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7957 | return resultobj; |
7958 | fail: | |
7959 | return NULL; | |
7960 | } | |
7961 | ||
7962 | ||
7963 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7964 | PyObject *resultobj; | |
7965 | wxGrid *arg1 = (wxGrid *) 0 ; | |
7966 | WXGRIDSELECTIONMODES arg2 ; | |
7967 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7969 | char *kwnames[] = { |
7970 | (char *) "self",(char *) "selmode", NULL | |
7971 | }; | |
7972 | ||
8edf1c75 | 7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7975 | { |
7976 | arg2 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj1); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
d14a1e28 RD |
7979 | { |
7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7981 | (arg1)->SetSelectionMode(arg2); | |
7982 | ||
7983 | wxPyEndAllowThreads(__tstate); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
7986 | Py_INCREF(Py_None); resultobj = Py_None; | |
7987 | return resultobj; | |
7988 | fail: | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject *resultobj; | |
7995 | wxGrid *arg1 = (wxGrid *) 0 ; | |
7996 | WXGRIDSELECTIONMODES result; | |
7997 | PyObject * obj0 = 0 ; | |
7998 | char *kwnames[] = { | |
7999 | (char *) "self", NULL | |
8000 | }; | |
8001 | ||
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; | |
8003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8004 | { | |
8005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8006 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); | |
8007 | ||
8008 | wxPyEndAllowThreads(__tstate); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8edf1c75 | 8011 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8012 | return resultobj; |
8013 | fail: | |
8014 | return NULL; | |
8015 | } | |
8016 | ||
8017 | ||
8018 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject *resultobj; | |
8020 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8021 | int result; | |
8022 | PyObject * obj0 = 0 ; | |
8023 | char *kwnames[] = { | |
8024 | (char *) "self", NULL | |
8025 | }; | |
8026 | ||
8027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; | |
8028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | result = (int)(arg1)->GetNumberRows(); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8edf1c75 | 8036 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8037 | return resultobj; |
8038 | fail: | |
8039 | return NULL; | |
8040 | } | |
8041 | ||
8042 | ||
8043 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8044 | PyObject *resultobj; | |
8045 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8046 | int result; | |
8047 | PyObject * obj0 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8054 | { | |
8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8056 | result = (int)(arg1)->GetNumberCols(); | |
8057 | ||
8058 | wxPyEndAllowThreads(__tstate); | |
8059 | if (PyErr_Occurred()) SWIG_fail; | |
8060 | } | |
8edf1c75 | 8061 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8062 | return resultobj; |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
8068 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8069 | PyObject *resultobj; | |
8070 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8071 | wxGridTableMessage *arg2 = 0 ; | |
8072 | bool result; | |
8073 | PyObject * obj0 = 0 ; | |
8074 | PyObject * obj1 = 0 ; | |
8075 | char *kwnames[] = { | |
8076 | (char *) "self","arg2", NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; | |
8080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8081 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8082 | if (arg2 == NULL) { | |
8083 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8084 | } | |
8085 | { | |
8086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8087 | result = (bool)(arg1)->ProcessTableMessage(*arg2); | |
8088 | ||
8089 | wxPyEndAllowThreads(__tstate); | |
8090 | if (PyErr_Occurred()) SWIG_fail; | |
8091 | } | |
02a34c4c | 8092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8093 | return resultobj; |
8094 | fail: | |
8095 | return NULL; | |
8096 | } | |
8097 | ||
8098 | ||
8099 | static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8100 | PyObject *resultobj; | |
8101 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8102 | wxGridTableBase *result; | |
8103 | PyObject * obj0 = 0 ; | |
8104 | char *kwnames[] = { | |
8105 | (char *) "self", NULL | |
8106 | }; | |
8107 | ||
8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; | |
8109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8110 | { | |
8111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8112 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); | |
8113 | ||
8114 | wxPyEndAllowThreads(__tstate); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
8116 | } | |
8117 | { | |
8118 | resultobj = wxPyMake_wxGridTableBase(result); | |
8119 | } | |
8120 | return resultobj; | |
8121 | fail: | |
8122 | return NULL; | |
8123 | } | |
8124 | ||
8125 | ||
8126 | static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8127 | PyObject *resultobj; | |
8128 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8129 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
423f194a | 8130 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8131 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; |
8132 | bool result; | |
8133 | PyObject * obj0 = 0 ; | |
8134 | PyObject * obj1 = 0 ; | |
8135 | PyObject * obj2 = 0 ; | |
8edf1c75 | 8136 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
8137 | char *kwnames[] = { |
8138 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL | |
8139 | }; | |
8140 | ||
8edf1c75 | 8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
8142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8144 | if (obj2) { | |
2dbef272 | 8145 | { |
8edf1c75 RD |
8146 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | } | |
8150 | if (obj3) { | |
8151 | { | |
8152 | arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3); | |
2dbef272 RD |
8153 | if (PyErr_Occurred()) SWIG_fail; |
8154 | } | |
d14a1e28 RD |
8155 | } |
8156 | { | |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); | |
8159 | ||
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
02a34c4c | 8163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8164 | return resultobj; |
8165 | fail: | |
8166 | return NULL; | |
8167 | } | |
8168 | ||
8169 | ||
8170 | static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8171 | PyObject *resultobj; | |
8172 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "self", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; | |
8179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8180 | { | |
8181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8182 | (arg1)->ClearGrid(); | |
8183 | ||
8184 | wxPyEndAllowThreads(__tstate); | |
8185 | if (PyErr_Occurred()) SWIG_fail; | |
8186 | } | |
8187 | Py_INCREF(Py_None); resultobj = Py_None; | |
8188 | return resultobj; | |
8189 | fail: | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
8194 | static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8195 | PyObject *resultobj; | |
8196 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8197 | int arg2 = (int) 0 ; | |
8198 | int arg3 = (int) 1 ; | |
423f194a | 8199 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8200 | bool result; |
8201 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8202 | PyObject * obj1 = 0 ; |
8203 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8204 | PyObject * obj3 = 0 ; |
8205 | char *kwnames[] = { | |
8206 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8207 | }; | |
8208 | ||
8edf1c75 | 8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8211 | if (obj1) { |
8212 | { | |
8213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | } | |
8217 | if (obj2) { | |
8218 | { | |
8219 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | } | |
d14a1e28 | 8223 | if (obj3) { |
2dbef272 | 8224 | { |
8edf1c75 | 8225 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
8226 | if (PyErr_Occurred()) SWIG_fail; |
8227 | } | |
d14a1e28 RD |
8228 | } |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
02a34c4c | 8236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8237 | return resultobj; |
8238 | fail: | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj; | |
8245 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8246 | int arg2 = (int) 1 ; | |
423f194a | 8247 | bool arg3 = (bool) True ; |
d14a1e28 RD |
8248 | bool result; |
8249 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8251 | PyObject * obj2 = 0 ; |
8252 | char *kwnames[] = { | |
8253 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL | |
8254 | }; | |
8255 | ||
8edf1c75 | 8256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8258 | if (obj1) { |
8259 | { | |
8260 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | } | |
8263 | } | |
d14a1e28 | 8264 | if (obj2) { |
2dbef272 | 8265 | { |
8edf1c75 | 8266 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
8267 | if (PyErr_Occurred()) SWIG_fail; |
8268 | } | |
d14a1e28 RD |
8269 | } |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | result = (bool)(arg1)->AppendRows(arg2,arg3); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
02a34c4c | 8277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8278 | return resultobj; |
8279 | fail: | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8285 | PyObject *resultobj; | |
8286 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8287 | int arg2 = (int) 0 ; | |
8288 | int arg3 = (int) 1 ; | |
423f194a | 8289 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8290 | bool result; |
8291 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8292 | PyObject * obj1 = 0 ; |
8293 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8294 | PyObject * obj3 = 0 ; |
8295 | char *kwnames[] = { | |
8296 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8297 | }; | |
8298 | ||
8edf1c75 | 8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8301 | if (obj1) { |
8302 | { | |
8303 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
8305 | } | |
8306 | } | |
8307 | if (obj2) { | |
8308 | { | |
8309 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | } | |
d14a1e28 | 8313 | if (obj3) { |
2dbef272 | 8314 | { |
8edf1c75 | 8315 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
8316 | if (PyErr_Occurred()) SWIG_fail; |
8317 | } | |
d14a1e28 RD |
8318 | } |
8319 | { | |
8320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8321 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); | |
8322 | ||
8323 | wxPyEndAllowThreads(__tstate); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | } | |
02a34c4c | 8326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8327 | return resultobj; |
8328 | fail: | |
8329 | return NULL; | |
8330 | } | |
8331 | ||
8332 | ||
8333 | static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8334 | PyObject *resultobj; | |
8335 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8336 | int arg2 = (int) 0 ; | |
8337 | int arg3 = (int) 1 ; | |
423f194a | 8338 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8339 | bool result; |
8340 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8341 | PyObject * obj1 = 0 ; |
8342 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8343 | PyObject * obj3 = 0 ; |
8344 | char *kwnames[] = { | |
8345 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8346 | }; | |
8347 | ||
8edf1c75 | 8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8350 | if (obj1) { |
8351 | { | |
8352 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | } | |
8356 | if (obj2) { | |
8357 | { | |
8358 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8359 | if (PyErr_Occurred()) SWIG_fail; | |
8360 | } | |
8361 | } | |
d14a1e28 | 8362 | if (obj3) { |
2dbef272 | 8363 | { |
8edf1c75 | 8364 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
8365 | if (PyErr_Occurred()) SWIG_fail; |
8366 | } | |
d14a1e28 RD |
8367 | } |
8368 | { | |
8369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8370 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); | |
8371 | ||
8372 | wxPyEndAllowThreads(__tstate); | |
8373 | if (PyErr_Occurred()) SWIG_fail; | |
8374 | } | |
02a34c4c | 8375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8376 | return resultobj; |
8377 | fail: | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
8382 | static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject *resultobj; | |
8384 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8385 | int arg2 = (int) 1 ; | |
423f194a | 8386 | bool arg3 = (bool) True ; |
d14a1e28 RD |
8387 | bool result; |
8388 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8389 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8390 | PyObject * obj2 = 0 ; |
8391 | char *kwnames[] = { | |
8392 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL | |
8393 | }; | |
8394 | ||
8edf1c75 | 8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8397 | if (obj1) { |
8398 | { | |
8399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8400 | if (PyErr_Occurred()) SWIG_fail; | |
8401 | } | |
8402 | } | |
d14a1e28 | 8403 | if (obj2) { |
2dbef272 | 8404 | { |
8edf1c75 | 8405 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
8406 | if (PyErr_Occurred()) SWIG_fail; |
8407 | } | |
d14a1e28 RD |
8408 | } |
8409 | { | |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8411 | result = (bool)(arg1)->AppendCols(arg2,arg3); | |
8412 | ||
8413 | wxPyEndAllowThreads(__tstate); | |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
8415 | } | |
02a34c4c | 8416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8417 | return resultobj; |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8426 | int arg2 = (int) 0 ; | |
8427 | int arg3 = (int) 1 ; | |
423f194a | 8428 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8429 | bool result; |
8430 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8431 | PyObject * obj1 = 0 ; |
8432 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8433 | PyObject * obj3 = 0 ; |
8434 | char *kwnames[] = { | |
8435 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8436 | }; | |
8437 | ||
8edf1c75 | 8438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8440 | if (obj1) { |
8441 | { | |
8442 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
8445 | } | |
8446 | if (obj2) { | |
8447 | { | |
8448 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | } | |
d14a1e28 | 8452 | if (obj3) { |
2dbef272 | 8453 | { |
8edf1c75 | 8454 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
8455 | if (PyErr_Occurred()) SWIG_fail; |
8456 | } | |
d14a1e28 RD |
8457 | } |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
02a34c4c | 8465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8466 | return resultobj; |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
8472 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8473 | PyObject *resultobj; | |
8474 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8475 | wxDC *arg2 = 0 ; | |
8476 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
8477 | PyObject * obj0 = 0 ; | |
8478 | PyObject * obj1 = 0 ; | |
8479 | PyObject * obj2 = 0 ; | |
8480 | char *kwnames[] = { | |
8481 | (char *) "self",(char *) "dc",(char *) "attr", NULL | |
8482 | }; | |
8483 | ||
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8486 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8487 | if (arg2 == NULL) { | |
8488 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8489 | } | |
8490 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8491 | { | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); | |
8494 | ||
8495 | wxPyEndAllowThreads(__tstate); | |
8496 | if (PyErr_Occurred()) SWIG_fail; | |
8497 | } | |
8498 | Py_INCREF(Py_None); resultobj = Py_None; | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject *resultobj; | |
8507 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8508 | wxDC *arg2 = 0 ; | |
8509 | wxString *arg3 = 0 ; | |
8510 | wxRect *arg4 = 0 ; | |
8511 | int arg5 = (int) wxLEFT ; | |
8512 | int arg6 = (int) wxTOP ; | |
8513 | int arg7 = (int) wxHORIZONTAL ; | |
423f194a | 8514 | bool temp3 = False ; |
d14a1e28 RD |
8515 | wxRect temp4 ; |
8516 | PyObject * obj0 = 0 ; | |
8517 | PyObject * obj1 = 0 ; | |
8518 | PyObject * obj2 = 0 ; | |
8519 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
8520 | PyObject * obj4 = 0 ; |
8521 | PyObject * obj5 = 0 ; | |
8522 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
8523 | char *kwnames[] = { |
8524 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL | |
8525 | }; | |
8526 | ||
8edf1c75 | 8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
8528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8530 | if (arg2 == NULL) { | |
8531 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8532 | } | |
8533 | { | |
8534 | arg3 = wxString_in_helper(obj2); | |
8535 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8536 | temp3 = True; |
d14a1e28 RD |
8537 | } |
8538 | { | |
8539 | arg4 = &temp4; | |
8540 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
8541 | } | |
8edf1c75 RD |
8542 | if (obj4) { |
8543 | { | |
8544 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | } | |
8547 | } | |
8548 | if (obj5) { | |
8549 | { | |
8550 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | } | |
8554 | if (obj6) { | |
8555 | { | |
8556 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | } | |
d14a1e28 RD |
8560 | { |
8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8562 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
8563 | ||
8564 | wxPyEndAllowThreads(__tstate); | |
8565 | if (PyErr_Occurred()) SWIG_fail; | |
8566 | } | |
8567 | Py_INCREF(Py_None); resultobj = Py_None; | |
8568 | { | |
8569 | if (temp3) | |
8570 | delete arg3; | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | { | |
8575 | if (temp3) | |
8576 | delete arg3; | |
8577 | } | |
8578 | return NULL; | |
8579 | } | |
8580 | ||
8581 | ||
8582 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8583 | PyObject *resultobj; | |
8584 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8585 | wxDC *arg2 = 0 ; | |
8586 | wxArrayString *arg3 = 0 ; | |
8587 | long *arg4 = (long *) 0 ; | |
8588 | long *arg5 = (long *) 0 ; | |
0ffb2aa6 | 8589 | bool temp3 = False ; |
d14a1e28 RD |
8590 | long temp4 ; |
8591 | long temp5 ; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | PyObject * obj1 = 0 ; | |
8594 | PyObject * obj2 = 0 ; | |
8595 | char *kwnames[] = { | |
8596 | (char *) "self",(char *) "dc",(char *) "lines", NULL | |
8597 | }; | |
8598 | ||
8599 | arg4 = &temp4; | |
8600 | arg5 = &temp5; | |
8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8603 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8604 | if (arg2 == NULL) { | |
8605 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8606 | } | |
8607 | { | |
8608 | if (! PySequence_Check(obj2)) { | |
8609 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8610 | SWIG_fail; | |
8611 | } | |
8612 | arg3 = new wxArrayString; | |
0ffb2aa6 | 8613 | temp3 = True; |
d14a1e28 RD |
8614 | int i, len=PySequence_Length(obj2); |
8615 | for (i=0; i<len; i++) { | |
8616 | PyObject* item = PySequence_GetItem(obj2, i); | |
8617 | #if wxUSE_UNICODE | |
8618 | PyObject* str = PyObject_Unicode(item); | |
8619 | #else | |
8620 | PyObject* str = PyObject_Str(item); | |
8621 | #endif | |
8622 | arg3->Add(Py2wxString(str)); | |
8623 | Py_DECREF(item); | |
8624 | Py_DECREF(str); | |
8625 | } | |
8626 | } | |
8627 | { | |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
8634 | Py_INCREF(Py_None); resultobj = Py_None; | |
8635 | { | |
8636 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8637 | resultobj = t_output_helper(resultobj,o); | |
8638 | } | |
8639 | { | |
8640 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
8641 | resultobj = t_output_helper(resultobj,o); | |
8642 | } | |
8643 | { | |
0ffb2aa6 | 8644 | if (temp3) delete arg3; |
d14a1e28 RD |
8645 | } |
8646 | return resultobj; | |
8647 | fail: | |
8648 | { | |
0ffb2aa6 | 8649 | if (temp3) delete arg3; |
d14a1e28 RD |
8650 | } |
8651 | return NULL; | |
8652 | } | |
8653 | ||
8654 | ||
8655 | static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8656 | PyObject *resultobj; | |
8657 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8658 | PyObject * obj0 = 0 ; | |
8659 | char *kwnames[] = { | |
8660 | (char *) "self", NULL | |
8661 | }; | |
8662 | ||
8663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; | |
8664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8665 | { | |
8666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8667 | (arg1)->BeginBatch(); | |
8668 | ||
8669 | wxPyEndAllowThreads(__tstate); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | } | |
8672 | Py_INCREF(Py_None); resultobj = Py_None; | |
8673 | return resultobj; | |
8674 | fail: | |
8675 | return NULL; | |
8676 | } | |
8677 | ||
8678 | ||
8679 | static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8680 | PyObject *resultobj; | |
8681 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8682 | PyObject * obj0 = 0 ; | |
8683 | char *kwnames[] = { | |
8684 | (char *) "self", NULL | |
8685 | }; | |
8686 | ||
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; | |
8688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | (arg1)->EndBatch(); | |
8692 | ||
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | Py_INCREF(Py_None); resultobj = Py_None; | |
8697 | return resultobj; | |
8698 | fail: | |
8699 | return NULL; | |
8700 | } | |
8701 | ||
8702 | ||
8703 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8704 | PyObject *resultobj; | |
8705 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8706 | int result; | |
8707 | PyObject * obj0 = 0 ; | |
8708 | char *kwnames[] = { | |
8709 | (char *) "self", NULL | |
8710 | }; | |
8711 | ||
8712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; | |
8713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8714 | { | |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8716 | result = (int)(arg1)->GetBatchCount(); | |
8717 | ||
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8edf1c75 | 8721 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8722 | return resultobj; |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8729 | PyObject *resultobj; | |
8730 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8731 | PyObject * obj0 = 0 ; | |
8732 | char *kwnames[] = { | |
8733 | (char *) "self", NULL | |
8734 | }; | |
8735 | ||
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; | |
8737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8738 | { | |
8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8740 | (arg1)->ForceRefresh(); | |
8741 | ||
8742 | wxPyEndAllowThreads(__tstate); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | Py_INCREF(Py_None); resultobj = Py_None; | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
8752 | static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8753 | PyObject *resultobj; | |
8754 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 8755 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8756 | wxRect *arg3 = (wxRect *) NULL ; |
8757 | PyObject * obj0 = 0 ; | |
8758 | PyObject * obj1 = 0 ; | |
8759 | PyObject * obj2 = 0 ; | |
8760 | char *kwnames[] = { | |
8761 | (char *) "self",(char *) "eraseb",(char *) "rect", NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8766 | if (obj1) { | |
2dbef272 | 8767 | { |
8edf1c75 | 8768 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8769 | if (PyErr_Occurred()) SWIG_fail; |
8770 | } | |
d14a1e28 RD |
8771 | } |
8772 | if (obj2) { | |
8773 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8774 | } | |
8775 | { | |
8776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8777 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
8778 | ||
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | Py_INCREF(Py_None); resultobj = Py_None; | |
8783 | return resultobj; | |
8784 | fail: | |
8785 | return NULL; | |
8786 | } | |
8787 | ||
8788 | ||
8789 | static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8790 | PyObject *resultobj; | |
8791 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8792 | bool result; | |
8793 | PyObject * obj0 = 0 ; | |
8794 | char *kwnames[] = { | |
8795 | (char *) "self", NULL | |
8796 | }; | |
8797 | ||
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; | |
8799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | result = (bool)(arg1)->IsEditable(); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
02a34c4c | 8807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8808 | return resultobj; |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj; | |
8816 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8817 | bool arg2 ; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | PyObject * obj1 = 0 ; | |
8820 | char *kwnames[] = { | |
8821 | (char *) "self",(char *) "edit", NULL | |
8822 | }; | |
8823 | ||
8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; | |
8825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8826 | { |
8edf1c75 | 8827 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8828 | if (PyErr_Occurred()) SWIG_fail; |
8829 | } | |
d14a1e28 RD |
8830 | { |
8831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8832 | (arg1)->EnableEditing(arg2); | |
8833 | ||
8834 | wxPyEndAllowThreads(__tstate); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | } | |
8837 | Py_INCREF(Py_None); resultobj = Py_None; | |
8838 | return resultobj; | |
8839 | fail: | |
8840 | return NULL; | |
8841 | } | |
8842 | ||
8843 | ||
8844 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8845 | PyObject *resultobj; | |
8846 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 8847 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8848 | PyObject * obj0 = 0 ; |
8849 | PyObject * obj1 = 0 ; | |
8850 | char *kwnames[] = { | |
8851 | (char *) "self",(char *) "enable", NULL | |
8852 | }; | |
8853 | ||
8854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; | |
8855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8856 | if (obj1) { | |
2dbef272 | 8857 | { |
8edf1c75 | 8858 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8859 | if (PyErr_Occurred()) SWIG_fail; |
8860 | } | |
d14a1e28 RD |
8861 | } |
8862 | { | |
8863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8864 | (arg1)->EnableCellEditControl(arg2); | |
8865 | ||
8866 | wxPyEndAllowThreads(__tstate); | |
8867 | if (PyErr_Occurred()) SWIG_fail; | |
8868 | } | |
8869 | Py_INCREF(Py_None); resultobj = Py_None; | |
8870 | return resultobj; | |
8871 | fail: | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
8876 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8877 | PyObject *resultobj; | |
8878 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8879 | PyObject * obj0 = 0 ; | |
8880 | char *kwnames[] = { | |
8881 | (char *) "self", NULL | |
8882 | }; | |
8883 | ||
8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; | |
8885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8886 | { | |
8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8888 | (arg1)->DisableCellEditControl(); | |
8889 | ||
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | Py_INCREF(Py_None); resultobj = Py_None; | |
8894 | return resultobj; | |
8895 | fail: | |
8896 | return NULL; | |
8897 | } | |
8898 | ||
8899 | ||
8900 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8901 | PyObject *resultobj; | |
8902 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8903 | bool result; | |
8904 | PyObject * obj0 = 0 ; | |
8905 | char *kwnames[] = { | |
8906 | (char *) "self", NULL | |
8907 | }; | |
8908 | ||
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; | |
8910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8911 | { | |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8913 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); | |
8914 | ||
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
02a34c4c | 8918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8919 | return resultobj; |
8920 | fail: | |
8921 | return NULL; | |
8922 | } | |
8923 | ||
8924 | ||
8925 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8926 | PyObject *resultobj; | |
8927 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8928 | bool result; | |
8929 | PyObject * obj0 = 0 ; | |
8930 | char *kwnames[] = { | |
8931 | (char *) "self", NULL | |
8932 | }; | |
8933 | ||
8934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; | |
8935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8936 | { | |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
02a34c4c | 8943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8944 | return resultobj; |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj; | |
8952 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8953 | bool result; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | char *kwnames[] = { | |
8956 | (char *) "self", NULL | |
8957 | }; | |
8958 | ||
8959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; | |
8960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8961 | { | |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
02a34c4c | 8968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8969 | return resultobj; |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj; | |
8977 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8978 | bool result; | |
8979 | PyObject * obj0 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "self", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; | |
8985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8986 | { | |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8988 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); | |
8989 | ||
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
02a34c4c | 8993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8994 | return resultobj; |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
9000 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9001 | PyObject *resultobj; | |
9002 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9003 | PyObject * obj0 = 0 ; | |
9004 | char *kwnames[] = { | |
9005 | (char *) "self", NULL | |
9006 | }; | |
9007 | ||
9008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; | |
9009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | (arg1)->ShowCellEditControl(); | |
9013 | ||
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | Py_INCREF(Py_None); resultobj = Py_None; | |
9018 | return resultobj; | |
9019 | fail: | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj; | |
9026 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9027 | PyObject * obj0 = 0 ; | |
9028 | char *kwnames[] = { | |
9029 | (char *) "self", NULL | |
9030 | }; | |
9031 | ||
9032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; | |
9033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9034 | { | |
9035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9036 | (arg1)->HideCellEditControl(); | |
9037 | ||
9038 | wxPyEndAllowThreads(__tstate); | |
9039 | if (PyErr_Occurred()) SWIG_fail; | |
9040 | } | |
9041 | Py_INCREF(Py_None); resultobj = Py_None; | |
9042 | return resultobj; | |
9043 | fail: | |
9044 | return NULL; | |
9045 | } | |
9046 | ||
9047 | ||
9048 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject *resultobj; | |
9050 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9051 | PyObject * obj0 = 0 ; | |
9052 | char *kwnames[] = { | |
9053 | (char *) "self", NULL | |
9054 | }; | |
9055 | ||
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; | |
9057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9058 | { | |
9059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9060 | (arg1)->SaveEditControlValue(); | |
9061 | ||
9062 | wxPyEndAllowThreads(__tstate); | |
9063 | if (PyErr_Occurred()) SWIG_fail; | |
9064 | } | |
9065 | Py_INCREF(Py_None); resultobj = Py_None; | |
9066 | return resultobj; | |
9067 | fail: | |
9068 | return NULL; | |
9069 | } | |
9070 | ||
9071 | ||
9072 | static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject *resultobj; | |
9074 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9075 | int arg2 ; | |
9076 | int arg3 ; | |
9077 | wxGridCellCoords result; | |
9078 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9079 | PyObject * obj1 = 0 ; |
9080 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9081 | char *kwnames[] = { |
9082 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9083 | }; | |
9084 | ||
8edf1c75 | 9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9087 | { |
9088 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | { | |
9092 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
d14a1e28 RD |
9095 | { |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | result = wxGrid_XYToCell(arg1,arg2,arg3); | |
9098 | ||
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | { | |
9103 | wxGridCellCoords * resultptr; | |
9104 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
9105 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
9106 | } | |
9107 | return resultobj; | |
9108 | fail: | |
9109 | return NULL; | |
9110 | } | |
9111 | ||
9112 | ||
9113 | static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9114 | PyObject *resultobj; | |
9115 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9116 | int arg2 ; | |
9117 | int result; | |
9118 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9120 | char *kwnames[] = { |
9121 | (char *) "self",(char *) "y", NULL | |
9122 | }; | |
9123 | ||
8edf1c75 | 9124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9126 | { |
9127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | } | |
d14a1e28 RD |
9130 | { |
9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9132 | result = (int)(arg1)->YToRow(arg2); | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
8edf1c75 | 9137 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9138 | return resultobj; |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9147 | int arg2 ; | |
9148 | int result; | |
9149 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9151 | char *kwnames[] = { |
9152 | (char *) "self",(char *) "x", NULL | |
9153 | }; | |
9154 | ||
8edf1c75 | 9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9157 | { |
9158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
d14a1e28 RD |
9161 | { |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | result = (int)(arg1)->XToCol(arg2); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
8edf1c75 | 9168 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9169 | return resultobj; |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9178 | int arg2 ; | |
9179 | int result; | |
9180 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9181 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9182 | char *kwnames[] = { |
9183 | (char *) "self",(char *) "y", NULL | |
9184 | }; | |
9185 | ||
8edf1c75 | 9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9188 | { |
9189 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
d14a1e28 RD |
9192 | { |
9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9194 | result = (int)(arg1)->YToEdgeOfRow(arg2); | |
9195 | ||
9196 | wxPyEndAllowThreads(__tstate); | |
9197 | if (PyErr_Occurred()) SWIG_fail; | |
9198 | } | |
8edf1c75 | 9199 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9200 | return resultobj; |
9201 | fail: | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
9206 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9207 | PyObject *resultobj; | |
9208 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9209 | int arg2 ; | |
9210 | int result; | |
9211 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9213 | char *kwnames[] = { |
9214 | (char *) "self",(char *) "x", NULL | |
9215 | }; | |
9216 | ||
8edf1c75 | 9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9219 | { |
9220 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
d14a1e28 RD |
9223 | { |
9224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9225 | result = (int)(arg1)->XToEdgeOfCol(arg2); | |
9226 | ||
9227 | wxPyEndAllowThreads(__tstate); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
8edf1c75 | 9230 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9231 | return resultobj; |
9232 | fail: | |
9233 | return NULL; | |
9234 | } | |
9235 | ||
9236 | ||
9237 | static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9238 | PyObject *resultobj; | |
9239 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9240 | int arg2 ; | |
9241 | int arg3 ; | |
9242 | wxRect result; | |
9243 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9244 | PyObject * obj1 = 0 ; |
9245 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9246 | char *kwnames[] = { |
9247 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9248 | }; | |
9249 | ||
8edf1c75 | 9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9252 | { |
9253 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9254 | if (PyErr_Occurred()) SWIG_fail; | |
9255 | } | |
9256 | { | |
9257 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
d14a1e28 RD |
9260 | { |
9261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9262 | result = (arg1)->CellToRect(arg2,arg3); | |
9263 | ||
9264 | wxPyEndAllowThreads(__tstate); | |
9265 | if (PyErr_Occurred()) SWIG_fail; | |
9266 | } | |
9267 | { | |
9268 | wxRect * resultptr; | |
9269 | resultptr = new wxRect((wxRect &) result); | |
9270 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
9271 | } | |
9272 | return resultobj; | |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
9278 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9279 | PyObject *resultobj; | |
9280 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9281 | int result; | |
9282 | PyObject * obj0 = 0 ; | |
9283 | char *kwnames[] = { | |
9284 | (char *) "self", NULL | |
9285 | }; | |
9286 | ||
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; | |
9288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9289 | { | |
9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9291 | result = (int)(arg1)->GetGridCursorRow(); | |
9292 | ||
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
8edf1c75 | 9296 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9297 | return resultobj; |
9298 | fail: | |
9299 | return NULL; | |
9300 | } | |
9301 | ||
9302 | ||
9303 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9304 | PyObject *resultobj; | |
9305 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9306 | int result; | |
9307 | PyObject * obj0 = 0 ; | |
9308 | char *kwnames[] = { | |
9309 | (char *) "self", NULL | |
9310 | }; | |
9311 | ||
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; | |
9313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9314 | { | |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | result = (int)(arg1)->GetGridCursorCol(); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | } | |
8edf1c75 | 9321 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9322 | return resultobj; |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9331 | int arg2 ; | |
9332 | int arg3 ; | |
423f194a | 9333 | bool arg4 = (bool) True ; |
d14a1e28 RD |
9334 | bool result; |
9335 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9336 | PyObject * obj1 = 0 ; |
9337 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9338 | PyObject * obj3 = 0 ; |
9339 | char *kwnames[] = { | |
9340 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL | |
9341 | }; | |
9342 | ||
8edf1c75 | 9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9345 | { |
9346 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
9349 | { | |
9350 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | } | |
d14a1e28 | 9353 | if (obj3) { |
2dbef272 | 9354 | { |
8edf1c75 | 9355 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
9356 | if (PyErr_Occurred()) SWIG_fail; |
9357 | } | |
d14a1e28 RD |
9358 | } |
9359 | { | |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); | |
9362 | ||
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
02a34c4c | 9366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9367 | return resultobj; |
9368 | fail: | |
9369 | return NULL; | |
9370 | } | |
9371 | ||
9372 | ||
9373 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject *resultobj; | |
9375 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9376 | int arg2 ; | |
9377 | int arg3 ; | |
9378 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9379 | PyObject * obj1 = 0 ; |
9380 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9381 | char *kwnames[] = { |
9382 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9383 | }; | |
9384 | ||
8edf1c75 | 9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9387 | { |
9388 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9389 | if (PyErr_Occurred()) SWIG_fail; | |
9390 | } | |
9391 | { | |
9392 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | } | |
d14a1e28 RD |
9395 | { |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | (arg1)->MakeCellVisible(arg2,arg3); | |
9398 | ||
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
9402 | Py_INCREF(Py_None); resultobj = Py_None; | |
9403 | return resultobj; | |
9404 | fail: | |
9405 | return NULL; | |
9406 | } | |
9407 | ||
9408 | ||
9409 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9410 | PyObject *resultobj; | |
9411 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9412 | int arg2 ; | |
9413 | int arg3 ; | |
9414 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9415 | PyObject * obj1 = 0 ; |
9416 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9417 | char *kwnames[] = { |
9418 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9419 | }; | |
9420 | ||
8edf1c75 | 9421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9423 | { |
9424 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9425 | if (PyErr_Occurred()) SWIG_fail; | |
9426 | } | |
9427 | { | |
9428 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9429 | if (PyErr_Occurred()) SWIG_fail; | |
9430 | } | |
d14a1e28 RD |
9431 | { |
9432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9433 | (arg1)->SetGridCursor(arg2,arg3); | |
9434 | ||
9435 | wxPyEndAllowThreads(__tstate); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | } | |
9438 | Py_INCREF(Py_None); resultobj = Py_None; | |
9439 | return resultobj; | |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj; | |
9447 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9448 | bool arg2 ; | |
9449 | bool result; | |
9450 | PyObject * obj0 = 0 ; | |
9451 | PyObject * obj1 = 0 ; | |
9452 | char *kwnames[] = { | |
9453 | (char *) "self",(char *) "expandSelection", NULL | |
9454 | }; | |
9455 | ||
9456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; | |
9457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9458 | { |
8edf1c75 | 9459 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9460 | if (PyErr_Occurred()) SWIG_fail; |
9461 | } | |
d14a1e28 RD |
9462 | { |
9463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9464 | result = (bool)(arg1)->MoveCursorUp(arg2); | |
9465 | ||
9466 | wxPyEndAllowThreads(__tstate); | |
9467 | if (PyErr_Occurred()) SWIG_fail; | |
9468 | } | |
02a34c4c | 9469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9470 | return resultobj; |
9471 | fail: | |
9472 | return NULL; | |
9473 | } | |
9474 | ||
9475 | ||
9476 | static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9477 | PyObject *resultobj; | |
9478 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9479 | bool arg2 ; | |
9480 | bool result; | |
9481 | PyObject * obj0 = 0 ; | |
9482 | PyObject * obj1 = 0 ; | |
9483 | char *kwnames[] = { | |
9484 | (char *) "self",(char *) "expandSelection", NULL | |
9485 | }; | |
9486 | ||
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail; | |
9488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9489 | { |
8edf1c75 | 9490 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9491 | if (PyErr_Occurred()) SWIG_fail; |
9492 | } | |
d14a1e28 RD |
9493 | { |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | result = (bool)(arg1)->MoveCursorDown(arg2); | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
02a34c4c | 9500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9501 | return resultobj; |
9502 | fail: | |
9503 | return NULL; | |
9504 | } | |
9505 | ||
9506 | ||
9507 | static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9508 | PyObject *resultobj; | |
9509 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9510 | bool arg2 ; | |
9511 | bool result; | |
9512 | PyObject * obj0 = 0 ; | |
9513 | PyObject * obj1 = 0 ; | |
9514 | char *kwnames[] = { | |
9515 | (char *) "self",(char *) "expandSelection", NULL | |
9516 | }; | |
9517 | ||
9518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail; | |
9519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9520 | { |
8edf1c75 | 9521 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9522 | if (PyErr_Occurred()) SWIG_fail; |
9523 | } | |
d14a1e28 RD |
9524 | { |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | result = (bool)(arg1)->MoveCursorLeft(arg2); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
02a34c4c | 9531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9532 | return resultobj; |
9533 | fail: | |
9534 | return NULL; | |
9535 | } | |
9536 | ||
9537 | ||
9538 | static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject *resultobj; | |
9540 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9541 | bool arg2 ; | |
9542 | bool result; | |
9543 | PyObject * obj0 = 0 ; | |
9544 | PyObject * obj1 = 0 ; | |
9545 | char *kwnames[] = { | |
9546 | (char *) "self",(char *) "expandSelection", NULL | |
9547 | }; | |
9548 | ||
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail; | |
9550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9551 | { |
8edf1c75 | 9552 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9553 | if (PyErr_Occurred()) SWIG_fail; |
9554 | } | |
d14a1e28 RD |
9555 | { |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | result = (bool)(arg1)->MoveCursorRight(arg2); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
02a34c4c | 9562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9563 | return resultobj; |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9572 | bool result; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | char *kwnames[] = { | |
9575 | (char *) "self", NULL | |
9576 | }; | |
9577 | ||
9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; | |
9579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9580 | { | |
9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9582 | result = (bool)(arg1)->MovePageDown(); | |
9583 | ||
9584 | wxPyEndAllowThreads(__tstate); | |
9585 | if (PyErr_Occurred()) SWIG_fail; | |
9586 | } | |
02a34c4c | 9587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9588 | return resultobj; |
9589 | fail: | |
9590 | return NULL; | |
9591 | } | |
9592 | ||
9593 | ||
9594 | static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9595 | PyObject *resultobj; | |
9596 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9597 | bool result; | |
9598 | PyObject * obj0 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "self", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; | |
9604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (bool)(arg1)->MovePageUp(); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
02a34c4c | 9612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9613 | return resultobj; |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
9619 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject *resultobj; | |
9621 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9622 | bool arg2 ; | |
9623 | bool result; | |
9624 | PyObject * obj0 = 0 ; | |
9625 | PyObject * obj1 = 0 ; | |
9626 | char *kwnames[] = { | |
9627 | (char *) "self",(char *) "expandSelection", NULL | |
9628 | }; | |
9629 | ||
9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; | |
9631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9632 | { |
8edf1c75 | 9633 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9634 | if (PyErr_Occurred()) SWIG_fail; |
9635 | } | |
d14a1e28 RD |
9636 | { |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); | |
9639 | ||
9640 | wxPyEndAllowThreads(__tstate); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
02a34c4c | 9643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9644 | return resultobj; |
9645 | fail: | |
9646 | return NULL; | |
9647 | } | |
9648 | ||
9649 | ||
9650 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9651 | PyObject *resultobj; | |
9652 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9653 | bool arg2 ; | |
9654 | bool result; | |
9655 | PyObject * obj0 = 0 ; | |
9656 | PyObject * obj1 = 0 ; | |
9657 | char *kwnames[] = { | |
9658 | (char *) "self",(char *) "expandSelection", NULL | |
9659 | }; | |
9660 | ||
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; | |
9662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9663 | { |
8edf1c75 | 9664 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9665 | if (PyErr_Occurred()) SWIG_fail; |
9666 | } | |
d14a1e28 RD |
9667 | { |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
02a34c4c | 9674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9675 | return resultobj; |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj; | |
9683 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9684 | bool arg2 ; | |
9685 | bool result; | |
9686 | PyObject * obj0 = 0 ; | |
9687 | PyObject * obj1 = 0 ; | |
9688 | char *kwnames[] = { | |
9689 | (char *) "self",(char *) "expandSelection", NULL | |
9690 | }; | |
9691 | ||
9692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; | |
9693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9694 | { |
8edf1c75 | 9695 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9696 | if (PyErr_Occurred()) SWIG_fail; |
9697 | } | |
d14a1e28 RD |
9698 | { |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
02a34c4c | 9705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9706 | return resultobj; |
9707 | fail: | |
9708 | return NULL; | |
9709 | } | |
9710 | ||
9711 | ||
9712 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9713 | PyObject *resultobj; | |
9714 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9715 | bool arg2 ; | |
9716 | bool result; | |
9717 | PyObject * obj0 = 0 ; | |
9718 | PyObject * obj1 = 0 ; | |
9719 | char *kwnames[] = { | |
9720 | (char *) "self",(char *) "expandSelection", NULL | |
9721 | }; | |
9722 | ||
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; | |
9724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 9725 | { |
8edf1c75 | 9726 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
9727 | if (PyErr_Occurred()) SWIG_fail; |
9728 | } | |
d14a1e28 RD |
9729 | { |
9730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9731 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); | |
9732 | ||
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
9735 | } | |
02a34c4c | 9736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9737 | return resultobj; |
9738 | fail: | |
9739 | return NULL; | |
9740 | } | |
9741 | ||
9742 | ||
9743 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject *resultobj; | |
9745 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9746 | int result; | |
9747 | PyObject * obj0 = 0 ; | |
9748 | char *kwnames[] = { | |
9749 | (char *) "self", NULL | |
9750 | }; | |
9751 | ||
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; | |
9753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | result = (int)(arg1)->GetDefaultRowLabelSize(); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
8edf1c75 | 9761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9762 | return resultobj; |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
9768 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9769 | PyObject *resultobj; | |
9770 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9771 | int result; | |
9772 | PyObject * obj0 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self", NULL | |
9775 | }; | |
9776 | ||
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; | |
9778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9779 | { | |
9780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9781 | result = (int)(arg1)->GetRowLabelSize(); | |
9782 | ||
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
8edf1c75 | 9786 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9787 | return resultobj; |
9788 | fail: | |
9789 | return NULL; | |
9790 | } | |
9791 | ||
9792 | ||
9793 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9794 | PyObject *resultobj; | |
9795 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9796 | int result; | |
9797 | PyObject * obj0 = 0 ; | |
9798 | char *kwnames[] = { | |
9799 | (char *) "self", NULL | |
9800 | }; | |
9801 | ||
9802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; | |
9803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9804 | { | |
9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9806 | result = (int)(arg1)->GetDefaultColLabelSize(); | |
9807 | ||
9808 | wxPyEndAllowThreads(__tstate); | |
9809 | if (PyErr_Occurred()) SWIG_fail; | |
9810 | } | |
8edf1c75 | 9811 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9812 | return resultobj; |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
9818 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9819 | PyObject *resultobj; | |
9820 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9821 | int result; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | char *kwnames[] = { | |
9824 | (char *) "self", NULL | |
9825 | }; | |
9826 | ||
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; | |
9828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9829 | { | |
9830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9831 | result = (int)(arg1)->GetColLabelSize(); | |
9832 | ||
9833 | wxPyEndAllowThreads(__tstate); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
8edf1c75 | 9836 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9837 | return resultobj; |
9838 | fail: | |
9839 | return NULL; | |
9840 | } | |
9841 | ||
9842 | ||
9843 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject *resultobj; | |
9845 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9846 | wxColour result; | |
9847 | PyObject * obj0 = 0 ; | |
9848 | char *kwnames[] = { | |
9849 | (char *) "self", NULL | |
9850 | }; | |
9851 | ||
9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; | |
9853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9854 | { | |
9855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9856 | result = (arg1)->GetLabelBackgroundColour(); | |
9857 | ||
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
9861 | { | |
9862 | wxColour * resultptr; | |
9863 | resultptr = new wxColour((wxColour &) result); | |
9864 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9865 | } | |
9866 | return resultobj; | |
9867 | fail: | |
9868 | return NULL; | |
9869 | } | |
9870 | ||
9871 | ||
9872 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject *resultobj; | |
9874 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9875 | wxColour result; | |
9876 | PyObject * obj0 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; | |
9882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9883 | { | |
9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9885 | result = (arg1)->GetLabelTextColour(); | |
9886 | ||
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | { | |
9891 | wxColour * resultptr; | |
9892 | resultptr = new wxColour((wxColour &) result); | |
9893 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9894 | } | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | return NULL; | |
9898 | } | |
9899 | ||
9900 | ||
9901 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9902 | PyObject *resultobj; | |
9903 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9904 | wxFont result; | |
9905 | PyObject * obj0 = 0 ; | |
9906 | char *kwnames[] = { | |
9907 | (char *) "self", NULL | |
9908 | }; | |
9909 | ||
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; | |
9911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (arg1)->GetLabelFont(); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | { | |
9920 | wxFont * resultptr; | |
9921 | resultptr = new wxFont((wxFont &) result); | |
9922 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
9923 | } | |
9924 | return resultobj; | |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
9930 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj; | |
9932 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9933 | int *arg2 = (int *) 0 ; | |
9934 | int *arg3 = (int *) 0 ; | |
9935 | int temp2 ; | |
9936 | int temp3 ; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self", NULL | |
9940 | }; | |
9941 | ||
9942 | arg2 = &temp2; | |
9943 | arg3 = &temp3; | |
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; | |
9945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | (arg1)->GetRowLabelAlignment(arg2,arg3); | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | Py_INCREF(Py_None); resultobj = Py_None; | |
9954 | { | |
9955 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9956 | resultobj = t_output_helper(resultobj,o); | |
9957 | } | |
9958 | { | |
9959 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9960 | resultobj = t_output_helper(resultobj,o); | |
9961 | } | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9971 | int *arg2 = (int *) 0 ; | |
9972 | int *arg3 = (int *) 0 ; | |
9973 | int temp2 ; | |
9974 | int temp3 ; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self", NULL | |
9978 | }; | |
9979 | ||
9980 | arg2 = &temp2; | |
9981 | arg3 = &temp3; | |
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; | |
9983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9984 | { | |
9985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9986 | (arg1)->GetColLabelAlignment(arg2,arg3); | |
9987 | ||
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
9991 | Py_INCREF(Py_None); resultobj = Py_None; | |
9992 | { | |
9993 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9994 | resultobj = t_output_helper(resultobj,o); | |
9995 | } | |
9996 | { | |
9997 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9998 | resultobj = t_output_helper(resultobj,o); | |
9999 | } | |
10000 | return resultobj; | |
10001 | fail: | |
10002 | return NULL; | |
10003 | } | |
10004 | ||
10005 | ||
10006 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10007 | PyObject *resultobj; | |
10008 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10009 | int result; | |
10010 | PyObject * obj0 = 0 ; | |
10011 | char *kwnames[] = { | |
10012 | (char *) "self", NULL | |
10013 | }; | |
10014 | ||
10015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; | |
10016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10017 | { | |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | result = (int)(arg1)->GetColLabelTextOrientation(); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
8edf1c75 | 10024 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10025 | return resultobj; |
10026 | fail: | |
10027 | return NULL; | |
10028 | } | |
10029 | ||
10030 | ||
10031 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject *resultobj; | |
10033 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10034 | int arg2 ; | |
10035 | wxString result; | |
10036 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10038 | char *kwnames[] = { |
10039 | (char *) "self",(char *) "row", NULL | |
10040 | }; | |
10041 | ||
8edf1c75 | 10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10044 | { |
10045 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
d14a1e28 RD |
10048 | { |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = (arg1)->GetRowLabelValue(arg2); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | #if wxUSE_UNICODE | |
10057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10058 | #else | |
10059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10060 | #endif | |
10061 | } | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
10068 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject *resultobj; | |
10070 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10071 | int arg2 ; | |
10072 | wxString result; | |
10073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10075 | char *kwnames[] = { |
10076 | (char *) "self",(char *) "col", NULL | |
10077 | }; | |
10078 | ||
8edf1c75 | 10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10081 | { |
10082 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10083 | if (PyErr_Occurred()) SWIG_fail; | |
10084 | } | |
d14a1e28 RD |
10085 | { |
10086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10087 | result = (arg1)->GetColLabelValue(arg2); | |
10088 | ||
10089 | wxPyEndAllowThreads(__tstate); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | { | |
10093 | #if wxUSE_UNICODE | |
10094 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10095 | #else | |
10096 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10097 | #endif | |
10098 | } | |
10099 | return resultobj; | |
10100 | fail: | |
10101 | return NULL; | |
10102 | } | |
10103 | ||
10104 | ||
10105 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10106 | PyObject *resultobj; | |
10107 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10108 | wxColour result; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "self", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; | |
10115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = (arg1)->GetGridLineColour(); | |
10119 | ||
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
10123 | { | |
10124 | wxColour * resultptr; | |
10125 | resultptr = new wxColour((wxColour &) result); | |
10126 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10127 | } | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10137 | wxColour result; | |
10138 | PyObject * obj0 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; | |
10144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10147 | result = (arg1)->GetCellHighlightColour(); | |
10148 | ||
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) SWIG_fail; | |
10151 | } | |
10152 | { | |
10153 | wxColour * resultptr; | |
10154 | resultptr = new wxColour((wxColour &) result); | |
10155 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10156 | } | |
10157 | return resultobj; | |
10158 | fail: | |
10159 | return NULL; | |
10160 | } | |
10161 | ||
10162 | ||
10163 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10164 | PyObject *resultobj; | |
10165 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10166 | int result; | |
10167 | PyObject * obj0 = 0 ; | |
10168 | char *kwnames[] = { | |
10169 | (char *) "self", NULL | |
10170 | }; | |
10171 | ||
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; | |
10173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10174 | { | |
10175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10176 | result = (int)(arg1)->GetCellHighlightPenWidth(); | |
10177 | ||
10178 | wxPyEndAllowThreads(__tstate); | |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
10180 | } | |
8edf1c75 | 10181 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10182 | return resultobj; |
10183 | fail: | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
10188 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10189 | PyObject *resultobj; | |
10190 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10191 | int result; | |
10192 | PyObject * obj0 = 0 ; | |
10193 | char *kwnames[] = { | |
10194 | (char *) "self", NULL | |
10195 | }; | |
10196 | ||
10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; | |
10198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10199 | { | |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | result = (int)(arg1)->GetCellHighlightROPenWidth(); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
8edf1c75 | 10206 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10207 | return resultobj; |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10216 | int arg2 ; | |
10217 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10219 | char *kwnames[] = { |
10220 | (char *) "self",(char *) "width", NULL | |
10221 | }; | |
10222 | ||
8edf1c75 | 10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10225 | { |
10226 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
d14a1e28 RD |
10229 | { |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | (arg1)->SetRowLabelSize(arg2); | |
10232 | ||
10233 | wxPyEndAllowThreads(__tstate); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | Py_INCREF(Py_None); resultobj = Py_None; | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | return NULL; | |
10240 | } | |
10241 | ||
10242 | ||
10243 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10244 | PyObject *resultobj; | |
10245 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10246 | int arg2 ; | |
10247 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10249 | char *kwnames[] = { |
10250 | (char *) "self",(char *) "height", NULL | |
10251 | }; | |
10252 | ||
8edf1c75 | 10253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10255 | { |
10256 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
d14a1e28 RD |
10259 | { |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10261 | (arg1)->SetColLabelSize(arg2); | |
10262 | ||
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
10266 | Py_INCREF(Py_None); resultobj = Py_None; | |
10267 | return resultobj; | |
10268 | fail: | |
10269 | return NULL; | |
10270 | } | |
10271 | ||
10272 | ||
10273 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10274 | PyObject *resultobj; | |
10275 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10276 | wxColour *arg2 = 0 ; | |
10277 | wxColour temp2 ; | |
10278 | PyObject * obj0 = 0 ; | |
10279 | PyObject * obj1 = 0 ; | |
10280 | char *kwnames[] = { | |
10281 | (char *) "self","arg2", NULL | |
10282 | }; | |
10283 | ||
10284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
10285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10286 | { | |
10287 | arg2 = &temp2; | |
10288 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10289 | } | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | Py_INCREF(Py_None); resultobj = Py_None; | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj; | |
10306 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10307 | wxColour *arg2 = 0 ; | |
10308 | wxColour temp2 ; | |
10309 | PyObject * obj0 = 0 ; | |
10310 | PyObject * obj1 = 0 ; | |
10311 | char *kwnames[] = { | |
10312 | (char *) "self","arg2", NULL | |
10313 | }; | |
10314 | ||
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; | |
10316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10317 | { | |
10318 | arg2 = &temp2; | |
10319 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10320 | } | |
10321 | { | |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); | |
10324 | ||
10325 | wxPyEndAllowThreads(__tstate); | |
10326 | if (PyErr_Occurred()) SWIG_fail; | |
10327 | } | |
10328 | Py_INCREF(Py_None); resultobj = Py_None; | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10338 | wxFont *arg2 = 0 ; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | PyObject * obj1 = 0 ; | |
10341 | char *kwnames[] = { | |
10342 | (char *) "self","arg2", NULL | |
10343 | }; | |
10344 | ||
10345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; | |
10346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10347 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10348 | if (arg2 == NULL) { | |
10349 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10350 | } | |
10351 | { | |
10352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10353 | (arg1)->SetLabelFont((wxFont const &)*arg2); | |
10354 | ||
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | Py_INCREF(Py_None); resultobj = Py_None; | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | return NULL; | |
10362 | } | |
10363 | ||
10364 | ||
10365 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10366 | PyObject *resultobj; | |
10367 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10368 | int arg2 ; | |
10369 | int arg3 ; | |
10370 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10371 | PyObject * obj1 = 0 ; |
10372 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10373 | char *kwnames[] = { |
10374 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10375 | }; | |
10376 | ||
8edf1c75 | 10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10379 | { |
10380 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
10382 | } | |
10383 | { | |
10384 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
d14a1e28 RD |
10387 | { |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | (arg1)->SetRowLabelAlignment(arg2,arg3); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | Py_INCREF(Py_None); resultobj = Py_None; | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject *resultobj; | |
10403 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10404 | int arg2 ; | |
10405 | int arg3 ; | |
10406 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10407 | PyObject * obj1 = 0 ; |
10408 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10409 | char *kwnames[] = { |
10410 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10411 | }; | |
10412 | ||
8edf1c75 | 10413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10415 | { |
10416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | } | |
10419 | { | |
10420 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
d14a1e28 RD |
10423 | { |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | (arg1)->SetColLabelAlignment(arg2,arg3); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
10430 | Py_INCREF(Py_None); resultobj = Py_None; | |
10431 | return resultobj; | |
10432 | fail: | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
10437 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10438 | PyObject *resultobj; | |
10439 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10440 | int arg2 ; | |
10441 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10443 | char *kwnames[] = { |
10444 | (char *) "self",(char *) "textOrientation", NULL | |
10445 | }; | |
10446 | ||
8edf1c75 | 10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10449 | { |
10450 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
d14a1e28 RD |
10453 | { |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | (arg1)->SetColLabelTextOrientation(arg2); | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | Py_INCREF(Py_None); resultobj = Py_None; | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | return NULL; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10468 | PyObject *resultobj; | |
10469 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10470 | int arg2 ; | |
10471 | wxString *arg3 = 0 ; | |
423f194a | 10472 | bool temp3 = False ; |
d14a1e28 | 10473 | PyObject * obj0 = 0 ; |
8edf1c75 | 10474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10475 | PyObject * obj2 = 0 ; |
10476 | char *kwnames[] = { | |
10477 | (char *) "self",(char *) "row","arg3", NULL | |
10478 | }; | |
10479 | ||
8edf1c75 | 10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10482 | { |
10483 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
d14a1e28 RD |
10486 | { |
10487 | arg3 = wxString_in_helper(obj2); | |
10488 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10489 | temp3 = True; |
d14a1e28 RD |
10490 | } |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10493 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
10494 | ||
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | } | |
10498 | Py_INCREF(Py_None); resultobj = Py_None; | |
10499 | { | |
10500 | if (temp3) | |
10501 | delete arg3; | |
10502 | } | |
10503 | return resultobj; | |
10504 | fail: | |
10505 | { | |
10506 | if (temp3) | |
10507 | delete arg3; | |
10508 | } | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10516 | int arg2 ; | |
10517 | wxString *arg3 = 0 ; | |
423f194a | 10518 | bool temp3 = False ; |
d14a1e28 | 10519 | PyObject * obj0 = 0 ; |
8edf1c75 | 10520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10521 | PyObject * obj2 = 0 ; |
10522 | char *kwnames[] = { | |
10523 | (char *) "self",(char *) "col","arg3", NULL | |
10524 | }; | |
10525 | ||
8edf1c75 | 10526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10528 | { |
10529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | } | |
d14a1e28 RD |
10532 | { |
10533 | arg3 = wxString_in_helper(obj2); | |
10534 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10535 | temp3 = True; |
d14a1e28 RD |
10536 | } |
10537 | { | |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | Py_INCREF(Py_None); resultobj = Py_None; | |
10545 | { | |
10546 | if (temp3) | |
10547 | delete arg3; | |
10548 | } | |
10549 | return resultobj; | |
10550 | fail: | |
10551 | { | |
10552 | if (temp3) | |
10553 | delete arg3; | |
10554 | } | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj; | |
10561 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10562 | wxColour *arg2 = 0 ; | |
10563 | wxColour temp2 ; | |
10564 | PyObject * obj0 = 0 ; | |
10565 | PyObject * obj1 = 0 ; | |
10566 | char *kwnames[] = { | |
10567 | (char *) "self","arg2", NULL | |
10568 | }; | |
10569 | ||
10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; | |
10571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10572 | { | |
10573 | arg2 = &temp2; | |
10574 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10575 | } | |
10576 | { | |
10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10578 | (arg1)->SetGridLineColour((wxColour const &)*arg2); | |
10579 | ||
10580 | wxPyEndAllowThreads(__tstate); | |
10581 | if (PyErr_Occurred()) SWIG_fail; | |
10582 | } | |
10583 | Py_INCREF(Py_None); resultobj = Py_None; | |
10584 | return resultobj; | |
10585 | fail: | |
10586 | return NULL; | |
10587 | } | |
10588 | ||
10589 | ||
10590 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10591 | PyObject *resultobj; | |
10592 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10593 | wxColour *arg2 = 0 ; | |
10594 | wxColour temp2 ; | |
10595 | PyObject * obj0 = 0 ; | |
10596 | PyObject * obj1 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self","arg2", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
10602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10603 | { | |
10604 | arg2 = &temp2; | |
10605 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10606 | } | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10609 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); | |
10610 | ||
10611 | wxPyEndAllowThreads(__tstate); | |
10612 | if (PyErr_Occurred()) SWIG_fail; | |
10613 | } | |
10614 | Py_INCREF(Py_None); resultobj = Py_None; | |
10615 | return resultobj; | |
10616 | fail: | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
10621 | static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj; | |
10623 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10624 | int arg2 ; | |
10625 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10626 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10627 | char *kwnames[] = { |
10628 | (char *) "self",(char *) "width", NULL | |
10629 | }; | |
10630 | ||
8edf1c75 | 10631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10633 | { |
10634 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10635 | if (PyErr_Occurred()) SWIG_fail; | |
10636 | } | |
d14a1e28 RD |
10637 | { |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | (arg1)->SetCellHighlightPenWidth(arg2); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | Py_INCREF(Py_None); resultobj = Py_None; | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
10651 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10652 | PyObject *resultobj; | |
10653 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10654 | int arg2 ; | |
10655 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10657 | char *kwnames[] = { |
10658 | (char *) "self",(char *) "width", NULL | |
10659 | }; | |
10660 | ||
8edf1c75 | 10661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10663 | { |
10664 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
d14a1e28 RD |
10667 | { |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | (arg1)->SetCellHighlightROPenWidth(arg2); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | Py_INCREF(Py_None); resultobj = Py_None; | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj; | |
10683 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 10684 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10685 | PyObject * obj0 = 0 ; |
10686 | PyObject * obj1 = 0 ; | |
10687 | char *kwnames[] = { | |
10688 | (char *) "self",(char *) "enable", NULL | |
10689 | }; | |
10690 | ||
10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; | |
10692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10693 | if (obj1) { | |
2dbef272 | 10694 | { |
8edf1c75 | 10695 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
10696 | if (PyErr_Occurred()) SWIG_fail; |
10697 | } | |
d14a1e28 RD |
10698 | } |
10699 | { | |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | (arg1)->EnableDragRowSize(arg2); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | Py_INCREF(Py_None); resultobj = Py_None; | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
10713 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject *resultobj; | |
10715 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10716 | PyObject * obj0 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; | |
10722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | (arg1)->DisableDragRowSize(); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | Py_INCREF(Py_None); resultobj = Py_None; | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10738 | PyObject *resultobj; | |
10739 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10740 | bool result; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10748 | { | |
10749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10750 | result = (bool)(arg1)->CanDragRowSize(); | |
10751 | ||
10752 | wxPyEndAllowThreads(__tstate); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
10754 | } | |
02a34c4c | 10755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10756 | return resultobj; |
10757 | fail: | |
10758 | return NULL; | |
10759 | } | |
10760 | ||
10761 | ||
10762 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10763 | PyObject *resultobj; | |
10764 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 10765 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10766 | PyObject * obj0 = 0 ; |
10767 | PyObject * obj1 = 0 ; | |
10768 | char *kwnames[] = { | |
10769 | (char *) "self",(char *) "enable", NULL | |
10770 | }; | |
10771 | ||
10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; | |
10773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10774 | if (obj1) { | |
2dbef272 | 10775 | { |
8edf1c75 | 10776 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
10777 | if (PyErr_Occurred()) SWIG_fail; |
10778 | } | |
d14a1e28 RD |
10779 | } |
10780 | { | |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | (arg1)->EnableDragColSize(arg2); | |
10783 | ||
10784 | wxPyEndAllowThreads(__tstate); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
10787 | Py_INCREF(Py_None); resultobj = Py_None; | |
10788 | return resultobj; | |
10789 | fail: | |
10790 | return NULL; | |
10791 | } | |
10792 | ||
10793 | ||
10794 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10795 | PyObject *resultobj; | |
10796 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; | |
10803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10804 | { | |
10805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10806 | (arg1)->DisableDragColSize(); | |
10807 | ||
10808 | wxPyEndAllowThreads(__tstate); | |
10809 | if (PyErr_Occurred()) SWIG_fail; | |
10810 | } | |
10811 | Py_INCREF(Py_None); resultobj = Py_None; | |
10812 | return resultobj; | |
10813 | fail: | |
10814 | return NULL; | |
10815 | } | |
10816 | ||
10817 | ||
10818 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10819 | PyObject *resultobj; | |
10820 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10821 | bool result; | |
10822 | PyObject * obj0 = 0 ; | |
10823 | char *kwnames[] = { | |
10824 | (char *) "self", NULL | |
10825 | }; | |
10826 | ||
10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; | |
10828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | result = (bool)(arg1)->CanDragColSize(); | |
10832 | ||
10833 | wxPyEndAllowThreads(__tstate); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
02a34c4c | 10836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10837 | return resultobj; |
10838 | fail: | |
10839 | return NULL; | |
10840 | } | |
10841 | ||
10842 | ||
10843 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10844 | PyObject *resultobj; | |
10845 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 10846 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10847 | PyObject * obj0 = 0 ; |
10848 | PyObject * obj1 = 0 ; | |
10849 | char *kwnames[] = { | |
10850 | (char *) "self",(char *) "enable", NULL | |
10851 | }; | |
10852 | ||
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; | |
10854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10855 | if (obj1) { | |
2dbef272 | 10856 | { |
8edf1c75 | 10857 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
10858 | if (PyErr_Occurred()) SWIG_fail; |
10859 | } | |
d14a1e28 RD |
10860 | } |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | (arg1)->EnableDragGridSize(arg2); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10876 | PyObject *resultobj; | |
10877 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10878 | PyObject * obj0 = 0 ; | |
10879 | char *kwnames[] = { | |
10880 | (char *) "self", NULL | |
10881 | }; | |
10882 | ||
10883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; | |
10884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | (arg1)->DisableDragGridSize(); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | Py_INCREF(Py_None); resultobj = Py_None; | |
10893 | return resultobj; | |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
10899 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10900 | PyObject *resultobj; | |
10901 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10902 | bool result; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; | |
10909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10910 | { | |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | result = (bool)(arg1)->CanDragGridSize(); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
02a34c4c | 10917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10918 | return resultobj; |
10919 | fail: | |
10920 | return NULL; | |
10921 | } | |
10922 | ||
10923 | ||
10924 | static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10925 | PyObject *resultobj; | |
10926 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10927 | int arg2 ; | |
10928 | int arg3 ; | |
10929 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; | |
10930 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10931 | PyObject * obj1 = 0 ; |
10932 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10933 | PyObject * obj3 = 0 ; |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL | |
10936 | }; | |
10937 | ||
8edf1c75 | 10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10940 | { |
10941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
10944 | { | |
10945 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | } | |
d14a1e28 RD |
10948 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10949 | { | |
10950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10951 | (arg1)->SetAttr(arg2,arg3,arg4); | |
10952 | ||
10953 | wxPyEndAllowThreads(__tstate); | |
10954 | if (PyErr_Occurred()) SWIG_fail; | |
10955 | } | |
10956 | Py_INCREF(Py_None); resultobj = Py_None; | |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
10963 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10964 | PyObject *resultobj; | |
10965 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10966 | int arg2 ; | |
10967 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
10968 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10970 | PyObject * obj2 = 0 ; |
10971 | char *kwnames[] = { | |
10972 | (char *) "self",(char *) "row",(char *) "attr", NULL | |
10973 | }; | |
10974 | ||
8edf1c75 | 10975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10977 | { |
10978 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
d14a1e28 RD |
10981 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | (arg1)->SetRowAttr(arg2,arg3); | |
10985 | ||
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
10989 | Py_INCREF(Py_None); resultobj = Py_None; | |
10990 | return resultobj; | |
10991 | fail: | |
10992 | return NULL; | |
10993 | } | |
10994 | ||
10995 | ||
10996 | static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10997 | PyObject *resultobj; | |
10998 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10999 | int arg2 ; | |
11000 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11001 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11003 | PyObject * obj2 = 0 ; |
11004 | char *kwnames[] = { | |
11005 | (char *) "self",(char *) "col",(char *) "attr", NULL | |
11006 | }; | |
11007 | ||
8edf1c75 | 11008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11010 | { |
11011 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
d14a1e28 RD |
11014 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | (arg1)->SetColAttr(arg2,arg3); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
11022 | Py_INCREF(Py_None); resultobj = Py_None; | |
11023 | return resultobj; | |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11032 | int arg2 ; | |
11033 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11035 | char *kwnames[] = { |
11036 | (char *) "self",(char *) "col", NULL | |
11037 | }; | |
11038 | ||
8edf1c75 | 11039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11041 | { |
11042 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11043 | if (PyErr_Occurred()) SWIG_fail; | |
11044 | } | |
d14a1e28 RD |
11045 | { |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | (arg1)->SetColFormatBool(arg2); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | Py_INCREF(Py_None); resultobj = Py_None; | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj; | |
11061 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11062 | int arg2 ; | |
11063 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11065 | char *kwnames[] = { |
11066 | (char *) "self",(char *) "col", NULL | |
11067 | }; | |
11068 | ||
8edf1c75 | 11069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11071 | { |
11072 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
d14a1e28 RD |
11075 | { |
11076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11077 | (arg1)->SetColFormatNumber(arg2); | |
11078 | ||
11079 | wxPyEndAllowThreads(__tstate); | |
11080 | if (PyErr_Occurred()) SWIG_fail; | |
11081 | } | |
11082 | Py_INCREF(Py_None); resultobj = Py_None; | |
11083 | return resultobj; | |
11084 | fail: | |
11085 | return NULL; | |
11086 | } | |
11087 | ||
11088 | ||
11089 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11090 | PyObject *resultobj; | |
11091 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11092 | int arg2 ; | |
11093 | int arg3 = (int) -1 ; | |
11094 | int arg4 = (int) -1 ; | |
11095 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11096 | PyObject * obj1 = 0 ; |
11097 | PyObject * obj2 = 0 ; | |
11098 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11099 | char *kwnames[] = { |
11100 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL | |
11101 | }; | |
11102 | ||
8edf1c75 | 11103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11105 | { |
11106 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | if (obj2) { | |
11110 | { | |
11111 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
11114 | } | |
11115 | if (obj3) { | |
11116 | { | |
11117 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
11119 | } | |
11120 | } | |
d14a1e28 RD |
11121 | { |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) SWIG_fail; | |
11127 | } | |
11128 | Py_INCREF(Py_None); resultobj = Py_None; | |
11129 | return resultobj; | |
11130 | fail: | |
11131 | return NULL; | |
11132 | } | |
11133 | ||
11134 | ||
11135 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11136 | PyObject *resultobj; | |
11137 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11138 | int arg2 ; | |
11139 | wxString *arg3 = 0 ; | |
423f194a | 11140 | bool temp3 = False ; |
d14a1e28 | 11141 | PyObject * obj0 = 0 ; |
8edf1c75 | 11142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11143 | PyObject * obj2 = 0 ; |
11144 | char *kwnames[] = { | |
11145 | (char *) "self",(char *) "col",(char *) "typeName", NULL | |
11146 | }; | |
11147 | ||
8edf1c75 | 11148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11150 | { |
11151 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11152 | if (PyErr_Occurred()) SWIG_fail; | |
11153 | } | |
d14a1e28 RD |
11154 | { |
11155 | arg3 = wxString_in_helper(obj2); | |
11156 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11157 | temp3 = True; |
d14a1e28 RD |
11158 | } |
11159 | { | |
11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11161 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
11166 | Py_INCREF(Py_None); resultobj = Py_None; | |
11167 | { | |
11168 | if (temp3) | |
11169 | delete arg3; | |
11170 | } | |
11171 | return resultobj; | |
11172 | fail: | |
11173 | { | |
11174 | if (temp3) | |
11175 | delete arg3; | |
11176 | } | |
11177 | return NULL; | |
11178 | } | |
11179 | ||
11180 | ||
11181 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11182 | PyObject *resultobj; | |
11183 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 11184 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11185 | PyObject * obj0 = 0 ; |
11186 | PyObject * obj1 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "self",(char *) "enable", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; | |
11192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11193 | if (obj1) { | |
2dbef272 | 11194 | { |
8edf1c75 | 11195 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11196 | if (PyErr_Occurred()) SWIG_fail; |
11197 | } | |
d14a1e28 RD |
11198 | } |
11199 | { | |
11200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11201 | (arg1)->EnableGridLines(arg2); | |
11202 | ||
11203 | wxPyEndAllowThreads(__tstate); | |
11204 | if (PyErr_Occurred()) SWIG_fail; | |
11205 | } | |
11206 | Py_INCREF(Py_None); resultobj = Py_None; | |
11207 | return resultobj; | |
11208 | fail: | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
11213 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11214 | PyObject *resultobj; | |
11215 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11216 | bool result; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | char *kwnames[] = { | |
11219 | (char *) "self", NULL | |
11220 | }; | |
11221 | ||
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; | |
11223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11224 | { | |
11225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11226 | result = (bool)(arg1)->GridLinesEnabled(); | |
11227 | ||
11228 | wxPyEndAllowThreads(__tstate); | |
11229 | if (PyErr_Occurred()) SWIG_fail; | |
11230 | } | |
02a34c4c | 11231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11232 | return resultobj; |
11233 | fail: | |
11234 | return NULL; | |
11235 | } | |
11236 | ||
11237 | ||
11238 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject *resultobj; | |
11240 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11241 | int result; | |
11242 | PyObject * obj0 = 0 ; | |
11243 | char *kwnames[] = { | |
11244 | (char *) "self", NULL | |
11245 | }; | |
11246 | ||
11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; | |
11248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | result = (int)(arg1)->GetDefaultRowSize(); | |
11252 | ||
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
8edf1c75 | 11256 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11257 | return resultobj; |
11258 | fail: | |
11259 | return NULL; | |
11260 | } | |
11261 | ||
11262 | ||
11263 | static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11264 | PyObject *resultobj; | |
11265 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11266 | int arg2 ; | |
11267 | int result; | |
11268 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11269 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11270 | char *kwnames[] = { |
11271 | (char *) "self",(char *) "row", NULL | |
11272 | }; | |
11273 | ||
8edf1c75 | 11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11276 | { |
11277 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
d14a1e28 RD |
11280 | { |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | result = (int)(arg1)->GetRowSize(arg2); | |
11283 | ||
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
8edf1c75 | 11287 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11288 | return resultobj; |
11289 | fail: | |
11290 | return NULL; | |
11291 | } | |
11292 | ||
11293 | ||
11294 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject *resultobj; | |
11296 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11297 | int result; | |
11298 | PyObject * obj0 = 0 ; | |
11299 | char *kwnames[] = { | |
11300 | (char *) "self", NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; | |
11304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11305 | { | |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | result = (int)(arg1)->GetDefaultColSize(); | |
11308 | ||
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
8edf1c75 | 11312 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11313 | return resultobj; |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
11319 | static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11320 | PyObject *resultobj; | |
11321 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11322 | int arg2 ; | |
11323 | int result; | |
11324 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11326 | char *kwnames[] = { |
11327 | (char *) "self",(char *) "col", NULL | |
11328 | }; | |
11329 | ||
8edf1c75 | 11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11332 | { |
11333 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
d14a1e28 RD |
11336 | { |
11337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11338 | result = (int)(arg1)->GetColSize(arg2); | |
11339 | ||
11340 | wxPyEndAllowThreads(__tstate); | |
11341 | if (PyErr_Occurred()) SWIG_fail; | |
11342 | } | |
8edf1c75 | 11343 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11344 | return resultobj; |
11345 | fail: | |
11346 | return NULL; | |
11347 | } | |
11348 | ||
11349 | ||
11350 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11351 | PyObject *resultobj; | |
11352 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11353 | wxColour result; | |
11354 | PyObject * obj0 = 0 ; | |
11355 | char *kwnames[] = { | |
11356 | (char *) "self", NULL | |
11357 | }; | |
11358 | ||
11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; | |
11360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11361 | { | |
11362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11363 | result = (arg1)->GetDefaultCellBackgroundColour(); | |
11364 | ||
11365 | wxPyEndAllowThreads(__tstate); | |
11366 | if (PyErr_Occurred()) SWIG_fail; | |
11367 | } | |
11368 | { | |
11369 | wxColour * resultptr; | |
11370 | resultptr = new wxColour((wxColour &) result); | |
11371 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11372 | } | |
11373 | return resultobj; | |
11374 | fail: | |
11375 | return NULL; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11380 | PyObject *resultobj; | |
11381 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11382 | int arg2 ; | |
11383 | int arg3 ; | |
11384 | wxColour result; | |
11385 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11386 | PyObject * obj1 = 0 ; |
11387 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11388 | char *kwnames[] = { |
11389 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11390 | }; | |
11391 | ||
8edf1c75 | 11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11394 | { |
11395 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11400 | if (PyErr_Occurred()) SWIG_fail; | |
11401 | } | |
d14a1e28 RD |
11402 | { |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); | |
11405 | ||
11406 | wxPyEndAllowThreads(__tstate); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | { | |
11410 | wxColour * resultptr; | |
11411 | resultptr = new wxColour((wxColour &) result); | |
11412 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11413 | } | |
11414 | return resultobj; | |
11415 | fail: | |
11416 | return NULL; | |
11417 | } | |
11418 | ||
11419 | ||
11420 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11421 | PyObject *resultobj; | |
11422 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11423 | wxColour result; | |
11424 | PyObject * obj0 = 0 ; | |
11425 | char *kwnames[] = { | |
11426 | (char *) "self", NULL | |
11427 | }; | |
11428 | ||
11429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; | |
11430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11431 | { | |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | result = (arg1)->GetDefaultCellTextColour(); | |
11434 | ||
11435 | wxPyEndAllowThreads(__tstate); | |
11436 | if (PyErr_Occurred()) SWIG_fail; | |
11437 | } | |
11438 | { | |
11439 | wxColour * resultptr; | |
11440 | resultptr = new wxColour((wxColour &) result); | |
11441 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11442 | } | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11450 | PyObject *resultobj; | |
11451 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11452 | int arg2 ; | |
11453 | int arg3 ; | |
11454 | wxColour result; | |
11455 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11456 | PyObject * obj1 = 0 ; |
11457 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11458 | char *kwnames[] = { |
11459 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11460 | }; | |
11461 | ||
8edf1c75 | 11462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11464 | { |
11465 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11466 | if (PyErr_Occurred()) SWIG_fail; | |
11467 | } | |
11468 | { | |
11469 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
d14a1e28 RD |
11472 | { |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | result = (arg1)->GetCellTextColour(arg2,arg3); | |
11475 | ||
11476 | wxPyEndAllowThreads(__tstate); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
11479 | { | |
11480 | wxColour * resultptr; | |
11481 | resultptr = new wxColour((wxColour &) result); | |
11482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
11483 | } | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11493 | wxFont result; | |
11494 | PyObject * obj0 = 0 ; | |
11495 | char *kwnames[] = { | |
11496 | (char *) "self", NULL | |
11497 | }; | |
11498 | ||
11499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; | |
11500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11501 | { | |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = (arg1)->GetDefaultCellFont(); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | { | |
11509 | wxFont * resultptr; | |
11510 | resultptr = new wxFont((wxFont &) result); | |
11511 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
11512 | } | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | return NULL; | |
11516 | } | |
11517 | ||
11518 | ||
11519 | static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11520 | PyObject *resultobj; | |
11521 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11522 | int arg2 ; | |
11523 | int arg3 ; | |
11524 | wxFont result; | |
11525 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11526 | PyObject * obj1 = 0 ; |
11527 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11528 | char *kwnames[] = { |
11529 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11530 | }; | |
11531 | ||
8edf1c75 | 11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11534 | { |
11535 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11536 | if (PyErr_Occurred()) SWIG_fail; | |
11537 | } | |
11538 | { | |
11539 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
d14a1e28 RD |
11542 | { |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | result = (arg1)->GetCellFont(arg2,arg3); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | { | |
11550 | wxFont * resultptr; | |
11551 | resultptr = new wxFont((wxFont &) result); | |
11552 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
11553 | } | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11561 | PyObject *resultobj; | |
11562 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11563 | int *arg2 = (int *) 0 ; | |
11564 | int *arg3 = (int *) 0 ; | |
11565 | int temp2 ; | |
11566 | int temp3 ; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | char *kwnames[] = { | |
11569 | (char *) "self", NULL | |
11570 | }; | |
11571 | ||
11572 | arg2 = &temp2; | |
11573 | arg3 = &temp3; | |
11574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; | |
11575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11576 | { | |
11577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11578 | (arg1)->GetDefaultCellAlignment(arg2,arg3); | |
11579 | ||
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
11583 | Py_INCREF(Py_None); resultobj = Py_None; | |
11584 | { | |
11585 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11586 | resultobj = t_output_helper(resultobj,o); | |
11587 | } | |
11588 | { | |
11589 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11590 | resultobj = t_output_helper(resultobj,o); | |
11591 | } | |
11592 | return resultobj; | |
11593 | fail: | |
11594 | return NULL; | |
11595 | } | |
11596 | ||
11597 | ||
11598 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11599 | PyObject *resultobj; | |
11600 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11601 | int arg2 ; | |
11602 | int arg3 ; | |
11603 | int *arg4 = (int *) 0 ; | |
11604 | int *arg5 = (int *) 0 ; | |
11605 | int temp4 ; | |
11606 | int temp5 ; | |
11607 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11608 | PyObject * obj1 = 0 ; |
11609 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11610 | char *kwnames[] = { |
11611 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11612 | }; | |
11613 | ||
11614 | arg4 = &temp4; | |
11615 | arg5 = &temp5; | |
8edf1c75 | 11616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11618 | { |
11619 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | { | |
11623 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11624 | if (PyErr_Occurred()) SWIG_fail; | |
11625 | } | |
d14a1e28 RD |
11626 | { |
11627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11628 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | Py_INCREF(Py_None); resultobj = Py_None; | |
11634 | { | |
11635 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11636 | resultobj = t_output_helper(resultobj,o); | |
11637 | } | |
11638 | { | |
11639 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11640 | resultobj = t_output_helper(resultobj,o); | |
11641 | } | |
11642 | return resultobj; | |
11643 | fail: | |
11644 | return NULL; | |
11645 | } | |
11646 | ||
11647 | ||
11648 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11649 | PyObject *resultobj; | |
11650 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11651 | bool result; | |
11652 | PyObject * obj0 = 0 ; | |
11653 | char *kwnames[] = { | |
11654 | (char *) "self", NULL | |
11655 | }; | |
11656 | ||
11657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; | |
11658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11659 | { | |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | result = (bool)(arg1)->GetDefaultCellOverflow(); | |
11662 | ||
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
02a34c4c | 11666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11667 | return resultobj; |
11668 | fail: | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
11673 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11674 | PyObject *resultobj; | |
11675 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11676 | int arg2 ; | |
11677 | int arg3 ; | |
11678 | bool result; | |
11679 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11680 | PyObject * obj1 = 0 ; |
11681 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11682 | char *kwnames[] = { |
11683 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11684 | }; | |
11685 | ||
8edf1c75 | 11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11688 | { |
11689 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | } | |
11692 | { | |
11693 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | } | |
d14a1e28 RD |
11696 | { |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); | |
11699 | ||
11700 | wxPyEndAllowThreads(__tstate); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
02a34c4c | 11703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11704 | return resultobj; |
11705 | fail: | |
11706 | return NULL; | |
11707 | } | |
11708 | ||
11709 | ||
11710 | static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11711 | PyObject *resultobj; | |
11712 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11713 | int arg2 ; | |
11714 | int arg3 ; | |
11715 | int *arg4 = (int *) 0 ; | |
11716 | int *arg5 = (int *) 0 ; | |
11717 | int temp4 ; | |
11718 | int temp5 ; | |
11719 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11720 | PyObject * obj1 = 0 ; |
11721 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11722 | char *kwnames[] = { |
11723 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11724 | }; | |
11725 | ||
11726 | arg4 = &temp4; | |
11727 | arg5 = &temp5; | |
8edf1c75 | 11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11730 | { |
11731 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11732 | if (PyErr_Occurred()) SWIG_fail; | |
11733 | } | |
11734 | { | |
11735 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | } | |
d14a1e28 RD |
11738 | { |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); | |
11741 | ||
11742 | wxPyEndAllowThreads(__tstate); | |
11743 | if (PyErr_Occurred()) SWIG_fail; | |
11744 | } | |
11745 | Py_INCREF(Py_None); resultobj = Py_None; | |
11746 | { | |
11747 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11748 | resultobj = t_output_helper(resultobj,o); | |
11749 | } | |
11750 | { | |
11751 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11752 | resultobj = t_output_helper(resultobj,o); | |
11753 | } | |
11754 | return resultobj; | |
11755 | fail: | |
11756 | return NULL; | |
11757 | } | |
11758 | ||
11759 | ||
11760 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11761 | PyObject *resultobj; | |
11762 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11763 | int arg2 ; | |
423f194a | 11764 | bool arg3 = (bool) False ; |
d14a1e28 | 11765 | PyObject * obj0 = 0 ; |
8edf1c75 | 11766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11767 | PyObject * obj2 = 0 ; |
11768 | char *kwnames[] = { | |
11769 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL | |
11770 | }; | |
11771 | ||
8edf1c75 | 11772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11774 | { |
11775 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11776 | if (PyErr_Occurred()) SWIG_fail; | |
11777 | } | |
d14a1e28 | 11778 | if (obj2) { |
2dbef272 | 11779 | { |
8edf1c75 | 11780 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11781 | if (PyErr_Occurred()) SWIG_fail; |
11782 | } | |
d14a1e28 RD |
11783 | } |
11784 | { | |
11785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11786 | (arg1)->SetDefaultRowSize(arg2,arg3); | |
11787 | ||
11788 | wxPyEndAllowThreads(__tstate); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
11791 | Py_INCREF(Py_None); resultobj = Py_None; | |
11792 | return resultobj; | |
11793 | fail: | |
11794 | return NULL; | |
11795 | } | |
11796 | ||
11797 | ||
11798 | static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11799 | PyObject *resultobj; | |
11800 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11801 | int arg2 ; | |
11802 | int arg3 ; | |
11803 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11804 | PyObject * obj1 = 0 ; |
11805 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11806 | char *kwnames[] = { |
11807 | (char *) "self",(char *) "row",(char *) "height", NULL | |
11808 | }; | |
11809 | ||
8edf1c75 | 11810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11812 | { |
11813 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11814 | if (PyErr_Occurred()) SWIG_fail; | |
11815 | } | |
11816 | { | |
11817 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11818 | if (PyErr_Occurred()) SWIG_fail; | |
11819 | } | |
d14a1e28 RD |
11820 | { |
11821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11822 | (arg1)->SetRowSize(arg2,arg3); | |
11823 | ||
11824 | wxPyEndAllowThreads(__tstate); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | Py_INCREF(Py_None); resultobj = Py_None; | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
11834 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11835 | PyObject *resultobj; | |
11836 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11837 | int arg2 ; | |
423f194a | 11838 | bool arg3 = (bool) False ; |
d14a1e28 | 11839 | PyObject * obj0 = 0 ; |
8edf1c75 | 11840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11841 | PyObject * obj2 = 0 ; |
11842 | char *kwnames[] = { | |
11843 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL | |
11844 | }; | |
11845 | ||
8edf1c75 | 11846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11848 | { |
11849 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
d14a1e28 | 11852 | if (obj2) { |
2dbef272 | 11853 | { |
8edf1c75 | 11854 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11855 | if (PyErr_Occurred()) SWIG_fail; |
11856 | } | |
d14a1e28 RD |
11857 | } |
11858 | { | |
11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11860 | (arg1)->SetDefaultColSize(arg2,arg3); | |
11861 | ||
11862 | wxPyEndAllowThreads(__tstate); | |
11863 | if (PyErr_Occurred()) SWIG_fail; | |
11864 | } | |
11865 | Py_INCREF(Py_None); resultobj = Py_None; | |
11866 | return resultobj; | |
11867 | fail: | |
11868 | return NULL; | |
11869 | } | |
11870 | ||
11871 | ||
11872 | static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11873 | PyObject *resultobj; | |
11874 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11875 | int arg2 ; | |
11876 | int arg3 ; | |
11877 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11878 | PyObject * obj1 = 0 ; |
11879 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11880 | char *kwnames[] = { |
11881 | (char *) "self",(char *) "col",(char *) "width", NULL | |
11882 | }; | |
11883 | ||
8edf1c75 | 11884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11886 | { |
11887 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11888 | if (PyErr_Occurred()) SWIG_fail; | |
11889 | } | |
11890 | { | |
11891 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
11893 | } | |
d14a1e28 RD |
11894 | { |
11895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11896 | (arg1)->SetColSize(arg2,arg3); | |
11897 | ||
11898 | wxPyEndAllowThreads(__tstate); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | } | |
11901 | Py_INCREF(Py_None); resultobj = Py_None; | |
11902 | return resultobj; | |
11903 | fail: | |
11904 | return NULL; | |
11905 | } | |
11906 | ||
11907 | ||
11908 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11909 | PyObject *resultobj; | |
11910 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11911 | int arg2 ; | |
423f194a | 11912 | bool arg3 = (bool) True ; |
d14a1e28 | 11913 | PyObject * obj0 = 0 ; |
8edf1c75 | 11914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11915 | PyObject * obj2 = 0 ; |
11916 | char *kwnames[] = { | |
11917 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL | |
11918 | }; | |
11919 | ||
8edf1c75 | 11920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11922 | { |
11923 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
d14a1e28 | 11926 | if (obj2) { |
2dbef272 | 11927 | { |
8edf1c75 | 11928 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11929 | if (PyErr_Occurred()) SWIG_fail; |
11930 | } | |
d14a1e28 RD |
11931 | } |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | (arg1)->AutoSizeColumn(arg2,arg3); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | Py_INCREF(Py_None); resultobj = Py_None; | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | return NULL; | |
11943 | } | |
11944 | ||
11945 | ||
11946 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11947 | PyObject *resultobj; | |
11948 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11949 | int arg2 ; | |
423f194a | 11950 | bool arg3 = (bool) True ; |
d14a1e28 | 11951 | PyObject * obj0 = 0 ; |
8edf1c75 | 11952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11953 | PyObject * obj2 = 0 ; |
11954 | char *kwnames[] = { | |
11955 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL | |
11956 | }; | |
11957 | ||
8edf1c75 | 11958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11960 | { |
11961 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
d14a1e28 | 11964 | if (obj2) { |
2dbef272 | 11965 | { |
8edf1c75 | 11966 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11967 | if (PyErr_Occurred()) SWIG_fail; |
11968 | } | |
d14a1e28 RD |
11969 | } |
11970 | { | |
11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11972 | (arg1)->AutoSizeRow(arg2,arg3); | |
11973 | ||
11974 | wxPyEndAllowThreads(__tstate); | |
11975 | if (PyErr_Occurred()) SWIG_fail; | |
11976 | } | |
11977 | Py_INCREF(Py_None); resultobj = Py_None; | |
11978 | return resultobj; | |
11979 | fail: | |
11980 | return NULL; | |
11981 | } | |
11982 | ||
11983 | ||
11984 | static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11985 | PyObject *resultobj; | |
11986 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 11987 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11988 | PyObject * obj0 = 0 ; |
11989 | PyObject * obj1 = 0 ; | |
11990 | char *kwnames[] = { | |
11991 | (char *) "self",(char *) "setAsMin", NULL | |
11992 | }; | |
11993 | ||
11994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; | |
11995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11996 | if (obj1) { | |
2dbef272 | 11997 | { |
8edf1c75 | 11998 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11999 | if (PyErr_Occurred()) SWIG_fail; |
12000 | } | |
d14a1e28 RD |
12001 | } |
12002 | { | |
12003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12004 | (arg1)->AutoSizeColumns(arg2); | |
12005 | ||
12006 | wxPyEndAllowThreads(__tstate); | |
12007 | if (PyErr_Occurred()) SWIG_fail; | |
12008 | } | |
12009 | Py_INCREF(Py_None); resultobj = Py_None; | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | return NULL; | |
12013 | } | |
12014 | ||
12015 | ||
12016 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12017 | PyObject *resultobj; | |
12018 | wxGrid *arg1 = (wxGrid *) 0 ; | |
423f194a | 12019 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12020 | PyObject * obj0 = 0 ; |
12021 | PyObject * obj1 = 0 ; | |
12022 | char *kwnames[] = { | |
12023 | (char *) "self",(char *) "setAsMin", NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; | |
12027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12028 | if (obj1) { | |
2dbef272 | 12029 | { |
8edf1c75 | 12030 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
12031 | if (PyErr_Occurred()) SWIG_fail; |
12032 | } | |
d14a1e28 RD |
12033 | } |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | (arg1)->AutoSizeRows(arg2); | |
12037 | ||
12038 | wxPyEndAllowThreads(__tstate); | |
12039 | if (PyErr_Occurred()) SWIG_fail; | |
12040 | } | |
12041 | Py_INCREF(Py_None); resultobj = Py_None; | |
12042 | return resultobj; | |
12043 | fail: | |
12044 | return NULL; | |
12045 | } | |
12046 | ||
12047 | ||
12048 | static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12049 | PyObject *resultobj; | |
12050 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12051 | PyObject * obj0 = 0 ; | |
12052 | char *kwnames[] = { | |
12053 | (char *) "self", NULL | |
12054 | }; | |
12055 | ||
12056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; | |
12057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12058 | { | |
12059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12060 | (arg1)->AutoSize(); | |
12061 | ||
12062 | wxPyEndAllowThreads(__tstate); | |
12063 | if (PyErr_Occurred()) SWIG_fail; | |
12064 | } | |
12065 | Py_INCREF(Py_None); resultobj = Py_None; | |
12066 | return resultobj; | |
12067 | fail: | |
12068 | return NULL; | |
12069 | } | |
12070 | ||
12071 | ||
12072 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12073 | PyObject *resultobj; | |
12074 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12075 | int arg2 ; | |
12076 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12078 | char *kwnames[] = { |
12079 | (char *) "self",(char *) "row", NULL | |
12080 | }; | |
12081 | ||
8edf1c75 | 12082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12084 | { |
12085 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
d14a1e28 RD |
12088 | { |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | (arg1)->AutoSizeRowLabelSize(arg2); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | Py_INCREF(Py_None); resultobj = Py_None; | |
12096 | return resultobj; | |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
12102 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12103 | PyObject *resultobj; | |
12104 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12105 | int arg2 ; | |
12106 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12108 | char *kwnames[] = { |
12109 | (char *) "self",(char *) "col", NULL | |
12110 | }; | |
12111 | ||
8edf1c75 | 12112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12114 | { |
12115 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
d14a1e28 RD |
12118 | { |
12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12120 | (arg1)->AutoSizeColLabelSize(arg2); | |
12121 | ||
12122 | wxPyEndAllowThreads(__tstate); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | Py_INCREF(Py_None); resultobj = Py_None; | |
12126 | return resultobj; | |
12127 | fail: | |
12128 | return NULL; | |
12129 | } | |
12130 | ||
12131 | ||
12132 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12133 | PyObject *resultobj; | |
12134 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12135 | int arg2 ; | |
12136 | int arg3 ; | |
12137 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12138 | PyObject * obj1 = 0 ; |
12139 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12140 | char *kwnames[] = { |
12141 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12142 | }; | |
12143 | ||
8edf1c75 | 12144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12146 | { |
12147 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | { | |
12151 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
d14a1e28 RD |
12154 | { |
12155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12156 | (arg1)->SetColMinimalWidth(arg2,arg3); | |
12157 | ||
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | Py_INCREF(Py_None); resultobj = Py_None; | |
12162 | return resultobj; | |
12163 | fail: | |
12164 | return NULL; | |
12165 | } | |
12166 | ||
12167 | ||
12168 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12169 | PyObject *resultobj; | |
12170 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12171 | int arg2 ; | |
12172 | int arg3 ; | |
12173 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12174 | PyObject * obj1 = 0 ; |
12175 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12176 | char *kwnames[] = { |
12177 | (char *) "self",(char *) "row",(char *) "width", NULL | |
12178 | }; | |
12179 | ||
8edf1c75 | 12180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12182 | { |
12183 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
12185 | } | |
12186 | { | |
12187 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
d14a1e28 RD |
12190 | { |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12192 | (arg1)->SetRowMinimalHeight(arg2,arg3); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
12197 | Py_INCREF(Py_None); resultobj = Py_None; | |
12198 | return resultobj; | |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12207 | int arg2 ; | |
12208 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12210 | char *kwnames[] = { |
12211 | (char *) "self",(char *) "width", NULL | |
12212 | }; | |
12213 | ||
8edf1c75 | 12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12216 | { |
12217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
d14a1e28 RD |
12220 | { |
12221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12222 | (arg1)->SetColMinimalAcceptableWidth(arg2); | |
12223 | ||
12224 | wxPyEndAllowThreads(__tstate); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
12227 | Py_INCREF(Py_None); resultobj = Py_None; | |
12228 | return resultobj; | |
12229 | fail: | |
12230 | return NULL; | |
12231 | } | |
12232 | ||
12233 | ||
12234 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12235 | PyObject *resultobj; | |
12236 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12237 | int arg2 ; | |
12238 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12239 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12240 | char *kwnames[] = { |
12241 | (char *) "self",(char *) "width", NULL | |
12242 | }; | |
12243 | ||
8edf1c75 | 12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12246 | { |
12247 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12248 | if (PyErr_Occurred()) SWIG_fail; | |
12249 | } | |
d14a1e28 RD |
12250 | { |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | (arg1)->SetRowMinimalAcceptableHeight(arg2); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | Py_INCREF(Py_None); resultobj = Py_None; | |
12258 | return resultobj; | |
12259 | fail: | |
12260 | return NULL; | |
12261 | } | |
12262 | ||
12263 | ||
12264 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12265 | PyObject *resultobj; | |
12266 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12267 | int result; | |
12268 | PyObject * obj0 = 0 ; | |
12269 | char *kwnames[] = { | |
12270 | (char *) "self", NULL | |
12271 | }; | |
12272 | ||
12273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; | |
12274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12275 | { | |
12276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12277 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); | |
12278 | ||
12279 | wxPyEndAllowThreads(__tstate); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
8edf1c75 | 12282 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12283 | return resultobj; |
12284 | fail: | |
12285 | return NULL; | |
12286 | } | |
12287 | ||
12288 | ||
12289 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12290 | PyObject *resultobj; | |
12291 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12292 | int result; | |
12293 | PyObject * obj0 = 0 ; | |
12294 | char *kwnames[] = { | |
12295 | (char *) "self", NULL | |
12296 | }; | |
12297 | ||
12298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; | |
12299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12300 | { | |
12301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12302 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); | |
12303 | ||
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
8edf1c75 | 12307 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12308 | return resultobj; |
12309 | fail: | |
12310 | return NULL; | |
12311 | } | |
12312 | ||
12313 | ||
12314 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12315 | PyObject *resultobj; | |
12316 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12317 | wxColour *arg2 = 0 ; | |
12318 | wxColour temp2 ; | |
12319 | PyObject * obj0 = 0 ; | |
12320 | PyObject * obj1 = 0 ; | |
12321 | char *kwnames[] = { | |
12322 | (char *) "self","arg2", NULL | |
12323 | }; | |
12324 | ||
12325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
12326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12327 | { | |
12328 | arg2 = &temp2; | |
12329 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12330 | } | |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | Py_INCREF(Py_None); resultobj = Py_None; | |
12339 | return resultobj; | |
12340 | fail: | |
12341 | return NULL; | |
12342 | } | |
12343 | ||
12344 | ||
12345 | static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12346 | PyObject *resultobj; | |
12347 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12348 | int arg2 ; | |
12349 | int arg3 ; | |
12350 | wxColour *arg4 = 0 ; | |
12351 | wxColour temp4 ; | |
12352 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12353 | PyObject * obj1 = 0 ; |
12354 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12355 | PyObject * obj3 = 0 ; |
12356 | char *kwnames[] = { | |
12357 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12358 | }; | |
12359 | ||
8edf1c75 | 12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12362 | { |
12363 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | } | |
12366 | { | |
12367 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12368 | if (PyErr_Occurred()) SWIG_fail; | |
12369 | } | |
d14a1e28 RD |
12370 | { |
12371 | arg4 = &temp4; | |
12372 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12373 | } | |
12374 | { | |
12375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12376 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); | |
12377 | ||
12378 | wxPyEndAllowThreads(__tstate); | |
12379 | if (PyErr_Occurred()) SWIG_fail; | |
12380 | } | |
12381 | Py_INCREF(Py_None); resultobj = Py_None; | |
12382 | return resultobj; | |
12383 | fail: | |
12384 | return NULL; | |
12385 | } | |
12386 | ||
12387 | ||
12388 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12389 | PyObject *resultobj; | |
12390 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12391 | wxColour *arg2 = 0 ; | |
12392 | wxColour temp2 ; | |
12393 | PyObject * obj0 = 0 ; | |
12394 | PyObject * obj1 = 0 ; | |
12395 | char *kwnames[] = { | |
12396 | (char *) "self","arg2", NULL | |
12397 | }; | |
12398 | ||
12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; | |
12400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12401 | { | |
12402 | arg2 = &temp2; | |
12403 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12404 | } | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); | |
12408 | ||
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | Py_INCREF(Py_None); resultobj = Py_None; | |
12413 | return resultobj; | |
12414 | fail: | |
12415 | return NULL; | |
12416 | } | |
12417 | ||
12418 | ||
12419 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12420 | PyObject *resultobj; | |
12421 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12422 | int arg2 ; | |
12423 | int arg3 ; | |
12424 | wxColour *arg4 = 0 ; | |
12425 | wxColour temp4 ; | |
12426 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12427 | PyObject * obj1 = 0 ; |
12428 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12429 | PyObject * obj3 = 0 ; |
12430 | char *kwnames[] = { | |
12431 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12432 | }; | |
12433 | ||
8edf1c75 | 12434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12436 | { |
12437 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12438 | if (PyErr_Occurred()) SWIG_fail; | |
12439 | } | |
12440 | { | |
12441 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
d14a1e28 RD |
12444 | { |
12445 | arg4 = &temp4; | |
12446 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12447 | } | |
12448 | { | |
12449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12450 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); | |
12451 | ||
12452 | wxPyEndAllowThreads(__tstate); | |
12453 | if (PyErr_Occurred()) SWIG_fail; | |
12454 | } | |
12455 | Py_INCREF(Py_None); resultobj = Py_None; | |
12456 | return resultobj; | |
12457 | fail: | |
12458 | return NULL; | |
12459 | } | |
12460 | ||
12461 | ||
12462 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12463 | PyObject *resultobj; | |
12464 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12465 | wxFont *arg2 = 0 ; | |
12466 | PyObject * obj0 = 0 ; | |
12467 | PyObject * obj1 = 0 ; | |
12468 | char *kwnames[] = { | |
12469 | (char *) "self","arg2", NULL | |
12470 | }; | |
12471 | ||
12472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; | |
12473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12474 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12475 | if (arg2 == NULL) { | |
12476 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12477 | } | |
12478 | { | |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); | |
12481 | ||
12482 | wxPyEndAllowThreads(__tstate); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
12485 | Py_INCREF(Py_None); resultobj = Py_None; | |
12486 | return resultobj; | |
12487 | fail: | |
12488 | return NULL; | |
12489 | } | |
12490 | ||
12491 | ||
12492 | static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12493 | PyObject *resultobj; | |
12494 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12495 | int arg2 ; | |
12496 | int arg3 ; | |
12497 | wxFont *arg4 = 0 ; | |
12498 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12499 | PyObject * obj1 = 0 ; |
12500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12501 | PyObject * obj3 = 0 ; |
12502 | char *kwnames[] = { | |
12503 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12504 | }; | |
12505 | ||
8edf1c75 | 12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12508 | { |
12509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12510 | if (PyErr_Occurred()) SWIG_fail; | |
12511 | } | |
12512 | { | |
12513 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12514 | if (PyErr_Occurred()) SWIG_fail; | |
12515 | } | |
d14a1e28 RD |
12516 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12517 | if (arg4 == NULL) { | |
12518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | Py_INCREF(Py_None); resultobj = Py_None; | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12535 | PyObject *resultobj; | |
12536 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12537 | int arg2 ; | |
12538 | int arg3 ; | |
12539 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12540 | PyObject * obj1 = 0 ; |
12541 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12542 | char *kwnames[] = { |
12543 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
12544 | }; | |
12545 | ||
8edf1c75 | 12546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12548 | { |
12549 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12550 | if (PyErr_Occurred()) SWIG_fail; | |
12551 | } | |
12552 | { | |
12553 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
d14a1e28 RD |
12556 | { |
12557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12558 | (arg1)->SetDefaultCellAlignment(arg2,arg3); | |
12559 | ||
12560 | wxPyEndAllowThreads(__tstate); | |
12561 | if (PyErr_Occurred()) SWIG_fail; | |
12562 | } | |
12563 | Py_INCREF(Py_None); resultobj = Py_None; | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
12570 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12571 | PyObject *resultobj; | |
12572 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12573 | int arg2 ; | |
12574 | int arg3 ; | |
12575 | int arg4 ; | |
12576 | int arg5 ; | |
12577 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12578 | PyObject * obj1 = 0 ; |
12579 | PyObject * obj2 = 0 ; | |
12580 | PyObject * obj3 = 0 ; | |
12581 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12582 | char *kwnames[] = { |
12583 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL | |
12584 | }; | |
12585 | ||
8edf1c75 | 12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12588 | { |
12589 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | { | |
12593 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | { | |
12597 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
12600 | { | |
12601 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
d14a1e28 RD |
12604 | { |
12605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12606 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); | |
12607 | ||
12608 | wxPyEndAllowThreads(__tstate); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
12611 | Py_INCREF(Py_None); resultobj = Py_None; | |
12612 | return resultobj; | |
12613 | fail: | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12621 | bool arg2 ; | |
12622 | PyObject * obj0 = 0 ; | |
12623 | PyObject * obj1 = 0 ; | |
12624 | char *kwnames[] = { | |
12625 | (char *) "self",(char *) "allow", NULL | |
12626 | }; | |
12627 | ||
12628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; | |
12629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12630 | { |
8edf1c75 | 12631 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
12632 | if (PyErr_Occurred()) SWIG_fail; |
12633 | } | |
d14a1e28 RD |
12634 | { |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | (arg1)->SetDefaultCellOverflow(arg2); | |
12637 | ||
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
12641 | Py_INCREF(Py_None); resultobj = Py_None; | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12649 | PyObject *resultobj; | |
12650 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12651 | int arg2 ; | |
12652 | int arg3 ; | |
12653 | bool arg4 ; | |
12654 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12655 | PyObject * obj1 = 0 ; |
12656 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12657 | PyObject * obj3 = 0 ; |
12658 | char *kwnames[] = { | |
12659 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL | |
12660 | }; | |
12661 | ||
8edf1c75 | 12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 12664 | { |
8edf1c75 RD |
12665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | { | |
12669 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12670 | if (PyErr_Occurred()) SWIG_fail; | |
12671 | } | |
12672 | { | |
12673 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
2dbef272 RD |
12674 | if (PyErr_Occurred()) SWIG_fail; |
12675 | } | |
d14a1e28 RD |
12676 | { |
12677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12678 | (arg1)->SetCellOverflow(arg2,arg3,arg4); | |
12679 | ||
12680 | wxPyEndAllowThreads(__tstate); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | Py_INCREF(Py_None); resultobj = Py_None; | |
12684 | return resultobj; | |
12685 | fail: | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
12690 | static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12693 | int arg2 ; | |
12694 | int arg3 ; | |
12695 | int arg4 ; | |
12696 | int arg5 ; | |
12697 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12698 | PyObject * obj1 = 0 ; |
12699 | PyObject * obj2 = 0 ; | |
12700 | PyObject * obj3 = 0 ; | |
12701 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12702 | char *kwnames[] = { |
12703 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL | |
12704 | }; | |
12705 | ||
8edf1c75 | 12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12708 | { |
12709 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | } | |
12712 | { | |
12713 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
12716 | { | |
12717 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12718 | if (PyErr_Occurred()) SWIG_fail; | |
12719 | } | |
12720 | { | |
12721 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
d14a1e28 RD |
12724 | { |
12725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12726 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); | |
12727 | ||
12728 | wxPyEndAllowThreads(__tstate); | |
12729 | if (PyErr_Occurred()) SWIG_fail; | |
12730 | } | |
12731 | Py_INCREF(Py_None); resultobj = Py_None; | |
12732 | return resultobj; | |
12733 | fail: | |
12734 | return NULL; | |
12735 | } | |
12736 | ||
12737 | ||
12738 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12739 | PyObject *resultobj; | |
12740 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12741 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
12742 | PyObject * obj0 = 0 ; | |
12743 | PyObject * obj1 = 0 ; | |
12744 | char *kwnames[] = { | |
12745 | (char *) "self",(char *) "renderer", NULL | |
12746 | }; | |
12747 | ||
12748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; | |
12749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12751 | { | |
12752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12753 | (arg1)->SetDefaultRenderer(arg2); | |
12754 | ||
12755 | wxPyEndAllowThreads(__tstate); | |
12756 | if (PyErr_Occurred()) SWIG_fail; | |
12757 | } | |
12758 | Py_INCREF(Py_None); resultobj = Py_None; | |
12759 | return resultobj; | |
12760 | fail: | |
12761 | return NULL; | |
12762 | } | |
12763 | ||
12764 | ||
12765 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12766 | PyObject *resultobj; | |
12767 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12768 | int arg2 ; | |
12769 | int arg3 ; | |
12770 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; | |
12771 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12772 | PyObject * obj1 = 0 ; |
12773 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12774 | PyObject * obj3 = 0 ; |
12775 | char *kwnames[] = { | |
12776 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL | |
12777 | }; | |
12778 | ||
8edf1c75 | 12779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12781 | { |
12782 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | } | |
12785 | { | |
12786 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
d14a1e28 RD |
12789 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12790 | { | |
12791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12792 | (arg1)->SetCellRenderer(arg2,arg3,arg4); | |
12793 | ||
12794 | wxPyEndAllowThreads(__tstate); | |
12795 | if (PyErr_Occurred()) SWIG_fail; | |
12796 | } | |
12797 | Py_INCREF(Py_None); resultobj = Py_None; | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | return NULL; | |
12801 | } | |
12802 | ||
12803 | ||
12804 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12805 | PyObject *resultobj; | |
12806 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12807 | wxGridCellRenderer *result; | |
12808 | PyObject * obj0 = 0 ; | |
12809 | char *kwnames[] = { | |
12810 | (char *) "self", NULL | |
12811 | }; | |
12812 | ||
12813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; | |
12814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | { | |
12823 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12824 | } | |
12825 | return resultobj; | |
12826 | fail: | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
12831 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12832 | PyObject *resultobj; | |
12833 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12834 | int arg2 ; | |
12835 | int arg3 ; | |
12836 | wxGridCellRenderer *result; | |
12837 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12838 | PyObject * obj1 = 0 ; |
12839 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12840 | char *kwnames[] = { |
12841 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12842 | }; | |
12843 | ||
8edf1c75 | 12844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12846 | { |
12847 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | { | |
12851 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12852 | if (PyErr_Occurred()) SWIG_fail; | |
12853 | } | |
d14a1e28 RD |
12854 | { |
12855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12856 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); | |
12857 | ||
12858 | wxPyEndAllowThreads(__tstate); | |
12859 | if (PyErr_Occurred()) SWIG_fail; | |
12860 | } | |
12861 | { | |
12862 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12863 | } | |
12864 | return resultobj; | |
12865 | fail: | |
12866 | return NULL; | |
12867 | } | |
12868 | ||
12869 | ||
12870 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12871 | PyObject *resultobj; | |
12872 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12873 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
12874 | PyObject * obj0 = 0 ; | |
12875 | PyObject * obj1 = 0 ; | |
12876 | char *kwnames[] = { | |
12877 | (char *) "self",(char *) "editor", NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; | |
12881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12882 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12883 | { | |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->SetDefaultEditor(arg2); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12898 | PyObject *resultobj; | |
12899 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12900 | int arg2 ; | |
12901 | int arg3 ; | |
12902 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
12903 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12904 | PyObject * obj1 = 0 ; |
12905 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12906 | PyObject * obj3 = 0 ; |
12907 | char *kwnames[] = { | |
12908 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL | |
12909 | }; | |
12910 | ||
8edf1c75 | 12911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 12912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12913 | { |
12914 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | { | |
12918 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12919 | if (PyErr_Occurred()) SWIG_fail; | |
12920 | } | |
d14a1e28 RD |
12921 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12922 | { | |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | (arg1)->SetCellEditor(arg2,arg3,arg4); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | Py_INCREF(Py_None); resultobj = Py_None; | |
12930 | return resultobj; | |
12931 | fail: | |
12932 | return NULL; | |
12933 | } | |
12934 | ||
12935 | ||
12936 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12937 | PyObject *resultobj; | |
12938 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12939 | wxGridCellEditor *result; | |
12940 | PyObject * obj0 = 0 ; | |
12941 | char *kwnames[] = { | |
12942 | (char *) "self", NULL | |
12943 | }; | |
12944 | ||
12945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; | |
12946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12947 | { | |
12948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12949 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); | |
12950 | ||
12951 | wxPyEndAllowThreads(__tstate); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | { | |
12955 | resultobj = wxPyMake_wxGridCellEditor(result); | |
12956 | } | |
12957 | return resultobj; | |
12958 | fail: | |
12959 | return NULL; | |
12960 | } | |
12961 | ||
12962 | ||
12963 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12964 | PyObject *resultobj; | |
12965 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12966 | int arg2 ; | |
12967 | int arg3 ; | |
12968 | wxGridCellEditor *result; | |
12969 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12970 | PyObject * obj1 = 0 ; |
12971 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12972 | char *kwnames[] = { |
12973 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12974 | }; | |
12975 | ||
8edf1c75 | 12976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12978 | { |
12979 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
12981 | } | |
12982 | { | |
12983 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
d14a1e28 RD |
12986 | { |
12987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12988 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); | |
12989 | ||
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | { | |
12994 | resultobj = wxPyMake_wxGridCellEditor(result); | |
12995 | } | |
12996 | return resultobj; | |
12997 | fail: | |
12998 | return NULL; | |
12999 | } | |
13000 | ||
13001 | ||
13002 | static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13003 | PyObject *resultobj; | |
13004 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13005 | int arg2 ; | |
13006 | int arg3 ; | |
13007 | wxString result; | |
13008 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13009 | PyObject * obj1 = 0 ; |
13010 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13011 | char *kwnames[] = { |
13012 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13013 | }; | |
13014 | ||
8edf1c75 | 13015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13017 | { |
13018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13019 | if (PyErr_Occurred()) SWIG_fail; | |
13020 | } | |
13021 | { | |
13022 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13023 | if (PyErr_Occurred()) SWIG_fail; | |
13024 | } | |
d14a1e28 RD |
13025 | { |
13026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13027 | result = (arg1)->GetCellValue(arg2,arg3); | |
13028 | ||
13029 | wxPyEndAllowThreads(__tstate); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | { | |
13033 | #if wxUSE_UNICODE | |
13034 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13035 | #else | |
13036 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13037 | #endif | |
13038 | } | |
13039 | return resultobj; | |
13040 | fail: | |
13041 | return NULL; | |
13042 | } | |
13043 | ||
13044 | ||
13045 | static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13046 | PyObject *resultobj; | |
13047 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13048 | int arg2 ; | |
13049 | int arg3 ; | |
13050 | wxString *arg4 = 0 ; | |
423f194a | 13051 | bool temp4 = False ; |
d14a1e28 | 13052 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13053 | PyObject * obj1 = 0 ; |
13054 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13055 | PyObject * obj3 = 0 ; |
13056 | char *kwnames[] = { | |
13057 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL | |
13058 | }; | |
13059 | ||
8edf1c75 | 13060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 13061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13062 | { |
13063 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13064 | if (PyErr_Occurred()) SWIG_fail; | |
13065 | } | |
13066 | { | |
13067 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13068 | if (PyErr_Occurred()) SWIG_fail; | |
13069 | } | |
d14a1e28 RD |
13070 | { |
13071 | arg4 = wxString_in_helper(obj3); | |
13072 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13073 | temp4 = True; |
d14a1e28 RD |
13074 | } |
13075 | { | |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | Py_INCREF(Py_None); resultobj = Py_None; | |
13083 | { | |
13084 | if (temp4) | |
13085 | delete arg4; | |
13086 | } | |
13087 | return resultobj; | |
13088 | fail: | |
13089 | { | |
13090 | if (temp4) | |
13091 | delete arg4; | |
13092 | } | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
13097 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13098 | PyObject *resultobj; | |
13099 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13100 | int arg2 ; | |
13101 | int arg3 ; | |
13102 | bool result; | |
13103 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13104 | PyObject * obj1 = 0 ; |
13105 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13106 | char *kwnames[] = { |
13107 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13108 | }; | |
13109 | ||
8edf1c75 | 13110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13112 | { |
13113 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | } | |
13116 | { | |
13117 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
d14a1e28 RD |
13120 | { |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
02a34c4c | 13127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13128 | return resultobj; |
13129 | fail: | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
13134 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13135 | PyObject *resultobj; | |
13136 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13137 | int arg2 ; | |
13138 | int arg3 ; | |
423f194a | 13139 | bool arg4 = (bool) True ; |
d14a1e28 | 13140 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13141 | PyObject * obj1 = 0 ; |
13142 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13143 | PyObject * obj3 = 0 ; |
13144 | char *kwnames[] = { | |
13145 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL | |
13146 | }; | |
13147 | ||
8edf1c75 | 13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 13149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13150 | { |
13151 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | { | |
13155 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
d14a1e28 | 13158 | if (obj3) { |
2dbef272 | 13159 | { |
8edf1c75 | 13160 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
13161 | if (PyErr_Occurred()) SWIG_fail; |
13162 | } | |
d14a1e28 RD |
13163 | } |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13166 | (arg1)->SetReadOnly(arg2,arg3,arg4); | |
13167 | ||
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | Py_INCREF(Py_None); resultobj = Py_None; | |
13172 | return resultobj; | |
13173 | fail: | |
13174 | return NULL; | |
13175 | } | |
13176 | ||
13177 | ||
13178 | static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj; | |
13180 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13181 | int arg2 ; | |
423f194a | 13182 | bool arg3 = (bool) False ; |
d14a1e28 | 13183 | PyObject * obj0 = 0 ; |
8edf1c75 | 13184 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13185 | PyObject * obj2 = 0 ; |
13186 | char *kwnames[] = { | |
13187 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL | |
13188 | }; | |
13189 | ||
8edf1c75 | 13190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13192 | { |
13193 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13194 | if (PyErr_Occurred()) SWIG_fail; | |
13195 | } | |
d14a1e28 | 13196 | if (obj2) { |
2dbef272 | 13197 | { |
8edf1c75 | 13198 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
13199 | if (PyErr_Occurred()) SWIG_fail; |
13200 | } | |
d14a1e28 RD |
13201 | } |
13202 | { | |
13203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13204 | (arg1)->SelectRow(arg2,arg3); | |
13205 | ||
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | Py_INCREF(Py_None); resultobj = Py_None; | |
13210 | return resultobj; | |
13211 | fail: | |
13212 | return NULL; | |
13213 | } | |
13214 | ||
13215 | ||
13216 | static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13217 | PyObject *resultobj; | |
13218 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13219 | int arg2 ; | |
423f194a | 13220 | bool arg3 = (bool) False ; |
d14a1e28 | 13221 | PyObject * obj0 = 0 ; |
8edf1c75 | 13222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13223 | PyObject * obj2 = 0 ; |
13224 | char *kwnames[] = { | |
13225 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL | |
13226 | }; | |
13227 | ||
8edf1c75 | 13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13230 | { |
13231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
d14a1e28 | 13234 | if (obj2) { |
2dbef272 | 13235 | { |
8edf1c75 | 13236 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
13237 | if (PyErr_Occurred()) SWIG_fail; |
13238 | } | |
d14a1e28 RD |
13239 | } |
13240 | { | |
13241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13242 | (arg1)->SelectCol(arg2,arg3); | |
13243 | ||
13244 | wxPyEndAllowThreads(__tstate); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
13247 | Py_INCREF(Py_None); resultobj = Py_None; | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13257 | int arg2 ; | |
13258 | int arg3 ; | |
13259 | int arg4 ; | |
13260 | int arg5 ; | |
423f194a | 13261 | bool arg6 = (bool) False ; |
d14a1e28 | 13262 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13263 | PyObject * obj1 = 0 ; |
13264 | PyObject * obj2 = 0 ; | |
13265 | PyObject * obj3 = 0 ; | |
13266 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13267 | PyObject * obj5 = 0 ; |
13268 | char *kwnames[] = { | |
13269 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL | |
13270 | }; | |
13271 | ||
8edf1c75 | 13272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13274 | { |
13275 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
13278 | { | |
13279 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | { | |
13283 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13284 | if (PyErr_Occurred()) SWIG_fail; | |
13285 | } | |
13286 | { | |
13287 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
d14a1e28 | 13290 | if (obj5) { |
2dbef272 | 13291 | { |
8edf1c75 | 13292 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
13293 | if (PyErr_Occurred()) SWIG_fail; |
13294 | } | |
d14a1e28 RD |
13295 | } |
13296 | { | |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | Py_INCREF(Py_None); resultobj = Py_None; | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13311 | PyObject *resultobj; | |
13312 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13313 | PyObject * obj0 = 0 ; | |
13314 | char *kwnames[] = { | |
13315 | (char *) "self", NULL | |
13316 | }; | |
13317 | ||
13318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; | |
13319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | (arg1)->SelectAll(); | |
13323 | ||
13324 | wxPyEndAllowThreads(__tstate); | |
13325 | if (PyErr_Occurred()) SWIG_fail; | |
13326 | } | |
13327 | Py_INCREF(Py_None); resultobj = Py_None; | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | return NULL; | |
13331 | } | |
13332 | ||
13333 | ||
13334 | static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13335 | PyObject *resultobj; | |
13336 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13337 | bool result; | |
13338 | PyObject * obj0 = 0 ; | |
13339 | char *kwnames[] = { | |
13340 | (char *) "self", NULL | |
13341 | }; | |
13342 | ||
13343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; | |
13344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13345 | { | |
13346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13347 | result = (bool)(arg1)->IsSelection(); | |
13348 | ||
13349 | wxPyEndAllowThreads(__tstate); | |
13350 | if (PyErr_Occurred()) SWIG_fail; | |
13351 | } | |
02a34c4c | 13352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13353 | return resultobj; |
13354 | fail: | |
13355 | return NULL; | |
13356 | } | |
13357 | ||
13358 | ||
13359 | static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13360 | PyObject *resultobj; | |
13361 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13362 | PyObject * obj0 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; | |
13368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13369 | { | |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | (arg1)->ClearSelection(); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | Py_INCREF(Py_None); resultobj = Py_None; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13386 | int arg2 ; | |
13387 | int arg3 ; | |
13388 | bool result; | |
13389 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13390 | PyObject * obj1 = 0 ; |
13391 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13392 | char *kwnames[] = { |
13393 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13394 | }; | |
13395 | ||
8edf1c75 | 13396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13398 | { |
13399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13400 | if (PyErr_Occurred()) SWIG_fail; | |
13401 | } | |
13402 | { | |
13403 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13404 | if (PyErr_Occurred()) SWIG_fail; | |
13405 | } | |
d14a1e28 RD |
13406 | { |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | result = (bool)(arg1)->IsInSelection(arg2,arg3); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
02a34c4c | 13413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13414 | return resultobj; |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13421 | PyObject *resultobj; | |
13422 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13423 | wxGridCellCoordsArray result; | |
13424 | PyObject * obj0 = 0 ; | |
13425 | char *kwnames[] = { | |
13426 | (char *) "self", NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; | |
13430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13431 | { | |
13432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13433 | result = ((wxGrid const *)arg1)->GetSelectedCells(); | |
13434 | ||
13435 | wxPyEndAllowThreads(__tstate); | |
13436 | if (PyErr_Occurred()) SWIG_fail; | |
13437 | } | |
13438 | { | |
13439 | resultobj = wxGridCellCoordsArray_helper(result); | |
13440 | } | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13448 | PyObject *resultobj; | |
13449 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13450 | wxGridCellCoordsArray result; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13458 | { | |
13459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13460 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); | |
13461 | ||
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | { | |
13466 | resultobj = wxGridCellCoordsArray_helper(result); | |
13467 | } | |
13468 | return resultobj; | |
13469 | fail: | |
13470 | return NULL; | |
13471 | } | |
13472 | ||
13473 | ||
13474 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13475 | PyObject *resultobj; | |
13476 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13477 | wxGridCellCoordsArray result; | |
13478 | PyObject * obj0 = 0 ; | |
13479 | char *kwnames[] = { | |
13480 | (char *) "self", NULL | |
13481 | }; | |
13482 | ||
13483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; | |
13484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13485 | { | |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | { | |
13493 | resultobj = wxGridCellCoordsArray_helper(result); | |
13494 | } | |
13495 | return resultobj; | |
13496 | fail: | |
13497 | return NULL; | |
13498 | } | |
13499 | ||
13500 | ||
13501 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13502 | PyObject *resultobj; | |
13503 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13504 | wxArrayInt result; | |
13505 | PyObject * obj0 = 0 ; | |
13506 | char *kwnames[] = { | |
13507 | (char *) "self", NULL | |
13508 | }; | |
13509 | ||
13510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; | |
13511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13512 | { | |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | result = ((wxGrid const *)arg1)->GetSelectedRows(); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | { | |
13520 | resultobj = PyList_New(0); | |
13521 | size_t idx; | |
13522 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13523 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13524 | PyList_Append(resultobj, val); | |
13525 | Py_DECREF(val); | |
13526 | } | |
13527 | } | |
13528 | return resultobj; | |
13529 | fail: | |
13530 | return NULL; | |
13531 | } | |
13532 | ||
13533 | ||
13534 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13535 | PyObject *resultobj; | |
13536 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13537 | wxArrayInt result; | |
13538 | PyObject * obj0 = 0 ; | |
13539 | char *kwnames[] = { | |
13540 | (char *) "self", NULL | |
13541 | }; | |
13542 | ||
13543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; | |
13544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13545 | { | |
13546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13547 | result = ((wxGrid const *)arg1)->GetSelectedCols(); | |
13548 | ||
13549 | wxPyEndAllowThreads(__tstate); | |
13550 | if (PyErr_Occurred()) SWIG_fail; | |
13551 | } | |
13552 | { | |
13553 | resultobj = PyList_New(0); | |
13554 | size_t idx; | |
13555 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13556 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13557 | PyList_Append(resultobj, val); | |
13558 | Py_DECREF(val); | |
13559 | } | |
13560 | } | |
13561 | return resultobj; | |
13562 | fail: | |
13563 | return NULL; | |
13564 | } | |
13565 | ||
13566 | ||
13567 | static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13568 | PyObject *resultobj; | |
13569 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13570 | int arg2 ; | |
13571 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13573 | char *kwnames[] = { |
13574 | (char *) "self",(char *) "row", NULL | |
13575 | }; | |
13576 | ||
8edf1c75 | 13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13579 | { |
13580 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
d14a1e28 RD |
13583 | { |
13584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13585 | (arg1)->DeselectRow(arg2); | |
13586 | ||
13587 | wxPyEndAllowThreads(__tstate); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
13590 | Py_INCREF(Py_None); resultobj = Py_None; | |
13591 | return resultobj; | |
13592 | fail: | |
13593 | return NULL; | |
13594 | } | |
13595 | ||
13596 | ||
13597 | static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13598 | PyObject *resultobj; | |
13599 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13600 | int arg2 ; | |
13601 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13603 | char *kwnames[] = { |
13604 | (char *) "self",(char *) "col", NULL | |
13605 | }; | |
13606 | ||
8edf1c75 | 13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13609 | { |
13610 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13611 | if (PyErr_Occurred()) SWIG_fail; | |
13612 | } | |
d14a1e28 RD |
13613 | { |
13614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13615 | (arg1)->DeselectCol(arg2); | |
13616 | ||
13617 | wxPyEndAllowThreads(__tstate); | |
13618 | if (PyErr_Occurred()) SWIG_fail; | |
13619 | } | |
13620 | Py_INCREF(Py_None); resultobj = Py_None; | |
13621 | return resultobj; | |
13622 | fail: | |
13623 | return NULL; | |
13624 | } | |
13625 | ||
13626 | ||
13627 | static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13628 | PyObject *resultobj; | |
13629 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13630 | int arg2 ; | |
13631 | int arg3 ; | |
13632 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13633 | PyObject * obj1 = 0 ; |
13634 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13635 | char *kwnames[] = { |
13636 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13637 | }; | |
13638 | ||
8edf1c75 | 13639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13641 | { |
13642 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | { | |
13646 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13647 | if (PyErr_Occurred()) SWIG_fail; | |
13648 | } | |
d14a1e28 RD |
13649 | { |
13650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13651 | (arg1)->DeselectCell(arg2,arg3); | |
13652 | ||
13653 | wxPyEndAllowThreads(__tstate); | |
13654 | if (PyErr_Occurred()) SWIG_fail; | |
13655 | } | |
13656 | Py_INCREF(Py_None); resultobj = Py_None; | |
13657 | return resultobj; | |
13658 | fail: | |
13659 | return NULL; | |
13660 | } | |
13661 | ||
13662 | ||
13663 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13664 | PyObject *resultobj; | |
13665 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13666 | wxGridCellCoords *arg2 = 0 ; | |
13667 | wxGridCellCoords *arg3 = 0 ; | |
13668 | wxRect result; | |
13669 | wxGridCellCoords temp2 ; | |
13670 | wxGridCellCoords temp3 ; | |
13671 | PyObject * obj0 = 0 ; | |
13672 | PyObject * obj1 = 0 ; | |
13673 | PyObject * obj2 = 0 ; | |
13674 | char *kwnames[] = { | |
13675 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL | |
13676 | }; | |
13677 | ||
13678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13680 | { | |
13681 | arg2 = &temp2; | |
13682 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
13683 | } | |
13684 | { | |
13685 | arg3 = &temp3; | |
13686 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; | |
13687 | } | |
13688 | { | |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); | |
13691 | ||
13692 | wxPyEndAllowThreads(__tstate); | |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
13694 | } | |
13695 | { | |
13696 | wxRect * resultptr; | |
13697 | resultptr = new wxRect((wxRect &) result); | |
13698 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
13699 | } | |
13700 | return resultobj; | |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
13706 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13707 | PyObject *resultobj; | |
13708 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13709 | wxColour result; | |
13710 | PyObject * obj0 = 0 ; | |
13711 | char *kwnames[] = { | |
13712 | (char *) "self", NULL | |
13713 | }; | |
13714 | ||
13715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
13716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13717 | { | |
13718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13719 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); | |
13720 | ||
13721 | wxPyEndAllowThreads(__tstate); | |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
13723 | } | |
13724 | { | |
13725 | wxColour * resultptr; | |
13726 | resultptr = new wxColour((wxColour &) result); | |
13727 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
13728 | } | |
13729 | return resultobj; | |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13736 | PyObject *resultobj; | |
13737 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13738 | wxColour result; | |
13739 | PyObject * obj0 = 0 ; | |
13740 | char *kwnames[] = { | |
13741 | (char *) "self", NULL | |
13742 | }; | |
13743 | ||
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; | |
13745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13746 | { | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
13753 | { | |
13754 | wxColour * resultptr; | |
13755 | resultptr = new wxColour((wxColour &) result); | |
13756 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
13757 | } | |
13758 | return resultobj; | |
13759 | fail: | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
13764 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13765 | PyObject *resultobj; | |
13766 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13767 | wxColour *arg2 = 0 ; | |
13768 | wxColour temp2 ; | |
13769 | PyObject * obj0 = 0 ; | |
13770 | PyObject * obj1 = 0 ; | |
13771 | char *kwnames[] = { | |
13772 | (char *) "self",(char *) "c", NULL | |
13773 | }; | |
13774 | ||
13775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
13776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13777 | { | |
13778 | arg2 = &temp2; | |
13779 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13780 | } | |
13781 | { | |
13782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13783 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
13784 | ||
13785 | wxPyEndAllowThreads(__tstate); | |
13786 | if (PyErr_Occurred()) SWIG_fail; | |
13787 | } | |
13788 | Py_INCREF(Py_None); resultobj = Py_None; | |
13789 | return resultobj; | |
13790 | fail: | |
13791 | return NULL; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13796 | PyObject *resultobj; | |
13797 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13798 | wxColour *arg2 = 0 ; | |
13799 | wxColour temp2 ; | |
13800 | PyObject * obj0 = 0 ; | |
13801 | PyObject * obj1 = 0 ; | |
13802 | char *kwnames[] = { | |
13803 | (char *) "self",(char *) "c", NULL | |
13804 | }; | |
13805 | ||
13806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; | |
13807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13808 | { | |
13809 | arg2 = &temp2; | |
13810 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13811 | } | |
13812 | { | |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13814 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); | |
13815 | ||
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
13819 | Py_INCREF(Py_None); resultobj = Py_None; | |
13820 | return resultobj; | |
13821 | fail: | |
13822 | return NULL; | |
13823 | } | |
13824 | ||
13825 | ||
13826 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13827 | PyObject *resultobj; | |
13828 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13829 | wxString *arg2 = 0 ; | |
13830 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; | |
13831 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
423f194a | 13832 | bool temp2 = False ; |
d14a1e28 RD |
13833 | PyObject * obj0 = 0 ; |
13834 | PyObject * obj1 = 0 ; | |
13835 | PyObject * obj2 = 0 ; | |
13836 | PyObject * obj3 = 0 ; | |
13837 | char *kwnames[] = { | |
13838 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL | |
13839 | }; | |
13840 | ||
13841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13843 | { | |
13844 | arg2 = wxString_in_helper(obj1); | |
13845 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13846 | temp2 = True; |
d14a1e28 RD |
13847 | } |
13848 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13849 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13850 | { | |
13851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13852 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); | |
13853 | ||
13854 | wxPyEndAllowThreads(__tstate); | |
13855 | if (PyErr_Occurred()) SWIG_fail; | |
13856 | } | |
13857 | Py_INCREF(Py_None); resultobj = Py_None; | |
13858 | { | |
13859 | if (temp2) | |
13860 | delete arg2; | |
13861 | } | |
13862 | return resultobj; | |
13863 | fail: | |
13864 | { | |
13865 | if (temp2) | |
13866 | delete arg2; | |
13867 | } | |
13868 | return NULL; | |
13869 | } | |
13870 | ||
13871 | ||
13872 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13873 | PyObject *resultobj; | |
13874 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13875 | int arg2 ; | |
13876 | int arg3 ; | |
13877 | wxGridCellEditor *result; | |
13878 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13879 | PyObject * obj1 = 0 ; |
13880 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13881 | char *kwnames[] = { |
13882 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13883 | }; | |
13884 | ||
8edf1c75 | 13885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13887 | { |
13888 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | { | |
13892 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | } | |
d14a1e28 RD |
13895 | { |
13896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13897 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); | |
13898 | ||
13899 | wxPyEndAllowThreads(__tstate); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | { | |
13903 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13904 | } | |
13905 | return resultobj; | |
13906 | fail: | |
13907 | return NULL; | |
13908 | } | |
13909 | ||
13910 | ||
13911 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13912 | PyObject *resultobj; | |
13913 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13914 | int arg2 ; | |
13915 | int arg3 ; | |
13916 | wxGridCellRenderer *result; | |
13917 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13918 | PyObject * obj1 = 0 ; |
13919 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13920 | char *kwnames[] = { |
13921 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13922 | }; | |
13923 | ||
8edf1c75 | 13924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13926 | { |
13927 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | } | |
13930 | { | |
13931 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
d14a1e28 RD |
13934 | { |
13935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13936 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); | |
13937 | ||
13938 | wxPyEndAllowThreads(__tstate); | |
13939 | if (PyErr_Occurred()) SWIG_fail; | |
13940 | } | |
13941 | { | |
13942 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
13943 | } | |
13944 | return resultobj; | |
13945 | fail: | |
13946 | return NULL; | |
13947 | } | |
13948 | ||
13949 | ||
13950 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13951 | PyObject *resultobj; | |
13952 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13953 | wxString *arg2 = 0 ; | |
13954 | wxGridCellEditor *result; | |
423f194a | 13955 | bool temp2 = False ; |
d14a1e28 RD |
13956 | PyObject * obj0 = 0 ; |
13957 | PyObject * obj1 = 0 ; | |
13958 | char *kwnames[] = { | |
13959 | (char *) "self",(char *) "typeName", NULL | |
13960 | }; | |
13961 | ||
13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; | |
13963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13964 | { | |
13965 | arg2 = wxString_in_helper(obj1); | |
13966 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13967 | temp2 = True; |
d14a1e28 RD |
13968 | } |
13969 | { | |
13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13971 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); | |
13972 | ||
13973 | wxPyEndAllowThreads(__tstate); | |
13974 | if (PyErr_Occurred()) SWIG_fail; | |
13975 | } | |
13976 | { | |
13977 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13978 | } | |
13979 | { | |
13980 | if (temp2) | |
13981 | delete arg2; | |
13982 | } | |
13983 | return resultobj; | |
13984 | fail: | |
13985 | { | |
13986 | if (temp2) | |
13987 | delete arg2; | |
13988 | } | |
13989 | return NULL; | |
13990 | } | |
13991 | ||
13992 | ||
13993 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13994 | PyObject *resultobj; | |
13995 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13996 | wxString *arg2 = 0 ; | |
13997 | wxGridCellRenderer *result; | |
423f194a | 13998 | bool temp2 = False ; |
d14a1e28 RD |
13999 | PyObject * obj0 = 0 ; |
14000 | PyObject * obj1 = 0 ; | |
14001 | char *kwnames[] = { | |
14002 | (char *) "self",(char *) "typeName", NULL | |
14003 | }; | |
14004 | ||
14005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; | |
14006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14007 | { | |
14008 | arg2 = wxString_in_helper(obj1); | |
14009 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14010 | temp2 = True; |
d14a1e28 RD |
14011 | } |
14012 | { | |
14013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14014 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); | |
14015 | ||
14016 | wxPyEndAllowThreads(__tstate); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
14018 | } | |
14019 | { | |
14020 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14021 | } | |
14022 | { | |
14023 | if (temp2) | |
14024 | delete arg2; | |
14025 | } | |
14026 | return resultobj; | |
14027 | fail: | |
14028 | { | |
14029 | if (temp2) | |
14030 | delete arg2; | |
14031 | } | |
14032 | return NULL; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14037 | PyObject *resultobj; | |
14038 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14039 | int arg2 ; | |
14040 | int arg3 ; | |
14041 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14042 | PyObject * obj1 = 0 ; |
14043 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14044 | char *kwnames[] = { |
14045 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL | |
14046 | }; | |
14047 | ||
8edf1c75 | 14048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14050 | { |
14051 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14052 | if (PyErr_Occurred()) SWIG_fail; | |
14053 | } | |
14054 | { | |
14055 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
d14a1e28 RD |
14058 | { |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14060 | (arg1)->SetMargins(arg2,arg3); | |
14061 | ||
14062 | wxPyEndAllowThreads(__tstate); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
14065 | Py_INCREF(Py_None); resultobj = Py_None; | |
14066 | return resultobj; | |
14067 | fail: | |
14068 | return NULL; | |
14069 | } | |
14070 | ||
14071 | ||
14072 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14073 | PyObject *resultobj; | |
14074 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14075 | wxWindow *result; | |
14076 | PyObject * obj0 = 0 ; | |
14077 | char *kwnames[] = { | |
14078 | (char *) "self", NULL | |
14079 | }; | |
14080 | ||
14081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; | |
14082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14083 | { | |
14084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14085 | result = (wxWindow *)(arg1)->GetGridWindow(); | |
14086 | ||
14087 | wxPyEndAllowThreads(__tstate); | |
14088 | if (PyErr_Occurred()) SWIG_fail; | |
14089 | } | |
14090 | { | |
14091 | resultobj = wxPyMake_wxObject(result); | |
14092 | } | |
14093 | return resultobj; | |
14094 | fail: | |
14095 | return NULL; | |
14096 | } | |
14097 | ||
14098 | ||
14099 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14100 | PyObject *resultobj; | |
14101 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14102 | wxWindow *result; | |
14103 | PyObject * obj0 = 0 ; | |
14104 | char *kwnames[] = { | |
14105 | (char *) "self", NULL | |
14106 | }; | |
14107 | ||
14108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; | |
14109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
14117 | { | |
14118 | resultobj = wxPyMake_wxObject(result); | |
14119 | } | |
14120 | return resultobj; | |
14121 | fail: | |
14122 | return NULL; | |
14123 | } | |
14124 | ||
14125 | ||
14126 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14127 | PyObject *resultobj; | |
14128 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14129 | wxWindow *result; | |
14130 | PyObject * obj0 = 0 ; | |
14131 | char *kwnames[] = { | |
14132 | (char *) "self", NULL | |
14133 | }; | |
14134 | ||
14135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; | |
14136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14137 | { | |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | { | |
14145 | resultobj = wxPyMake_wxObject(result); | |
14146 | } | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj; | |
14155 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14156 | wxWindow *result; | |
14157 | PyObject * obj0 = 0 ; | |
14158 | char *kwnames[] = { | |
14159 | (char *) "self", NULL | |
14160 | }; | |
14161 | ||
14162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; | |
14163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14164 | { | |
14165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14166 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); | |
14167 | ||
14168 | wxPyEndAllowThreads(__tstate); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
14170 | } | |
14171 | { | |
14172 | resultobj = wxPyMake_wxObject(result); | |
14173 | } | |
14174 | return resultobj; | |
14175 | fail: | |
14176 | return NULL; | |
14177 | } | |
14178 | ||
14179 | ||
14180 | static PyObject * Grid_swigregister(PyObject *self, PyObject *args) { | |
14181 | PyObject *obj; | |
14182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14183 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); | |
14184 | Py_INCREF(obj); | |
14185 | return Py_BuildValue((char *)""); | |
14186 | } | |
14187 | static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14188 | PyObject *resultobj; | |
14189 | int arg1 ; | |
14190 | wxEventType arg2 ; | |
14191 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14192 | int arg4 = (int) -1 ; | |
14193 | int arg5 = (int) -1 ; | |
14194 | int arg6 = (int) -1 ; | |
14195 | int arg7 = (int) -1 ; | |
423f194a RD |
14196 | bool arg8 = (bool) True ; |
14197 | bool arg9 = (bool) False ; | |
14198 | bool arg10 = (bool) False ; | |
14199 | bool arg11 = (bool) False ; | |
14200 | bool arg12 = (bool) False ; | |
d14a1e28 | 14201 | wxGridEvent *result; |
8edf1c75 RD |
14202 | PyObject * obj0 = 0 ; |
14203 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14204 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
14205 | PyObject * obj3 = 0 ; |
14206 | PyObject * obj4 = 0 ; | |
14207 | PyObject * obj5 = 0 ; | |
14208 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
14209 | PyObject * obj7 = 0 ; |
14210 | PyObject * obj8 = 0 ; | |
14211 | PyObject * obj9 = 0 ; | |
14212 | PyObject * obj10 = 0 ; | |
14213 | PyObject * obj11 = 0 ; | |
14214 | char *kwnames[] = { | |
14215 | (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 | |
14216 | }; | |
14217 | ||
8edf1c75 RD |
14218 | 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; |
14219 | { | |
14220 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
14222 | } | |
14223 | { | |
14224 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14225 | if (PyErr_Occurred()) SWIG_fail; | |
14226 | } | |
d14a1e28 | 14227 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14228 | if (obj3) { |
14229 | { | |
14230 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | } | |
14234 | if (obj4) { | |
14235 | { | |
14236 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | } | |
14239 | } | |
14240 | if (obj5) { | |
14241 | { | |
14242 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | } | |
14246 | if (obj6) { | |
14247 | { | |
14248 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
14249 | if (PyErr_Occurred()) SWIG_fail; | |
14250 | } | |
14251 | } | |
d14a1e28 | 14252 | if (obj7) { |
2dbef272 | 14253 | { |
8edf1c75 | 14254 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); |
2dbef272 RD |
14255 | if (PyErr_Occurred()) SWIG_fail; |
14256 | } | |
d14a1e28 RD |
14257 | } |
14258 | if (obj8) { | |
2dbef272 | 14259 | { |
8edf1c75 | 14260 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); |
2dbef272 RD |
14261 | if (PyErr_Occurred()) SWIG_fail; |
14262 | } | |
d14a1e28 RD |
14263 | } |
14264 | if (obj9) { | |
2dbef272 | 14265 | { |
8edf1c75 | 14266 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
2dbef272 RD |
14267 | if (PyErr_Occurred()) SWIG_fail; |
14268 | } | |
d14a1e28 RD |
14269 | } |
14270 | if (obj10) { | |
2dbef272 | 14271 | { |
8edf1c75 | 14272 | arg11 = (bool) SWIG_PyObj_AsBool(obj10); |
2dbef272 RD |
14273 | if (PyErr_Occurred()) SWIG_fail; |
14274 | } | |
d14a1e28 RD |
14275 | } |
14276 | if (obj11) { | |
2dbef272 | 14277 | { |
8edf1c75 | 14278 | arg12 = (bool) SWIG_PyObj_AsBool(obj11); |
2dbef272 RD |
14279 | if (PyErr_Occurred()) SWIG_fail; |
14280 | } | |
d14a1e28 RD |
14281 | } |
14282 | { | |
14283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14284 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
14285 | ||
14286 | wxPyEndAllowThreads(__tstate); | |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
14288 | } | |
14289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1); | |
14290 | return resultobj; | |
14291 | fail: | |
14292 | return NULL; | |
14293 | } | |
14294 | ||
14295 | ||
14296 | static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14297 | PyObject *resultobj; | |
14298 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14299 | int result; | |
14300 | PyObject * obj0 = 0 ; | |
14301 | char *kwnames[] = { | |
14302 | (char *) "self", NULL | |
14303 | }; | |
14304 | ||
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; | |
14306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14307 | { | |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | result = (int)(arg1)->GetRow(); | |
14310 | ||
14311 | wxPyEndAllowThreads(__tstate); | |
14312 | if (PyErr_Occurred()) SWIG_fail; | |
14313 | } | |
8edf1c75 | 14314 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14315 | return resultobj; |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14324 | int result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (int)(arg1)->GetCol(); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
8edf1c75 | 14339 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14340 | return resultobj; |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
14348 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14349 | wxPoint result; | |
14350 | PyObject * obj0 = 0 ; | |
14351 | char *kwnames[] = { | |
14352 | (char *) "self", NULL | |
14353 | }; | |
14354 | ||
14355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14357 | { | |
14358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14359 | result = (arg1)->GetPosition(); | |
14360 | ||
14361 | wxPyEndAllowThreads(__tstate); | |
14362 | if (PyErr_Occurred()) SWIG_fail; | |
14363 | } | |
14364 | { | |
14365 | wxPoint * resultptr; | |
14366 | resultptr = new wxPoint((wxPoint &) result); | |
14367 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14368 | } | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | return NULL; | |
14372 | } | |
14373 | ||
14374 | ||
14375 | static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14376 | PyObject *resultobj; | |
14377 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14378 | bool result; | |
14379 | PyObject * obj0 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "self", NULL | |
14382 | }; | |
14383 | ||
14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; | |
14385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14386 | { | |
14387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14388 | result = (bool)(arg1)->Selecting(); | |
14389 | ||
14390 | wxPyEndAllowThreads(__tstate); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
02a34c4c | 14393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14394 | return resultobj; |
14395 | fail: | |
14396 | return NULL; | |
14397 | } | |
14398 | ||
14399 | ||
14400 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14401 | PyObject *resultobj; | |
14402 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14403 | bool result; | |
14404 | PyObject * obj0 = 0 ; | |
14405 | char *kwnames[] = { | |
14406 | (char *) "self", NULL | |
14407 | }; | |
14408 | ||
14409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14411 | { | |
14412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14413 | result = (bool)(arg1)->ControlDown(); | |
14414 | ||
14415 | wxPyEndAllowThreads(__tstate); | |
14416 | if (PyErr_Occurred()) SWIG_fail; | |
14417 | } | |
02a34c4c | 14418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14419 | return resultobj; |
14420 | fail: | |
14421 | return NULL; | |
14422 | } | |
14423 | ||
14424 | ||
14425 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14426 | PyObject *resultobj; | |
14427 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14428 | bool result; | |
14429 | PyObject * obj0 = 0 ; | |
14430 | char *kwnames[] = { | |
14431 | (char *) "self", NULL | |
14432 | }; | |
14433 | ||
14434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14436 | { | |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | result = (bool)(arg1)->MetaDown(); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
02a34c4c | 14443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14444 | return resultobj; |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
14450 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14451 | PyObject *resultobj; | |
14452 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14453 | bool result; | |
14454 | PyObject * obj0 = 0 ; | |
14455 | char *kwnames[] = { | |
14456 | (char *) "self", NULL | |
14457 | }; | |
14458 | ||
14459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14461 | { | |
14462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14463 | result = (bool)(arg1)->ShiftDown(); | |
14464 | ||
14465 | wxPyEndAllowThreads(__tstate); | |
14466 | if (PyErr_Occurred()) SWIG_fail; | |
14467 | } | |
02a34c4c | 14468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14469 | return resultobj; |
14470 | fail: | |
14471 | return NULL; | |
14472 | } | |
14473 | ||
14474 | ||
14475 | static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14476 | PyObject *resultobj; | |
14477 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14478 | bool result; | |
14479 | PyObject * obj0 = 0 ; | |
14480 | char *kwnames[] = { | |
14481 | (char *) "self", NULL | |
14482 | }; | |
14483 | ||
14484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; | |
14485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14486 | { | |
14487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14488 | result = (bool)(arg1)->AltDown(); | |
14489 | ||
14490 | wxPyEndAllowThreads(__tstate); | |
14491 | if (PyErr_Occurred()) SWIG_fail; | |
14492 | } | |
02a34c4c | 14493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14494 | return resultobj; |
14495 | fail: | |
14496 | return NULL; | |
14497 | } | |
14498 | ||
14499 | ||
14500 | static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) { | |
14501 | PyObject *obj; | |
14502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14503 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); | |
14504 | Py_INCREF(obj); | |
14505 | return Py_BuildValue((char *)""); | |
14506 | } | |
14507 | static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | int arg1 ; | |
14510 | wxEventType arg2 ; | |
14511 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14512 | int arg4 = (int) -1 ; | |
14513 | int arg5 = (int) -1 ; | |
14514 | int arg6 = (int) -1 ; | |
423f194a RD |
14515 | bool arg7 = (bool) False ; |
14516 | bool arg8 = (bool) False ; | |
14517 | bool arg9 = (bool) False ; | |
14518 | bool arg10 = (bool) False ; | |
d14a1e28 | 14519 | wxGridSizeEvent *result; |
8edf1c75 RD |
14520 | PyObject * obj0 = 0 ; |
14521 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14522 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
14523 | PyObject * obj3 = 0 ; |
14524 | PyObject * obj4 = 0 ; | |
14525 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
14526 | PyObject * obj6 = 0 ; |
14527 | PyObject * obj7 = 0 ; | |
14528 | PyObject * obj8 = 0 ; | |
14529 | PyObject * obj9 = 0 ; | |
14530 | char *kwnames[] = { | |
14531 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14532 | }; | |
14533 | ||
8edf1c75 RD |
14534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
14535 | { | |
14536 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | { | |
14540 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
d14a1e28 | 14543 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14544 | if (obj3) { |
14545 | { | |
14546 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | } | |
14550 | if (obj4) { | |
14551 | { | |
14552 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
14553 | if (PyErr_Occurred()) SWIG_fail; | |
14554 | } | |
14555 | } | |
14556 | if (obj5) { | |
14557 | { | |
14558 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
14559 | if (PyErr_Occurred()) SWIG_fail; | |
14560 | } | |
14561 | } | |
d14a1e28 | 14562 | if (obj6) { |
2dbef272 | 14563 | { |
8edf1c75 | 14564 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
2dbef272 RD |
14565 | if (PyErr_Occurred()) SWIG_fail; |
14566 | } | |
d14a1e28 RD |
14567 | } |
14568 | if (obj7) { | |
2dbef272 | 14569 | { |
8edf1c75 | 14570 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); |
2dbef272 RD |
14571 | if (PyErr_Occurred()) SWIG_fail; |
14572 | } | |
d14a1e28 RD |
14573 | } |
14574 | if (obj8) { | |
2dbef272 | 14575 | { |
8edf1c75 | 14576 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); |
2dbef272 RD |
14577 | if (PyErr_Occurred()) SWIG_fail; |
14578 | } | |
d14a1e28 RD |
14579 | } |
14580 | if (obj9) { | |
2dbef272 | 14581 | { |
8edf1c75 | 14582 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
2dbef272 RD |
14583 | if (PyErr_Occurred()) SWIG_fail; |
14584 | } | |
d14a1e28 RD |
14585 | } |
14586 | { | |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | } | |
14593 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1); | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14603 | int result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14611 | { | |
14612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14613 | result = (int)(arg1)->GetRowOrCol(); | |
14614 | ||
14615 | wxPyEndAllowThreads(__tstate); | |
14616 | if (PyErr_Occurred()) SWIG_fail; | |
14617 | } | |
8edf1c75 | 14618 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14619 | return resultobj; |
14620 | fail: | |
14621 | return NULL; | |
14622 | } | |
14623 | ||
14624 | ||
14625 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14626 | PyObject *resultobj; | |
14627 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14628 | wxPoint result; | |
14629 | PyObject * obj0 = 0 ; | |
14630 | char *kwnames[] = { | |
14631 | (char *) "self", NULL | |
14632 | }; | |
14633 | ||
14634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14636 | { | |
14637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14638 | result = (arg1)->GetPosition(); | |
14639 | ||
14640 | wxPyEndAllowThreads(__tstate); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
14643 | { | |
14644 | wxPoint * resultptr; | |
14645 | resultptr = new wxPoint((wxPoint &) result); | |
14646 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14647 | } | |
14648 | return resultobj; | |
14649 | fail: | |
14650 | return NULL; | |
14651 | } | |
14652 | ||
14653 | ||
14654 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14655 | PyObject *resultobj; | |
14656 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14657 | bool result; | |
14658 | PyObject * obj0 = 0 ; | |
14659 | char *kwnames[] = { | |
14660 | (char *) "self", NULL | |
14661 | }; | |
14662 | ||
14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14665 | { | |
14666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14667 | result = (bool)(arg1)->ControlDown(); | |
14668 | ||
14669 | wxPyEndAllowThreads(__tstate); | |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
14671 | } | |
02a34c4c | 14672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14673 | return resultobj; |
14674 | fail: | |
14675 | return NULL; | |
14676 | } | |
14677 | ||
14678 | ||
14679 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14680 | PyObject *resultobj; | |
14681 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14682 | bool result; | |
14683 | PyObject * obj0 = 0 ; | |
14684 | char *kwnames[] = { | |
14685 | (char *) "self", NULL | |
14686 | }; | |
14687 | ||
14688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | result = (bool)(arg1)->MetaDown(); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
02a34c4c | 14697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14698 | return resultobj; |
14699 | fail: | |
14700 | return NULL; | |
14701 | } | |
14702 | ||
14703 | ||
14704 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14705 | PyObject *resultobj; | |
14706 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14707 | bool result; | |
14708 | PyObject * obj0 = 0 ; | |
14709 | char *kwnames[] = { | |
14710 | (char *) "self", NULL | |
14711 | }; | |
14712 | ||
14713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14715 | { | |
14716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14717 | result = (bool)(arg1)->ShiftDown(); | |
14718 | ||
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
02a34c4c | 14722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14723 | return resultobj; |
14724 | fail: | |
14725 | return NULL; | |
14726 | } | |
14727 | ||
14728 | ||
14729 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14730 | PyObject *resultobj; | |
14731 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14732 | bool result; | |
14733 | PyObject * obj0 = 0 ; | |
14734 | char *kwnames[] = { | |
14735 | (char *) "self", NULL | |
14736 | }; | |
14737 | ||
14738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; | |
14739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14740 | { | |
14741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14742 | result = (bool)(arg1)->AltDown(); | |
14743 | ||
14744 | wxPyEndAllowThreads(__tstate); | |
14745 | if (PyErr_Occurred()) SWIG_fail; | |
14746 | } | |
02a34c4c | 14747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14748 | return resultobj; |
14749 | fail: | |
14750 | return NULL; | |
14751 | } | |
14752 | ||
14753 | ||
14754 | static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14755 | PyObject *obj; | |
14756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14757 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); | |
14758 | Py_INCREF(obj); | |
14759 | return Py_BuildValue((char *)""); | |
14760 | } | |
14761 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14762 | PyObject *resultobj; | |
14763 | int arg1 ; | |
14764 | wxEventType arg2 ; | |
14765 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14766 | wxGridCellCoords *arg4 = 0 ; | |
14767 | wxGridCellCoords *arg5 = 0 ; | |
423f194a RD |
14768 | bool arg6 = (bool) True ; |
14769 | bool arg7 = (bool) False ; | |
14770 | bool arg8 = (bool) False ; | |
14771 | bool arg9 = (bool) False ; | |
14772 | bool arg10 = (bool) False ; | |
d14a1e28 RD |
14773 | wxGridRangeSelectEvent *result; |
14774 | wxGridCellCoords temp4 ; | |
14775 | wxGridCellCoords temp5 ; | |
8edf1c75 RD |
14776 | PyObject * obj0 = 0 ; |
14777 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14778 | PyObject * obj2 = 0 ; |
14779 | PyObject * obj3 = 0 ; | |
14780 | PyObject * obj4 = 0 ; | |
14781 | PyObject * obj5 = 0 ; | |
14782 | PyObject * obj6 = 0 ; | |
14783 | PyObject * obj7 = 0 ; | |
14784 | PyObject * obj8 = 0 ; | |
14785 | PyObject * obj9 = 0 ; | |
14786 | char *kwnames[] = { | |
14787 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14788 | }; | |
14789 | ||
8edf1c75 RD |
14790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
14791 | { | |
14792 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | } | |
14795 | { | |
14796 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
d14a1e28 RD |
14799 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14800 | { | |
14801 | arg4 = &temp4; | |
14802 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; | |
14803 | } | |
14804 | { | |
14805 | arg5 = &temp5; | |
14806 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; | |
14807 | } | |
14808 | if (obj5) { | |
2dbef272 | 14809 | { |
8edf1c75 | 14810 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
14811 | if (PyErr_Occurred()) SWIG_fail; |
14812 | } | |
d14a1e28 RD |
14813 | } |
14814 | if (obj6) { | |
2dbef272 | 14815 | { |
8edf1c75 | 14816 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
2dbef272 RD |
14817 | if (PyErr_Occurred()) SWIG_fail; |
14818 | } | |
d14a1e28 RD |
14819 | } |
14820 | if (obj7) { | |
2dbef272 | 14821 | { |
8edf1c75 | 14822 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); |
2dbef272 RD |
14823 | if (PyErr_Occurred()) SWIG_fail; |
14824 | } | |
d14a1e28 RD |
14825 | } |
14826 | if (obj8) { | |
2dbef272 | 14827 | { |
8edf1c75 | 14828 | arg9 = (bool) SWIG_PyObj_AsBool(obj8); |
2dbef272 RD |
14829 | if (PyErr_Occurred()) SWIG_fail; |
14830 | } | |
d14a1e28 RD |
14831 | } |
14832 | if (obj9) { | |
2dbef272 | 14833 | { |
8edf1c75 | 14834 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
2dbef272 RD |
14835 | if (PyErr_Occurred()) SWIG_fail; |
14836 | } | |
d14a1e28 RD |
14837 | } |
14838 | { | |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
14845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1); | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14855 | wxGridCellCoords result; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14863 | { | |
14864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14865 | result = (arg1)->GetTopLeftCoords(); | |
14866 | ||
14867 | wxPyEndAllowThreads(__tstate); | |
14868 | if (PyErr_Occurred()) SWIG_fail; | |
14869 | } | |
14870 | { | |
14871 | wxGridCellCoords * resultptr; | |
14872 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
14873 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
14874 | } | |
14875 | return resultobj; | |
14876 | fail: | |
14877 | return NULL; | |
14878 | } | |
14879 | ||
14880 | ||
14881 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14882 | PyObject *resultobj; | |
14883 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14884 | wxGridCellCoords result; | |
14885 | PyObject * obj0 = 0 ; | |
14886 | char *kwnames[] = { | |
14887 | (char *) "self", NULL | |
14888 | }; | |
14889 | ||
14890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; | |
14891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14892 | { | |
14893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14894 | result = (arg1)->GetBottomRightCoords(); | |
14895 | ||
14896 | wxPyEndAllowThreads(__tstate); | |
14897 | if (PyErr_Occurred()) SWIG_fail; | |
14898 | } | |
14899 | { | |
14900 | wxGridCellCoords * resultptr; | |
14901 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
14902 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1); | |
14903 | } | |
14904 | return resultobj; | |
14905 | fail: | |
14906 | return NULL; | |
14907 | } | |
14908 | ||
14909 | ||
14910 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14911 | PyObject *resultobj; | |
14912 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14913 | int result; | |
14914 | PyObject * obj0 = 0 ; | |
14915 | char *kwnames[] = { | |
14916 | (char *) "self", NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; | |
14920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14921 | { | |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14923 | result = (int)(arg1)->GetTopRow(); | |
14924 | ||
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
8edf1c75 | 14928 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14929 | return resultobj; |
14930 | fail: | |
14931 | return NULL; | |
14932 | } | |
14933 | ||
14934 | ||
14935 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14936 | PyObject *resultobj; | |
14937 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14938 | int result; | |
14939 | PyObject * obj0 = 0 ; | |
14940 | char *kwnames[] = { | |
14941 | (char *) "self", NULL | |
14942 | }; | |
14943 | ||
14944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; | |
14945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (int)(arg1)->GetBottomRow(); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
8edf1c75 | 14953 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14954 | return resultobj; |
14955 | fail: | |
14956 | return NULL; | |
14957 | } | |
14958 | ||
14959 | ||
14960 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14961 | PyObject *resultobj; | |
14962 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14963 | int result; | |
14964 | PyObject * obj0 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; | |
14970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14971 | { | |
14972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14973 | result = (int)(arg1)->GetLeftCol(); | |
14974 | ||
14975 | wxPyEndAllowThreads(__tstate); | |
14976 | if (PyErr_Occurred()) SWIG_fail; | |
14977 | } | |
8edf1c75 | 14978 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14979 | return resultobj; |
14980 | fail: | |
14981 | return NULL; | |
14982 | } | |
14983 | ||
14984 | ||
14985 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14986 | PyObject *resultobj; | |
14987 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14988 | int result; | |
14989 | PyObject * obj0 = 0 ; | |
14990 | char *kwnames[] = { | |
14991 | (char *) "self", NULL | |
14992 | }; | |
14993 | ||
14994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; | |
14995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14996 | { | |
14997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14998 | result = (int)(arg1)->GetRightCol(); | |
14999 | ||
15000 | wxPyEndAllowThreads(__tstate); | |
15001 | if (PyErr_Occurred()) SWIG_fail; | |
15002 | } | |
8edf1c75 | 15003 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15004 | return resultobj; |
15005 | fail: | |
15006 | return NULL; | |
15007 | } | |
15008 | ||
15009 | ||
15010 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15011 | PyObject *resultobj; | |
15012 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15013 | bool result; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | char *kwnames[] = { | |
15016 | (char *) "self", NULL | |
15017 | }; | |
15018 | ||
15019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; | |
15020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15021 | { | |
15022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15023 | result = (bool)(arg1)->Selecting(); | |
15024 | ||
15025 | wxPyEndAllowThreads(__tstate); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
02a34c4c | 15028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15029 | return resultobj; |
15030 | fail: | |
15031 | return NULL; | |
15032 | } | |
15033 | ||
15034 | ||
15035 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15036 | PyObject *resultobj; | |
15037 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15038 | bool result; | |
15039 | PyObject * obj0 = 0 ; | |
15040 | char *kwnames[] = { | |
15041 | (char *) "self", NULL | |
15042 | }; | |
15043 | ||
15044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15046 | { | |
15047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15048 | result = (bool)(arg1)->ControlDown(); | |
15049 | ||
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
02a34c4c | 15053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15054 | return resultobj; |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj; | |
15062 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15063 | bool result; | |
15064 | PyObject * obj0 = 0 ; | |
15065 | char *kwnames[] = { | |
15066 | (char *) "self", NULL | |
15067 | }; | |
15068 | ||
15069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | result = (bool)(arg1)->MetaDown(); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
02a34c4c | 15078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15079 | return resultobj; |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15088 | bool result; | |
15089 | PyObject * obj0 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15096 | { | |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15098 | result = (bool)(arg1)->ShiftDown(); | |
15099 | ||
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
02a34c4c | 15103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15104 | return resultobj; |
15105 | fail: | |
15106 | return NULL; | |
15107 | } | |
15108 | ||
15109 | ||
15110 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15111 | PyObject *resultobj; | |
15112 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15113 | bool result; | |
15114 | PyObject * obj0 = 0 ; | |
15115 | char *kwnames[] = { | |
15116 | (char *) "self", NULL | |
15117 | }; | |
15118 | ||
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; | |
15120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15121 | { | |
15122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15123 | result = (bool)(arg1)->AltDown(); | |
15124 | ||
15125 | wxPyEndAllowThreads(__tstate); | |
15126 | if (PyErr_Occurred()) SWIG_fail; | |
15127 | } | |
02a34c4c | 15128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15129 | return resultobj; |
15130 | fail: | |
15131 | return NULL; | |
15132 | } | |
15133 | ||
15134 | ||
15135 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) { | |
15136 | PyObject *obj; | |
15137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15138 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); | |
15139 | Py_INCREF(obj); | |
15140 | return Py_BuildValue((char *)""); | |
15141 | } | |
15142 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15143 | PyObject *resultobj; | |
15144 | int arg1 ; | |
15145 | wxEventType arg2 ; | |
15146 | wxObject *arg3 = (wxObject *) 0 ; | |
15147 | int arg4 ; | |
15148 | int arg5 ; | |
15149 | wxControl *arg6 = (wxControl *) 0 ; | |
15150 | wxGridEditorCreatedEvent *result; | |
8edf1c75 RD |
15151 | PyObject * obj0 = 0 ; |
15152 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15153 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
15154 | PyObject * obj3 = 0 ; |
15155 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15156 | PyObject * obj5 = 0 ; |
15157 | char *kwnames[] = { | |
15158 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL | |
15159 | }; | |
15160 | ||
8edf1c75 RD |
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15162 | { | |
15163 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
15168 | if (PyErr_Occurred()) SWIG_fail; | |
15169 | } | |
d14a1e28 | 15170 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15171 | { |
15172 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | { | |
15176 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15177 | if (PyErr_Occurred()) SWIG_fail; | |
15178 | } | |
d14a1e28 RD |
15179 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1); | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
15194 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15195 | PyObject *resultobj; | |
15196 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15197 | int result; | |
15198 | PyObject * obj0 = 0 ; | |
15199 | char *kwnames[] = { | |
15200 | (char *) "self", NULL | |
15201 | }; | |
15202 | ||
15203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; | |
15204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15205 | { | |
15206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15207 | result = (int)(arg1)->GetRow(); | |
15208 | ||
15209 | wxPyEndAllowThreads(__tstate); | |
15210 | if (PyErr_Occurred()) SWIG_fail; | |
15211 | } | |
8edf1c75 | 15212 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15213 | return resultobj; |
15214 | fail: | |
15215 | return NULL; | |
15216 | } | |
15217 | ||
15218 | ||
15219 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15220 | PyObject *resultobj; | |
15221 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15222 | int result; | |
15223 | PyObject * obj0 = 0 ; | |
15224 | char *kwnames[] = { | |
15225 | (char *) "self", NULL | |
15226 | }; | |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; | |
15229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15230 | { | |
15231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15232 | result = (int)(arg1)->GetCol(); | |
15233 | ||
15234 | wxPyEndAllowThreads(__tstate); | |
15235 | if (PyErr_Occurred()) SWIG_fail; | |
15236 | } | |
8edf1c75 | 15237 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15238 | return resultobj; |
15239 | fail: | |
15240 | return NULL; | |
15241 | } | |
15242 | ||
15243 | ||
15244 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15245 | PyObject *resultobj; | |
15246 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15247 | wxControl *result; | |
15248 | PyObject * obj0 = 0 ; | |
15249 | char *kwnames[] = { | |
15250 | (char *) "self", NULL | |
15251 | }; | |
15252 | ||
15253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; | |
15254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15255 | { | |
15256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15257 | result = (wxControl *)(arg1)->GetControl(); | |
15258 | ||
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15262 | { | |
15263 | resultobj = wxPyMake_wxObject(result); | |
15264 | } | |
15265 | return resultobj; | |
15266 | fail: | |
15267 | return NULL; | |
15268 | } | |
15269 | ||
15270 | ||
15271 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15272 | PyObject *resultobj; | |
15273 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15274 | int arg2 ; | |
15275 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15277 | char *kwnames[] = { |
15278 | (char *) "self",(char *) "row", NULL | |
15279 | }; | |
15280 | ||
8edf1c75 | 15281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15283 | { |
15284 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
d14a1e28 RD |
15287 | { |
15288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15289 | (arg1)->SetRow(arg2); | |
15290 | ||
15291 | wxPyEndAllowThreads(__tstate); | |
15292 | if (PyErr_Occurred()) SWIG_fail; | |
15293 | } | |
15294 | Py_INCREF(Py_None); resultobj = Py_None; | |
15295 | return resultobj; | |
15296 | fail: | |
15297 | return NULL; | |
15298 | } | |
15299 | ||
15300 | ||
15301 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15302 | PyObject *resultobj; | |
15303 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15304 | int arg2 ; | |
15305 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15306 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15307 | char *kwnames[] = { |
15308 | (char *) "self",(char *) "col", NULL | |
15309 | }; | |
15310 | ||
8edf1c75 | 15311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15313 | { |
15314 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15315 | if (PyErr_Occurred()) SWIG_fail; | |
15316 | } | |
d14a1e28 RD |
15317 | { |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | (arg1)->SetCol(arg2); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | Py_INCREF(Py_None); resultobj = Py_None; | |
15325 | return resultobj; | |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15334 | wxControl *arg2 = (wxControl *) 0 ; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | PyObject * obj1 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "self",(char *) "ctrl", NULL | |
15339 | }; | |
15340 | ||
15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
15342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15343 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15344 | { | |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | (arg1)->SetControl(arg2); | |
15347 | ||
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
15351 | Py_INCREF(Py_None); resultobj = Py_None; | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
15358 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) { | |
15359 | PyObject *obj; | |
15360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15361 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); | |
15362 | Py_INCREF(obj); | |
15363 | return Py_BuildValue((char *)""); | |
15364 | } | |
15365 | static PyMethodDef SwigMethods[] = { | |
15366 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15367 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15368 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15369 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15370 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS }, | |
15371 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
15372 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15373 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS }, | |
15374 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15375 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15376 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15377 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS }, | |
15378 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15379 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS }, | |
15380 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15381 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS }, | |
15382 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15383 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15384 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15385 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15386 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15387 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS }, | |
15388 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15389 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS }, | |
15390 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15391 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS }, | |
15392 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15393 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS }, | |
15394 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15395 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS }, | |
15396 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15397 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS }, | |
15398 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15399 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15400 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15401 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15402 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15403 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15404 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15405 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS }, | |
15406 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS }, | |
15407 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS }, | |
15408 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS }, | |
15409 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15410 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15411 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS }, | |
15412 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15413 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15414 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15415 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15416 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15417 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15418 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS }, | |
15419 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15420 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15421 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15422 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS }, | |
15423 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15424 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15425 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15426 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15427 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15428 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15429 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15430 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS }, | |
15431 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS }, | |
15432 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15433 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS }, | |
15434 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS }, | |
15435 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15436 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS }, | |
15437 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS }, | |
15438 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15439 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS }, | |
15440 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS }, | |
15441 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15442 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS }, | |
15443 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS }, | |
15444 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15445 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS }, | |
15446 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS }, | |
15447 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15448 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS }, | |
15449 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS }, | |
15450 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15451 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS }, | |
15452 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15453 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15454 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15455 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS }, | |
15456 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15457 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15458 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15459 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15460 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
15461 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15462 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15463 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15464 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15465 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15466 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15467 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
15468 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15469 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15470 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
15471 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15472 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15473 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS }, | |
15474 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS }, | |
15475 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS }, | |
15476 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15477 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15478 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
15479 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15480 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
15481 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15482 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15483 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15484 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15485 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS }, | |
15486 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS }, | |
15487 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15488 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15489 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15490 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15491 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15492 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15493 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS }, | |
15494 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS }, | |
15495 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS }, | |
15496 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15497 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15498 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15499 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15500 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15501 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15502 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS }, | |
15503 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15504 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15505 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15506 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS }, | |
15507 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS }, | |
15508 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15509 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15510 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS }, | |
15511 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15512 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
15513 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15514 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15515 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15516 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15517 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15518 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15519 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15520 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15521 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15522 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15523 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15524 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15525 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15526 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15527 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15528 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15529 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15530 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15531 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15532 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15533 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15534 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15535 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15536 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15537 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15538 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS }, | |
15539 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS }, | |
15540 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15541 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15542 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15543 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15544 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15545 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15546 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15547 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15548 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15549 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15550 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15551 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15552 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15553 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15554 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15555 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15556 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15557 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15558 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15559 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15560 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15561 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS }, | |
15562 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS }, | |
15563 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS }, | |
15564 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15565 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15566 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15567 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15568 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS }, | |
15569 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS }, | |
15570 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15571 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15572 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15573 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15574 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS }, | |
15575 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15576 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15577 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15578 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15579 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15580 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15581 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS }, | |
15582 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15583 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15584 | { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
15585 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS }, | |
15586 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS }, | |
15587 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS }, | |
15588 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15589 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15590 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15591 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15592 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15593 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS }, | |
15594 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS }, | |
15595 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS }, | |
15596 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15597 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15598 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15599 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15600 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15601 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15602 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS }, | |
15603 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS }, | |
15604 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS }, | |
15605 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS }, | |
15606 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS }, | |
15607 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS }, | |
15608 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS }, | |
15609 | { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
15610 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
15611 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS }, | |
15612 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15613 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15614 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS }, | |
15615 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15616 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS }, | |
15617 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15618 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15619 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15620 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS }, | |
15621 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS }, | |
15622 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS }, | |
15623 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS }, | |
15624 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS }, | |
15625 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS }, | |
15626 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS }, | |
15627 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS }, | |
15628 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS }, | |
15629 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
15630 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS }, | |
15631 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS }, | |
15632 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS }, | |
15633 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS }, | |
15634 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS }, | |
15635 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS }, | |
15636 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS }, | |
15637 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS }, | |
15638 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS }, | |
15639 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS }, | |
15640 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS }, | |
15641 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS }, | |
15642 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15643 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15644 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15645 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15646 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15647 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15648 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15649 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15650 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15651 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15652 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15653 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15654 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15655 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15656 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15657 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15658 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15659 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15660 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15661 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15662 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15663 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15664 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15665 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15666 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15667 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15668 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15669 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15670 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15671 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15672 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15673 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15674 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15675 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15676 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15677 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15678 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15679 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15680 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15681 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15682 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15683 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15684 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS }, | |
15685 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS }, | |
15686 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS }, | |
15687 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS }, | |
15688 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS }, | |
15689 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15690 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15691 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15692 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15693 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15694 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15695 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15696 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15697 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15698 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15699 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15700 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15701 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15702 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15703 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15704 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15705 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15706 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15707 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15708 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15709 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS }, | |
15710 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS }, | |
15711 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS }, | |
15712 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS }, | |
15713 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS }, | |
15714 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15715 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15716 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS }, | |
15717 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS }, | |
15718 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15719 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15720 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15721 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15722 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15723 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15724 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15725 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15726 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15727 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15728 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15729 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15730 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15731 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15732 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15733 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15734 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15735 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15736 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15737 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15738 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15739 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15740 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15741 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15742 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15743 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15744 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15745 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS }, | |
15746 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS }, | |
15747 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS }, | |
15748 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
15749 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
15750 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS }, | |
15751 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS }, | |
15752 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS }, | |
15753 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
15754 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
15755 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS }, | |
15756 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS }, | |
15757 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS }, | |
15758 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS }, | |
15759 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS }, | |
15760 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS }, | |
15761 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15762 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15763 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15764 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15765 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS }, | |
15766 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS }, | |
15767 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS }, | |
15768 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS }, | |
15769 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS }, | |
15770 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
15771 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS }, | |
15772 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15773 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15774 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15775 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS }, | |
15776 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS }, | |
15777 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15778 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15779 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15780 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15781 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15782 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15783 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15784 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15785 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS }, | |
15786 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
15787 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS }, | |
15788 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15789 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15790 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15791 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15792 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15793 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS }, | |
15794 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS }, | |
15795 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS }, | |
15796 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS }, | |
15797 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS }, | |
15798 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS }, | |
15799 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS }, | |
15800 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS }, | |
15801 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15802 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15803 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15804 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15805 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15806 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS }, | |
15807 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS }, | |
15808 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15809 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15810 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15811 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15812 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15813 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15814 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS }, | |
15815 | { NULL, NULL } | |
15816 | }; | |
15817 | ||
15818 | ||
15819 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
15820 | ||
15821 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { | |
15822 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); | |
15823 | } | |
15824 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15825 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); | |
15826 | } | |
15827 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { | |
15828 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15829 | } | |
15830 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { | |
15831 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15832 | } | |
15833 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { | |
15834 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); | |
15835 | } | |
15836 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { | |
15837 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15838 | } | |
15839 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { | |
15840 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15841 | } | |
15842 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15843 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15844 | } | |
15845 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15846 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15847 | } | |
15848 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15849 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15850 | } | |
15851 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15852 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15853 | } | |
15854 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15855 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15856 | } | |
15857 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15858 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15859 | } | |
15860 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
15861 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
15862 | } | |
15863 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
15864 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
15865 | } | |
15866 | static void *_p_wxGridTo_p_wxPanel(void *x) { | |
15867 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); | |
15868 | } | |
15869 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
15870 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
15871 | } | |
15872 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
15873 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
15874 | } | |
15875 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
15876 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
15877 | } | |
15878 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
15879 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15880 | } | |
15881 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
15882 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
15883 | } | |
15884 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
15885 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
15886 | } | |
15887 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { | |
15888 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
15889 | } | |
15890 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { | |
15891 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
15892 | } | |
15893 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
15894 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
15895 | } | |
15896 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { | |
15897 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); | |
15898 | } | |
15899 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { | |
15900 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); | |
15901 | } | |
15902 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
15903 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15904 | } | |
15905 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
15906 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
15907 | } | |
15908 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
15909 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
15910 | } | |
15911 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
15912 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
15913 | } | |
15914 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
15915 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
15916 | } | |
15917 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
15918 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
15919 | } | |
15920 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
15921 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
15922 | } | |
15923 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
15924 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
15925 | } | |
15926 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
15927 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
15928 | } | |
15929 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
15930 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
15931 | } | |
15932 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
15933 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
15934 | } | |
15935 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
15936 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
15937 | } | |
15938 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
15939 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
15940 | } | |
15941 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
15942 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
15943 | } | |
15944 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
15945 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
15946 | } | |
15947 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
15948 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
15949 | } | |
15950 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
15951 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
15952 | } | |
15953 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
15954 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
15955 | } | |
15956 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
15957 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
15958 | } | |
15959 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
15960 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
15961 | } | |
15962 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
15963 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
15964 | } | |
15965 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
15966 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
15967 | } | |
15968 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
15969 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
15970 | } | |
15971 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
15972 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
15973 | } | |
15974 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
15975 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
15976 | } | |
15977 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
15978 | return (void *)((wxWindow *) ((wxControl *) x)); | |
15979 | } | |
15980 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
15981 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
15982 | } | |
15983 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
15984 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
15985 | } | |
15986 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
15987 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
15988 | } | |
15989 | static void *_p_wxGridTo_p_wxWindow(void *x) { | |
15990 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
15991 | } | |
15992 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
15993 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
15994 | } | |
15995 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
15996 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
15997 | } | |
15998 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
15999 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16000 | } | |
16001 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
16002 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16003 | } | |
16004 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
16005 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16006 | } | |
16007 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
16008 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
16009 | } | |
16010 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
16011 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16012 | } | |
16013 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
16014 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
16015 | } | |
16016 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
16017 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16018 | } | |
16019 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
16020 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16021 | } | |
16022 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
16023 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16024 | } | |
16025 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
16026 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
16027 | } | |
16028 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
16029 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16030 | } | |
16031 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
16032 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16033 | } | |
16034 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
16035 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16036 | } | |
16037 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
16038 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
16039 | } | |
16040 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
16041 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16042 | } | |
16043 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
16044 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
16045 | } | |
16046 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
16047 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
16048 | } | |
16049 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
16050 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
16051 | } | |
16052 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
16053 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
16054 | } | |
16055 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
16056 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
16057 | } | |
16058 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
16059 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16060 | } | |
16061 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
16062 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
16063 | } | |
16064 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
16065 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
16066 | } | |
16067 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
16068 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16069 | } | |
16070 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
16071 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
16072 | } | |
16073 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
16074 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16075 | } | |
16076 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
16077 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16078 | } | |
16079 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { | |
16080 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16081 | } | |
16082 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
16083 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
16084 | } | |
16085 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
16086 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16087 | } | |
16088 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
16089 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16090 | } | |
16091 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
16092 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
16093 | } | |
16094 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
16095 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
16096 | } | |
16097 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
16098 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
16099 | } | |
16100 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
16101 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
16102 | } | |
16103 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
16104 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
16105 | } | |
16106 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { | |
16107 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16108 | } | |
16109 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
16110 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
16111 | } | |
16112 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
16113 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
16114 | } | |
16115 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
16116 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16117 | } | |
16118 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
16119 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16120 | } | |
16121 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
16122 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16123 | } | |
16124 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
16125 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16126 | } | |
16127 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
16128 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16129 | } | |
16130 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { | |
16131 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16132 | } | |
16133 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { | |
16134 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16135 | } | |
16136 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
16137 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
16138 | } | |
16139 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
16140 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
16141 | } | |
16142 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
16143 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16144 | } | |
16145 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
16146 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
16147 | } | |
16148 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
16149 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16150 | } | |
16151 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
16152 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
16153 | } | |
16154 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
16155 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
16156 | } | |
16157 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
16158 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16159 | } | |
16160 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
16161 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16162 | } | |
16163 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
16164 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16165 | } | |
16166 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
16167 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
16168 | } | |
16169 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
16170 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
16171 | } | |
16172 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
16173 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16174 | } | |
16175 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
16176 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16177 | } | |
16178 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
16179 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16180 | } | |
16181 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
16182 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16183 | } | |
16184 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
16185 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16186 | } | |
16187 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16188 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16189 | } | |
16190 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16191 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16192 | } | |
16193 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16194 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16195 | } | |
16196 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16197 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16198 | } | |
16199 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16200 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16201 | } | |
16202 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16203 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16204 | } | |
16205 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16206 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16207 | } | |
16208 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16209 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16210 | } | |
16211 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16212 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16213 | } | |
16214 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
16215 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16216 | } | |
16217 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16218 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16219 | } | |
16220 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
16221 | return (void *)((wxObject *) ((wxFontData *) x)); | |
16222 | } | |
16223 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
16224 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
16225 | } | |
16226 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16227 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16228 | } | |
16229 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16230 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16231 | } | |
16232 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16233 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16234 | } | |
16235 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
16236 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
16237 | } | |
16238 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
16239 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16240 | } | |
16241 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
16242 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16243 | } | |
16244 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { | |
16245 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); | |
16246 | } | |
16247 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16248 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16249 | } | |
16250 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16251 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16252 | } | |
16253 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16254 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16255 | } | |
16256 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16257 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16258 | } | |
16259 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16260 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16261 | } | |
16262 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16263 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16264 | } | |
16265 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
16266 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16267 | } | |
16268 | static void *_p_wxGridEventTo_p_wxObject(void *x) { | |
16269 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16270 | } | |
16271 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { | |
16272 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16273 | } | |
16274 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16275 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16276 | } | |
16277 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16278 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16279 | } | |
16280 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
16281 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16282 | } | |
16283 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16284 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16285 | } | |
16286 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
16287 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
16288 | } | |
16289 | static void *_p_wxGridTo_p_wxObject(void *x) { | |
16290 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16291 | } | |
16292 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16293 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16294 | } | |
16295 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
16296 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16297 | } | |
16298 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
16299 | return (void *)((wxObject *) ((wxColourData *) x)); | |
16300 | } | |
16301 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16302 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16303 | } | |
16304 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16305 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16306 | } | |
16307 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
16308 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
16309 | } | |
16310 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
16311 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16312 | } | |
16313 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
16314 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16315 | } | |
16316 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
16317 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16318 | } | |
16319 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
16320 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16321 | } | |
16322 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
16323 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16324 | } | |
16325 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
16326 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16327 | } | |
16328 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
16329 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16330 | } | |
16331 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
16332 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16333 | } | |
16334 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
16335 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
16336 | } | |
16337 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
16338 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
16339 | } | |
16340 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
16341 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
16342 | } | |
16343 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
16344 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
16345 | } | |
16346 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
16347 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16348 | } | |
16349 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
16350 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16351 | } | |
16352 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
16353 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
16354 | } | |
16355 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
16356 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
16357 | } | |
16358 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
16359 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
16360 | } | |
16361 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
16362 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
16363 | } | |
16364 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
16365 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
16366 | } | |
16367 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { | |
16368 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16369 | } | |
16370 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
16371 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
16372 | } | |
16373 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
16374 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
16375 | } | |
16376 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
16377 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
16378 | } | |
16379 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
16380 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
16381 | } | |
16382 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
16383 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
16384 | } | |
16385 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
16386 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
16387 | } | |
16388 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
16389 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
16390 | } | |
16391 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
16392 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
16393 | } | |
16394 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
16395 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
16396 | } | |
16397 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
16398 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
16399 | } | |
16400 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
16401 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
16402 | } | |
16403 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
16404 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
16405 | } | |
16406 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
16407 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
16408 | } | |
16409 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
16410 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16411 | } | |
16412 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { | |
16413 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16414 | } | |
16415 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
16416 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16417 | } | |
16418 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
16419 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16420 | } | |
16421 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
16422 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
16423 | } | |
16424 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
16425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16426 | } | |
16427 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
16428 | return (void *)((wxObject *) ((wxImage *) x)); | |
16429 | } | |
16430 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
16431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16432 | } | |
16433 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
16434 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
16435 | } | |
16436 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
16437 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
16438 | } | |
16439 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
16440 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16441 | } | |
16442 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
16443 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
16444 | } | |
16445 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
16446 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16447 | } | |
16448 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
16449 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16450 | } | |
16451 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
16452 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16453 | } | |
16454 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
16455 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
16456 | } | |
d14a1e28 RD |
16457 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
16458 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
16459 | } | |
16460 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
16461 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
16462 | } | |
16463 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
16464 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
16465 | } | |
41f1cec7 RD |
16466 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
16467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16468 | } | |
d14a1e28 RD |
16469 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
16470 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
16471 | } | |
16472 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
16473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
16474 | } | |
16475 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
16476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
16477 | } | |
16478 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
16479 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
16480 | } | |
16481 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
16482 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16483 | } | |
16484 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
16485 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
16486 | } | |
16487 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
16488 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16489 | } | |
16490 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
16491 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
16492 | } | |
16493 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
16494 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16495 | } | |
16496 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
16497 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
16498 | } | |
16499 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
16500 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
16501 | } | |
16502 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
16503 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
16504 | } | |
16505 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
16506 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
16507 | } | |
16508 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
16509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
16510 | } | |
16511 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
16512 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16513 | } | |
16514 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
16515 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16516 | } | |
16517 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
16518 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16519 | } | |
16520 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
16521 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16522 | } | |
16523 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
16524 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16525 | } | |
16526 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
16527 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16528 | } | |
16529 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
16530 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
16531 | } | |
16532 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
16533 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16534 | } | |
16535 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
16536 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
16537 | } | |
16538 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
16539 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
16540 | } | |
16541 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
16542 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
16543 | } | |
16544 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
16545 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
16546 | } | |
16547 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
16548 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
16549 | } | |
16550 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { | |
16551 | return (void *)((wxObject *) ((wxGridTableBase *) x)); | |
16552 | } | |
16553 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { | |
16554 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16555 | } | |
16556 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
16557 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16558 | } | |
16559 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
16560 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
16561 | } | |
16562 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
16563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16564 | } | |
16565 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
16566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16567 | } | |
16568 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
16569 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
16570 | } | |
16571 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
16572 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
16573 | } | |
16574 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
16575 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16576 | } | |
16577 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
16578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16579 | } | |
16580 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
16581 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
16582 | } | |
16583 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
16584 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
16585 | } | |
16586 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
16587 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
16588 | } | |
16589 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
16590 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
16591 | } | |
16592 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
16593 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16594 | } | |
16595 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
16596 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16597 | } | |
16598 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
16599 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16600 | } | |
16601 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
16602 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
16603 | } | |
16604 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
16605 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
16606 | } | |
16607 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
16608 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
16609 | } | |
16610 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
16611 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
16612 | } | |
16613 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
16614 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16615 | } | |
16616 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16617 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16618 | } | |
16619 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16620 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16621 | } | |
16622 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
16623 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16624 | } | |
16625 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
16626 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16627 | } | |
16628 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
16629 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16630 | } | |
16631 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
16632 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16633 | } | |
16634 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
16635 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
16636 | } | |
16637 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
16638 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
16639 | } | |
16640 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16641 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16642 | } | |
16643 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
16644 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
16645 | } | |
16646 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
16647 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16648 | } | |
16649 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
16650 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
16651 | } | |
16652 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
16653 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16654 | } | |
16655 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
16656 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
16657 | } | |
16658 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
16659 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
16660 | } | |
16661 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
16662 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
16663 | } | |
16664 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
16665 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
16666 | } | |
16667 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16668 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16669 | } | |
16670 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
16671 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
16672 | } | |
16673 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
16674 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
16675 | } | |
16676 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
16677 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
16678 | } | |
16679 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16680 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16681 | } | |
16682 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16683 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16684 | } | |
16685 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
16686 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16687 | } | |
16688 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
16689 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
16690 | } | |
16691 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { | |
16692 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16693 | } | |
16694 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
16695 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16696 | } | |
16697 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
16698 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
16699 | } | |
16700 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
16701 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16702 | } | |
16703 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
16704 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16705 | } | |
16706 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
16707 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16708 | } | |
16709 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16711 | } | |
16712 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16713 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16714 | } | |
16715 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
16716 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16717 | } | |
16718 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
16719 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16720 | } | |
16721 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
16722 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16723 | } | |
16724 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
16725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16726 | } | |
16727 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
16728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16729 | } | |
16730 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
16731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16732 | } | |
16733 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
16734 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16735 | } | |
16736 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
16737 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16738 | } | |
16739 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
16740 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16741 | } | |
16742 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { | |
16743 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); | |
16744 | } | |
16745 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { | |
16746 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16747 | } | |
16748 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { | |
16749 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); | |
16750 | } | |
16751 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { | |
16752 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); | |
16753 | } | |
16754 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { | |
16755 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16756 | } | |
16757 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { | |
16758 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16759 | } | |
16760 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { | |
16761 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); | |
16762 | } | |
16763 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { | |
16764 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); | |
16765 | } | |
16766 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { | |
16767 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16768 | } | |
16769 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { | |
16770 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16771 | } | |
16772 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { | |
16773 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16774 | } | |
16775 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { | |
16776 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16777 | } | |
16778 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { | |
16779 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16780 | } | |
16781 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
16782 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
16783 | } | |
16784 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
16785 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16786 | } | |
16787 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
16788 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16789 | } | |
16790 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
16791 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
16792 | } | |
16793 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
16794 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16795 | } | |
16796 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
16797 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16798 | } | |
16799 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
16800 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16801 | } | |
16802 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { | |
16803 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16804 | } | |
16805 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { | |
16806 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16807 | } | |
16808 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
16809 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16810 | } | |
16811 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { | |
16812 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); | |
16813 | } | |
16814 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { | |
16815 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16816 | } | |
16817 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
16818 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16819 | } | |
16820 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
16821 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16822 | } | |
16823 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
16824 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16825 | } | |
16826 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { | |
16827 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); | |
16828 | } | |
16829 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { | |
16830 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16831 | } | |
16832 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}}; | |
16833 | static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}}; | |
16834 | static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}}; | |
16835 | static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}}; | |
16836 | static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}}; | |
16837 | static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}}; | |
16838 | static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}}; | |
16839 | 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}}; | |
16840 | 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}}; | |
16841 | static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}}; | |
16842 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
16843 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
16844 | static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}}; | |
16845 | static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}}; | |
8edf1c75 | 16846 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
16847 | 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}}; |
16848 | 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}}; | |
16849 | static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}}; | |
16850 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
16851 | static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}}; | |
16852 | 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}}; | |
16853 | 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}}; | |
16854 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
16855 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
16856 | 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}}; | |
16857 | 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}}; | |
16858 | static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}}; | |
16859 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
16860 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
16861 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
16862 | 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}}; | |
16863 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
16864 | static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}}; | |
16865 | static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}}; | |
16866 | 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}}; | |
d14a1e28 RD |
16867 | static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}}; |
16868 | static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}}; | |
16869 | 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}}; | |
16870 | 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}}; | |
8edf1c75 | 16871 | static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}}; |
d14a1e28 RD |
16872 | static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}}; |
16873 | static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}}; | |
16874 | static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}}; | |
16875 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
16876 | 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}}; | |
16877 | static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}}; | |
16878 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
16879 | static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}}; | |
16880 | static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}}; | |
16881 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}}; | |
16882 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
16883 | static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}}; | |
16884 | ||
16885 | static swig_type_info *swig_types_initial[] = { | |
16886 | _swigt__p_wxGridCellAutoWrapStringRenderer, | |
16887 | _swigt__p_wxGridCellEnumRenderer, | |
16888 | _swigt__p_wxGridCellDateTimeRenderer, | |
16889 | _swigt__p_wxGridCellBoolRenderer, | |
16890 | _swigt__p_wxGridCellFloatRenderer, | |
16891 | _swigt__p_wxGridCellNumberRenderer, | |
16892 | _swigt__p_wxPyGridCellRenderer, | |
16893 | _swigt__p_wxGridCellRenderer, | |
16894 | _swigt__p_wxGridCellStringRenderer, | |
16895 | _swigt__p_wxGridCellAttr, | |
16896 | _swigt__p_wxColour, | |
16897 | _swigt__p_wxDC, | |
16898 | _swigt__p_wxGridTableMessage, | |
16899 | _swigt__p_wxGrid, | |
8edf1c75 | 16900 | _swigt__p_char, |
d14a1e28 RD |
16901 | _swigt__p_wxPanel, |
16902 | _swigt__p_wxNotifyEvent, | |
16903 | _swigt__p_wxGridRangeSelectEvent, | |
16904 | _swigt__p_wxSize, | |
16905 | _swigt__p_wxGridCellCoords, | |
16906 | _swigt__p_wxScrolledWindow, | |
16907 | _swigt__p_wxWindow, | |
16908 | _swigt__p_wxFont, | |
16909 | _swigt__p_wxControl, | |
16910 | _swigt__p_wxEvent, | |
16911 | _swigt__p_wxObject, | |
16912 | _swigt__p_wxGridSizeEvent, | |
16913 | _swigt__p_wxRect, | |
16914 | _swigt__p_long, | |
16915 | _swigt__p_wxString, | |
16916 | _swigt__p_wxEvtHandler, | |
16917 | _swigt__p_wxPoint, | |
16918 | _swigt__p_wxGridEvent, | |
16919 | _swigt__p_wxGridEditorCreatedEvent, | |
16920 | _swigt__p_wxGridTableBase, | |
d14a1e28 RD |
16921 | _swigt__p_wxGridCellNumberEditor, |
16922 | _swigt__p_wxPyGridCellEditor, | |
16923 | _swigt__p_wxGridCellEditor, | |
16924 | _swigt__p_wxGridCellTextEditor, | |
8edf1c75 | 16925 | _swigt__p_wxGridCellFloatEditor, |
d14a1e28 RD |
16926 | _swigt__p_wxGridCellBoolEditor, |
16927 | _swigt__p_wxPyGridTableBase, | |
16928 | _swigt__p_wxGridStringTable, | |
16929 | _swigt__p_wxArrayString, | |
16930 | _swigt__p_wxCommandEvent, | |
16931 | _swigt__p_wxGridCellAttrProvider, | |
16932 | _swigt__p_wxKeyEvent, | |
16933 | _swigt__p_wxGridCellChoiceEditor, | |
16934 | _swigt__p_wxGridCellEnumEditor, | |
16935 | _swigt__p_wxGridCellAutoWrapStringEditor, | |
16936 | _swigt__p_int, | |
16937 | _swigt__p_wxPyGridCellAttrProvider, | |
16938 | 0 | |
16939 | }; | |
16940 | ||
16941 | ||
16942 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
16943 | ||
16944 | static swig_const_info swig_const_table[] = { | |
16945 | { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0}, | |
16946 | { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0}, | |
16947 | { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0}, | |
16948 | { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0}, | |
16949 | { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0}, | |
16950 | { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0}, | |
16951 | { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0}, | |
16952 | { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0}, | |
16953 | { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0}, | |
d14a1e28 RD |
16954 | {0}}; |
16955 | ||
16956 | #ifdef __cplusplus | |
16957 | } | |
16958 | #endif | |
16959 | ||
16960 | #ifdef __cplusplus | |
16961 | extern "C" | |
16962 | #endif | |
16963 | SWIGEXPORT(void) SWIG_init(void) { | |
16964 | static PyObject *SWIG_globals = 0; | |
16965 | static int typeinit = 0; | |
16966 | PyObject *m, *d; | |
16967 | int i; | |
16968 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
16969 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
16970 | d = PyModule_GetDict(m); | |
16971 | ||
16972 | if (!typeinit) { | |
16973 | for (i = 0; swig_types_initial[i]; i++) { | |
16974 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
16975 | } | |
16976 | typeinit = 1; | |
16977 | } | |
16978 | SWIG_InstallConstants(d,swig_const_table); | |
16979 | ||
16980 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
cbd72d4f | 16981 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); |
d14a1e28 RD |
16982 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); |
16983 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); | |
8edf1c75 RD |
16984 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_PyObj_FromInt((int)wxGridCellAttr::Any)); |
16985 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_PyObj_FromInt((int)wxGridCellAttr::Default)); | |
16986 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_PyObj_FromInt((int)wxGridCellAttr::Cell)); | |
16987 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_PyObj_FromInt((int)wxGridCellAttr::Row)); | |
16988 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_PyObj_FromInt((int)wxGridCellAttr::Col)); | |
16989 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_PyObj_FromInt((int)wxGridCellAttr::Merged)); | |
16990 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); | |
16991 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); | |
16992 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); | |
16993 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); | |
16994 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); | |
16995 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); | |
16996 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); | |
16997 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); | |
16998 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectCells)); | |
16999 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectRows)); | |
17000 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectColumns)); | |
d14a1e28 RD |
17001 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); |
17002 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); | |
17003 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); | |
17004 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); | |
17005 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); | |
17006 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); | |
17007 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); | |
17008 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); | |
17009 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); | |
17010 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); | |
17011 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); | |
17012 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); | |
17013 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); | |
17014 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); | |
17015 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); | |
17016 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); | |
17017 | ||
17018 | ||
17019 | } | |
17020 |