]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0] | |
210 | #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1] | |
211 | #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2] | |
212 | #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3] | |
213 | #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4] | |
214 | #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5] | |
215 | #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6] | |
216 | #define SWIGTYPE_p_wxGridCellRenderer swig_types[7] | |
217 | #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridCellAttr swig_types[9] | |
219 | #define SWIGTYPE_p_wxColour swig_types[10] | |
220 | #define SWIGTYPE_p_wxDC swig_types[11] | |
221 | #define SWIGTYPE_p_wxGridTableMessage swig_types[12] | |
222 | #define SWIGTYPE_p_wxGrid swig_types[13] | |
223 | #define SWIGTYPE_p_wxVisualAttributes swig_types[14] | |
224 | #define SWIGTYPE_p_char swig_types[15] | |
225 | #define SWIGTYPE_p_wxPanel swig_types[16] | |
226 | #define SWIGTYPE_p_wxNotifyEvent swig_types[17] | |
227 | #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[18] | |
228 | #define SWIGTYPE_p_wxSize swig_types[19] | |
229 | #define SWIGTYPE_p_wxGridCellCoords swig_types[20] | |
230 | #define SWIGTYPE_p_wxScrolledWindow swig_types[21] | |
231 | #define SWIGTYPE_p_wxWindow swig_types[22] | |
232 | #define SWIGTYPE_p_wxFont swig_types[23] | |
233 | #define SWIGTYPE_p_wxControl swig_types[24] | |
234 | #define SWIGTYPE_p_wxEvent swig_types[25] | |
235 | #define SWIGTYPE_p_wxObject swig_types[26] | |
236 | #define SWIGTYPE_p_wxGridSizeEvent swig_types[27] | |
237 | #define SWIGTYPE_p_wxRect swig_types[28] | |
238 | #define SWIGTYPE_p_long swig_types[29] | |
239 | #define SWIGTYPE_p_wxString swig_types[30] | |
240 | #define SWIGTYPE_p_wxEvtHandler swig_types[31] | |
241 | #define SWIGTYPE_p_wxPoint swig_types[32] | |
242 | #define SWIGTYPE_p_wxGridEvent swig_types[33] | |
243 | #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[34] | |
244 | #define SWIGTYPE_p_wxGridTableBase swig_types[35] | |
245 | #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[36] | |
246 | #define SWIGTYPE_p_wxPyGridCellEditor swig_types[37] | |
247 | #define SWIGTYPE_p_wxGridCellEditor swig_types[38] | |
248 | #define SWIGTYPE_p_wxGridCellTextEditor swig_types[39] | |
249 | #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[40] | |
250 | #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[41] | |
251 | #define SWIGTYPE_p_wxPyGridTableBase swig_types[42] | |
252 | #define SWIGTYPE_p_wxGridStringTable swig_types[43] | |
253 | #define SWIGTYPE_p_wxArrayString swig_types[44] | |
254 | #define SWIGTYPE_p_wxCommandEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[46] | |
256 | #define SWIGTYPE_p_wxKeyEvent swig_types[47] | |
257 | #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[48] | |
258 | #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[49] | |
259 | #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[50] | |
260 | #define SWIGTYPE_p_int swig_types[51] | |
261 | #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[52] | |
262 | static swig_type_info *swig_types[54]; | |
263 | ||
264 | /* -------- TYPES TABLE (END) -------- */ | |
265 | ||
266 | ||
267 | /*----------------------------------------------- | |
268 | @(target):= _grid.so | |
269 | ------------------------------------------------*/ | |
270 | #define SWIG_init init_grid | |
271 | ||
272 | #define SWIG_name "_grid" | |
273 | ||
274 | /* Auxiliar swig macros */ | |
275 | ||
276 | #ifdef __cplusplus | |
277 | #define SWIGSTATICINLINE(a) static inline a | |
278 | #define SWIGSTATIC(a) static a | |
279 | #define swig_new_array(type, size) (new type[(size)]) | |
280 | #define swig_delete_array(cptr) delete[] cptr | |
281 | #define swig_const_cast(type,a) const_cast<type>(a) | |
282 | #define swig_static_cast(type,a) static_cast<type>(a) | |
283 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
284 | ||
285 | #ifdef HAVE_NUMERIC_CAST | |
286 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
287 | #else | |
288 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
289 | #endif | |
290 | ||
291 | #else /* C case */ | |
292 | ||
293 | #define SWIGSTATICINLINE(a) static a | |
294 | #define SWIGSTATIC(a) static a | |
295 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
296 | #define swig_delete_array(cptr) free((char*)cptr) | |
297 | #define swig_const_cast(type,a) (type)(a) | |
298 | #define swig_static_cast(type,a) (type)(a) | |
299 | #define swig_reinterpret_cast(type,a) (type)(a) | |
300 | #define swig_numeric_cast(type,a) (type)(a) | |
301 | ||
302 | #endif /* __cplusplus */ | |
303 | ||
304 | ||
305 | #define SWIG_FromSignedChar PyInt_FromLong | |
306 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
307 | #define SWIG_FromShort PyInt_FromLong | |
308 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
309 | #define SWIG_FromInt PyInt_FromLong | |
310 | #define SWIG_FromLong PyInt_FromLong | |
311 | #define SWIG_FromFloat PyFloat_FromDouble | |
312 | #define SWIG_FromDouble PyFloat_FromDouble | |
313 | #define SWIG_FromFloat PyFloat_FromDouble | |
314 | #define SWIG_FromDouble PyFloat_FromDouble | |
315 | ||
316 | ||
317 | #include "wx/wxPython/wxPython.h" | |
318 | #include "wx/wxPython/pyclasses.h" | |
319 | #include "wx/wxPython/printfw.h" | |
320 | ||
321 | #include <wx/grid.h> | |
322 | #include <wx/generic/gridctrl.h> | |
323 | ||
324 | ||
325 | static const wxString wxPyEmptyString(wxEmptyString); | |
326 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
327 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); | |
328 | ||
329 | ||
330 | #define wxPyMake_TEMPLATE(TYPE) \ | |
331 | PyObject* wxPyMake_##TYPE(TYPE* source) { \ | |
332 | PyObject* target = NULL; \ | |
333 | if (source) { \ | |
334 | /* Check if there is already a pointer to a Python object in the \ | |
335 | OOR data that we can use. */ \ | |
336 | wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \ | |
337 | if (data) { \ | |
338 | target = data->m_obj; \ | |
339 | Py_INCREF(target); \ | |
340 | } \ | |
341 | /* Otherwise make a new wrapper for it the old fashioned way and \ | |
342 | give it the OOR treatment */ \ | |
343 | if (! target) { \ | |
344 | target = wxPyConstructObject(source, wxT(#TYPE), False); \ | |
345 | if (target) \ | |
346 | source->SetClientObject(new wxPyOORClientData(target)); \ | |
347 | } \ | |
348 | } else { /* source was NULL so return None. */ \ | |
349 | Py_INCREF(Py_None); target = Py_None; \ | |
350 | } \ | |
351 | return target; \ | |
352 | } \ | |
353 | ||
354 | ||
355 | wxPyMake_TEMPLATE(wxGridCellRenderer) | |
356 | wxPyMake_TEMPLATE(wxGridCellEditor) | |
357 | wxPyMake_TEMPLATE(wxGridCellAttr) | |
358 | wxPyMake_TEMPLATE(wxGridCellAttrProvider) | |
359 | wxPyMake_TEMPLATE(wxGridTableBase) | |
360 | ||
361 | ||
362 | ||
363 | #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \ | |
364 | wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
365 | wxGridCellAttr* rval = NULL; \ | |
366 | bool found; \ | |
367 | bool blocked = wxPyBeginBlockThreads(); \ | |
368 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
369 | PyObject* ro; \ | |
370 | wxGridCellAttr* ptr; \ | |
371 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \ | |
372 | if (ro) { \ | |
373 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \ | |
374 | rval = ptr; \ | |
375 | Py_DECREF(ro); \ | |
376 | } \ | |
377 | } \ | |
378 | wxPyEndBlockThreads(blocked); \ | |
379 | if (! found) \ | |
380 | rval = PCLASS::CBNAME(a, b, c); \ | |
381 | return rval; \ | |
382 | } \ | |
383 | wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
384 | return PCLASS::CBNAME(a, b, c); \ | |
385 | } | |
386 | ||
387 | ||
388 | ||
389 | #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \ | |
390 | void CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
391 | bool blocked = wxPyBeginBlockThreads(); \ | |
392 | bool found; \ | |
393 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
394 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
395 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \ | |
396 | Py_DECREF(obj); \ | |
397 | } \ | |
398 | wxPyEndBlockThreads(blocked); \ | |
399 | if (! found) \ | |
400 | PCLASS::CBNAME(attr, a, b); \ | |
401 | } \ | |
402 | void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
403 | PCLASS::CBNAME(attr, a, b); \ | |
404 | } | |
405 | ||
406 | ||
407 | ||
408 | #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \ | |
409 | void CBNAME(wxGridCellAttr *attr, int val) { \ | |
410 | bool blocked = wxPyBeginBlockThreads(); \ | |
411 | bool found; \ | |
412 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
413 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
414 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \ | |
415 | Py_DECREF(obj); \ | |
416 | } \ | |
417 | wxPyEndBlockThreads(blocked); \ | |
418 | if (! found) \ | |
419 | PCLASS::CBNAME(attr, val); \ | |
420 | } \ | |
421 | void base_##CBNAME(wxGridCellAttr *attr, int val) { \ | |
422 | PCLASS::CBNAME(attr, val); \ | |
423 | } | |
424 | ||
425 | ||
426 | ||
427 | #define PYCALLBACK_INT__pure(CBNAME) \ | |
428 | int CBNAME() { \ | |
429 | bool blocked = wxPyBeginBlockThreads(); \ | |
430 | int rval = 0; \ | |
431 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
432 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
433 | wxPyEndBlockThreads(blocked); \ | |
434 | return rval; \ | |
435 | } | |
436 | ||
437 | ||
438 | ||
439 | #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \ | |
440 | bool CBNAME(int a, int b) { \ | |
441 | bool blocked = wxPyBeginBlockThreads(); \ | |
442 | bool rval = 0; \ | |
443 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
444 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
445 | wxPyEndBlockThreads(blocked); \ | |
446 | return rval; \ | |
447 | } | |
448 | ||
449 | ||
450 | #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \ | |
451 | wxString CBNAME(int a, int b) { \ | |
452 | bool blocked = wxPyBeginBlockThreads(); \ | |
453 | wxString rval; \ | |
454 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
455 | PyObject* ro; \ | |
456 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
457 | if (ro) { \ | |
458 | rval = Py2wxString(ro); \ | |
459 | Py_DECREF(ro); \ | |
460 | } \ | |
461 | } \ | |
462 | wxPyEndBlockThreads(blocked); \ | |
463 | return rval; \ | |
464 | } | |
465 | ||
466 | ||
467 | #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \ | |
468 | void CBNAME(int a, int b, const wxString& c) { \ | |
469 | bool blocked = wxPyBeginBlockThreads(); \ | |
470 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
471 | PyObject* s = wx2PyString(c); \ | |
472 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
473 | Py_DECREF(s); \ | |
474 | } \ | |
475 | wxPyEndBlockThreads(blocked); \ | |
476 | } | |
477 | ||
478 | ||
479 | #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \ | |
480 | wxString CBNAME(int a, int b) { \ | |
481 | bool found; \ | |
482 | bool blocked = wxPyBeginBlockThreads(); \ | |
483 | wxString rval; \ | |
484 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
485 | PyObject* ro; \ | |
486 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
487 | if (ro) { \ | |
488 | rval = Py2wxString(ro); \ | |
489 | Py_DECREF(ro); \ | |
490 | } \ | |
491 | } \ | |
492 | wxPyEndBlockThreads(blocked); \ | |
493 | if (! found) \ | |
494 | rval = PCLASS::CBNAME(a, b); \ | |
495 | return rval; \ | |
496 | } \ | |
497 | wxString base_##CBNAME(int a, int b) { \ | |
498 | return PCLASS::CBNAME(a, b); \ | |
499 | } | |
500 | ||
501 | ||
502 | #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ | |
503 | bool CBNAME(int a, int b, const wxString& c) { \ | |
504 | bool rval = 0; \ | |
505 | bool found; \ | |
506 | bool blocked = wxPyBeginBlockThreads(); \ | |
507 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
508 | PyObject* s = wx2PyString(c); \ | |
509 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
510 | Py_DECREF(s); \ | |
511 | } \ | |
512 | wxPyEndBlockThreads(blocked); \ | |
513 | if (! found) \ | |
514 | rval = PCLASS::CBNAME(a,b,c); \ | |
515 | return rval; \ | |
516 | } \ | |
517 | bool base_##CBNAME(int a, int b, const wxString& c) { \ | |
518 | return PCLASS::CBNAME(a,b,c); \ | |
519 | } | |
520 | ||
521 | ||
522 | ||
523 | ||
524 | #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \ | |
525 | long CBNAME(int a, int b) { \ | |
526 | long rval; \ | |
527 | bool found; \ | |
528 | bool blocked = wxPyBeginBlockThreads(); \ | |
529 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
530 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
531 | wxPyEndBlockThreads(blocked); \ | |
532 | if (! found) \ | |
533 | rval = PCLASS::CBNAME(a,b); \ | |
534 | return rval; \ | |
535 | } \ | |
536 | long base_##CBNAME(int a, int b) { \ | |
537 | return PCLASS::CBNAME(a,b); \ | |
538 | } | |
539 | ||
540 | ||
541 | ||
542 | #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ | |
543 | bool CBNAME(int a, int b) { \ | |
544 | bool rval = 0; \ | |
545 | bool found; \ | |
546 | bool blocked = wxPyBeginBlockThreads(); \ | |
547 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
548 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
549 | wxPyEndBlockThreads(blocked); \ | |
550 | if (! found) \ | |
551 | rval = PCLASS::CBNAME(a,b); \ | |
552 | return rval; \ | |
553 | } \ | |
554 | bool base_##CBNAME(int a, int b) { \ | |
555 | return PCLASS::CBNAME(a,b); \ | |
556 | } | |
557 | ||
558 | ||
559 | ||
560 | #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \ | |
561 | double CBNAME(int a, int b) { \ | |
562 | bool found; \ | |
563 | bool blocked = wxPyBeginBlockThreads(); \ | |
564 | double rval; \ | |
565 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
566 | PyObject* ro; \ | |
567 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
568 | if (ro) { \ | |
569 | PyObject* str = PyObject_Str(ro); \ | |
570 | rval = PyFloat_AsDouble(str); \ | |
571 | Py_DECREF(ro); Py_DECREF(str); \ | |
572 | } \ | |
573 | } \ | |
574 | wxPyEndBlockThreads(blocked); \ | |
575 | if (! found) \ | |
576 | rval = PCLASS::CBNAME(a, b); \ | |
577 | return rval; \ | |
578 | } \ | |
579 | double base_##CBNAME(int a, int b) { \ | |
580 | return PCLASS::CBNAME(a, b); \ | |
581 | } | |
582 | ||
583 | ||
584 | ||
585 | #define PYCALLBACK__(PCLASS, CBNAME) \ | |
586 | void CBNAME() { \ | |
587 | bool found; \ | |
588 | bool blocked = wxPyBeginBlockThreads(); \ | |
589 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
590 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
591 | wxPyEndBlockThreads(blocked); \ | |
592 | if (! found) \ | |
593 | PCLASS::CBNAME(); \ | |
594 | } \ | |
595 | void base_##CBNAME() { \ | |
596 | PCLASS::CBNAME(); \ | |
597 | } | |
598 | ||
599 | ||
600 | ||
601 | ||
602 | #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ | |
603 | bool CBNAME(size_t a, size_t b) { \ | |
604 | bool rval = 0; \ | |
605 | bool found; \ | |
606 | bool blocked = wxPyBeginBlockThreads(); \ | |
607 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
608 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
609 | wxPyEndBlockThreads(blocked); \ | |
610 | if (! found) \ | |
611 | rval = PCLASS::CBNAME(a,b); \ | |
612 | return rval; \ | |
613 | } \ | |
614 | bool base_##CBNAME(size_t a, size_t b) { \ | |
615 | return PCLASS::CBNAME(a,b); \ | |
616 | } | |
617 | ||
618 | ||
619 | ||
620 | #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ | |
621 | bool CBNAME(size_t a) { \ | |
622 | bool rval = 0; \ | |
623 | bool found; \ | |
624 | bool blocked = wxPyBeginBlockThreads(); \ | |
625 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
626 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ | |
627 | wxPyEndBlockThreads(blocked); \ | |
628 | if (! found) \ | |
629 | rval = PCLASS::CBNAME(a); \ | |
630 | return rval; \ | |
631 | } \ | |
632 | bool base_##CBNAME(size_t a) { \ | |
633 | return PCLASS::CBNAME(a); \ | |
634 | } | |
635 | ||
636 | ||
637 | #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \ | |
638 | wxString CBNAME(int a) { \ | |
639 | bool found; \ | |
640 | bool blocked = wxPyBeginBlockThreads(); \ | |
641 | wxString rval; \ | |
642 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
643 | PyObject* ro; \ | |
644 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \ | |
645 | if (ro) { \ | |
646 | rval = Py2wxString(ro); \ | |
647 | Py_DECREF(ro); \ | |
648 | } \ | |
649 | } \ | |
650 | wxPyEndBlockThreads(blocked); \ | |
651 | if (! found) \ | |
652 | rval = PCLASS::CBNAME(a); \ | |
653 | return rval; \ | |
654 | } \ | |
655 | wxString base_##CBNAME(int a) { \ | |
656 | return PCLASS::CBNAME(a); \ | |
657 | } | |
658 | ||
659 | ||
660 | #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \ | |
661 | void CBNAME(int a, const wxString& c) { \ | |
662 | bool found; \ | |
663 | bool blocked = wxPyBeginBlockThreads(); \ | |
664 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
665 | PyObject* s = wx2PyString(c); \ | |
666 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \ | |
667 | Py_DECREF(s); \ | |
668 | } \ | |
669 | wxPyEndBlockThreads(blocked); \ | |
670 | if (! found) \ | |
671 | PCLASS::CBNAME(a,c); \ | |
672 | } \ | |
673 | void base_##CBNAME(int a, const wxString& c) { \ | |
674 | PCLASS::CBNAME(a,c); \ | |
675 | } | |
676 | ||
677 | ||
678 | ||
679 | ||
680 | #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ | |
681 | bool CBNAME() { \ | |
682 | bool rval = 0; \ | |
683 | bool found; \ | |
684 | bool blocked = wxPyBeginBlockThreads(); \ | |
685 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
686 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
687 | wxPyEndBlockThreads(blocked); \ | |
688 | if (! found) \ | |
689 | rval = PCLASS::CBNAME(); \ | |
690 | return rval; \ | |
691 | } \ | |
692 | bool base_##CBNAME() { \ | |
693 | return PCLASS::CBNAME(); \ | |
694 | } | |
695 | ||
696 | ||
697 | ||
698 | #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \ | |
699 | void CBNAME(size_t a, int b) { \ | |
700 | bool found; \ | |
701 | bool blocked = wxPyBeginBlockThreads(); \ | |
702 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
703 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
704 | wxPyEndBlockThreads(blocked); \ | |
705 | if (! found) \ | |
706 | PCLASS::CBNAME(a,b); \ | |
707 | } \ | |
708 | void base_##CBNAME(size_t a, int b) { \ | |
709 | PCLASS::CBNAME(a,b); \ | |
710 | } | |
711 | ||
712 | ||
713 | ||
714 | ||
715 | #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \ | |
716 | void CBNAME(int a, int b, long c) { \ | |
717 | bool found; \ | |
718 | bool blocked = wxPyBeginBlockThreads(); \ | |
719 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
720 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
721 | wxPyEndBlockThreads(blocked); \ | |
722 | if (! found) \ | |
723 | PCLASS::CBNAME(a,b,c); \ | |
724 | } \ | |
725 | void base_##CBNAME(int a, int b, long c) { \ | |
726 | PCLASS::CBNAME(a,b,c); \ | |
727 | } | |
728 | ||
729 | ||
730 | ||
731 | ||
732 | #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \ | |
733 | void CBNAME(int a, int b, double c) { \ | |
734 | bool found; \ | |
735 | bool blocked = wxPyBeginBlockThreads(); \ | |
736 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
737 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \ | |
738 | wxPyEndBlockThreads(blocked); \ | |
739 | if (! found) \ | |
740 | PCLASS::CBNAME(a,b,c); \ | |
741 | } \ | |
742 | void base_##CBNAME(int a, int b, double c) { \ | |
743 | PCLASS::CBNAME(a,b,c); \ | |
744 | } | |
745 | ||
746 | ||
747 | ||
748 | #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \ | |
749 | void CBNAME(int a, int b, bool c) { \ | |
750 | bool found; \ | |
751 | bool blocked = wxPyBeginBlockThreads(); \ | |
752 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ | |
753 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
754 | wxPyEndBlockThreads(blocked); \ | |
755 | if (! found) \ | |
756 | PCLASS::CBNAME(a,b,c); \ | |
757 | } \ | |
758 | void base_##CBNAME(int a, int b, bool c) { \ | |
759 | PCLASS::CBNAME(a,b,c); \ | |
760 | } | |
761 | ||
762 | ||
763 | ||
764 | ||
765 | ||
766 | ||
767 | SWIGSTATICINLINE(PyObject *) | |
768 | SWIG_FromCharPtr(const char* cptr) | |
769 | { | |
770 | size_t size = cptr ? strlen(cptr) : 0; | |
771 | if (cptr) { | |
772 | if (size > INT_MAX) { | |
773 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
774 | SWIG_TypeQuery("char *"), 0); | |
775 | } else { | |
776 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
777 | } | |
778 | } else { | |
779 | Py_INCREF(Py_None); | |
780 | return Py_None; | |
781 | } | |
782 | } | |
783 | ||
784 | void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){ | |
785 | self->SetClientObject(new wxPyOORClientData(_self)); | |
786 | } | |
787 | ||
788 | #include <limits.h> | |
789 | ||
790 | ||
791 | SWIGSTATICINLINE(long) | |
792 | SWIG_CheckLongInRange(long value, const char* type, | |
793 | long min_value, long max_value) | |
794 | { | |
795 | if (!PyErr_Occurred()) { | |
796 | if (value < min_value) { | |
797 | PyObject *err = | |
798 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
799 | value, type, min_value); | |
800 | ||
801 | PyErr_SetObject(PyExc_OverflowError, err); | |
802 | Py_DECREF(err); | |
803 | } else if (value > max_value) { | |
804 | PyObject *err = | |
805 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
806 | value, type, max_value); | |
807 | PyErr_SetObject(PyExc_OverflowError, err); | |
808 | Py_DECREF(err); | |
809 | } | |
810 | } | |
811 | return value; | |
812 | } | |
813 | ||
814 | ||
815 | SWIGSTATICINLINE(long) | |
816 | SWIG_AsLong(PyObject * obj) | |
817 | { | |
818 | if (PyNumber_Check(obj)) | |
819 | return PyInt_AsLong(obj); | |
820 | else { | |
821 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
822 | obj->ob_type->tp_name); | |
823 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
824 | Py_DECREF(errmsg); | |
825 | return 0; | |
826 | } | |
827 | } | |
828 | ||
829 | ||
830 | #if INT_MAX != LONG_MAX | |
831 | SWIGSTATICINLINE(int) | |
832 | SWIG_AsInt(PyObject *obj) | |
833 | { | |
834 | return swig_numeric_cast(int, | |
835 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
836 | "int", INT_MIN, INT_MAX)); | |
837 | } | |
838 | #else | |
839 | #define SWIG_AsInt SWIG_AsLong | |
840 | #endif | |
841 | ||
842 | ||
843 | SWIGSTATICINLINE(bool) | |
844 | SWIG_AsBool(PyObject *obj) | |
845 | { | |
846 | return PyObject_IsTrue(obj) ? true : false; | |
847 | } | |
848 | ||
849 | ||
850 | SWIGSTATICINLINE(int) | |
851 | SWIG_CheckInt(PyObject* obj) | |
852 | { | |
853 | SWIG_AsInt(obj); | |
854 | if (PyErr_Occurred()) { | |
855 | PyErr_Clear(); | |
856 | return 0; | |
857 | } else { | |
858 | return 1; | |
859 | } | |
860 | } | |
861 | ||
862 | ||
863 | SWIGSTATICINLINE(int) | |
864 | SWIG_CheckBool(PyObject* obj) | |
865 | { | |
866 | SWIG_AsBool(obj); | |
867 | if (PyErr_Occurred()) { | |
868 | PyErr_Clear(); | |
869 | return 0; | |
870 | } else { | |
871 | return 1; | |
872 | } | |
873 | } | |
874 | ||
875 | ||
876 | class wxPyGridCellRenderer : public wxGridCellRenderer | |
877 | { | |
878 | public: | |
879 | wxPyGridCellRenderer() : wxGridCellRenderer() {}; | |
880 | ||
881 | // Implement Python callback aware virtual methods | |
882 | void Draw(wxGrid& grid, wxGridCellAttr& attr, | |
883 | wxDC& dc, const wxRect& rect, | |
884 | int row, int col, bool isSelected) { | |
885 | bool blocked = wxPyBeginBlockThreads(); | |
886 | if (wxPyCBH_findCallback(m_myInst, "Draw")) { | |
887 | PyObject* go = wxPyMake_wxObject(&grid); | |
888 | PyObject* dco = wxPyMake_wxObject(&dc); | |
889 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
890 | PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0); | |
891 | ||
892 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro, | |
893 | row, col, isSelected)); | |
894 | Py_DECREF(go); | |
895 | Py_DECREF(ao); | |
896 | Py_DECREF(dco); | |
897 | Py_DECREF(ro); | |
898 | } | |
899 | wxPyEndBlockThreads(blocked); | |
900 | } | |
901 | ||
902 | wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, | |
903 | int row, int col) { | |
904 | wxSize rval; | |
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) { | |
907 | PyObject* ro; | |
908 | wxSize* ptr; | |
909 | PyObject* go = wxPyMake_wxObject(&grid); | |
910 | PyObject* dco = wxPyMake_wxObject(&dc); | |
911 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
912 | ||
913 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)", | |
914 | go, ao, dco, | |
915 | row, col)); | |
916 | Py_DECREF(go); | |
917 | Py_DECREF(ao); | |
918 | Py_DECREF(dco); | |
919 | ||
920 | if (ro) { | |
921 | const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object."; | |
922 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) { | |
923 | rval = *ptr; | |
924 | } | |
925 | else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { | |
926 | PyObject* o1 = PySequence_GetItem(ro, 0); | |
927 | PyObject* o2 = PySequence_GetItem(ro, 1); | |
928 | if (PyNumber_Check(o1) && PyNumber_Check(o2)) | |
929 | rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
930 | else | |
931 | PyErr_SetString(PyExc_TypeError, errmsg); | |
932 | Py_DECREF(o1); | |
933 | Py_DECREF(o2); | |
934 | } | |
935 | else { | |
936 | PyErr_SetString(PyExc_TypeError, errmsg); | |
937 | } | |
938 | Py_DECREF(ro); | |
939 | } | |
940 | } | |
941 | wxPyEndBlockThreads(blocked); | |
942 | return rval; | |
943 | } | |
944 | ||
945 | ||
946 | wxGridCellRenderer *Clone() const { | |
947 | wxGridCellRenderer* rval = NULL; | |
948 | bool blocked = wxPyBeginBlockThreads(); | |
949 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { | |
950 | PyObject* ro; | |
951 | wxGridCellRenderer* ptr; | |
952 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
953 | if (ro) { | |
954 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer"))) | |
955 | rval = ptr; | |
956 | Py_DECREF(ro); | |
957 | } | |
958 | } | |
959 | wxPyEndBlockThreads(blocked); | |
960 | return rval; | |
961 | } | |
962 | ||
963 | DEC_PYCALLBACK__STRING(SetParameters); | |
964 | ||
965 | PYPRIVATE; | |
966 | }; | |
967 | ||
968 | IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters); | |
969 | ||
970 | ||
971 | void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){ | |
972 | self->SetClientObject(new wxPyOORClientData(_self)); | |
973 | } | |
974 | ||
975 | class wxPyGridCellEditor : public wxGridCellEditor | |
976 | { | |
977 | public: | |
978 | wxPyGridCellEditor() : wxGridCellEditor() {} | |
979 | ||
980 | void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) { | |
981 | bool blocked = wxPyBeginBlockThreads(); | |
982 | if (wxPyCBH_findCallback(m_myInst, "Create")) { | |
983 | PyObject* po = wxPyMake_wxObject(parent); | |
984 | PyObject* eo = wxPyMake_wxObject(evtHandler); | |
985 | ||
986 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo)); | |
987 | Py_DECREF(po); | |
988 | Py_DECREF(eo); | |
989 | } | |
990 | wxPyEndBlockThreads(blocked); | |
991 | } | |
992 | ||
993 | ||
994 | void BeginEdit(int row, int col, wxGrid* grid) { | |
995 | bool blocked = wxPyBeginBlockThreads(); | |
996 | if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) { | |
997 | PyObject* go = wxPyMake_wxObject(grid); | |
998 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
999 | Py_DECREF(go); | |
1000 | } | |
1001 | wxPyEndBlockThreads(blocked); | |
1002 | } | |
1003 | ||
1004 | ||
1005 | bool EndEdit(int row, int col, wxGrid* grid) { | |
1006 | bool rv = False; | |
1007 | bool blocked = wxPyBeginBlockThreads(); | |
1008 | if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { | |
1009 | PyObject* go = wxPyMake_wxObject(grid); | |
1010 | rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
1011 | Py_DECREF(go); | |
1012 | } | |
1013 | wxPyEndBlockThreads(blocked); | |
1014 | return rv; | |
1015 | } | |
1016 | ||
1017 | ||
1018 | wxGridCellEditor* Clone() const { | |
1019 | wxGridCellEditor* rval = NULL; | |
1020 | bool blocked = wxPyBeginBlockThreads(); | |
1021 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { | |
1022 | PyObject* ro; | |
1023 | wxGridCellEditor* ptr; | |
1024 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1025 | if (ro) { | |
1026 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor"))) | |
1027 | rval = ptr; | |
1028 | Py_DECREF(ro); | |
1029 | } | |
1030 | } | |
1031 | wxPyEndBlockThreads(blocked); | |
1032 | return rval; | |
1033 | } | |
1034 | ||
1035 | ||
1036 | void Show(bool show, wxGridCellAttr *attr) { | |
1037 | bool found; | |
1038 | bool blocked = wxPyBeginBlockThreads(); | |
1039 | if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) { | |
1040 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
1041 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao)); | |
1042 | Py_DECREF(ao); | |
1043 | } | |
1044 | wxPyEndBlockThreads(blocked); | |
1045 | if (! found) | |
1046 | wxGridCellEditor::Show(show, attr); | |
1047 | } | |
1048 | void base_Show(bool show, wxGridCellAttr *attr) { | |
1049 | wxGridCellEditor::Show(show, attr); | |
1050 | } | |
1051 | ||
1052 | ||
1053 | void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1054 | bool found; | |
1055 | bool blocked = wxPyBeginBlockThreads(); | |
1056 | if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) { | |
1057 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
1058 | PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0); | |
1059 | ||
1060 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao)); | |
1061 | ||
1062 | Py_DECREF(ro); | |
1063 | Py_DECREF(ao); | |
1064 | } | |
1065 | wxPyEndBlockThreads(blocked); | |
1066 | if (! found) | |
1067 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1068 | } | |
1069 | void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1070 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1071 | } | |
1072 | ||
1073 | ||
1074 | DEC_PYCALLBACK___pure(Reset); | |
1075 | DEC_PYCALLBACK__constany(SetSize, wxRect); | |
1076 | DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent); | |
1077 | DEC_PYCALLBACK__any(StartingKey, wxKeyEvent); | |
1078 | DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent); | |
1079 | DEC_PYCALLBACK__(StartingClick); | |
1080 | DEC_PYCALLBACK__(Destroy); | |
1081 | DEC_PYCALLBACK__STRING(SetParameters); | |
1082 | DEC_PYCALLBACK_STRING__constpure(GetValue); | |
1083 | ||
1084 | PYPRIVATE; | |
1085 | }; | |
1086 | ||
1087 | ||
1088 | IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters); | |
1089 | IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset); | |
1090 | IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect); | |
1091 | IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent); | |
1092 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent); | |
1093 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent); | |
1094 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick); | |
1095 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy); | |
1096 | IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue); | |
1097 | ||
1098 | ||
1099 | void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){ | |
1100 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1101 | } | |
1102 | ||
1103 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1104 | PyObject* o2; | |
1105 | PyObject* o3; | |
1106 | ||
1107 | if (!target) { | |
1108 | target = o; | |
1109 | } else if (target == Py_None) { | |
1110 | Py_DECREF(Py_None); | |
1111 | target = o; | |
1112 | } else { | |
1113 | if (!PyTuple_Check(target)) { | |
1114 | o2 = target; | |
1115 | target = PyTuple_New(1); | |
1116 | PyTuple_SetItem(target, 0, o2); | |
1117 | } | |
1118 | o3 = PyTuple_New(1); | |
1119 | PyTuple_SetItem(o3, 0, o); | |
1120 | ||
1121 | o2 = target; | |
1122 | target = PySequence_Concat(o2, o3); | |
1123 | Py_DECREF(o2); | |
1124 | Py_DECREF(o3); | |
1125 | } | |
1126 | return target; | |
1127 | } | |
1128 | ||
1129 | void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){ | |
1130 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1131 | } | |
1132 | ||
1133 | SWIGSTATICINLINE(unsigned long) | |
1134 | SWIG_AsUnsignedLong(PyObject * obj) | |
1135 | { | |
1136 | if (PyLong_Check(obj)) { | |
1137 | return PyLong_AsUnsignedLong(obj); | |
1138 | } else { | |
1139 | long i = SWIG_AsLong(obj); | |
1140 | if ( !PyErr_Occurred() && (i < 0)) { | |
1141 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1142 | } | |
1143 | return i; | |
1144 | } | |
1145 | } | |
1146 | ||
1147 | ||
1148 | SWIGSTATICINLINE(int) | |
1149 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1150 | { | |
1151 | SWIG_AsUnsignedLong(obj); | |
1152 | if (PyErr_Occurred()) { | |
1153 | PyErr_Clear(); | |
1154 | return 0; | |
1155 | } else { | |
1156 | return 1; | |
1157 | } | |
1158 | } | |
1159 | ||
1160 | ||
1161 | class wxPyGridCellAttrProvider : public wxGridCellAttrProvider | |
1162 | { | |
1163 | public: | |
1164 | wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {}; | |
1165 | ||
1166 | PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr); | |
1167 | PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr); | |
1168 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr); | |
1169 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr); | |
1170 | ||
1171 | PYPRIVATE; | |
1172 | }; | |
1173 | ||
1174 | void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){ | |
1175 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1176 | } | |
1177 | ||
1178 | SWIGSTATICINLINE(int) | |
1179 | SWIG_CheckLong(PyObject* obj) | |
1180 | { | |
1181 | SWIG_AsLong(obj); | |
1182 | if (PyErr_Occurred()) { | |
1183 | PyErr_Clear(); | |
1184 | return 0; | |
1185 | } else { | |
1186 | return 1; | |
1187 | } | |
1188 | } | |
1189 | ||
1190 | ||
1191 | SWIGSTATICINLINE(double) | |
1192 | SWIG_AsDouble(PyObject *obj) | |
1193 | { | |
1194 | if (PyNumber_Check(obj)) | |
1195 | return PyFloat_AsDouble(obj); | |
1196 | else { | |
1197 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1198 | obj->ob_type->tp_name); | |
1199 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1200 | Py_DECREF(errmsg); | |
1201 | return 0; | |
1202 | } | |
1203 | } | |
1204 | ||
1205 | ||
1206 | SWIGSTATICINLINE(int) | |
1207 | SWIG_CheckDouble(PyObject* obj) | |
1208 | { | |
1209 | SWIG_AsDouble(obj); | |
1210 | if (PyErr_Occurred()) { | |
1211 | PyErr_Clear(); | |
1212 | return 0; | |
1213 | } else { | |
1214 | return 1; | |
1215 | } | |
1216 | } | |
1217 | ||
1218 | ||
1219 | class wxPyGridTableBase : public wxGridTableBase | |
1220 | { | |
1221 | public: | |
1222 | wxPyGridTableBase() : wxGridTableBase() {} | |
1223 | ||
1224 | PYCALLBACK_INT__pure(GetNumberRows); | |
1225 | PYCALLBACK_INT__pure(GetNumberCols); | |
1226 | PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell); | |
1227 | PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName); | |
1228 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs); | |
1229 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs); | |
1230 | PYCALLBACK__(wxGridTableBase, Clear); | |
1231 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows); | |
1232 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows); | |
1233 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols); | |
1234 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols); | |
1235 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows); | |
1236 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols); | |
1237 | PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue); | |
1238 | PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue); | |
1239 | PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue); | |
1240 | PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue); | |
1241 | PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes); | |
1242 | PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr); | |
1243 | PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr); | |
1244 | PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr); | |
1245 | PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr); | |
1246 | ||
1247 | ||
1248 | wxString GetValue(int row, int col) { | |
1249 | bool blocked = wxPyBeginBlockThreads(); | |
1250 | wxString rval; | |
1251 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1252 | PyObject* ro; | |
1253 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col)); | |
1254 | if (ro) { | |
1255 | rval = Py2wxString(ro); | |
1256 | Py_DECREF(ro); | |
1257 | } | |
1258 | } | |
1259 | wxPyEndBlockThreads(blocked); | |
1260 | return rval; | |
1261 | } | |
1262 | ||
1263 | void SetValue(int row, int col, const wxString& val) { | |
1264 | bool blocked = wxPyBeginBlockThreads(); | |
1265 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1266 | PyObject* s = wx2PyString(val); | |
1267 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s)); | |
1268 | Py_DECREF(s); | |
1269 | } | |
1270 | wxPyEndBlockThreads(blocked); | |
1271 | } | |
1272 | ||
1273 | ||
1274 | // Map the Get/Set methods for the standard non-string types to | |
1275 | // the GetValue and SetValue python methods. | |
1276 | long GetValueAsLong( int row, int col ) { | |
1277 | long rval = 0; | |
1278 | bool blocked = wxPyBeginBlockThreads(); | |
1279 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1280 | PyObject* ro; | |
1281 | PyObject* num; | |
1282 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1283 | if (ro && PyNumber_Check(ro)) { | |
1284 | num = PyNumber_Int(ro); | |
1285 | if (num) { | |
1286 | rval = PyInt_AsLong(num); | |
1287 | Py_DECREF(num); | |
1288 | } | |
1289 | Py_DECREF(ro); | |
1290 | } | |
1291 | } | |
1292 | wxPyEndBlockThreads(blocked); | |
1293 | return rval; | |
1294 | } | |
1295 | ||
1296 | double GetValueAsDouble( int row, int col ) { | |
1297 | double rval = 0.0; | |
1298 | bool blocked = wxPyBeginBlockThreads(); | |
1299 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1300 | PyObject* ro; | |
1301 | PyObject* num; | |
1302 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1303 | if (ro && PyNumber_Check(ro)) { | |
1304 | num = PyNumber_Float(ro); | |
1305 | if (num) { | |
1306 | rval = PyFloat_AsDouble(num); | |
1307 | Py_DECREF(num); | |
1308 | } | |
1309 | Py_DECREF(ro); | |
1310 | } | |
1311 | } | |
1312 | wxPyEndBlockThreads(blocked); | |
1313 | return rval; | |
1314 | } | |
1315 | ||
1316 | bool GetValueAsBool( int row, int col ) { | |
1317 | return (bool)GetValueAsLong(row, col); | |
1318 | } | |
1319 | ||
1320 | void SetValueAsLong( int row, int col, long value ) { | |
1321 | bool blocked = wxPyBeginBlockThreads(); | |
1322 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1323 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value)); | |
1324 | } | |
1325 | wxPyEndBlockThreads(blocked); | |
1326 | } | |
1327 | ||
1328 | void SetValueAsDouble( int row, int col, double value ) { | |
1329 | bool blocked = wxPyBeginBlockThreads(); | |
1330 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { | |
1331 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value)); | |
1332 | } | |
1333 | wxPyEndBlockThreads(blocked); | |
1334 | } | |
1335 | ||
1336 | void SetValueAsBool( int row, int col, bool value ) { | |
1337 | SetValueAsLong( row, col, (long)value ); | |
1338 | } | |
1339 | ||
1340 | ||
1341 | PYPRIVATE; | |
1342 | }; | |
1343 | ||
1344 | void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; } | |
1345 | ||
1346 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { | |
1347 | ||
1348 | if (source == Py_None) { | |
1349 | **obj = wxGridCellCoords(-1,-1); | |
1350 | return True; | |
1351 | } | |
1352 | ||
1353 | // If source is an object instance then it may already be the right type | |
1354 | if (wxPySwigInstance_Check(source)) { | |
1355 | wxGridCellCoords* ptr; | |
1356 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1357 | goto error; | |
1358 | *obj = ptr; | |
1359 | return True; | |
1360 | } | |
1361 | // otherwise a 2-tuple of integers is expected | |
1362 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { | |
1363 | PyObject* o1 = PySequence_GetItem(source, 0); | |
1364 | PyObject* o2 = PySequence_GetItem(source, 1); | |
1365 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { | |
1366 | Py_DECREF(o1); | |
1367 | Py_DECREF(o2); | |
1368 | goto error; | |
1369 | } | |
1370 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1371 | Py_DECREF(o1); | |
1372 | Py_DECREF(o2); | |
1373 | return True; | |
1374 | } | |
1375 | ||
1376 | error: | |
1377 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); | |
1378 | return False; | |
1379 | } | |
1380 | ||
1381 | ||
1382 | bool wxGridCellCoords_typecheck(PyObject* source) { | |
1383 | void* ptr; | |
1384 | ||
1385 | if (wxPySwigInstance_Check(source) && | |
1386 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1387 | return True; | |
1388 | ||
1389 | PyErr_Clear(); | |
1390 | if (PySequence_Check(source) && PySequence_Length(source) == 2) | |
1391 | return True; | |
1392 | ||
1393 | return False; | |
1394 | } | |
1395 | ||
1396 | ||
1397 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) | |
1398 | { | |
1399 | PyObject* list = PyList_New(0); | |
1400 | size_t idx; | |
1401 | for (idx = 0; idx < source.GetCount(); idx += 1) { | |
1402 | wxGridCellCoords& coord = source.Item(idx); | |
1403 | PyObject* tup = PyTuple_New(2); | |
1404 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); | |
1405 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); | |
1406 | PyList_Append(list, tup); | |
1407 | Py_DECREF(tup); | |
1408 | } | |
1409 | return list; | |
1410 | } | |
1411 | ||
1412 | PyObject *wxGridCellCoords_Get(wxGridCellCoords *self){ | |
1413 | PyObject* tup = PyTuple_New(2); | |
1414 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1415 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1416 | return tup; | |
1417 | } | |
1418 | ||
1419 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; | |
1420 | ||
1421 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ | |
1422 | wxGridCellCoords rv; | |
1423 | self->XYToCell(x, y, rv); | |
1424 | return rv; | |
1425 | } | |
1426 | #ifdef __cplusplus | |
1427 | extern "C" { | |
1428 | #endif | |
1429 | static int _wrap_DateTimeFormatStr_set(PyObject *_val) { | |
1430 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); | |
1431 | return 1; | |
1432 | } | |
1433 | ||
1434 | ||
1435 | static PyObject *_wrap_DateTimeFormatStr_get() { | |
1436 | PyObject *pyobj; | |
1437 | ||
1438 | { | |
1439 | #if wxUSE_UNICODE | |
1440 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1441 | #else | |
1442 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1443 | #endif | |
1444 | } | |
1445 | return pyobj; | |
1446 | } | |
1447 | ||
1448 | ||
1449 | static int _wrap_GridNoCellCoords_set(PyObject *_val) { | |
1450 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); | |
1451 | return 1; | |
1452 | } | |
1453 | ||
1454 | ||
1455 | static PyObject *_wrap_GridNoCellCoords_get() { | |
1456 | PyObject *pyobj; | |
1457 | ||
1458 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0); | |
1459 | return pyobj; | |
1460 | } | |
1461 | ||
1462 | ||
1463 | static int _wrap_GridNoCellRect_set(PyObject *_val) { | |
1464 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); | |
1465 | return 1; | |
1466 | } | |
1467 | ||
1468 | ||
1469 | static PyObject *_wrap_GridNoCellRect_get() { | |
1470 | PyObject *pyobj; | |
1471 | ||
1472 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0); | |
1473 | return pyobj; | |
1474 | } | |
1475 | ||
1476 | ||
1477 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1478 | PyObject *resultobj; | |
1479 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1480 | PyObject *arg2 = (PyObject *) 0 ; | |
1481 | PyObject * obj0 = 0 ; | |
1482 | PyObject * obj1 = 0 ; | |
1483 | char *kwnames[] = { | |
1484 | (char *) "self",(char *) "_self", NULL | |
1485 | }; | |
1486 | ||
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
1488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1490 | arg2 = obj1; | |
1491 | { | |
1492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1493 | wxGridCellRenderer__setOORInfo(arg1,arg2); | |
1494 | ||
1495 | wxPyEndAllowThreads(__tstate); | |
1496 | if (PyErr_Occurred()) SWIG_fail; | |
1497 | } | |
1498 | Py_INCREF(Py_None); resultobj = Py_None; | |
1499 | return resultobj; | |
1500 | fail: | |
1501 | return NULL; | |
1502 | } | |
1503 | ||
1504 | ||
1505 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1506 | PyObject *resultobj; | |
1507 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1508 | wxString *arg2 = 0 ; | |
1509 | bool temp2 = False ; | |
1510 | PyObject * obj0 = 0 ; | |
1511 | PyObject * obj1 = 0 ; | |
1512 | char *kwnames[] = { | |
1513 | (char *) "self",(char *) "params", NULL | |
1514 | }; | |
1515 | ||
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1519 | { | |
1520 | arg2 = wxString_in_helper(obj1); | |
1521 | if (arg2 == NULL) SWIG_fail; | |
1522 | temp2 = True; | |
1523 | } | |
1524 | { | |
1525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1526 | (arg1)->SetParameters((wxString const &)*arg2); | |
1527 | ||
1528 | wxPyEndAllowThreads(__tstate); | |
1529 | if (PyErr_Occurred()) SWIG_fail; | |
1530 | } | |
1531 | Py_INCREF(Py_None); resultobj = Py_None; | |
1532 | { | |
1533 | if (temp2) | |
1534 | delete arg2; | |
1535 | } | |
1536 | return resultobj; | |
1537 | fail: | |
1538 | { | |
1539 | if (temp2) | |
1540 | delete arg2; | |
1541 | } | |
1542 | return NULL; | |
1543 | } | |
1544 | ||
1545 | ||
1546 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject *resultobj; | |
1548 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1549 | PyObject * obj0 = 0 ; | |
1550 | char *kwnames[] = { | |
1551 | (char *) "self", NULL | |
1552 | }; | |
1553 | ||
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; | |
1555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1557 | { | |
1558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1559 | (arg1)->IncRef(); | |
1560 | ||
1561 | wxPyEndAllowThreads(__tstate); | |
1562 | if (PyErr_Occurred()) SWIG_fail; | |
1563 | } | |
1564 | Py_INCREF(Py_None); resultobj = Py_None; | |
1565 | return resultobj; | |
1566 | fail: | |
1567 | return NULL; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject *resultobj; | |
1573 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1574 | PyObject * obj0 = 0 ; | |
1575 | char *kwnames[] = { | |
1576 | (char *) "self", NULL | |
1577 | }; | |
1578 | ||
1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; | |
1580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1582 | { | |
1583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1584 | (arg1)->DecRef(); | |
1585 | ||
1586 | wxPyEndAllowThreads(__tstate); | |
1587 | if (PyErr_Occurred()) SWIG_fail; | |
1588 | } | |
1589 | Py_INCREF(Py_None); resultobj = Py_None; | |
1590 | return resultobj; | |
1591 | fail: | |
1592 | return NULL; | |
1593 | } | |
1594 | ||
1595 | ||
1596 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject *resultobj; | |
1598 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1599 | wxGrid *arg2 = 0 ; | |
1600 | wxGridCellAttr *arg3 = 0 ; | |
1601 | wxDC *arg4 = 0 ; | |
1602 | wxRect *arg5 = 0 ; | |
1603 | int arg6 ; | |
1604 | int arg7 ; | |
1605 | bool arg8 ; | |
1606 | wxRect temp5 ; | |
1607 | PyObject * obj0 = 0 ; | |
1608 | PyObject * obj1 = 0 ; | |
1609 | PyObject * obj2 = 0 ; | |
1610 | PyObject * obj3 = 0 ; | |
1611 | PyObject * obj4 = 0 ; | |
1612 | PyObject * obj5 = 0 ; | |
1613 | PyObject * obj6 = 0 ; | |
1614 | PyObject * obj7 = 0 ; | |
1615 | char *kwnames[] = { | |
1616 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL | |
1617 | }; | |
1618 | ||
1619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1624 | SWIG_fail; | |
1625 | if (arg2 == NULL) { | |
1626 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1627 | SWIG_fail; | |
1628 | } | |
1629 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
1630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1631 | SWIG_fail; | |
1632 | if (arg3 == NULL) { | |
1633 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1634 | SWIG_fail; | |
1635 | } | |
1636 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
1637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1638 | SWIG_fail; | |
1639 | if (arg4 == NULL) { | |
1640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1641 | SWIG_fail; | |
1642 | } | |
1643 | { | |
1644 | arg5 = &temp5; | |
1645 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
1646 | } | |
1647 | arg6 = (int) SWIG_AsInt(obj5); | |
1648 | if (PyErr_Occurred()) SWIG_fail; | |
1649 | arg7 = (int) SWIG_AsInt(obj6); | |
1650 | if (PyErr_Occurred()) SWIG_fail; | |
1651 | arg8 = (bool) SWIG_AsBool(obj7); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | { | |
1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1655 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); | |
1656 | ||
1657 | wxPyEndAllowThreads(__tstate); | |
1658 | if (PyErr_Occurred()) SWIG_fail; | |
1659 | } | |
1660 | Py_INCREF(Py_None); resultobj = Py_None; | |
1661 | return resultobj; | |
1662 | fail: | |
1663 | return NULL; | |
1664 | } | |
1665 | ||
1666 | ||
1667 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1668 | PyObject *resultobj; | |
1669 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1670 | wxGrid *arg2 = 0 ; | |
1671 | wxGridCellAttr *arg3 = 0 ; | |
1672 | wxDC *arg4 = 0 ; | |
1673 | int arg5 ; | |
1674 | int arg6 ; | |
1675 | wxSize result; | |
1676 | PyObject * obj0 = 0 ; | |
1677 | PyObject * obj1 = 0 ; | |
1678 | PyObject * obj2 = 0 ; | |
1679 | PyObject * obj3 = 0 ; | |
1680 | PyObject * obj4 = 0 ; | |
1681 | PyObject * obj5 = 0 ; | |
1682 | char *kwnames[] = { | |
1683 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL | |
1684 | }; | |
1685 | ||
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1691 | SWIG_fail; | |
1692 | if (arg2 == NULL) { | |
1693 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1694 | SWIG_fail; | |
1695 | } | |
1696 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
1697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1698 | SWIG_fail; | |
1699 | if (arg3 == NULL) { | |
1700 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1701 | SWIG_fail; | |
1702 | } | |
1703 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
1704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1705 | SWIG_fail; | |
1706 | if (arg4 == NULL) { | |
1707 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1708 | SWIG_fail; | |
1709 | } | |
1710 | arg5 = (int) SWIG_AsInt(obj4); | |
1711 | if (PyErr_Occurred()) SWIG_fail; | |
1712 | arg6 = (int) SWIG_AsInt(obj5); | |
1713 | if (PyErr_Occurred()) SWIG_fail; | |
1714 | { | |
1715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1716 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); | |
1717 | ||
1718 | wxPyEndAllowThreads(__tstate); | |
1719 | if (PyErr_Occurred()) SWIG_fail; | |
1720 | } | |
1721 | { | |
1722 | wxSize * resultptr; | |
1723 | resultptr = new wxSize((wxSize &) result); | |
1724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1725 | } | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject *resultobj; | |
1734 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1735 | wxGridCellRenderer *result; | |
1736 | PyObject * obj0 = 0 ; | |
1737 | char *kwnames[] = { | |
1738 | (char *) "self", NULL | |
1739 | }; | |
1740 | ||
1741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; | |
1742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, | |
1743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1744 | { | |
1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1746 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); | |
1747 | ||
1748 | wxPyEndAllowThreads(__tstate); | |
1749 | if (PyErr_Occurred()) SWIG_fail; | |
1750 | } | |
1751 | { | |
1752 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
1753 | } | |
1754 | return resultobj; | |
1755 | fail: | |
1756 | return NULL; | |
1757 | } | |
1758 | ||
1759 | ||
1760 | static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1761 | PyObject *obj; | |
1762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1763 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); | |
1764 | Py_INCREF(obj); | |
1765 | return Py_BuildValue((char *)""); | |
1766 | } | |
1767 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1768 | PyObject *resultobj; | |
1769 | wxPyGridCellRenderer *result; | |
1770 | char *kwnames[] = { | |
1771 | NULL | |
1772 | }; | |
1773 | ||
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; | |
1775 | { | |
1776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1777 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); | |
1778 | ||
1779 | wxPyEndAllowThreads(__tstate); | |
1780 | if (PyErr_Occurred()) SWIG_fail; | |
1781 | } | |
1782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1); | |
1783 | return resultobj; | |
1784 | fail: | |
1785 | return NULL; | |
1786 | } | |
1787 | ||
1788 | ||
1789 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1790 | PyObject *resultobj; | |
1791 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1792 | PyObject *arg2 = (PyObject *) 0 ; | |
1793 | PyObject *arg3 = (PyObject *) 0 ; | |
1794 | PyObject * obj0 = 0 ; | |
1795 | PyObject * obj1 = 0 ; | |
1796 | PyObject * obj2 = 0 ; | |
1797 | char *kwnames[] = { | |
1798 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1799 | }; | |
1800 | ||
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, | |
1803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1804 | arg2 = obj1; | |
1805 | arg3 = obj2; | |
1806 | { | |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1808 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1809 | ||
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | Py_INCREF(Py_None); resultobj = Py_None; | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1823 | wxString *arg2 = 0 ; | |
1824 | bool temp2 = False ; | |
1825 | PyObject * obj0 = 0 ; | |
1826 | PyObject * obj1 = 0 ; | |
1827 | char *kwnames[] = { | |
1828 | (char *) "self",(char *) "params", NULL | |
1829 | }; | |
1830 | ||
1831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
1832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, | |
1833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1834 | { | |
1835 | arg2 = wxString_in_helper(obj1); | |
1836 | if (arg2 == NULL) SWIG_fail; | |
1837 | temp2 = True; | |
1838 | } | |
1839 | { | |
1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1841 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) SWIG_fail; | |
1845 | } | |
1846 | Py_INCREF(Py_None); resultobj = Py_None; | |
1847 | { | |
1848 | if (temp2) | |
1849 | delete arg2; | |
1850 | } | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | { | |
1854 | if (temp2) | |
1855 | delete arg2; | |
1856 | } | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
1861 | static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1862 | PyObject *obj; | |
1863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1864 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); | |
1865 | Py_INCREF(obj); | |
1866 | return Py_BuildValue((char *)""); | |
1867 | } | |
1868 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | wxGridCellStringRenderer *result; | |
1871 | char *kwnames[] = { | |
1872 | NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; | |
1876 | { | |
1877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1878 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); | |
1879 | ||
1880 | wxPyEndAllowThreads(__tstate); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | } | |
1883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1); | |
1884 | return resultobj; | |
1885 | fail: | |
1886 | return NULL; | |
1887 | } | |
1888 | ||
1889 | ||
1890 | static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
1891 | PyObject *obj; | |
1892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1893 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); | |
1894 | Py_INCREF(obj); | |
1895 | return Py_BuildValue((char *)""); | |
1896 | } | |
1897 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1898 | PyObject *resultobj; | |
1899 | wxGridCellNumberRenderer *result; | |
1900 | char *kwnames[] = { | |
1901 | NULL | |
1902 | }; | |
1903 | ||
1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; | |
1905 | { | |
1906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1907 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); | |
1908 | ||
1909 | wxPyEndAllowThreads(__tstate); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | } | |
1912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1); | |
1913 | return resultobj; | |
1914 | fail: | |
1915 | return NULL; | |
1916 | } | |
1917 | ||
1918 | ||
1919 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) { | |
1920 | PyObject *obj; | |
1921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1922 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); | |
1923 | Py_INCREF(obj); | |
1924 | return Py_BuildValue((char *)""); | |
1925 | } | |
1926 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1927 | PyObject *resultobj; | |
1928 | int arg1 = (int) -1 ; | |
1929 | int arg2 = (int) -1 ; | |
1930 | wxGridCellFloatRenderer *result; | |
1931 | PyObject * obj0 = 0 ; | |
1932 | PyObject * obj1 = 0 ; | |
1933 | char *kwnames[] = { | |
1934 | (char *) "width",(char *) "precision", NULL | |
1935 | }; | |
1936 | ||
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; | |
1938 | if (obj0) { | |
1939 | arg1 = (int) SWIG_AsInt(obj0); | |
1940 | if (PyErr_Occurred()) SWIG_fail; | |
1941 | } | |
1942 | if (obj1) { | |
1943 | arg2 = (int) SWIG_AsInt(obj1); | |
1944 | if (PyErr_Occurred()) SWIG_fail; | |
1945 | } | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
1953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1); | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1963 | int result; | |
1964 | PyObject * obj0 = 0 ; | |
1965 | char *kwnames[] = { | |
1966 | (char *) "self", NULL | |
1967 | }; | |
1968 | ||
1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; | |
1970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, | |
1971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1972 | { | |
1973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1974 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); | |
1975 | ||
1976 | wxPyEndAllowThreads(__tstate); | |
1977 | if (PyErr_Occurred()) SWIG_fail; | |
1978 | } | |
1979 | resultobj = SWIG_FromInt((int)result); | |
1980 | return resultobj; | |
1981 | fail: | |
1982 | return NULL; | |
1983 | } | |
1984 | ||
1985 | ||
1986 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject *resultobj; | |
1988 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1989 | int arg2 ; | |
1990 | PyObject * obj0 = 0 ; | |
1991 | PyObject * obj1 = 0 ; | |
1992 | char *kwnames[] = { | |
1993 | (char *) "self",(char *) "width", NULL | |
1994 | }; | |
1995 | ||
1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
1997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, | |
1998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1999 | arg2 = (int) SWIG_AsInt(obj1); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | (arg1)->SetWidth(arg2); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | Py_INCREF(Py_None); resultobj = Py_None; | |
2009 | return resultobj; | |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2018 | int result; | |
2019 | PyObject * obj0 = 0 ; | |
2020 | char *kwnames[] = { | |
2021 | (char *) "self", NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; | |
2025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, | |
2026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2027 | { | |
2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2029 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); | |
2030 | ||
2031 | wxPyEndAllowThreads(__tstate); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
2034 | resultobj = SWIG_FromInt((int)result); | |
2035 | return resultobj; | |
2036 | fail: | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2042 | PyObject *resultobj; | |
2043 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2044 | int arg2 ; | |
2045 | PyObject * obj0 = 0 ; | |
2046 | PyObject * obj1 = 0 ; | |
2047 | char *kwnames[] = { | |
2048 | (char *) "self",(char *) "precision", NULL | |
2049 | }; | |
2050 | ||
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; | |
2052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, | |
2053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2054 | arg2 = (int) SWIG_AsInt(obj1); | |
2055 | if (PyErr_Occurred()) SWIG_fail; | |
2056 | { | |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | (arg1)->SetPrecision(arg2); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | Py_INCREF(Py_None); resultobj = Py_None; | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) { | |
2071 | PyObject *obj; | |
2072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2073 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); | |
2074 | Py_INCREF(obj); | |
2075 | return Py_BuildValue((char *)""); | |
2076 | } | |
2077 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2078 | PyObject *resultobj; | |
2079 | wxGridCellBoolRenderer *result; | |
2080 | char *kwnames[] = { | |
2081 | NULL | |
2082 | }; | |
2083 | ||
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; | |
2085 | { | |
2086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2087 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); | |
2088 | ||
2089 | wxPyEndAllowThreads(__tstate); | |
2090 | if (PyErr_Occurred()) SWIG_fail; | |
2091 | } | |
2092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1); | |
2093 | return resultobj; | |
2094 | fail: | |
2095 | return NULL; | |
2096 | } | |
2097 | ||
2098 | ||
2099 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) { | |
2100 | PyObject *obj; | |
2101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2102 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); | |
2103 | Py_INCREF(obj); | |
2104 | return Py_BuildValue((char *)""); | |
2105 | } | |
2106 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2107 | PyObject *resultobj; | |
2108 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; | |
2109 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; | |
2110 | wxGridCellDateTimeRenderer *result; | |
2111 | PyObject * obj0 = 0 ; | |
2112 | PyObject * obj1 = 0 ; | |
2113 | char *kwnames[] = { | |
2114 | (char *) "outformat",(char *) "informat", NULL | |
2115 | }; | |
2116 | ||
2117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; | |
2118 | if (obj0) { | |
2119 | { | |
2120 | wxString* sptr = wxString_in_helper(obj0); | |
2121 | if (sptr == NULL) SWIG_fail; | |
2122 | arg1 = *sptr; | |
2123 | delete sptr; | |
2124 | } | |
2125 | } | |
2126 | if (obj1) { | |
2127 | { | |
2128 | wxString* sptr = wxString_in_helper(obj1); | |
2129 | if (sptr == NULL) SWIG_fail; | |
2130 | arg2 = *sptr; | |
2131 | delete sptr; | |
2132 | } | |
2133 | } | |
2134 | { | |
2135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2136 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); | |
2137 | ||
2138 | wxPyEndAllowThreads(__tstate); | |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
2140 | } | |
2141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); | |
2142 | return resultobj; | |
2143 | fail: | |
2144 | return NULL; | |
2145 | } | |
2146 | ||
2147 | ||
2148 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) { | |
2149 | PyObject *obj; | |
2150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2151 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); | |
2152 | Py_INCREF(obj); | |
2153 | return Py_BuildValue((char *)""); | |
2154 | } | |
2155 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2156 | PyObject *resultobj; | |
2157 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2158 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2159 | wxGridCellEnumRenderer *result; | |
2160 | bool temp1 = False ; | |
2161 | PyObject * obj0 = 0 ; | |
2162 | char *kwnames[] = { | |
2163 | (char *) "choices", NULL | |
2164 | }; | |
2165 | ||
2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; | |
2167 | if (obj0) { | |
2168 | { | |
2169 | arg1 = wxString_in_helper(obj0); | |
2170 | if (arg1 == NULL) SWIG_fail; | |
2171 | temp1 = True; | |
2172 | } | |
2173 | } | |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1); | |
2182 | { | |
2183 | if (temp1) | |
2184 | delete arg1; | |
2185 | } | |
2186 | return resultobj; | |
2187 | fail: | |
2188 | { | |
2189 | if (temp1) | |
2190 | delete arg1; | |
2191 | } | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) { | |
2197 | PyObject *obj; | |
2198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2199 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); | |
2200 | Py_INCREF(obj); | |
2201 | return Py_BuildValue((char *)""); | |
2202 | } | |
2203 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2204 | PyObject *resultobj; | |
2205 | wxGridCellAutoWrapStringRenderer *result; | |
2206 | char *kwnames[] = { | |
2207 | NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; | |
2211 | { | |
2212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2213 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); | |
2214 | ||
2215 | wxPyEndAllowThreads(__tstate); | |
2216 | if (PyErr_Occurred()) SWIG_fail; | |
2217 | } | |
2218 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); | |
2219 | return resultobj; | |
2220 | fail: | |
2221 | return NULL; | |
2222 | } | |
2223 | ||
2224 | ||
2225 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
2226 | PyObject *obj; | |
2227 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2228 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); | |
2229 | Py_INCREF(obj); | |
2230 | return Py_BuildValue((char *)""); | |
2231 | } | |
2232 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject *resultobj; | |
2234 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2235 | PyObject *arg2 = (PyObject *) 0 ; | |
2236 | PyObject * obj0 = 0 ; | |
2237 | PyObject * obj1 = 0 ; | |
2238 | char *kwnames[] = { | |
2239 | (char *) "self",(char *) "_self", NULL | |
2240 | }; | |
2241 | ||
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2245 | arg2 = obj1; | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | wxGridCellEditor__setOORInfo(arg1,arg2); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2261 | PyObject *resultobj; | |
2262 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2263 | bool result; | |
2264 | PyObject * obj0 = 0 ; | |
2265 | char *kwnames[] = { | |
2266 | (char *) "self", NULL | |
2267 | }; | |
2268 | ||
2269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; | |
2270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2272 | { | |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | result = (bool)(arg1)->IsCreated(); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2279 | { | |
2280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2281 | } | |
2282 | return resultobj; | |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
2288 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2289 | PyObject *resultobj; | |
2290 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2291 | wxControl *result; | |
2292 | PyObject * obj0 = 0 ; | |
2293 | char *kwnames[] = { | |
2294 | (char *) "self", NULL | |
2295 | }; | |
2296 | ||
2297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; | |
2298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2300 | { | |
2301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2302 | result = (wxControl *)(arg1)->GetControl(); | |
2303 | ||
2304 | wxPyEndAllowThreads(__tstate); | |
2305 | if (PyErr_Occurred()) SWIG_fail; | |
2306 | } | |
2307 | { | |
2308 | resultobj = wxPyMake_wxObject(result); | |
2309 | } | |
2310 | return resultobj; | |
2311 | fail: | |
2312 | return NULL; | |
2313 | } | |
2314 | ||
2315 | ||
2316 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2317 | PyObject *resultobj; | |
2318 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2319 | wxControl *arg2 = (wxControl *) 0 ; | |
2320 | PyObject * obj0 = 0 ; | |
2321 | PyObject * obj1 = 0 ; | |
2322 | char *kwnames[] = { | |
2323 | (char *) "self",(char *) "control", NULL | |
2324 | }; | |
2325 | ||
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
2327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
2330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2331 | { | |
2332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2333 | (arg1)->SetControl(arg2); | |
2334 | ||
2335 | wxPyEndAllowThreads(__tstate); | |
2336 | if (PyErr_Occurred()) SWIG_fail; | |
2337 | } | |
2338 | Py_INCREF(Py_None); resultobj = Py_None; | |
2339 | return resultobj; | |
2340 | fail: | |
2341 | return NULL; | |
2342 | } | |
2343 | ||
2344 | ||
2345 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject *resultobj; | |
2347 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2348 | wxGridCellAttr *result; | |
2349 | PyObject * obj0 = 0 ; | |
2350 | char *kwnames[] = { | |
2351 | (char *) "self", NULL | |
2352 | }; | |
2353 | ||
2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; | |
2355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2357 | { | |
2358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2359 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); | |
2360 | ||
2361 | wxPyEndAllowThreads(__tstate); | |
2362 | if (PyErr_Occurred()) SWIG_fail; | |
2363 | } | |
2364 | { | |
2365 | resultobj = wxPyMake_wxGridCellAttr(result); | |
2366 | } | |
2367 | return resultobj; | |
2368 | fail: | |
2369 | return NULL; | |
2370 | } | |
2371 | ||
2372 | ||
2373 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject *resultobj; | |
2375 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2376 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | PyObject * obj1 = 0 ; | |
2379 | char *kwnames[] = { | |
2380 | (char *) "self",(char *) "attr", NULL | |
2381 | }; | |
2382 | ||
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; | |
2384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
2387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2388 | { | |
2389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2390 | (arg1)->SetCellAttr(arg2); | |
2391 | ||
2392 | wxPyEndAllowThreads(__tstate); | |
2393 | if (PyErr_Occurred()) SWIG_fail; | |
2394 | } | |
2395 | Py_INCREF(Py_None); resultobj = Py_None; | |
2396 | return resultobj; | |
2397 | fail: | |
2398 | return NULL; | |
2399 | } | |
2400 | ||
2401 | ||
2402 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2403 | PyObject *resultobj; | |
2404 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2405 | wxString *arg2 = 0 ; | |
2406 | bool temp2 = False ; | |
2407 | PyObject * obj0 = 0 ; | |
2408 | PyObject * obj1 = 0 ; | |
2409 | char *kwnames[] = { | |
2410 | (char *) "self",(char *) "params", NULL | |
2411 | }; | |
2412 | ||
2413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2416 | { | |
2417 | arg2 = wxString_in_helper(obj1); | |
2418 | if (arg2 == NULL) SWIG_fail; | |
2419 | temp2 = True; | |
2420 | } | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | (arg1)->SetParameters((wxString const &)*arg2); | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | Py_INCREF(Py_None); resultobj = Py_None; | |
2429 | { | |
2430 | if (temp2) | |
2431 | delete arg2; | |
2432 | } | |
2433 | return resultobj; | |
2434 | fail: | |
2435 | { | |
2436 | if (temp2) | |
2437 | delete arg2; | |
2438 | } | |
2439 | return NULL; | |
2440 | } | |
2441 | ||
2442 | ||
2443 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2444 | PyObject *resultobj; | |
2445 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2446 | PyObject * obj0 = 0 ; | |
2447 | char *kwnames[] = { | |
2448 | (char *) "self", NULL | |
2449 | }; | |
2450 | ||
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; | |
2452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2454 | { | |
2455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2456 | (arg1)->IncRef(); | |
2457 | ||
2458 | wxPyEndAllowThreads(__tstate); | |
2459 | if (PyErr_Occurred()) SWIG_fail; | |
2460 | } | |
2461 | Py_INCREF(Py_None); resultobj = Py_None; | |
2462 | return resultobj; | |
2463 | fail: | |
2464 | return NULL; | |
2465 | } | |
2466 | ||
2467 | ||
2468 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2469 | PyObject *resultobj; | |
2470 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2471 | PyObject * obj0 = 0 ; | |
2472 | char *kwnames[] = { | |
2473 | (char *) "self", NULL | |
2474 | }; | |
2475 | ||
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; | |
2477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2479 | { | |
2480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2481 | (arg1)->DecRef(); | |
2482 | ||
2483 | wxPyEndAllowThreads(__tstate); | |
2484 | if (PyErr_Occurred()) SWIG_fail; | |
2485 | } | |
2486 | Py_INCREF(Py_None); resultobj = Py_None; | |
2487 | return resultobj; | |
2488 | fail: | |
2489 | return NULL; | |
2490 | } | |
2491 | ||
2492 | ||
2493 | static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2494 | PyObject *resultobj; | |
2495 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2497 | int arg3 ; | |
2498 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; | |
2499 | PyObject * obj0 = 0 ; | |
2500 | PyObject * obj1 = 0 ; | |
2501 | PyObject * obj2 = 0 ; | |
2502 | PyObject * obj3 = 0 ; | |
2503 | char *kwnames[] = { | |
2504 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL | |
2505 | }; | |
2506 | ||
2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2512 | arg3 = (int) SWIG_AsInt(obj2); | |
2513 | if (PyErr_Occurred()) SWIG_fail; | |
2514 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler, | |
2515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2516 | { | |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | (arg1)->Create(arg2,arg3,arg4); | |
2519 | ||
2520 | wxPyEndAllowThreads(__tstate); | |
2521 | if (PyErr_Occurred()) SWIG_fail; | |
2522 | } | |
2523 | Py_INCREF(Py_None); resultobj = Py_None; | |
2524 | return resultobj; | |
2525 | fail: | |
2526 | return NULL; | |
2527 | } | |
2528 | ||
2529 | ||
2530 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2531 | PyObject *resultobj; | |
2532 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2533 | int arg2 ; | |
2534 | int arg3 ; | |
2535 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | PyObject * obj1 = 0 ; | |
2538 | PyObject * obj2 = 0 ; | |
2539 | PyObject * obj3 = 0 ; | |
2540 | char *kwnames[] = { | |
2541 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2542 | }; | |
2543 | ||
2544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2547 | arg2 = (int) SWIG_AsInt(obj1); | |
2548 | if (PyErr_Occurred()) SWIG_fail; | |
2549 | arg3 = (int) SWIG_AsInt(obj2); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2553 | { | |
2554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2555 | (arg1)->BeginEdit(arg2,arg3,arg4); | |
2556 | ||
2557 | wxPyEndAllowThreads(__tstate); | |
2558 | if (PyErr_Occurred()) SWIG_fail; | |
2559 | } | |
2560 | Py_INCREF(Py_None); resultobj = Py_None; | |
2561 | return resultobj; | |
2562 | fail: | |
2563 | return NULL; | |
2564 | } | |
2565 | ||
2566 | ||
2567 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2568 | PyObject *resultobj; | |
2569 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2570 | int arg2 ; | |
2571 | int arg3 ; | |
2572 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2573 | bool result; | |
2574 | PyObject * obj0 = 0 ; | |
2575 | PyObject * obj1 = 0 ; | |
2576 | PyObject * obj2 = 0 ; | |
2577 | PyObject * obj3 = 0 ; | |
2578 | char *kwnames[] = { | |
2579 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2580 | }; | |
2581 | ||
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2585 | arg2 = (int) SWIG_AsInt(obj1); | |
2586 | if (PyErr_Occurred()) SWIG_fail; | |
2587 | arg3 = (int) SWIG_AsInt(obj2); | |
2588 | if (PyErr_Occurred()) SWIG_fail; | |
2589 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2591 | { | |
2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2593 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); | |
2594 | ||
2595 | wxPyEndAllowThreads(__tstate); | |
2596 | if (PyErr_Occurred()) SWIG_fail; | |
2597 | } | |
2598 | { | |
2599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2600 | } | |
2601 | return resultobj; | |
2602 | fail: | |
2603 | return NULL; | |
2604 | } | |
2605 | ||
2606 | ||
2607 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2608 | PyObject *resultobj; | |
2609 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2610 | PyObject * obj0 = 0 ; | |
2611 | char *kwnames[] = { | |
2612 | (char *) "self", NULL | |
2613 | }; | |
2614 | ||
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; | |
2616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2618 | { | |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2620 | (arg1)->Reset(); | |
2621 | ||
2622 | wxPyEndAllowThreads(__tstate); | |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
2624 | } | |
2625 | Py_INCREF(Py_None); resultobj = Py_None; | |
2626 | return resultobj; | |
2627 | fail: | |
2628 | return NULL; | |
2629 | } | |
2630 | ||
2631 | ||
2632 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject *resultobj; | |
2634 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2635 | wxGridCellEditor *result; | |
2636 | PyObject * obj0 = 0 ; | |
2637 | char *kwnames[] = { | |
2638 | (char *) "self", NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; | |
2642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2644 | { | |
2645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2646 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); | |
2647 | ||
2648 | wxPyEndAllowThreads(__tstate); | |
2649 | if (PyErr_Occurred()) SWIG_fail; | |
2650 | } | |
2651 | { | |
2652 | resultobj = wxPyMake_wxGridCellEditor(result); | |
2653 | } | |
2654 | return resultobj; | |
2655 | fail: | |
2656 | return NULL; | |
2657 | } | |
2658 | ||
2659 | ||
2660 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject *resultobj; | |
2662 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2663 | wxRect *arg2 = 0 ; | |
2664 | wxRect temp2 ; | |
2665 | PyObject * obj0 = 0 ; | |
2666 | PyObject * obj1 = 0 ; | |
2667 | char *kwnames[] = { | |
2668 | (char *) "self",(char *) "rect", NULL | |
2669 | }; | |
2670 | ||
2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2674 | { | |
2675 | arg2 = &temp2; | |
2676 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2677 | } | |
2678 | { | |
2679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2680 | (arg1)->SetSize((wxRect const &)*arg2); | |
2681 | ||
2682 | wxPyEndAllowThreads(__tstate); | |
2683 | if (PyErr_Occurred()) SWIG_fail; | |
2684 | } | |
2685 | Py_INCREF(Py_None); resultobj = Py_None; | |
2686 | return resultobj; | |
2687 | fail: | |
2688 | return NULL; | |
2689 | } | |
2690 | ||
2691 | ||
2692 | static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2693 | PyObject *resultobj; | |
2694 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2695 | bool arg2 ; | |
2696 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2697 | PyObject * obj0 = 0 ; | |
2698 | PyObject * obj1 = 0 ; | |
2699 | PyObject * obj2 = 0 ; | |
2700 | char *kwnames[] = { | |
2701 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2702 | }; | |
2703 | ||
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2707 | arg2 = (bool) SWIG_AsBool(obj1); | |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
2709 | if (obj2) { | |
2710 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
2711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2712 | } | |
2713 | { | |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | (arg1)->Show(arg2,arg3); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | Py_INCREF(Py_None); resultobj = Py_None; | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
2727 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2728 | PyObject *resultobj; | |
2729 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2730 | wxRect *arg2 = 0 ; | |
2731 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2732 | wxRect temp2 ; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | PyObject * obj2 = 0 ; | |
2736 | char *kwnames[] = { | |
2737 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2738 | }; | |
2739 | ||
2740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2743 | { | |
2744 | arg2 = &temp2; | |
2745 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2746 | } | |
2747 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
2748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2751 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) SWIG_fail; | |
2755 | } | |
2756 | Py_INCREF(Py_None); resultobj = Py_None; | |
2757 | return resultobj; | |
2758 | fail: | |
2759 | return NULL; | |
2760 | } | |
2761 | ||
2762 | ||
2763 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2764 | PyObject *resultobj; | |
2765 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2766 | wxKeyEvent *arg2 = 0 ; | |
2767 | bool result; | |
2768 | PyObject * obj0 = 0 ; | |
2769 | PyObject * obj1 = 0 ; | |
2770 | char *kwnames[] = { | |
2771 | (char *) "self",(char *) "event", NULL | |
2772 | }; | |
2773 | ||
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2779 | SWIG_fail; | |
2780 | if (arg2 == NULL) { | |
2781 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2782 | SWIG_fail; | |
2783 | } | |
2784 | { | |
2785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2786 | result = (bool)(arg1)->IsAcceptedKey(*arg2); | |
2787 | ||
2788 | wxPyEndAllowThreads(__tstate); | |
2789 | if (PyErr_Occurred()) SWIG_fail; | |
2790 | } | |
2791 | { | |
2792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2793 | } | |
2794 | return resultobj; | |
2795 | fail: | |
2796 | return NULL; | |
2797 | } | |
2798 | ||
2799 | ||
2800 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject *resultobj; | |
2802 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2803 | wxKeyEvent *arg2 = 0 ; | |
2804 | PyObject * obj0 = 0 ; | |
2805 | PyObject * obj1 = 0 ; | |
2806 | char *kwnames[] = { | |
2807 | (char *) "self",(char *) "event", NULL | |
2808 | }; | |
2809 | ||
2810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2815 | SWIG_fail; | |
2816 | if (arg2 == NULL) { | |
2817 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2818 | SWIG_fail; | |
2819 | } | |
2820 | { | |
2821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2822 | (arg1)->StartingKey(*arg2); | |
2823 | ||
2824 | wxPyEndAllowThreads(__tstate); | |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
2826 | } | |
2827 | Py_INCREF(Py_None); resultobj = Py_None; | |
2828 | return resultobj; | |
2829 | fail: | |
2830 | return NULL; | |
2831 | } | |
2832 | ||
2833 | ||
2834 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2835 | PyObject *resultobj; | |
2836 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2837 | PyObject * obj0 = 0 ; | |
2838 | char *kwnames[] = { | |
2839 | (char *) "self", NULL | |
2840 | }; | |
2841 | ||
2842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; | |
2843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2845 | { | |
2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2847 | (arg1)->StartingClick(); | |
2848 | ||
2849 | wxPyEndAllowThreads(__tstate); | |
2850 | if (PyErr_Occurred()) SWIG_fail; | |
2851 | } | |
2852 | Py_INCREF(Py_None); resultobj = Py_None; | |
2853 | return resultobj; | |
2854 | fail: | |
2855 | return NULL; | |
2856 | } | |
2857 | ||
2858 | ||
2859 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2860 | PyObject *resultobj; | |
2861 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2862 | wxKeyEvent *arg2 = 0 ; | |
2863 | PyObject * obj0 = 0 ; | |
2864 | PyObject * obj1 = 0 ; | |
2865 | char *kwnames[] = { | |
2866 | (char *) "self",(char *) "event", NULL | |
2867 | }; | |
2868 | ||
2869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
2870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2873 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2874 | SWIG_fail; | |
2875 | if (arg2 == NULL) { | |
2876 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2877 | SWIG_fail; | |
2878 | } | |
2879 | { | |
2880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2881 | (arg1)->HandleReturn(*arg2); | |
2882 | ||
2883 | wxPyEndAllowThreads(__tstate); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
2886 | Py_INCREF(Py_None); resultobj = Py_None; | |
2887 | return resultobj; | |
2888 | fail: | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
2893 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2894 | PyObject *resultobj; | |
2895 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2896 | PyObject * obj0 = 0 ; | |
2897 | char *kwnames[] = { | |
2898 | (char *) "self", NULL | |
2899 | }; | |
2900 | ||
2901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; | |
2902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, | |
2903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | (arg1)->Destroy(); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | Py_INCREF(Py_None); resultobj = Py_None; | |
2912 | return resultobj; | |
2913 | fail: | |
2914 | return NULL; | |
2915 | } | |
2916 | ||
2917 | ||
2918 | static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
2919 | PyObject *obj; | |
2920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2921 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); | |
2922 | Py_INCREF(obj); | |
2923 | return Py_BuildValue((char *)""); | |
2924 | } | |
2925 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2926 | PyObject *resultobj; | |
2927 | wxPyGridCellEditor *result; | |
2928 | char *kwnames[] = { | |
2929 | NULL | |
2930 | }; | |
2931 | ||
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; | |
2933 | { | |
2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2935 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); | |
2936 | ||
2937 | wxPyEndAllowThreads(__tstate); | |
2938 | if (PyErr_Occurred()) SWIG_fail; | |
2939 | } | |
2940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1); | |
2941 | return resultobj; | |
2942 | fail: | |
2943 | return NULL; | |
2944 | } | |
2945 | ||
2946 | ||
2947 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2948 | PyObject *resultobj; | |
2949 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2950 | PyObject *arg2 = (PyObject *) 0 ; | |
2951 | PyObject *arg3 = (PyObject *) 0 ; | |
2952 | PyObject * obj0 = 0 ; | |
2953 | PyObject * obj1 = 0 ; | |
2954 | PyObject * obj2 = 0 ; | |
2955 | char *kwnames[] = { | |
2956 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2957 | }; | |
2958 | ||
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
2961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2962 | arg2 = obj1; | |
2963 | arg3 = obj2; | |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2966 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2967 | ||
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) SWIG_fail; | |
2970 | } | |
2971 | Py_INCREF(Py_None); resultobj = Py_None; | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
2978 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject *resultobj; | |
2980 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2981 | wxRect *arg2 = 0 ; | |
2982 | wxRect temp2 ; | |
2983 | PyObject * obj0 = 0 ; | |
2984 | PyObject * obj1 = 0 ; | |
2985 | char *kwnames[] = { | |
2986 | (char *) "self",(char *) "rect", NULL | |
2987 | }; | |
2988 | ||
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
2991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2992 | { | |
2993 | arg2 = &temp2; | |
2994 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2995 | } | |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | (arg1)->base_SetSize((wxRect const &)*arg2); | |
2999 | ||
3000 | wxPyEndAllowThreads(__tstate); | |
3001 | if (PyErr_Occurred()) SWIG_fail; | |
3002 | } | |
3003 | Py_INCREF(Py_None); resultobj = Py_None; | |
3004 | return resultobj; | |
3005 | fail: | |
3006 | return NULL; | |
3007 | } | |
3008 | ||
3009 | ||
3010 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3011 | PyObject *resultobj; | |
3012 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3013 | bool arg2 ; | |
3014 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
3015 | PyObject * obj0 = 0 ; | |
3016 | PyObject * obj1 = 0 ; | |
3017 | PyObject * obj2 = 0 ; | |
3018 | char *kwnames[] = { | |
3019 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
3020 | }; | |
3021 | ||
3022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3025 | arg2 = (bool) SWIG_AsBool(obj1); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | if (obj2) { | |
3028 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
3029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3030 | } | |
3031 | { | |
3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3033 | (arg1)->base_Show(arg2,arg3); | |
3034 | ||
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
3038 | Py_INCREF(Py_None); resultobj = Py_None; | |
3039 | return resultobj; | |
3040 | fail: | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
3045 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject *resultobj; | |
3047 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3048 | wxRect *arg2 = 0 ; | |
3049 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
3050 | wxRect temp2 ; | |
3051 | PyObject * obj0 = 0 ; | |
3052 | PyObject * obj1 = 0 ; | |
3053 | PyObject * obj2 = 0 ; | |
3054 | char *kwnames[] = { | |
3055 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
3056 | }; | |
3057 | ||
3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3061 | { | |
3062 | arg2 = &temp2; | |
3063 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3064 | } | |
3065 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
3066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3067 | { | |
3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3069 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); | |
3070 | ||
3071 | wxPyEndAllowThreads(__tstate); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | } | |
3074 | Py_INCREF(Py_None); resultobj = Py_None; | |
3075 | return resultobj; | |
3076 | fail: | |
3077 | return NULL; | |
3078 | } | |
3079 | ||
3080 | ||
3081 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject *resultobj; | |
3083 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3084 | wxKeyEvent *arg2 = 0 ; | |
3085 | bool result; | |
3086 | PyObject * obj0 = 0 ; | |
3087 | PyObject * obj1 = 0 ; | |
3088 | char *kwnames[] = { | |
3089 | (char *) "self",(char *) "event", NULL | |
3090 | }; | |
3091 | ||
3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
3093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3097 | SWIG_fail; | |
3098 | if (arg2 == NULL) { | |
3099 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3100 | SWIG_fail; | |
3101 | } | |
3102 | { | |
3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3104 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); | |
3105 | ||
3106 | wxPyEndAllowThreads(__tstate); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
3108 | } | |
3109 | { | |
3110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3111 | } | |
3112 | return resultobj; | |
3113 | fail: | |
3114 | return NULL; | |
3115 | } | |
3116 | ||
3117 | ||
3118 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3119 | PyObject *resultobj; | |
3120 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3121 | wxKeyEvent *arg2 = 0 ; | |
3122 | PyObject * obj0 = 0 ; | |
3123 | PyObject * obj1 = 0 ; | |
3124 | char *kwnames[] = { | |
3125 | (char *) "self",(char *) "event", NULL | |
3126 | }; | |
3127 | ||
3128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
3129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3133 | SWIG_fail; | |
3134 | if (arg2 == NULL) { | |
3135 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3136 | SWIG_fail; | |
3137 | } | |
3138 | { | |
3139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3140 | (arg1)->base_StartingKey(*arg2); | |
3141 | ||
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
3145 | Py_INCREF(Py_None); resultobj = Py_None; | |
3146 | return resultobj; | |
3147 | fail: | |
3148 | return NULL; | |
3149 | } | |
3150 | ||
3151 | ||
3152 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3153 | PyObject *resultobj; | |
3154 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3155 | PyObject * obj0 = 0 ; | |
3156 | char *kwnames[] = { | |
3157 | (char *) "self", NULL | |
3158 | }; | |
3159 | ||
3160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; | |
3161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3163 | { | |
3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3165 | (arg1)->base_StartingClick(); | |
3166 | ||
3167 | wxPyEndAllowThreads(__tstate); | |
3168 | if (PyErr_Occurred()) SWIG_fail; | |
3169 | } | |
3170 | Py_INCREF(Py_None); resultobj = Py_None; | |
3171 | return resultobj; | |
3172 | fail: | |
3173 | return NULL; | |
3174 | } | |
3175 | ||
3176 | ||
3177 | static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3178 | PyObject *resultobj; | |
3179 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3180 | wxKeyEvent *arg2 = 0 ; | |
3181 | PyObject * obj0 = 0 ; | |
3182 | PyObject * obj1 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self",(char *) "event", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
3188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3192 | SWIG_fail; | |
3193 | if (arg2 == NULL) { | |
3194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3195 | SWIG_fail; | |
3196 | } | |
3197 | { | |
3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3199 | (arg1)->base_HandleReturn(*arg2); | |
3200 | ||
3201 | wxPyEndAllowThreads(__tstate); | |
3202 | if (PyErr_Occurred()) SWIG_fail; | |
3203 | } | |
3204 | Py_INCREF(Py_None); resultobj = Py_None; | |
3205 | return resultobj; | |
3206 | fail: | |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
3211 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3212 | PyObject *resultobj; | |
3213 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3214 | PyObject * obj0 = 0 ; | |
3215 | char *kwnames[] = { | |
3216 | (char *) "self", NULL | |
3217 | }; | |
3218 | ||
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; | |
3220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3222 | { | |
3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3224 | (arg1)->base_Destroy(); | |
3225 | ||
3226 | wxPyEndAllowThreads(__tstate); | |
3227 | if (PyErr_Occurred()) SWIG_fail; | |
3228 | } | |
3229 | Py_INCREF(Py_None); resultobj = Py_None; | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | return NULL; | |
3233 | } | |
3234 | ||
3235 | ||
3236 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject *resultobj; | |
3238 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3239 | wxString *arg2 = 0 ; | |
3240 | bool temp2 = False ; | |
3241 | PyObject * obj0 = 0 ; | |
3242 | PyObject * obj1 = 0 ; | |
3243 | char *kwnames[] = { | |
3244 | (char *) "self",(char *) "params", NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
3248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, | |
3249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3250 | { | |
3251 | arg2 = wxString_in_helper(obj1); | |
3252 | if (arg2 == NULL) SWIG_fail; | |
3253 | temp2 = True; | |
3254 | } | |
3255 | { | |
3256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3257 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
3258 | ||
3259 | wxPyEndAllowThreads(__tstate); | |
3260 | if (PyErr_Occurred()) SWIG_fail; | |
3261 | } | |
3262 | Py_INCREF(Py_None); resultobj = Py_None; | |
3263 | { | |
3264 | if (temp2) | |
3265 | delete arg2; | |
3266 | } | |
3267 | return resultobj; | |
3268 | fail: | |
3269 | { | |
3270 | if (temp2) | |
3271 | delete arg2; | |
3272 | } | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
3277 | static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
3278 | PyObject *obj; | |
3279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3280 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); | |
3281 | Py_INCREF(obj); | |
3282 | return Py_BuildValue((char *)""); | |
3283 | } | |
3284 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject *resultobj; | |
3286 | wxGridCellTextEditor *result; | |
3287 | char *kwnames[] = { | |
3288 | NULL | |
3289 | }; | |
3290 | ||
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; | |
3292 | { | |
3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3294 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); | |
3295 | ||
3296 | wxPyEndAllowThreads(__tstate); | |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
3298 | } | |
3299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1); | |
3300 | return resultobj; | |
3301 | fail: | |
3302 | return NULL; | |
3303 | } | |
3304 | ||
3305 | ||
3306 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3307 | PyObject *resultobj; | |
3308 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; | |
3309 | wxString result; | |
3310 | PyObject * obj0 = 0 ; | |
3311 | char *kwnames[] = { | |
3312 | (char *) "self", NULL | |
3313 | }; | |
3314 | ||
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; | |
3316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor, | |
3317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3318 | { | |
3319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3320 | result = (arg1)->GetValue(); | |
3321 | ||
3322 | wxPyEndAllowThreads(__tstate); | |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
3324 | } | |
3325 | { | |
3326 | #if wxUSE_UNICODE | |
3327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3328 | #else | |
3329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3330 | #endif | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) { | |
3339 | PyObject *obj; | |
3340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3341 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); | |
3342 | Py_INCREF(obj); | |
3343 | return Py_BuildValue((char *)""); | |
3344 | } | |
3345 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject *resultobj; | |
3347 | int arg1 = (int) -1 ; | |
3348 | int arg2 = (int) -1 ; | |
3349 | wxGridCellNumberEditor *result; | |
3350 | PyObject * obj0 = 0 ; | |
3351 | PyObject * obj1 = 0 ; | |
3352 | char *kwnames[] = { | |
3353 | (char *) "min",(char *) "max", NULL | |
3354 | }; | |
3355 | ||
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; | |
3357 | if (obj0) { | |
3358 | arg1 = (int) SWIG_AsInt(obj0); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | if (obj1) { | |
3362 | arg2 = (int) SWIG_AsInt(obj1); | |
3363 | if (PyErr_Occurred()) SWIG_fail; | |
3364 | } | |
3365 | { | |
3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3367 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); | |
3368 | ||
3369 | wxPyEndAllowThreads(__tstate); | |
3370 | if (PyErr_Occurred()) SWIG_fail; | |
3371 | } | |
3372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1); | |
3373 | return resultobj; | |
3374 | fail: | |
3375 | return NULL; | |
3376 | } | |
3377 | ||
3378 | ||
3379 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject *resultobj; | |
3381 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; | |
3382 | wxString result; | |
3383 | PyObject * obj0 = 0 ; | |
3384 | char *kwnames[] = { | |
3385 | (char *) "self", NULL | |
3386 | }; | |
3387 | ||
3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; | |
3389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor, | |
3390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3391 | { | |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | result = (arg1)->GetValue(); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | { | |
3399 | #if wxUSE_UNICODE | |
3400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3401 | #else | |
3402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3403 | #endif | |
3404 | } | |
3405 | return resultobj; | |
3406 | fail: | |
3407 | return NULL; | |
3408 | } | |
3409 | ||
3410 | ||
3411 | static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) { | |
3412 | PyObject *obj; | |
3413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3414 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); | |
3415 | Py_INCREF(obj); | |
3416 | return Py_BuildValue((char *)""); | |
3417 | } | |
3418 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject *resultobj; | |
3420 | int arg1 = (int) -1 ; | |
3421 | int arg2 = (int) -1 ; | |
3422 | wxGridCellFloatEditor *result; | |
3423 | PyObject * obj0 = 0 ; | |
3424 | PyObject * obj1 = 0 ; | |
3425 | char *kwnames[] = { | |
3426 | (char *) "width",(char *) "precision", NULL | |
3427 | }; | |
3428 | ||
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatEditor",kwnames,&obj0,&obj1)) goto fail; | |
3430 | if (obj0) { | |
3431 | arg1 = (int) SWIG_AsInt(obj0); | |
3432 | if (PyErr_Occurred()) SWIG_fail; | |
3433 | } | |
3434 | if (obj1) { | |
3435 | arg2 = (int) SWIG_AsInt(obj1); | |
3436 | if (PyErr_Occurred()) SWIG_fail; | |
3437 | } | |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(arg1,arg2); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1); | |
3446 | return resultobj; | |
3447 | fail: | |
3448 | return NULL; | |
3449 | } | |
3450 | ||
3451 | ||
3452 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3453 | PyObject *resultobj; | |
3454 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; | |
3455 | wxString result; | |
3456 | PyObject * obj0 = 0 ; | |
3457 | char *kwnames[] = { | |
3458 | (char *) "self", NULL | |
3459 | }; | |
3460 | ||
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; | |
3462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor, | |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3464 | { | |
3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3466 | result = (arg1)->GetValue(); | |
3467 | ||
3468 | wxPyEndAllowThreads(__tstate); | |
3469 | if (PyErr_Occurred()) SWIG_fail; | |
3470 | } | |
3471 | { | |
3472 | #if wxUSE_UNICODE | |
3473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3474 | #else | |
3475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3476 | #endif | |
3477 | } | |
3478 | return resultobj; | |
3479 | fail: | |
3480 | return NULL; | |
3481 | } | |
3482 | ||
3483 | ||
3484 | static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) { | |
3485 | PyObject *obj; | |
3486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3487 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); | |
3488 | Py_INCREF(obj); | |
3489 | return Py_BuildValue((char *)""); | |
3490 | } | |
3491 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3492 | PyObject *resultobj; | |
3493 | wxGridCellBoolEditor *result; | |
3494 | char *kwnames[] = { | |
3495 | NULL | |
3496 | }; | |
3497 | ||
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1); | |
3507 | return resultobj; | |
3508 | fail: | |
3509 | return NULL; | |
3510 | } | |
3511 | ||
3512 | ||
3513 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject *resultobj; | |
3515 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; | |
3516 | wxString result; | |
3517 | PyObject * obj0 = 0 ; | |
3518 | char *kwnames[] = { | |
3519 | (char *) "self", NULL | |
3520 | }; | |
3521 | ||
3522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; | |
3523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor, | |
3524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3525 | { | |
3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3527 | result = (arg1)->GetValue(); | |
3528 | ||
3529 | wxPyEndAllowThreads(__tstate); | |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
3531 | } | |
3532 | { | |
3533 | #if wxUSE_UNICODE | |
3534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3535 | #else | |
3536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3537 | #endif | |
3538 | } | |
3539 | return resultobj; | |
3540 | fail: | |
3541 | return NULL; | |
3542 | } | |
3543 | ||
3544 | ||
3545 | static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) { | |
3546 | PyObject *obj; | |
3547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3548 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); | |
3549 | Py_INCREF(obj); | |
3550 | return Py_BuildValue((char *)""); | |
3551 | } | |
3552 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3553 | PyObject *resultobj; | |
3554 | int arg1 = (int) 0 ; | |
3555 | wxString *arg2 = (wxString *) NULL ; | |
3556 | bool arg3 = (bool) False ; | |
3557 | wxGridCellChoiceEditor *result; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | PyObject * obj1 = 0 ; | |
3560 | char *kwnames[] = { | |
3561 | (char *) "choices",(char *) "allowOthers", NULL | |
3562 | }; | |
3563 | ||
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; | |
3565 | if (obj0) { | |
3566 | { | |
3567 | arg1 = PyList_Size(obj0); | |
3568 | arg2 = wxString_LIST_helper(obj0); | |
3569 | if (arg2 == NULL) SWIG_fail; | |
3570 | } | |
3571 | } | |
3572 | if (obj1) { | |
3573 | arg3 = (bool) SWIG_AsBool(obj1); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | { | |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
3583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1); | |
3584 | { | |
3585 | if (arg2) delete [] arg2; | |
3586 | } | |
3587 | return resultobj; | |
3588 | fail: | |
3589 | { | |
3590 | if (arg2) delete [] arg2; | |
3591 | } | |
3592 | return NULL; | |
3593 | } | |
3594 | ||
3595 | ||
3596 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3597 | PyObject *resultobj; | |
3598 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; | |
3599 | wxString result; | |
3600 | PyObject * obj0 = 0 ; | |
3601 | char *kwnames[] = { | |
3602 | (char *) "self", NULL | |
3603 | }; | |
3604 | ||
3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; | |
3606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor, | |
3607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3608 | { | |
3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3610 | result = (arg1)->GetValue(); | |
3611 | ||
3612 | wxPyEndAllowThreads(__tstate); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | } | |
3615 | { | |
3616 | #if wxUSE_UNICODE | |
3617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3618 | #else | |
3619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3620 | #endif | |
3621 | } | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) { | |
3629 | PyObject *obj; | |
3630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3631 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); | |
3632 | Py_INCREF(obj); | |
3633 | return Py_BuildValue((char *)""); | |
3634 | } | |
3635 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3636 | PyObject *resultobj; | |
3637 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3638 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3639 | wxGridCellEnumEditor *result; | |
3640 | bool temp1 = False ; | |
3641 | PyObject * obj0 = 0 ; | |
3642 | char *kwnames[] = { | |
3643 | (char *) "choices", NULL | |
3644 | }; | |
3645 | ||
3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; | |
3647 | if (obj0) { | |
3648 | { | |
3649 | arg1 = wxString_in_helper(obj0); | |
3650 | if (arg1 == NULL) SWIG_fail; | |
3651 | temp1 = True; | |
3652 | } | |
3653 | } | |
3654 | { | |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1); | |
3662 | { | |
3663 | if (temp1) | |
3664 | delete arg1; | |
3665 | } | |
3666 | return resultobj; | |
3667 | fail: | |
3668 | { | |
3669 | if (temp1) | |
3670 | delete arg1; | |
3671 | } | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; | |
3679 | wxString result; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | char *kwnames[] = { | |
3682 | (char *) "self", NULL | |
3683 | }; | |
3684 | ||
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; | |
3686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor, | |
3687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3688 | { | |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | result = (arg1)->GetValue(); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | { | |
3696 | #if wxUSE_UNICODE | |
3697 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3698 | #else | |
3699 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3700 | #endif | |
3701 | } | |
3702 | return resultobj; | |
3703 | fail: | |
3704 | return NULL; | |
3705 | } | |
3706 | ||
3707 | ||
3708 | static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) { | |
3709 | PyObject *obj; | |
3710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3711 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); | |
3712 | Py_INCREF(obj); | |
3713 | return Py_BuildValue((char *)""); | |
3714 | } | |
3715 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3716 | PyObject *resultobj; | |
3717 | wxGridCellAutoWrapStringEditor *result; | |
3718 | char *kwnames[] = { | |
3719 | NULL | |
3720 | }; | |
3721 | ||
3722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; | |
3723 | { | |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
3737 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3738 | PyObject *resultobj; | |
3739 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; | |
3740 | wxString result; | |
3741 | PyObject * obj0 = 0 ; | |
3742 | char *kwnames[] = { | |
3743 | (char *) "self", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; | |
3747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor, | |
3748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3749 | { | |
3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3751 | result = (arg1)->GetValue(); | |
3752 | ||
3753 | wxPyEndAllowThreads(__tstate); | |
3754 | if (PyErr_Occurred()) SWIG_fail; | |
3755 | } | |
3756 | { | |
3757 | #if wxUSE_UNICODE | |
3758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3759 | #else | |
3760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3761 | #endif | |
3762 | } | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
3769 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) { | |
3770 | PyObject *obj; | |
3771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3772 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); | |
3773 | Py_INCREF(obj); | |
3774 | return Py_BuildValue((char *)""); | |
3775 | } | |
3776 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject *resultobj; | |
3778 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3779 | PyObject *arg2 = (PyObject *) 0 ; | |
3780 | PyObject * obj0 = 0 ; | |
3781 | PyObject * obj1 = 0 ; | |
3782 | char *kwnames[] = { | |
3783 | (char *) "self",(char *) "_self", NULL | |
3784 | }; | |
3785 | ||
3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
3787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3789 | arg2 = obj1; | |
3790 | { | |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3792 | wxGridCellAttr__setOORInfo(arg1,arg2); | |
3793 | ||
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | Py_INCREF(Py_None); resultobj = Py_None; | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | return NULL; | |
3801 | } | |
3802 | ||
3803 | ||
3804 | static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject *resultobj; | |
3806 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; | |
3807 | wxGridCellAttr *result; | |
3808 | PyObject * obj0 = 0 ; | |
3809 | char *kwnames[] = { | |
3810 | (char *) "attrDefault", NULL | |
3811 | }; | |
3812 | ||
3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; | |
3814 | if (obj0) { | |
3815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3817 | } | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); | |
3821 | ||
3822 | wxPyEndAllowThreads(__tstate); | |
3823 | if (PyErr_Occurred()) SWIG_fail; | |
3824 | } | |
3825 | { | |
3826 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3827 | } | |
3828 | return resultobj; | |
3829 | fail: | |
3830 | return NULL; | |
3831 | } | |
3832 | ||
3833 | ||
3834 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3835 | PyObject *resultobj; | |
3836 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3837 | wxGridCellAttr *result; | |
3838 | PyObject * obj0 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | { | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
3853 | { | |
3854 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3855 | } | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject *resultobj; | |
3864 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3865 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
3866 | PyObject * obj0 = 0 ; | |
3867 | PyObject * obj1 = 0 ; | |
3868 | char *kwnames[] = { | |
3869 | (char *) "self",(char *) "mergefrom", NULL | |
3870 | }; | |
3871 | ||
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; | |
3873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
3876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | (arg1)->MergeWith(arg2); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | Py_INCREF(Py_None); resultobj = Py_None; | |
3885 | return resultobj; | |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
3891 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject *resultobj; | |
3893 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3894 | PyObject * obj0 = 0 ; | |
3895 | char *kwnames[] = { | |
3896 | (char *) "self", NULL | |
3897 | }; | |
3898 | ||
3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; | |
3900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3902 | { | |
3903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3904 | (arg1)->IncRef(); | |
3905 | ||
3906 | wxPyEndAllowThreads(__tstate); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
3909 | Py_INCREF(Py_None); resultobj = Py_None; | |
3910 | return resultobj; | |
3911 | fail: | |
3912 | return NULL; | |
3913 | } | |
3914 | ||
3915 | ||
3916 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3917 | PyObject *resultobj; | |
3918 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3919 | PyObject * obj0 = 0 ; | |
3920 | char *kwnames[] = { | |
3921 | (char *) "self", NULL | |
3922 | }; | |
3923 | ||
3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; | |
3925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3927 | { | |
3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3929 | (arg1)->DecRef(); | |
3930 | ||
3931 | wxPyEndAllowThreads(__tstate); | |
3932 | if (PyErr_Occurred()) SWIG_fail; | |
3933 | } | |
3934 | Py_INCREF(Py_None); resultobj = Py_None; | |
3935 | return resultobj; | |
3936 | fail: | |
3937 | return NULL; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3944 | wxColour *arg2 = 0 ; | |
3945 | wxColour temp2 ; | |
3946 | PyObject * obj0 = 0 ; | |
3947 | PyObject * obj1 = 0 ; | |
3948 | char *kwnames[] = { | |
3949 | (char *) "self",(char *) "colText", NULL | |
3950 | }; | |
3951 | ||
3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
3953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3955 | { | |
3956 | arg2 = &temp2; | |
3957 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3958 | } | |
3959 | { | |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3962 | ||
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
3966 | Py_INCREF(Py_None); resultobj = Py_None; | |
3967 | return resultobj; | |
3968 | fail: | |
3969 | return NULL; | |
3970 | } | |
3971 | ||
3972 | ||
3973 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject *resultobj; | |
3975 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3976 | wxColour *arg2 = 0 ; | |
3977 | wxColour temp2 ; | |
3978 | PyObject * obj0 = 0 ; | |
3979 | PyObject * obj1 = 0 ; | |
3980 | char *kwnames[] = { | |
3981 | (char *) "self",(char *) "colBack", NULL | |
3982 | }; | |
3983 | ||
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
3985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
3986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3987 | { | |
3988 | arg2 = &temp2; | |
3989 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3990 | } | |
3991 | { | |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3994 | ||
3995 | wxPyEndAllowThreads(__tstate); | |
3996 | if (PyErr_Occurred()) SWIG_fail; | |
3997 | } | |
3998 | Py_INCREF(Py_None); resultobj = Py_None; | |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4008 | wxFont *arg2 = 0 ; | |
4009 | PyObject * obj0 = 0 ; | |
4010 | PyObject * obj1 = 0 ; | |
4011 | char *kwnames[] = { | |
4012 | (char *) "self",(char *) "font", NULL | |
4013 | }; | |
4014 | ||
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
4016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4018 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
4019 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4020 | SWIG_fail; | |
4021 | if (arg2 == NULL) { | |
4022 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4023 | SWIG_fail; | |
4024 | } | |
4025 | { | |
4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4027 | (arg1)->SetFont((wxFont const &)*arg2); | |
4028 | ||
4029 | wxPyEndAllowThreads(__tstate); | |
4030 | if (PyErr_Occurred()) SWIG_fail; | |
4031 | } | |
4032 | Py_INCREF(Py_None); resultobj = Py_None; | |
4033 | return resultobj; | |
4034 | fail: | |
4035 | return NULL; | |
4036 | } | |
4037 | ||
4038 | ||
4039 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4040 | PyObject *resultobj; | |
4041 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4042 | int arg2 ; | |
4043 | int arg3 ; | |
4044 | PyObject * obj0 = 0 ; | |
4045 | PyObject * obj1 = 0 ; | |
4046 | PyObject * obj2 = 0 ; | |
4047 | char *kwnames[] = { | |
4048 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL | |
4049 | }; | |
4050 | ||
4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4054 | arg2 = (int) SWIG_AsInt(obj1); | |
4055 | if (PyErr_Occurred()) SWIG_fail; | |
4056 | arg3 = (int) SWIG_AsInt(obj2); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | { | |
4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4060 | (arg1)->SetAlignment(arg2,arg3); | |
4061 | ||
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | Py_INCREF(Py_None); resultobj = Py_None; | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
4072 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject *resultobj; | |
4074 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4075 | int arg2 ; | |
4076 | int arg3 ; | |
4077 | PyObject * obj0 = 0 ; | |
4078 | PyObject * obj1 = 0 ; | |
4079 | PyObject * obj2 = 0 ; | |
4080 | char *kwnames[] = { | |
4081 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL | |
4082 | }; | |
4083 | ||
4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4087 | arg2 = (int) SWIG_AsInt(obj1); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | arg3 = (int) SWIG_AsInt(obj2); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | { | |
4092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4093 | (arg1)->SetSize(arg2,arg3); | |
4094 | ||
4095 | wxPyEndAllowThreads(__tstate); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | } | |
4098 | Py_INCREF(Py_None); resultobj = Py_None; | |
4099 | return resultobj; | |
4100 | fail: | |
4101 | return NULL; | |
4102 | } | |
4103 | ||
4104 | ||
4105 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4106 | PyObject *resultobj; | |
4107 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4108 | bool arg2 = (bool) True ; | |
4109 | PyObject * obj0 = 0 ; | |
4110 | PyObject * obj1 = 0 ; | |
4111 | char *kwnames[] = { | |
4112 | (char *) "self",(char *) "allow", NULL | |
4113 | }; | |
4114 | ||
4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; | |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4118 | if (obj1) { | |
4119 | arg2 = (bool) SWIG_AsBool(obj1); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | } | |
4122 | { | |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | (arg1)->SetOverflow(arg2); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | Py_INCREF(Py_None); resultobj = Py_None; | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4137 | PyObject *resultobj; | |
4138 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4139 | bool arg2 = (bool) True ; | |
4140 | PyObject * obj0 = 0 ; | |
4141 | PyObject * obj1 = 0 ; | |
4142 | char *kwnames[] = { | |
4143 | (char *) "self",(char *) "isReadOnly", NULL | |
4144 | }; | |
4145 | ||
4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; | |
4147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4149 | if (obj1) { | |
4150 | arg2 = (bool) SWIG_AsBool(obj1); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
4152 | } | |
4153 | { | |
4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4155 | (arg1)->SetReadOnly(arg2); | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
4160 | Py_INCREF(Py_None); resultobj = Py_None; | |
4161 | return resultobj; | |
4162 | fail: | |
4163 | return NULL; | |
4164 | } | |
4165 | ||
4166 | ||
4167 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4168 | PyObject *resultobj; | |
4169 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4170 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
4171 | PyObject * obj0 = 0 ; | |
4172 | PyObject * obj1 = 0 ; | |
4173 | char *kwnames[] = { | |
4174 | (char *) "self",(char *) "renderer", NULL | |
4175 | }; | |
4176 | ||
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; | |
4178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
4181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | (arg1)->SetRenderer(arg2); | |
4185 | ||
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | Py_INCREF(Py_None); resultobj = Py_None; | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4199 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
4200 | PyObject * obj0 = 0 ; | |
4201 | PyObject * obj1 = 0 ; | |
4202 | char *kwnames[] = { | |
4203 | (char *) "self",(char *) "editor", NULL | |
4204 | }; | |
4205 | ||
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; | |
4207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, | |
4210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4211 | { | |
4212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4213 | (arg1)->SetEditor(arg2); | |
4214 | ||
4215 | wxPyEndAllowThreads(__tstate); | |
4216 | if (PyErr_Occurred()) SWIG_fail; | |
4217 | } | |
4218 | Py_INCREF(Py_None); resultobj = Py_None; | |
4219 | return resultobj; | |
4220 | fail: | |
4221 | return NULL; | |
4222 | } | |
4223 | ||
4224 | ||
4225 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject *resultobj; | |
4227 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4228 | int arg2 ; | |
4229 | PyObject * obj0 = 0 ; | |
4230 | PyObject * obj1 = 0 ; | |
4231 | char *kwnames[] = { | |
4232 | (char *) "self",(char *) "kind", NULL | |
4233 | }; | |
4234 | ||
4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
4236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4238 | arg2 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj1); | |
4239 | if (PyErr_Occurred()) SWIG_fail; | |
4240 | { | |
4241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4242 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); | |
4243 | ||
4244 | wxPyEndAllowThreads(__tstate); | |
4245 | if (PyErr_Occurred()) SWIG_fail; | |
4246 | } | |
4247 | Py_INCREF(Py_None); resultobj = Py_None; | |
4248 | return resultobj; | |
4249 | fail: | |
4250 | return NULL; | |
4251 | } | |
4252 | ||
4253 | ||
4254 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4255 | PyObject *resultobj; | |
4256 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4257 | bool result; | |
4258 | PyObject * obj0 = 0 ; | |
4259 | char *kwnames[] = { | |
4260 | (char *) "self", NULL | |
4261 | }; | |
4262 | ||
4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
4264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4266 | { | |
4267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4268 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); | |
4269 | ||
4270 | wxPyEndAllowThreads(__tstate); | |
4271 | if (PyErr_Occurred()) SWIG_fail; | |
4272 | } | |
4273 | { | |
4274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4275 | } | |
4276 | return resultobj; | |
4277 | fail: | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
4282 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4283 | PyObject *resultobj; | |
4284 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4285 | bool result; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | char *kwnames[] = { | |
4288 | (char *) "self", NULL | |
4289 | }; | |
4290 | ||
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
4292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4301 | { | |
4302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4303 | } | |
4304 | return resultobj; | |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4311 | PyObject *resultobj; | |
4312 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4313 | bool result; | |
4314 | PyObject * obj0 = 0 ; | |
4315 | char *kwnames[] = { | |
4316 | (char *) "self", NULL | |
4317 | }; | |
4318 | ||
4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; | |
4320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4322 | { | |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4324 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | { | |
4330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4331 | } | |
4332 | return resultobj; | |
4333 | fail: | |
4334 | return NULL; | |
4335 | } | |
4336 | ||
4337 | ||
4338 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4339 | PyObject *resultobj; | |
4340 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4341 | bool result; | |
4342 | PyObject * obj0 = 0 ; | |
4343 | char *kwnames[] = { | |
4344 | (char *) "self", NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
4348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4350 | { | |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4352 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) SWIG_fail; | |
4356 | } | |
4357 | { | |
4358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4359 | } | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
4366 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject *resultobj; | |
4368 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4369 | bool result; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | char *kwnames[] = { | |
4372 | (char *) "self", NULL | |
4373 | }; | |
4374 | ||
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; | |
4376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4378 | { | |
4379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4380 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); | |
4381 | ||
4382 | wxPyEndAllowThreads(__tstate); | |
4383 | if (PyErr_Occurred()) SWIG_fail; | |
4384 | } | |
4385 | { | |
4386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4387 | } | |
4388 | return resultobj; | |
4389 | fail: | |
4390 | return NULL; | |
4391 | } | |
4392 | ||
4393 | ||
4394 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4395 | PyObject *resultobj; | |
4396 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4397 | bool result; | |
4398 | PyObject * obj0 = 0 ; | |
4399 | char *kwnames[] = { | |
4400 | (char *) "self", NULL | |
4401 | }; | |
4402 | ||
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; | |
4404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4406 | { | |
4407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4408 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); | |
4409 | ||
4410 | wxPyEndAllowThreads(__tstate); | |
4411 | if (PyErr_Occurred()) SWIG_fail; | |
4412 | } | |
4413 | { | |
4414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4415 | } | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | return NULL; | |
4419 | } | |
4420 | ||
4421 | ||
4422 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject *resultobj; | |
4424 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4425 | bool result; | |
4426 | PyObject * obj0 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "self", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; | |
4432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | { | |
4442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4443 | } | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | return NULL; | |
4447 | } | |
4448 | ||
4449 | ||
4450 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4451 | PyObject *resultobj; | |
4452 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4453 | bool result; | |
4454 | PyObject * obj0 = 0 ; | |
4455 | char *kwnames[] = { | |
4456 | (char *) "self", NULL | |
4457 | }; | |
4458 | ||
4459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; | |
4460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4462 | { | |
4463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4464 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); | |
4465 | ||
4466 | wxPyEndAllowThreads(__tstate); | |
4467 | if (PyErr_Occurred()) SWIG_fail; | |
4468 | } | |
4469 | { | |
4470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4471 | } | |
4472 | return resultobj; | |
4473 | fail: | |
4474 | return NULL; | |
4475 | } | |
4476 | ||
4477 | ||
4478 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4479 | PyObject *resultobj; | |
4480 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4481 | wxColour result; | |
4482 | PyObject * obj0 = 0 ; | |
4483 | char *kwnames[] = { | |
4484 | (char *) "self", NULL | |
4485 | }; | |
4486 | ||
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
4488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4490 | { | |
4491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4492 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); | |
4493 | ||
4494 | wxPyEndAllowThreads(__tstate); | |
4495 | if (PyErr_Occurred()) SWIG_fail; | |
4496 | } | |
4497 | { | |
4498 | wxColour * resultptr; | |
4499 | resultptr = new wxColour((wxColour &) result); | |
4500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
4501 | } | |
4502 | return resultobj; | |
4503 | fail: | |
4504 | return NULL; | |
4505 | } | |
4506 | ||
4507 | ||
4508 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4509 | PyObject *resultobj; | |
4510 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4511 | wxColour result; | |
4512 | PyObject * obj0 = 0 ; | |
4513 | char *kwnames[] = { | |
4514 | (char *) "self", NULL | |
4515 | }; | |
4516 | ||
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
4518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4520 | { | |
4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4522 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); | |
4523 | ||
4524 | wxPyEndAllowThreads(__tstate); | |
4525 | if (PyErr_Occurred()) SWIG_fail; | |
4526 | } | |
4527 | { | |
4528 | wxColour * resultptr; | |
4529 | resultptr = new wxColour((wxColour &) result); | |
4530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
4531 | } | |
4532 | return resultobj; | |
4533 | fail: | |
4534 | return NULL; | |
4535 | } | |
4536 | ||
4537 | ||
4538 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4539 | PyObject *resultobj; | |
4540 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4541 | wxFont result; | |
4542 | PyObject * obj0 = 0 ; | |
4543 | char *kwnames[] = { | |
4544 | (char *) "self", NULL | |
4545 | }; | |
4546 | ||
4547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; | |
4548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4550 | { | |
4551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4552 | result = ((wxGridCellAttr const *)arg1)->GetFont(); | |
4553 | ||
4554 | wxPyEndAllowThreads(__tstate); | |
4555 | if (PyErr_Occurred()) SWIG_fail; | |
4556 | } | |
4557 | { | |
4558 | wxFont * resultptr; | |
4559 | resultptr = new wxFont((wxFont &) result); | |
4560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
4561 | } | |
4562 | return resultobj; | |
4563 | fail: | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
4568 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject *resultobj; | |
4570 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4571 | int *arg2 = (int *) 0 ; | |
4572 | int *arg3 = (int *) 0 ; | |
4573 | int temp2 ; | |
4574 | int temp3 ; | |
4575 | PyObject * obj0 = 0 ; | |
4576 | char *kwnames[] = { | |
4577 | (char *) "self", NULL | |
4578 | }; | |
4579 | ||
4580 | arg2 = &temp2; | |
4581 | arg3 = &temp3; | |
4582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
4583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4585 | { | |
4586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4587 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); | |
4588 | ||
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
4592 | Py_INCREF(Py_None); resultobj = Py_None; | |
4593 | { | |
4594 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4595 | resultobj = t_output_helper(resultobj,o); | |
4596 | } | |
4597 | { | |
4598 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4599 | resultobj = t_output_helper(resultobj,o); | |
4600 | } | |
4601 | return resultobj; | |
4602 | fail: | |
4603 | return NULL; | |
4604 | } | |
4605 | ||
4606 | ||
4607 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4608 | PyObject *resultobj; | |
4609 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4610 | int *arg2 = (int *) 0 ; | |
4611 | int *arg3 = (int *) 0 ; | |
4612 | int temp2 ; | |
4613 | int temp3 ; | |
4614 | PyObject * obj0 = 0 ; | |
4615 | char *kwnames[] = { | |
4616 | (char *) "self", NULL | |
4617 | }; | |
4618 | ||
4619 | arg2 = &temp2; | |
4620 | arg3 = &temp3; | |
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; | |
4622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | Py_INCREF(Py_None); resultobj = Py_None; | |
4632 | { | |
4633 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4634 | resultobj = t_output_helper(resultobj,o); | |
4635 | } | |
4636 | { | |
4637 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4638 | resultobj = t_output_helper(resultobj,o); | |
4639 | } | |
4640 | return resultobj; | |
4641 | fail: | |
4642 | return NULL; | |
4643 | } | |
4644 | ||
4645 | ||
4646 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject *resultobj; | |
4648 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4649 | bool result; | |
4650 | PyObject * obj0 = 0 ; | |
4651 | char *kwnames[] = { | |
4652 | (char *) "self", NULL | |
4653 | }; | |
4654 | ||
4655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; | |
4656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4658 | { | |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4660 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
4665 | { | |
4666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4667 | } | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj; | |
4676 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4677 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4678 | int arg3 ; | |
4679 | int arg4 ; | |
4680 | wxGridCellRenderer *result; | |
4681 | PyObject * obj0 = 0 ; | |
4682 | PyObject * obj1 = 0 ; | |
4683 | PyObject * obj2 = 0 ; | |
4684 | PyObject * obj3 = 0 ; | |
4685 | char *kwnames[] = { | |
4686 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4687 | }; | |
4688 | ||
4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4694 | arg3 = (int) SWIG_AsInt(obj2); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | arg4 = (int) SWIG_AsInt(obj3); | |
4697 | if (PyErr_Occurred()) SWIG_fail; | |
4698 | { | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | { | |
4706 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
4707 | } | |
4708 | return resultobj; | |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4715 | PyObject *resultobj; | |
4716 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4717 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4718 | int arg3 ; | |
4719 | int arg4 ; | |
4720 | wxGridCellEditor *result; | |
4721 | PyObject * obj0 = 0 ; | |
4722 | PyObject * obj1 = 0 ; | |
4723 | PyObject * obj2 = 0 ; | |
4724 | PyObject * obj3 = 0 ; | |
4725 | char *kwnames[] = { | |
4726 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4727 | }; | |
4728 | ||
4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4732 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4734 | arg3 = (int) SWIG_AsInt(obj2); | |
4735 | if (PyErr_Occurred()) SWIG_fail; | |
4736 | arg4 = (int) SWIG_AsInt(obj3); | |
4737 | if (PyErr_Occurred()) SWIG_fail; | |
4738 | { | |
4739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4740 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); | |
4741 | ||
4742 | wxPyEndAllowThreads(__tstate); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | { | |
4746 | resultobj = wxPyMake_wxGridCellEditor(result); | |
4747 | } | |
4748 | return resultobj; | |
4749 | fail: | |
4750 | return NULL; | |
4751 | } | |
4752 | ||
4753 | ||
4754 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4755 | PyObject *resultobj; | |
4756 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4757 | bool result; | |
4758 | PyObject * obj0 = 0 ; | |
4759 | char *kwnames[] = { | |
4760 | (char *) "self", NULL | |
4761 | }; | |
4762 | ||
4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; | |
4764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4766 | { | |
4767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4768 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); | |
4769 | ||
4770 | wxPyEndAllowThreads(__tstate); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
4773 | { | |
4774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4775 | } | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4785 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4786 | PyObject * obj0 = 0 ; | |
4787 | PyObject * obj1 = 0 ; | |
4788 | char *kwnames[] = { | |
4789 | (char *) "self",(char *) "defAttr", NULL | |
4790 | }; | |
4791 | ||
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; | |
4793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | (arg1)->SetDefAttr(arg2); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | Py_INCREF(Py_None); resultobj = Py_None; | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
4808 | } | |
4809 | ||
4810 | ||
4811 | static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) { | |
4812 | PyObject *obj; | |
4813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4814 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); | |
4815 | Py_INCREF(obj); | |
4816 | return Py_BuildValue((char *)""); | |
4817 | } | |
4818 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4819 | PyObject *resultobj; | |
4820 | wxGridCellAttrProvider *result; | |
4821 | char *kwnames[] = { | |
4822 | NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; | |
4826 | { | |
4827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4828 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); | |
4829 | ||
4830 | wxPyEndAllowThreads(__tstate); | |
4831 | if (PyErr_Occurred()) SWIG_fail; | |
4832 | } | |
4833 | { | |
4834 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
4835 | } | |
4836 | return resultobj; | |
4837 | fail: | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj; | |
4844 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4845 | PyObject *arg2 = (PyObject *) 0 ; | |
4846 | PyObject * obj0 = 0 ; | |
4847 | PyObject * obj1 = 0 ; | |
4848 | char *kwnames[] = { | |
4849 | (char *) "self",(char *) "_self", NULL | |
4850 | }; | |
4851 | ||
4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
4853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
4854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4855 | arg2 = obj1; | |
4856 | { | |
4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4858 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); | |
4859 | ||
4860 | wxPyEndAllowThreads(__tstate); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | } | |
4863 | Py_INCREF(Py_None); resultobj = Py_None; | |
4864 | return resultobj; | |
4865 | fail: | |
4866 | return NULL; | |
4867 | } | |
4868 | ||
4869 | ||
4870 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4871 | PyObject *resultobj; | |
4872 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4873 | int arg2 ; | |
4874 | int arg3 ; | |
4875 | int arg4 ; | |
4876 | wxGridCellAttr *result; | |
4877 | PyObject * obj0 = 0 ; | |
4878 | PyObject * obj1 = 0 ; | |
4879 | PyObject * obj2 = 0 ; | |
4880 | PyObject * obj3 = 0 ; | |
4881 | char *kwnames[] = { | |
4882 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4883 | }; | |
4884 | ||
4885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
4887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4888 | arg2 = (int) SWIG_AsInt(obj1); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | arg3 = (int) SWIG_AsInt(obj2); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
4893 | if (PyErr_Occurred()) SWIG_fail; | |
4894 | { | |
4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4896 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4897 | ||
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | { | |
4902 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4903 | } | |
4904 | return resultobj; | |
4905 | fail: | |
4906 | return NULL; | |
4907 | } | |
4908 | ||
4909 | ||
4910 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject *resultobj; | |
4912 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4913 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4914 | int arg3 ; | |
4915 | int arg4 ; | |
4916 | PyObject * obj0 = 0 ; | |
4917 | PyObject * obj1 = 0 ; | |
4918 | PyObject * obj2 = 0 ; | |
4919 | PyObject * obj3 = 0 ; | |
4920 | char *kwnames[] = { | |
4921 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4922 | }; | |
4923 | ||
4924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
4926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4929 | arg3 = (int) SWIG_AsInt(obj2); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | arg4 = (int) SWIG_AsInt(obj3); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | { | |
4934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4935 | (arg1)->SetAttr(arg2,arg3,arg4); | |
4936 | ||
4937 | wxPyEndAllowThreads(__tstate); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
4939 | } | |
4940 | Py_INCREF(Py_None); resultobj = Py_None; | |
4941 | return resultobj; | |
4942 | fail: | |
4943 | return NULL; | |
4944 | } | |
4945 | ||
4946 | ||
4947 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4948 | PyObject *resultobj; | |
4949 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4950 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4951 | int arg3 ; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | PyObject * obj1 = 0 ; | |
4954 | PyObject * obj2 = 0 ; | |
4955 | char *kwnames[] = { | |
4956 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
4957 | }; | |
4958 | ||
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
4961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4964 | arg3 = (int) SWIG_AsInt(obj2); | |
4965 | if (PyErr_Occurred()) SWIG_fail; | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | (arg1)->SetRowAttr(arg2,arg3); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4983 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4984 | int arg3 ; | |
4985 | PyObject * obj0 = 0 ; | |
4986 | PyObject * obj1 = 0 ; | |
4987 | PyObject * obj2 = 0 ; | |
4988 | char *kwnames[] = { | |
4989 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
4990 | }; | |
4991 | ||
4992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
4994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4997 | arg3 = (int) SWIG_AsInt(obj2); | |
4998 | if (PyErr_Occurred()) SWIG_fail; | |
4999 | { | |
5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5001 | (arg1)->SetColAttr(arg2,arg3); | |
5002 | ||
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | Py_INCREF(Py_None); resultobj = Py_None; | |
5007 | return resultobj; | |
5008 | fail: | |
5009 | return NULL; | |
5010 | } | |
5011 | ||
5012 | ||
5013 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5014 | PyObject *resultobj; | |
5015 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5016 | size_t arg2 ; | |
5017 | int arg3 ; | |
5018 | PyObject * obj0 = 0 ; | |
5019 | PyObject * obj1 = 0 ; | |
5020 | PyObject * obj2 = 0 ; | |
5021 | char *kwnames[] = { | |
5022 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5023 | }; | |
5024 | ||
5025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
5027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5028 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
5029 | if (PyErr_Occurred()) SWIG_fail; | |
5030 | arg3 = (int) SWIG_AsInt(obj2); | |
5031 | if (PyErr_Occurred()) SWIG_fail; | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | (arg1)->UpdateAttrRows(arg2,arg3); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | Py_INCREF(Py_None); resultobj = Py_None; | |
5040 | return resultobj; | |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject *resultobj; | |
5048 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5049 | size_t arg2 ; | |
5050 | int arg3 ; | |
5051 | PyObject * obj0 = 0 ; | |
5052 | PyObject * obj1 = 0 ; | |
5053 | PyObject * obj2 = 0 ; | |
5054 | char *kwnames[] = { | |
5055 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5056 | }; | |
5057 | ||
5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, | |
5060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5061 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
5062 | if (PyErr_Occurred()) SWIG_fail; | |
5063 | arg3 = (int) SWIG_AsInt(obj2); | |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
5065 | { | |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | (arg1)->UpdateAttrCols(arg2,arg3); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | Py_INCREF(Py_None); resultobj = Py_None; | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5080 | PyObject *obj; | |
5081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5082 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); | |
5083 | Py_INCREF(obj); | |
5084 | return Py_BuildValue((char *)""); | |
5085 | } | |
5086 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5087 | PyObject *resultobj; | |
5088 | wxPyGridCellAttrProvider *result; | |
5089 | char *kwnames[] = { | |
5090 | NULL | |
5091 | }; | |
5092 | ||
5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; | |
5094 | { | |
5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5096 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); | |
5097 | ||
5098 | wxPyEndAllowThreads(__tstate); | |
5099 | if (PyErr_Occurred()) SWIG_fail; | |
5100 | } | |
5101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1); | |
5102 | return resultobj; | |
5103 | fail: | |
5104 | return NULL; | |
5105 | } | |
5106 | ||
5107 | ||
5108 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5109 | PyObject *resultobj; | |
5110 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5111 | PyObject *arg2 = (PyObject *) 0 ; | |
5112 | PyObject *arg3 = (PyObject *) 0 ; | |
5113 | PyObject * obj0 = 0 ; | |
5114 | PyObject * obj1 = 0 ; | |
5115 | PyObject * obj2 = 0 ; | |
5116 | char *kwnames[] = { | |
5117 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5118 | }; | |
5119 | ||
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, | |
5122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5123 | arg2 = obj1; | |
5124 | arg3 = obj2; | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | Py_INCREF(Py_None); resultobj = Py_None; | |
5133 | return resultobj; | |
5134 | fail: | |
5135 | return NULL; | |
5136 | } | |
5137 | ||
5138 | ||
5139 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5140 | PyObject *resultobj; | |
5141 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5142 | int arg2 ; | |
5143 | int arg3 ; | |
5144 | int arg4 ; | |
5145 | wxGridCellAttr *result; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | PyObject * obj2 = 0 ; | |
5149 | PyObject * obj3 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, | |
5156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5157 | arg2 = (int) SWIG_AsInt(obj1); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | arg3 = (int) SWIG_AsInt(obj2); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
5166 | ||
5167 | wxPyEndAllowThreads(__tstate); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | } | |
5170 | { | |
5171 | resultobj = wxPyMake_wxGridCellAttr(result); | |
5172 | } | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
5179 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5180 | PyObject *resultobj; | |
5181 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5182 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5183 | int arg3 ; | |
5184 | int arg4 ; | |
5185 | PyObject * obj0 = 0 ; | |
5186 | PyObject * obj1 = 0 ; | |
5187 | PyObject * obj2 = 0 ; | |
5188 | PyObject * obj3 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5198 | arg3 = (int) SWIG_AsInt(obj2); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | arg4 = (int) SWIG_AsInt(obj3); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | { | |
5203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5204 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
5205 | ||
5206 | wxPyEndAllowThreads(__tstate); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | } | |
5209 | Py_INCREF(Py_None); resultobj = Py_None; | |
5210 | return resultobj; | |
5211 | fail: | |
5212 | return NULL; | |
5213 | } | |
5214 | ||
5215 | ||
5216 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5217 | PyObject *resultobj; | |
5218 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5219 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5220 | int arg3 ; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | PyObject * obj1 = 0 ; | |
5223 | PyObject * obj2 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, | |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5233 | arg3 = (int) SWIG_AsInt(obj2); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | (arg1)->base_SetRowAttr(arg2,arg3); | |
5238 | ||
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | } | |
5242 | Py_INCREF(Py_None); resultobj = Py_None; | |
5243 | return resultobj; | |
5244 | fail: | |
5245 | return NULL; | |
5246 | } | |
5247 | ||
5248 | ||
5249 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5250 | PyObject *resultobj; | |
5251 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5252 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5253 | int arg3 ; | |
5254 | PyObject * obj0 = 0 ; | |
5255 | PyObject * obj1 = 0 ; | |
5256 | PyObject * obj2 = 0 ; | |
5257 | char *kwnames[] = { | |
5258 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5259 | }; | |
5260 | ||
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, | |
5263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5266 | arg3 = (int) SWIG_AsInt(obj2); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | (arg1)->base_SetColAttr(arg2,arg3); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | Py_INCREF(Py_None); resultobj = Py_None; | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5283 | PyObject *obj; | |
5284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5285 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); | |
5286 | Py_INCREF(obj); | |
5287 | return Py_BuildValue((char *)""); | |
5288 | } | |
5289 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5290 | PyObject *resultobj; | |
5291 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5292 | PyObject *arg2 = (PyObject *) 0 ; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | char *kwnames[] = { | |
5296 | (char *) "self",(char *) "_self", NULL | |
5297 | }; | |
5298 | ||
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
5300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5302 | arg2 = obj1; | |
5303 | { | |
5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5305 | wxGridTableBase__setOORInfo(arg1,arg2); | |
5306 | ||
5307 | wxPyEndAllowThreads(__tstate); | |
5308 | if (PyErr_Occurred()) SWIG_fail; | |
5309 | } | |
5310 | Py_INCREF(Py_None); resultobj = Py_None; | |
5311 | return resultobj; | |
5312 | fail: | |
5313 | return NULL; | |
5314 | } | |
5315 | ||
5316 | ||
5317 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject *resultobj; | |
5319 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5320 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; | |
5321 | PyObject * obj0 = 0 ; | |
5322 | PyObject * obj1 = 0 ; | |
5323 | char *kwnames[] = { | |
5324 | (char *) "self",(char *) "attrProvider", NULL | |
5325 | }; | |
5326 | ||
5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; | |
5328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider, | |
5331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5332 | { | |
5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5334 | (arg1)->SetAttrProvider(arg2); | |
5335 | ||
5336 | wxPyEndAllowThreads(__tstate); | |
5337 | if (PyErr_Occurred()) SWIG_fail; | |
5338 | } | |
5339 | Py_INCREF(Py_None); resultobj = Py_None; | |
5340 | return resultobj; | |
5341 | fail: | |
5342 | return NULL; | |
5343 | } | |
5344 | ||
5345 | ||
5346 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5347 | PyObject *resultobj; | |
5348 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5349 | wxGridCellAttrProvider *result; | |
5350 | PyObject * obj0 = 0 ; | |
5351 | char *kwnames[] = { | |
5352 | (char *) "self", NULL | |
5353 | }; | |
5354 | ||
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; | |
5356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5358 | { | |
5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5360 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); | |
5361 | ||
5362 | wxPyEndAllowThreads(__tstate); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | } | |
5365 | { | |
5366 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
5367 | } | |
5368 | return resultobj; | |
5369 | fail: | |
5370 | return NULL; | |
5371 | } | |
5372 | ||
5373 | ||
5374 | static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject *resultobj; | |
5376 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5377 | wxGrid *arg2 = (wxGrid *) 0 ; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | PyObject * obj1 = 0 ; | |
5380 | char *kwnames[] = { | |
5381 | (char *) "self",(char *) "grid", NULL | |
5382 | }; | |
5383 | ||
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; | |
5385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
5388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5389 | { | |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5391 | (arg1)->SetView(arg2); | |
5392 | ||
5393 | wxPyEndAllowThreads(__tstate); | |
5394 | if (PyErr_Occurred()) SWIG_fail; | |
5395 | } | |
5396 | Py_INCREF(Py_None); resultobj = Py_None; | |
5397 | return resultobj; | |
5398 | fail: | |
5399 | return NULL; | |
5400 | } | |
5401 | ||
5402 | ||
5403 | static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject *resultobj; | |
5405 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5406 | wxGrid *result; | |
5407 | PyObject * obj0 = 0 ; | |
5408 | char *kwnames[] = { | |
5409 | (char *) "self", NULL | |
5410 | }; | |
5411 | ||
5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; | |
5413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5415 | { | |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); | |
5418 | ||
5419 | wxPyEndAllowThreads(__tstate); | |
5420 | if (PyErr_Occurred()) SWIG_fail; | |
5421 | } | |
5422 | { | |
5423 | resultobj = wxPyMake_wxObject(result); | |
5424 | } | |
5425 | return resultobj; | |
5426 | fail: | |
5427 | return NULL; | |
5428 | } | |
5429 | ||
5430 | ||
5431 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5432 | PyObject *resultobj; | |
5433 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5434 | int result; | |
5435 | PyObject * obj0 = 0 ; | |
5436 | char *kwnames[] = { | |
5437 | (char *) "self", NULL | |
5438 | }; | |
5439 | ||
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; | |
5441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | result = (int)(arg1)->GetNumberRows(); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | resultobj = SWIG_FromInt((int)result); | |
5451 | return resultobj; | |
5452 | fail: | |
5453 | return NULL; | |
5454 | } | |
5455 | ||
5456 | ||
5457 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5458 | PyObject *resultobj; | |
5459 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5460 | int result; | |
5461 | PyObject * obj0 = 0 ; | |
5462 | char *kwnames[] = { | |
5463 | (char *) "self", NULL | |
5464 | }; | |
5465 | ||
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; | |
5467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5471 | result = (int)(arg1)->GetNumberCols(); | |
5472 | ||
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) SWIG_fail; | |
5475 | } | |
5476 | resultobj = SWIG_FromInt((int)result); | |
5477 | return resultobj; | |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj; | |
5485 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5486 | int arg2 ; | |
5487 | int arg3 ; | |
5488 | bool result; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | PyObject * obj1 = 0 ; | |
5491 | PyObject * obj2 = 0 ; | |
5492 | char *kwnames[] = { | |
5493 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5494 | }; | |
5495 | ||
5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5499 | arg2 = (int) SWIG_AsInt(obj1); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | arg3 = (int) SWIG_AsInt(obj2); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | { | |
5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5505 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); | |
5506 | ||
5507 | wxPyEndAllowThreads(__tstate); | |
5508 | if (PyErr_Occurred()) SWIG_fail; | |
5509 | } | |
5510 | { | |
5511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5512 | } | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5522 | int arg2 ; | |
5523 | int arg3 ; | |
5524 | wxString result; | |
5525 | PyObject * obj0 = 0 ; | |
5526 | PyObject * obj1 = 0 ; | |
5527 | PyObject * obj2 = 0 ; | |
5528 | char *kwnames[] = { | |
5529 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5530 | }; | |
5531 | ||
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5535 | arg2 = (int) SWIG_AsInt(obj1); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | arg3 = (int) SWIG_AsInt(obj2); | |
5538 | if (PyErr_Occurred()) SWIG_fail; | |
5539 | { | |
5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5541 | result = (arg1)->GetValue(arg2,arg3); | |
5542 | ||
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
5546 | { | |
5547 | #if wxUSE_UNICODE | |
5548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5549 | #else | |
5550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5551 | #endif | |
5552 | } | |
5553 | return resultobj; | |
5554 | fail: | |
5555 | return NULL; | |
5556 | } | |
5557 | ||
5558 | ||
5559 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5560 | PyObject *resultobj; | |
5561 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5562 | int arg2 ; | |
5563 | int arg3 ; | |
5564 | wxString *arg4 = 0 ; | |
5565 | bool temp4 = False ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | PyObject * obj2 = 0 ; | |
5569 | PyObject * obj3 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5577 | arg2 = (int) SWIG_AsInt(obj1); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | arg3 = (int) SWIG_AsInt(obj2); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | { | |
5582 | arg4 = wxString_in_helper(obj3); | |
5583 | if (arg4 == NULL) SWIG_fail; | |
5584 | temp4 = True; | |
5585 | } | |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); | |
5589 | ||
5590 | wxPyEndAllowThreads(__tstate); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
5593 | Py_INCREF(Py_None); resultobj = Py_None; | |
5594 | { | |
5595 | if (temp4) | |
5596 | delete arg4; | |
5597 | } | |
5598 | return resultobj; | |
5599 | fail: | |
5600 | { | |
5601 | if (temp4) | |
5602 | delete arg4; | |
5603 | } | |
5604 | return NULL; | |
5605 | } | |
5606 | ||
5607 | ||
5608 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5609 | PyObject *resultobj; | |
5610 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5611 | int arg2 ; | |
5612 | int arg3 ; | |
5613 | wxString result; | |
5614 | PyObject * obj0 = 0 ; | |
5615 | PyObject * obj1 = 0 ; | |
5616 | PyObject * obj2 = 0 ; | |
5617 | char *kwnames[] = { | |
5618 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5619 | }; | |
5620 | ||
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5624 | arg2 = (int) SWIG_AsInt(obj1); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | arg3 = (int) SWIG_AsInt(obj2); | |
5627 | if (PyErr_Occurred()) SWIG_fail; | |
5628 | { | |
5629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5630 | result = (arg1)->GetTypeName(arg2,arg3); | |
5631 | ||
5632 | wxPyEndAllowThreads(__tstate); | |
5633 | if (PyErr_Occurred()) SWIG_fail; | |
5634 | } | |
5635 | { | |
5636 | #if wxUSE_UNICODE | |
5637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5638 | #else | |
5639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5640 | #endif | |
5641 | } | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj; | |
5650 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5651 | int arg2 ; | |
5652 | int arg3 ; | |
5653 | wxString *arg4 = 0 ; | |
5654 | bool result; | |
5655 | bool temp4 = False ; | |
5656 | PyObject * obj0 = 0 ; | |
5657 | PyObject * obj1 = 0 ; | |
5658 | PyObject * obj2 = 0 ; | |
5659 | PyObject * obj3 = 0 ; | |
5660 | char *kwnames[] = { | |
5661 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5662 | }; | |
5663 | ||
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5667 | arg2 = (int) SWIG_AsInt(obj1); | |
5668 | if (PyErr_Occurred()) SWIG_fail; | |
5669 | arg3 = (int) SWIG_AsInt(obj2); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | { | |
5672 | arg4 = wxString_in_helper(obj3); | |
5673 | if (arg4 == NULL) SWIG_fail; | |
5674 | temp4 = True; | |
5675 | } | |
5676 | { | |
5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5678 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5679 | ||
5680 | wxPyEndAllowThreads(__tstate); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | } | |
5683 | { | |
5684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5685 | } | |
5686 | { | |
5687 | if (temp4) | |
5688 | delete arg4; | |
5689 | } | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | { | |
5693 | if (temp4) | |
5694 | delete arg4; | |
5695 | } | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5703 | int arg2 ; | |
5704 | int arg3 ; | |
5705 | wxString *arg4 = 0 ; | |
5706 | bool result; | |
5707 | bool temp4 = False ; | |
5708 | PyObject * obj0 = 0 ; | |
5709 | PyObject * obj1 = 0 ; | |
5710 | PyObject * obj2 = 0 ; | |
5711 | PyObject * obj3 = 0 ; | |
5712 | char *kwnames[] = { | |
5713 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5714 | }; | |
5715 | ||
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5719 | arg2 = (int) SWIG_AsInt(obj1); | |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
5721 | arg3 = (int) SWIG_AsInt(obj2); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | { | |
5724 | arg4 = wxString_in_helper(obj3); | |
5725 | if (arg4 == NULL) SWIG_fail; | |
5726 | temp4 = True; | |
5727 | } | |
5728 | { | |
5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5730 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5731 | ||
5732 | wxPyEndAllowThreads(__tstate); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
5735 | { | |
5736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5737 | } | |
5738 | { | |
5739 | if (temp4) | |
5740 | delete arg4; | |
5741 | } | |
5742 | return resultobj; | |
5743 | fail: | |
5744 | { | |
5745 | if (temp4) | |
5746 | delete arg4; | |
5747 | } | |
5748 | return NULL; | |
5749 | } | |
5750 | ||
5751 | ||
5752 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5753 | PyObject *resultobj; | |
5754 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5755 | int arg2 ; | |
5756 | int arg3 ; | |
5757 | long result; | |
5758 | PyObject * obj0 = 0 ; | |
5759 | PyObject * obj1 = 0 ; | |
5760 | PyObject * obj2 = 0 ; | |
5761 | char *kwnames[] = { | |
5762 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5763 | }; | |
5764 | ||
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5768 | arg2 = (int) SWIG_AsInt(obj1); | |
5769 | if (PyErr_Occurred()) SWIG_fail; | |
5770 | arg3 = (int) SWIG_AsInt(obj2); | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | { | |
5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5774 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); | |
5775 | ||
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | resultobj = SWIG_FromLong((long)result); | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj; | |
5788 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5789 | int arg2 ; | |
5790 | int arg3 ; | |
5791 | double result; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | PyObject * obj1 = 0 ; | |
5794 | PyObject * obj2 = 0 ; | |
5795 | char *kwnames[] = { | |
5796 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5797 | }; | |
5798 | ||
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5802 | arg2 = (int) SWIG_AsInt(obj1); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | arg3 = (int) SWIG_AsInt(obj2); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); | |
5809 | ||
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | resultobj = SWIG_FromDouble((double)result); | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj; | |
5822 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5823 | int arg2 ; | |
5824 | int arg3 ; | |
5825 | bool result; | |
5826 | PyObject * obj0 = 0 ; | |
5827 | PyObject * obj1 = 0 ; | |
5828 | PyObject * obj2 = 0 ; | |
5829 | char *kwnames[] = { | |
5830 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5831 | }; | |
5832 | ||
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5836 | arg2 = (int) SWIG_AsInt(obj1); | |
5837 | if (PyErr_Occurred()) SWIG_fail; | |
5838 | arg3 = (int) SWIG_AsInt(obj2); | |
5839 | if (PyErr_Occurred()) SWIG_fail; | |
5840 | { | |
5841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5842 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); | |
5843 | ||
5844 | wxPyEndAllowThreads(__tstate); | |
5845 | if (PyErr_Occurred()) SWIG_fail; | |
5846 | } | |
5847 | { | |
5848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5849 | } | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj; | |
5858 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5859 | int arg2 ; | |
5860 | int arg3 ; | |
5861 | long arg4 ; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | PyObject * obj1 = 0 ; | |
5864 | PyObject * obj2 = 0 ; | |
5865 | PyObject * obj3 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5873 | arg2 = (int) SWIG_AsInt(obj1); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | arg3 = (int) SWIG_AsInt(obj2); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | arg4 = (long) SWIG_AsLong(obj3); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | { | |
5880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5881 | (arg1)->SetValueAsLong(arg2,arg3,arg4); | |
5882 | ||
5883 | wxPyEndAllowThreads(__tstate); | |
5884 | if (PyErr_Occurred()) SWIG_fail; | |
5885 | } | |
5886 | Py_INCREF(Py_None); resultobj = Py_None; | |
5887 | return resultobj; | |
5888 | fail: | |
5889 | return NULL; | |
5890 | } | |
5891 | ||
5892 | ||
5893 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5894 | PyObject *resultobj; | |
5895 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5896 | int arg2 ; | |
5897 | int arg3 ; | |
5898 | double arg4 ; | |
5899 | PyObject * obj0 = 0 ; | |
5900 | PyObject * obj1 = 0 ; | |
5901 | PyObject * obj2 = 0 ; | |
5902 | PyObject * obj3 = 0 ; | |
5903 | char *kwnames[] = { | |
5904 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5905 | }; | |
5906 | ||
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5910 | arg2 = (int) SWIG_AsInt(obj1); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | arg3 = (int) SWIG_AsInt(obj2); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | arg4 = (double) SWIG_AsDouble(obj3); | |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
5916 | { | |
5917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5918 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); | |
5919 | ||
5920 | wxPyEndAllowThreads(__tstate); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | } | |
5923 | Py_INCREF(Py_None); resultobj = Py_None; | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
5930 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject *resultobj; | |
5932 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5933 | int arg2 ; | |
5934 | int arg3 ; | |
5935 | bool arg4 ; | |
5936 | PyObject * obj0 = 0 ; | |
5937 | PyObject * obj1 = 0 ; | |
5938 | PyObject * obj2 = 0 ; | |
5939 | PyObject * obj3 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5947 | arg2 = (int) SWIG_AsInt(obj1); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | arg3 = (int) SWIG_AsInt(obj2); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | arg4 = (bool) SWIG_AsBool(obj3); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | { | |
5954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5955 | (arg1)->SetValueAsBool(arg2,arg3,arg4); | |
5956 | ||
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
5960 | Py_INCREF(Py_None); resultobj = Py_None; | |
5961 | return resultobj; | |
5962 | fail: | |
5963 | return NULL; | |
5964 | } | |
5965 | ||
5966 | ||
5967 | static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject *resultobj; | |
5969 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5970 | PyObject * obj0 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; | |
5976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
5977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5978 | { | |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5980 | (arg1)->Clear(); | |
5981 | ||
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | Py_INCREF(Py_None); resultobj = Py_None; | |
5986 | return resultobj; | |
5987 | fail: | |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject *resultobj; | |
5994 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5995 | size_t arg2 = (size_t) 0 ; | |
5996 | size_t arg3 = (size_t) 1 ; | |
5997 | bool result; | |
5998 | PyObject * obj0 = 0 ; | |
5999 | PyObject * obj1 = 0 ; | |
6000 | PyObject * obj2 = 0 ; | |
6001 | char *kwnames[] = { | |
6002 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6003 | }; | |
6004 | ||
6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6008 | if (obj1) { | |
6009 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
6012 | if (obj2) { | |
6013 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (bool)(arg1)->InsertRows(arg2,arg3); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
6023 | { | |
6024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6025 | } | |
6026 | return resultobj; | |
6027 | fail: | |
6028 | return NULL; | |
6029 | } | |
6030 | ||
6031 | ||
6032 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject *resultobj; | |
6034 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6035 | size_t arg2 = (size_t) 1 ; | |
6036 | bool result; | |
6037 | PyObject * obj0 = 0 ; | |
6038 | PyObject * obj1 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self",(char *) "numRows", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
6044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6046 | if (obj1) { | |
6047 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6048 | if (PyErr_Occurred()) SWIG_fail; | |
6049 | } | |
6050 | { | |
6051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6052 | result = (bool)(arg1)->AppendRows(arg2); | |
6053 | ||
6054 | wxPyEndAllowThreads(__tstate); | |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
6056 | } | |
6057 | { | |
6058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6059 | } | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject *resultobj; | |
6068 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6069 | size_t arg2 = (size_t) 0 ; | |
6070 | size_t arg3 = (size_t) 1 ; | |
6071 | bool result; | |
6072 | PyObject * obj0 = 0 ; | |
6073 | PyObject * obj1 = 0 ; | |
6074 | PyObject * obj2 = 0 ; | |
6075 | char *kwnames[] = { | |
6076 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6077 | }; | |
6078 | ||
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6082 | if (obj1) { | |
6083 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6084 | if (PyErr_Occurred()) SWIG_fail; | |
6085 | } | |
6086 | if (obj2) { | |
6087 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
6089 | } | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (bool)(arg1)->DeleteRows(arg2,arg3); | |
6093 | ||
6094 | wxPyEndAllowThreads(__tstate); | |
6095 | if (PyErr_Occurred()) SWIG_fail; | |
6096 | } | |
6097 | { | |
6098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6099 | } | |
6100 | return resultobj; | |
6101 | fail: | |
6102 | return NULL; | |
6103 | } | |
6104 | ||
6105 | ||
6106 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6107 | PyObject *resultobj; | |
6108 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6109 | size_t arg2 = (size_t) 0 ; | |
6110 | size_t arg3 = (size_t) 1 ; | |
6111 | bool result; | |
6112 | PyObject * obj0 = 0 ; | |
6113 | PyObject * obj1 = 0 ; | |
6114 | PyObject * obj2 = 0 ; | |
6115 | char *kwnames[] = { | |
6116 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6117 | }; | |
6118 | ||
6119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6122 | if (obj1) { | |
6123 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
6126 | if (obj2) { | |
6127 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | result = (bool)(arg1)->InsertCols(arg2,arg3); | |
6133 | ||
6134 | wxPyEndAllowThreads(__tstate); | |
6135 | if (PyErr_Occurred()) SWIG_fail; | |
6136 | } | |
6137 | { | |
6138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6139 | } | |
6140 | return resultobj; | |
6141 | fail: | |
6142 | return NULL; | |
6143 | } | |
6144 | ||
6145 | ||
6146 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject *resultobj; | |
6148 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6149 | size_t arg2 = (size_t) 1 ; | |
6150 | bool result; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | PyObject * obj1 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self",(char *) "numCols", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
6158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6160 | if (obj1) { | |
6161 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | } | |
6164 | { | |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6166 | result = (bool)(arg1)->AppendCols(arg2); | |
6167 | ||
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
6171 | { | |
6172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6173 | } | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
6180 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6181 | PyObject *resultobj; | |
6182 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6183 | size_t arg2 = (size_t) 0 ; | |
6184 | size_t arg3 = (size_t) 1 ; | |
6185 | bool result; | |
6186 | PyObject * obj0 = 0 ; | |
6187 | PyObject * obj1 = 0 ; | |
6188 | PyObject * obj2 = 0 ; | |
6189 | char *kwnames[] = { | |
6190 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6191 | }; | |
6192 | ||
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6196 | if (obj1) { | |
6197 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6198 | if (PyErr_Occurred()) SWIG_fail; | |
6199 | } | |
6200 | if (obj2) { | |
6201 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | } | |
6204 | { | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (bool)(arg1)->DeleteCols(arg2,arg3); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | { | |
6212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6213 | } | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj; | |
6222 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6223 | int arg2 ; | |
6224 | wxString result; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | PyObject * obj1 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self",(char *) "row", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6234 | arg2 = (int) SWIG_AsInt(obj1); | |
6235 | if (PyErr_Occurred()) SWIG_fail; | |
6236 | { | |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | result = (arg1)->GetRowLabelValue(arg2); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | { | |
6244 | #if wxUSE_UNICODE | |
6245 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6246 | #else | |
6247 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6248 | #endif | |
6249 | } | |
6250 | return resultobj; | |
6251 | fail: | |
6252 | return NULL; | |
6253 | } | |
6254 | ||
6255 | ||
6256 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6257 | PyObject *resultobj; | |
6258 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6259 | int arg2 ; | |
6260 | wxString result; | |
6261 | PyObject * obj0 = 0 ; | |
6262 | PyObject * obj1 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "self",(char *) "col", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
6268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6270 | arg2 = (int) SWIG_AsInt(obj1); | |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
6272 | { | |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | result = (arg1)->GetColLabelValue(arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | { | |
6280 | #if wxUSE_UNICODE | |
6281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6282 | #else | |
6283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6284 | #endif | |
6285 | } | |
6286 | return resultobj; | |
6287 | fail: | |
6288 | return NULL; | |
6289 | } | |
6290 | ||
6291 | ||
6292 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6293 | PyObject *resultobj; | |
6294 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6295 | int arg2 ; | |
6296 | wxString *arg3 = 0 ; | |
6297 | bool temp3 = False ; | |
6298 | PyObject * obj0 = 0 ; | |
6299 | PyObject * obj1 = 0 ; | |
6300 | PyObject * obj2 = 0 ; | |
6301 | char *kwnames[] = { | |
6302 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6308 | arg2 = (int) SWIG_AsInt(obj1); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | { | |
6311 | arg3 = wxString_in_helper(obj2); | |
6312 | if (arg3 == NULL) SWIG_fail; | |
6313 | temp3 = True; | |
6314 | } | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | Py_INCREF(Py_None); resultobj = Py_None; | |
6323 | { | |
6324 | if (temp3) | |
6325 | delete arg3; | |
6326 | } | |
6327 | return resultobj; | |
6328 | fail: | |
6329 | { | |
6330 | if (temp3) | |
6331 | delete arg3; | |
6332 | } | |
6333 | return NULL; | |
6334 | } | |
6335 | ||
6336 | ||
6337 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6338 | PyObject *resultobj; | |
6339 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6340 | int arg2 ; | |
6341 | wxString *arg3 = 0 ; | |
6342 | bool temp3 = False ; | |
6343 | PyObject * obj0 = 0 ; | |
6344 | PyObject * obj1 = 0 ; | |
6345 | PyObject * obj2 = 0 ; | |
6346 | char *kwnames[] = { | |
6347 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6348 | }; | |
6349 | ||
6350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6353 | arg2 = (int) SWIG_AsInt(obj1); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | { | |
6356 | arg3 = wxString_in_helper(obj2); | |
6357 | if (arg3 == NULL) SWIG_fail; | |
6358 | temp3 = True; | |
6359 | } | |
6360 | { | |
6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6362 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
6363 | ||
6364 | wxPyEndAllowThreads(__tstate); | |
6365 | if (PyErr_Occurred()) SWIG_fail; | |
6366 | } | |
6367 | Py_INCREF(Py_None); resultobj = Py_None; | |
6368 | { | |
6369 | if (temp3) | |
6370 | delete arg3; | |
6371 | } | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | { | |
6375 | if (temp3) | |
6376 | delete arg3; | |
6377 | } | |
6378 | return NULL; | |
6379 | } | |
6380 | ||
6381 | ||
6382 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6383 | PyObject *resultobj; | |
6384 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6385 | bool result; | |
6386 | PyObject * obj0 = 0 ; | |
6387 | char *kwnames[] = { | |
6388 | (char *) "self", NULL | |
6389 | }; | |
6390 | ||
6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
6392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6394 | { | |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | result = (bool)(arg1)->CanHaveAttributes(); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | { | |
6402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6403 | } | |
6404 | return resultobj; | |
6405 | fail: | |
6406 | return NULL; | |
6407 | } | |
6408 | ||
6409 | ||
6410 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject *resultobj; | |
6412 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6413 | int arg2 ; | |
6414 | int arg3 ; | |
6415 | int arg4 ; | |
6416 | wxGridCellAttr *result; | |
6417 | PyObject * obj0 = 0 ; | |
6418 | PyObject * obj1 = 0 ; | |
6419 | PyObject * obj2 = 0 ; | |
6420 | PyObject * obj3 = 0 ; | |
6421 | char *kwnames[] = { | |
6422 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6428 | arg2 = (int) SWIG_AsInt(obj1); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | arg3 = (int) SWIG_AsInt(obj2); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | { | |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
6437 | ||
6438 | wxPyEndAllowThreads(__tstate); | |
6439 | if (PyErr_Occurred()) SWIG_fail; | |
6440 | } | |
6441 | { | |
6442 | resultobj = wxPyMake_wxGridCellAttr(result); | |
6443 | } | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj; | |
6452 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6453 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6454 | int arg3 ; | |
6455 | int arg4 ; | |
6456 | PyObject * obj0 = 0 ; | |
6457 | PyObject * obj1 = 0 ; | |
6458 | PyObject * obj2 = 0 ; | |
6459 | PyObject * obj3 = 0 ; | |
6460 | char *kwnames[] = { | |
6461 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
6462 | }; | |
6463 | ||
6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6469 | arg3 = (int) SWIG_AsInt(obj2); | |
6470 | if (PyErr_Occurred()) SWIG_fail; | |
6471 | arg4 = (int) SWIG_AsInt(obj3); | |
6472 | if (PyErr_Occurred()) SWIG_fail; | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | (arg1)->SetAttr(arg2,arg3,arg4); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | Py_INCREF(Py_None); resultobj = Py_None; | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
6487 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject *resultobj; | |
6489 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6490 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6491 | int arg3 ; | |
6492 | PyObject * obj0 = 0 ; | |
6493 | PyObject * obj1 = 0 ; | |
6494 | PyObject * obj2 = 0 ; | |
6495 | char *kwnames[] = { | |
6496 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
6497 | }; | |
6498 | ||
6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6504 | arg3 = (int) SWIG_AsInt(obj2); | |
6505 | if (PyErr_Occurred()) SWIG_fail; | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | (arg1)->SetRowAttr(arg2,arg3); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | Py_INCREF(Py_None); resultobj = Py_None; | |
6514 | return resultobj; | |
6515 | fail: | |
6516 | return NULL; | |
6517 | } | |
6518 | ||
6519 | ||
6520 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject *resultobj; | |
6522 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6523 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6524 | int arg3 ; | |
6525 | PyObject * obj0 = 0 ; | |
6526 | PyObject * obj1 = 0 ; | |
6527 | PyObject * obj2 = 0 ; | |
6528 | char *kwnames[] = { | |
6529 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
6530 | }; | |
6531 | ||
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
6534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6537 | arg3 = (int) SWIG_AsInt(obj2); | |
6538 | if (PyErr_Occurred()) SWIG_fail; | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | (arg1)->SetColAttr(arg2,arg3); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
6546 | Py_INCREF(Py_None); resultobj = Py_None; | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) { | |
6554 | PyObject *obj; | |
6555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6556 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); | |
6557 | Py_INCREF(obj); | |
6558 | return Py_BuildValue((char *)""); | |
6559 | } | |
6560 | static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj; | |
6562 | wxPyGridTableBase *result; | |
6563 | char *kwnames[] = { | |
6564 | NULL | |
6565 | }; | |
6566 | ||
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; | |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); | |
6571 | ||
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1); | |
6576 | return resultobj; | |
6577 | fail: | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
6582 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6583 | PyObject *resultobj; | |
6584 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6585 | PyObject *arg2 = (PyObject *) 0 ; | |
6586 | PyObject *arg3 = (PyObject *) 0 ; | |
6587 | PyObject * obj0 = 0 ; | |
6588 | PyObject * obj1 = 0 ; | |
6589 | PyObject * obj2 = 0 ; | |
6590 | char *kwnames[] = { | |
6591 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6592 | }; | |
6593 | ||
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6597 | arg2 = obj1; | |
6598 | arg3 = obj2; | |
6599 | { | |
6600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6601 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6602 | ||
6603 | wxPyEndAllowThreads(__tstate); | |
6604 | if (PyErr_Occurred()) SWIG_fail; | |
6605 | } | |
6606 | Py_INCREF(Py_None); resultobj = Py_None; | |
6607 | return resultobj; | |
6608 | fail: | |
6609 | return NULL; | |
6610 | } | |
6611 | ||
6612 | ||
6613 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6614 | PyObject *resultobj; | |
6615 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6616 | PyObject * obj0 = 0 ; | |
6617 | char *kwnames[] = { | |
6618 | (char *) "self", NULL | |
6619 | }; | |
6620 | ||
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; | |
6622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6624 | { | |
6625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6626 | wxPyGridTableBase_Destroy(arg1); | |
6627 | ||
6628 | wxPyEndAllowThreads(__tstate); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | Py_INCREF(Py_None); resultobj = Py_None; | |
6632 | return resultobj; | |
6633 | fail: | |
6634 | return NULL; | |
6635 | } | |
6636 | ||
6637 | ||
6638 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6639 | PyObject *resultobj; | |
6640 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6641 | int arg2 ; | |
6642 | int arg3 ; | |
6643 | wxString result; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | PyObject * obj1 = 0 ; | |
6646 | PyObject * obj2 = 0 ; | |
6647 | char *kwnames[] = { | |
6648 | (char *) "self",(char *) "row",(char *) "col", NULL | |
6649 | }; | |
6650 | ||
6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6654 | arg2 = (int) SWIG_AsInt(obj1); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | arg3 = (int) SWIG_AsInt(obj2); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | result = (arg1)->base_GetTypeName(arg2,arg3); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
6665 | { | |
6666 | #if wxUSE_UNICODE | |
6667 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6668 | #else | |
6669 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6670 | #endif | |
6671 | } | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
6678 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject *resultobj; | |
6680 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6681 | int arg2 ; | |
6682 | int arg3 ; | |
6683 | wxString *arg4 = 0 ; | |
6684 | bool result; | |
6685 | bool temp4 = False ; | |
6686 | PyObject * obj0 = 0 ; | |
6687 | PyObject * obj1 = 0 ; | |
6688 | PyObject * obj2 = 0 ; | |
6689 | PyObject * obj3 = 0 ; | |
6690 | char *kwnames[] = { | |
6691 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6692 | }; | |
6693 | ||
6694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6697 | arg2 = (int) SWIG_AsInt(obj1); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | arg3 = (int) SWIG_AsInt(obj2); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | { | |
6702 | arg4 = wxString_in_helper(obj3); | |
6703 | if (arg4 == NULL) SWIG_fail; | |
6704 | temp4 = True; | |
6705 | } | |
6706 | { | |
6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6708 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6709 | ||
6710 | wxPyEndAllowThreads(__tstate); | |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
6712 | } | |
6713 | { | |
6714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6715 | } | |
6716 | { | |
6717 | if (temp4) | |
6718 | delete arg4; | |
6719 | } | |
6720 | return resultobj; | |
6721 | fail: | |
6722 | { | |
6723 | if (temp4) | |
6724 | delete arg4; | |
6725 | } | |
6726 | return NULL; | |
6727 | } | |
6728 | ||
6729 | ||
6730 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6731 | PyObject *resultobj; | |
6732 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6733 | int arg2 ; | |
6734 | int arg3 ; | |
6735 | wxString *arg4 = 0 ; | |
6736 | bool result; | |
6737 | bool temp4 = False ; | |
6738 | PyObject * obj0 = 0 ; | |
6739 | PyObject * obj1 = 0 ; | |
6740 | PyObject * obj2 = 0 ; | |
6741 | PyObject * obj3 = 0 ; | |
6742 | char *kwnames[] = { | |
6743 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6744 | }; | |
6745 | ||
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6749 | arg2 = (int) SWIG_AsInt(obj1); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | arg3 = (int) SWIG_AsInt(obj2); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | { | |
6754 | arg4 = wxString_in_helper(obj3); | |
6755 | if (arg4 == NULL) SWIG_fail; | |
6756 | temp4 = True; | |
6757 | } | |
6758 | { | |
6759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6760 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6761 | ||
6762 | wxPyEndAllowThreads(__tstate); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
6764 | } | |
6765 | { | |
6766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6767 | } | |
6768 | { | |
6769 | if (temp4) | |
6770 | delete arg4; | |
6771 | } | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | { | |
6775 | if (temp4) | |
6776 | delete arg4; | |
6777 | } | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6785 | PyObject * obj0 = 0 ; | |
6786 | char *kwnames[] = { | |
6787 | (char *) "self", NULL | |
6788 | }; | |
6789 | ||
6790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; | |
6791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | (arg1)->base_Clear(); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
6800 | Py_INCREF(Py_None); resultobj = Py_None; | |
6801 | return resultobj; | |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
6807 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6810 | size_t arg2 = (size_t) 0 ; | |
6811 | size_t arg3 = (size_t) 1 ; | |
6812 | bool result; | |
6813 | PyObject * obj0 = 0 ; | |
6814 | PyObject * obj1 = 0 ; | |
6815 | PyObject * obj2 = 0 ; | |
6816 | char *kwnames[] = { | |
6817 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6818 | }; | |
6819 | ||
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6823 | if (obj1) { | |
6824 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6825 | if (PyErr_Occurred()) SWIG_fail; | |
6826 | } | |
6827 | if (obj2) { | |
6828 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6829 | if (PyErr_Occurred()) SWIG_fail; | |
6830 | } | |
6831 | { | |
6832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6833 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); | |
6834 | ||
6835 | wxPyEndAllowThreads(__tstate); | |
6836 | if (PyErr_Occurred()) SWIG_fail; | |
6837 | } | |
6838 | { | |
6839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6840 | } | |
6841 | return resultobj; | |
6842 | fail: | |
6843 | return NULL; | |
6844 | } | |
6845 | ||
6846 | ||
6847 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject *resultobj; | |
6849 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6850 | size_t arg2 = (size_t) 1 ; | |
6851 | bool result; | |
6852 | PyObject * obj0 = 0 ; | |
6853 | PyObject * obj1 = 0 ; | |
6854 | char *kwnames[] = { | |
6855 | (char *) "self",(char *) "numRows", NULL | |
6856 | }; | |
6857 | ||
6858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
6859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6861 | if (obj1) { | |
6862 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | { | |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6867 | result = (bool)(arg1)->base_AppendRows(arg2); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
6872 | { | |
6873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6874 | } | |
6875 | return resultobj; | |
6876 | fail: | |
6877 | return NULL; | |
6878 | } | |
6879 | ||
6880 | ||
6881 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6882 | PyObject *resultobj; | |
6883 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6884 | size_t arg2 = (size_t) 0 ; | |
6885 | size_t arg3 = (size_t) 1 ; | |
6886 | bool result; | |
6887 | PyObject * obj0 = 0 ; | |
6888 | PyObject * obj1 = 0 ; | |
6889 | PyObject * obj2 = 0 ; | |
6890 | char *kwnames[] = { | |
6891 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6892 | }; | |
6893 | ||
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6897 | if (obj1) { | |
6898 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | if (obj2) { | |
6902 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
6912 | { | |
6913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6914 | } | |
6915 | return resultobj; | |
6916 | fail: | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6924 | size_t arg2 = (size_t) 0 ; | |
6925 | size_t arg3 = (size_t) 1 ; | |
6926 | bool result; | |
6927 | PyObject * obj0 = 0 ; | |
6928 | PyObject * obj1 = 0 ; | |
6929 | PyObject * obj2 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6932 | }; | |
6933 | ||
6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6937 | if (obj1) { | |
6938 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6939 | if (PyErr_Occurred()) SWIG_fail; | |
6940 | } | |
6941 | if (obj2) { | |
6942 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | { | |
6946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6947 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); | |
6948 | ||
6949 | wxPyEndAllowThreads(__tstate); | |
6950 | if (PyErr_Occurred()) SWIG_fail; | |
6951 | } | |
6952 | { | |
6953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6954 | } | |
6955 | return resultobj; | |
6956 | fail: | |
6957 | return NULL; | |
6958 | } | |
6959 | ||
6960 | ||
6961 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6962 | PyObject *resultobj; | |
6963 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6964 | size_t arg2 = (size_t) 1 ; | |
6965 | bool result; | |
6966 | PyObject * obj0 = 0 ; | |
6967 | PyObject * obj1 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self",(char *) "numCols", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
6973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
6974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6975 | if (obj1) { | |
6976 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6977 | if (PyErr_Occurred()) SWIG_fail; | |
6978 | } | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | result = (bool)(arg1)->base_AppendCols(arg2); | |
6982 | ||
6983 | wxPyEndAllowThreads(__tstate); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | } | |
6986 | { | |
6987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6988 | } | |
6989 | return resultobj; | |
6990 | fail: | |
6991 | return NULL; | |
6992 | } | |
6993 | ||
6994 | ||
6995 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject *resultobj; | |
6997 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6998 | size_t arg2 = (size_t) 0 ; | |
6999 | size_t arg3 = (size_t) 1 ; | |
7000 | bool result; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | PyObject * obj2 = 0 ; | |
7004 | char *kwnames[] = { | |
7005 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
7006 | }; | |
7007 | ||
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7011 | if (obj1) { | |
7012 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
7015 | if (obj2) { | |
7016 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | { | |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7021 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); | |
7022 | ||
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
7026 | { | |
7027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7028 | } | |
7029 | return resultobj; | |
7030 | fail: | |
7031 | return NULL; | |
7032 | } | |
7033 | ||
7034 | ||
7035 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7036 | PyObject *resultobj; | |
7037 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7038 | int arg2 ; | |
7039 | wxString result; | |
7040 | PyObject * obj0 = 0 ; | |
7041 | PyObject * obj1 = 0 ; | |
7042 | char *kwnames[] = { | |
7043 | (char *) "self",(char *) "row", NULL | |
7044 | }; | |
7045 | ||
7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
7047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7049 | arg2 = (int) SWIG_AsInt(obj1); | |
7050 | if (PyErr_Occurred()) SWIG_fail; | |
7051 | { | |
7052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7053 | result = (arg1)->base_GetRowLabelValue(arg2); | |
7054 | ||
7055 | wxPyEndAllowThreads(__tstate); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
7058 | { | |
7059 | #if wxUSE_UNICODE | |
7060 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7061 | #else | |
7062 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7063 | #endif | |
7064 | } | |
7065 | return resultobj; | |
7066 | fail: | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj; | |
7073 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7074 | int arg2 ; | |
7075 | wxString result; | |
7076 | PyObject * obj0 = 0 ; | |
7077 | PyObject * obj1 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "self",(char *) "col", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
7083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7085 | arg2 = (int) SWIG_AsInt(obj1); | |
7086 | if (PyErr_Occurred()) SWIG_fail; | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | result = (arg1)->base_GetColLabelValue(arg2); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | { | |
7095 | #if wxUSE_UNICODE | |
7096 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7097 | #else | |
7098 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7099 | #endif | |
7100 | } | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | return NULL; | |
7104 | } | |
7105 | ||
7106 | ||
7107 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject *resultobj; | |
7109 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7110 | int arg2 ; | |
7111 | wxString *arg3 = 0 ; | |
7112 | bool temp3 = False ; | |
7113 | PyObject * obj0 = 0 ; | |
7114 | PyObject * obj1 = 0 ; | |
7115 | PyObject * obj2 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "self",(char *) "row",(char *) "value", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7123 | arg2 = (int) SWIG_AsInt(obj1); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | { | |
7126 | arg3 = wxString_in_helper(obj2); | |
7127 | if (arg3 == NULL) SWIG_fail; | |
7128 | temp3 = True; | |
7129 | } | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | Py_INCREF(Py_None); resultobj = Py_None; | |
7138 | { | |
7139 | if (temp3) | |
7140 | delete arg3; | |
7141 | } | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | { | |
7145 | if (temp3) | |
7146 | delete arg3; | |
7147 | } | |
7148 | return NULL; | |
7149 | } | |
7150 | ||
7151 | ||
7152 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj; | |
7154 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7155 | int arg2 ; | |
7156 | wxString *arg3 = 0 ; | |
7157 | bool temp3 = False ; | |
7158 | PyObject * obj0 = 0 ; | |
7159 | PyObject * obj1 = 0 ; | |
7160 | PyObject * obj2 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "self",(char *) "col",(char *) "value", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7168 | arg2 = (int) SWIG_AsInt(obj1); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | { | |
7171 | arg3 = wxString_in_helper(obj2); | |
7172 | if (arg3 == NULL) SWIG_fail; | |
7173 | temp3 = True; | |
7174 | } | |
7175 | { | |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
7182 | Py_INCREF(Py_None); resultobj = Py_None; | |
7183 | { | |
7184 | if (temp3) | |
7185 | delete arg3; | |
7186 | } | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | { | |
7190 | if (temp3) | |
7191 | delete arg3; | |
7192 | } | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj; | |
7199 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7200 | bool result; | |
7201 | PyObject * obj0 = 0 ; | |
7202 | char *kwnames[] = { | |
7203 | (char *) "self", NULL | |
7204 | }; | |
7205 | ||
7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
7207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7209 | { | |
7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7211 | result = (bool)(arg1)->base_CanHaveAttributes(); | |
7212 | ||
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | { | |
7217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7218 | } | |
7219 | return resultobj; | |
7220 | fail: | |
7221 | return NULL; | |
7222 | } | |
7223 | ||
7224 | ||
7225 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject *resultobj; | |
7227 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7228 | int arg2 ; | |
7229 | int arg3 ; | |
7230 | int arg4 ; | |
7231 | wxGridCellAttr *result; | |
7232 | PyObject * obj0 = 0 ; | |
7233 | PyObject * obj1 = 0 ; | |
7234 | PyObject * obj2 = 0 ; | |
7235 | PyObject * obj3 = 0 ; | |
7236 | char *kwnames[] = { | |
7237 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
7238 | }; | |
7239 | ||
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7243 | arg2 = (int) SWIG_AsInt(obj1); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | arg3 = (int) SWIG_AsInt(obj2); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
7248 | if (PyErr_Occurred()) SWIG_fail; | |
7249 | { | |
7250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7251 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
7252 | ||
7253 | wxPyEndAllowThreads(__tstate); | |
7254 | if (PyErr_Occurred()) SWIG_fail; | |
7255 | } | |
7256 | { | |
7257 | resultobj = wxPyMake_wxGridCellAttr(result); | |
7258 | } | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj; | |
7267 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7268 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7269 | int arg3 ; | |
7270 | int arg4 ; | |
7271 | PyObject * obj0 = 0 ; | |
7272 | PyObject * obj1 = 0 ; | |
7273 | PyObject * obj2 = 0 ; | |
7274 | PyObject * obj3 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7284 | arg3 = (int) SWIG_AsInt(obj2); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | arg4 = (int) SWIG_AsInt(obj3); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | Py_INCREF(Py_None); resultobj = Py_None; | |
7296 | return resultobj; | |
7297 | fail: | |
7298 | return NULL; | |
7299 | } | |
7300 | ||
7301 | ||
7302 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7303 | PyObject *resultobj; | |
7304 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7305 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7306 | int arg3 ; | |
7307 | PyObject * obj0 = 0 ; | |
7308 | PyObject * obj1 = 0 ; | |
7309 | PyObject * obj2 = 0 ; | |
7310 | char *kwnames[] = { | |
7311 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
7312 | }; | |
7313 | ||
7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7319 | arg3 = (int) SWIG_AsInt(obj2); | |
7320 | if (PyErr_Occurred()) SWIG_fail; | |
7321 | { | |
7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7323 | (arg1)->base_SetRowAttr(arg2,arg3); | |
7324 | ||
7325 | wxPyEndAllowThreads(__tstate); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
7328 | Py_INCREF(Py_None); resultobj = Py_None; | |
7329 | return resultobj; | |
7330 | fail: | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
7337 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7338 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7339 | int arg3 ; | |
7340 | PyObject * obj0 = 0 ; | |
7341 | PyObject * obj1 = 0 ; | |
7342 | PyObject * obj2 = 0 ; | |
7343 | char *kwnames[] = { | |
7344 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
7345 | }; | |
7346 | ||
7347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, | |
7349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7352 | arg3 = (int) SWIG_AsInt(obj2); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | { | |
7355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7356 | (arg1)->base_SetColAttr(arg2,arg3); | |
7357 | ||
7358 | wxPyEndAllowThreads(__tstate); | |
7359 | if (PyErr_Occurred()) SWIG_fail; | |
7360 | } | |
7361 | Py_INCREF(Py_None); resultobj = Py_None; | |
7362 | return resultobj; | |
7363 | fail: | |
7364 | return NULL; | |
7365 | } | |
7366 | ||
7367 | ||
7368 | static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) { | |
7369 | PyObject *obj; | |
7370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7371 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); | |
7372 | Py_INCREF(obj); | |
7373 | return Py_BuildValue((char *)""); | |
7374 | } | |
7375 | static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7376 | PyObject *resultobj; | |
7377 | int arg1 = (int) 0 ; | |
7378 | int arg2 = (int) 0 ; | |
7379 | wxGridStringTable *result; | |
7380 | PyObject * obj0 = 0 ; | |
7381 | PyObject * obj1 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "numRows",(char *) "numCols", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; | |
7387 | if (obj0) { | |
7388 | arg1 = (int) SWIG_AsInt(obj0); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | if (obj1) { | |
7392 | arg2 = (int) SWIG_AsInt(obj1); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | { | |
7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7397 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); | |
7398 | ||
7399 | wxPyEndAllowThreads(__tstate); | |
7400 | if (PyErr_Occurred()) SWIG_fail; | |
7401 | } | |
7402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1); | |
7403 | return resultobj; | |
7404 | fail: | |
7405 | return NULL; | |
7406 | } | |
7407 | ||
7408 | ||
7409 | static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) { | |
7410 | PyObject *obj; | |
7411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7412 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); | |
7413 | Py_INCREF(obj); | |
7414 | return Py_BuildValue((char *)""); | |
7415 | } | |
7416 | static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject *resultobj; | |
7418 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
7419 | int arg2 ; | |
7420 | int arg3 = (int) -1 ; | |
7421 | int arg4 = (int) -1 ; | |
7422 | wxGridTableMessage *result; | |
7423 | PyObject * obj0 = 0 ; | |
7424 | PyObject * obj1 = 0 ; | |
7425 | PyObject * obj2 = 0 ; | |
7426 | PyObject * obj3 = 0 ; | |
7427 | char *kwnames[] = { | |
7428 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL | |
7429 | }; | |
7430 | ||
7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, | |
7433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7434 | arg2 = (int) SWIG_AsInt(obj1); | |
7435 | if (PyErr_Occurred()) SWIG_fail; | |
7436 | if (obj2) { | |
7437 | arg3 = (int) SWIG_AsInt(obj2); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | if (obj3) { | |
7441 | arg4 = (int) SWIG_AsInt(obj3); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | { | |
7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7446 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); | |
7447 | ||
7448 | wxPyEndAllowThreads(__tstate); | |
7449 | if (PyErr_Occurred()) SWIG_fail; | |
7450 | } | |
7451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1); | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | return NULL; | |
7455 | } | |
7456 | ||
7457 | ||
7458 | static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7459 | PyObject *resultobj; | |
7460 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7461 | PyObject * obj0 = 0 ; | |
7462 | char *kwnames[] = { | |
7463 | (char *) "self", NULL | |
7464 | }; | |
7465 | ||
7466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; | |
7467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7469 | { | |
7470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7471 | delete arg1; | |
7472 | ||
7473 | wxPyEndAllowThreads(__tstate); | |
7474 | if (PyErr_Occurred()) SWIG_fail; | |
7475 | } | |
7476 | Py_INCREF(Py_None); resultobj = Py_None; | |
7477 | return resultobj; | |
7478 | fail: | |
7479 | return NULL; | |
7480 | } | |
7481 | ||
7482 | ||
7483 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject *resultobj; | |
7485 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7486 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
7487 | PyObject * obj0 = 0 ; | |
7488 | PyObject * obj1 = 0 ; | |
7489 | char *kwnames[] = { | |
7490 | (char *) "self",(char *) "table", NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; | |
7494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7496 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
7497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7498 | { | |
7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7500 | (arg1)->SetTableObject(arg2); | |
7501 | ||
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
7505 | Py_INCREF(Py_None); resultobj = Py_None; | |
7506 | return resultobj; | |
7507 | fail: | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7515 | wxGridTableBase *result; | |
7516 | PyObject * obj0 = 0 ; | |
7517 | char *kwnames[] = { | |
7518 | (char *) "self", NULL | |
7519 | }; | |
7520 | ||
7521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; | |
7522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7524 | { | |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | { | |
7532 | resultobj = wxPyMake_wxGridTableBase(result); | |
7533 | } | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7543 | int arg2 ; | |
7544 | PyObject * obj0 = 0 ; | |
7545 | PyObject * obj1 = 0 ; | |
7546 | char *kwnames[] = { | |
7547 | (char *) "self",(char *) "id", NULL | |
7548 | }; | |
7549 | ||
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; | |
7551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7553 | arg2 = (int) SWIG_AsInt(obj1); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | { | |
7556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557 | (arg1)->SetId(arg2); | |
7558 | ||
7559 | wxPyEndAllowThreads(__tstate); | |
7560 | if (PyErr_Occurred()) SWIG_fail; | |
7561 | } | |
7562 | Py_INCREF(Py_None); resultobj = Py_None; | |
7563 | return resultobj; | |
7564 | fail: | |
7565 | return NULL; | |
7566 | } | |
7567 | ||
7568 | ||
7569 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7570 | PyObject *resultobj; | |
7571 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7572 | int result; | |
7573 | PyObject * obj0 = 0 ; | |
7574 | char *kwnames[] = { | |
7575 | (char *) "self", NULL | |
7576 | }; | |
7577 | ||
7578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; | |
7579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7581 | { | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | result = (int)(arg1)->GetId(); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | resultobj = SWIG_FromInt((int)result); | |
7589 | return resultobj; | |
7590 | fail: | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
7595 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7596 | PyObject *resultobj; | |
7597 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7598 | int arg2 ; | |
7599 | PyObject * obj0 = 0 ; | |
7600 | PyObject * obj1 = 0 ; | |
7601 | char *kwnames[] = { | |
7602 | (char *) "self",(char *) "comInt1", NULL | |
7603 | }; | |
7604 | ||
7605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; | |
7606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7608 | arg2 = (int) SWIG_AsInt(obj1); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | { | |
7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7612 | (arg1)->SetCommandInt(arg2); | |
7613 | ||
7614 | wxPyEndAllowThreads(__tstate); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | } | |
7617 | Py_INCREF(Py_None); resultobj = Py_None; | |
7618 | return resultobj; | |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject *resultobj; | |
7626 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7627 | int result; | |
7628 | PyObject * obj0 = 0 ; | |
7629 | char *kwnames[] = { | |
7630 | (char *) "self", NULL | |
7631 | }; | |
7632 | ||
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; | |
7634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | result = (int)(arg1)->GetCommandInt(); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
7643 | resultobj = SWIG_FromInt((int)result); | |
7644 | return resultobj; | |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
7650 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject *resultobj; | |
7652 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7653 | int arg2 ; | |
7654 | PyObject * obj0 = 0 ; | |
7655 | PyObject * obj1 = 0 ; | |
7656 | char *kwnames[] = { | |
7657 | (char *) "self",(char *) "comInt2", NULL | |
7658 | }; | |
7659 | ||
7660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; | |
7661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7663 | arg2 = (int) SWIG_AsInt(obj1); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | (arg1)->SetCommandInt2(arg2); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | Py_INCREF(Py_None); resultobj = Py_None; | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7682 | int result; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, | |
7690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7691 | { | |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | result = (int)(arg1)->GetCommandInt2(); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | resultobj = SWIG_FromInt((int)result); | |
7699 | return resultobj; | |
7700 | fail: | |
7701 | return NULL; | |
7702 | } | |
7703 | ||
7704 | ||
7705 | static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) { | |
7706 | PyObject *obj; | |
7707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7708 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); | |
7709 | Py_INCREF(obj); | |
7710 | return Py_BuildValue((char *)""); | |
7711 | } | |
7712 | static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7713 | PyObject *resultobj; | |
7714 | int arg1 = (int) -1 ; | |
7715 | int arg2 = (int) -1 ; | |
7716 | wxGridCellCoords *result; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | PyObject * obj1 = 0 ; | |
7719 | char *kwnames[] = { | |
7720 | (char *) "r",(char *) "c", NULL | |
7721 | }; | |
7722 | ||
7723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; | |
7724 | if (obj0) { | |
7725 | arg1 = (int) SWIG_AsInt(obj0); | |
7726 | if (PyErr_Occurred()) SWIG_fail; | |
7727 | } | |
7728 | if (obj1) { | |
7729 | arg2 = (int) SWIG_AsInt(obj1); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1); | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
7746 | static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7747 | PyObject *resultobj; | |
7748 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "self", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; | |
7755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | delete arg1; | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | Py_INCREF(Py_None); resultobj = Py_None; | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7774 | int result; | |
7775 | PyObject * obj0 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "self", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7783 | { | |
7784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7785 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); | |
7786 | ||
7787 | wxPyEndAllowThreads(__tstate); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | resultobj = SWIG_FromInt((int)result); | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7798 | PyObject *resultobj; | |
7799 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7800 | int arg2 ; | |
7801 | PyObject * obj0 = 0 ; | |
7802 | PyObject * obj1 = 0 ; | |
7803 | char *kwnames[] = { | |
7804 | (char *) "self",(char *) "n", NULL | |
7805 | }; | |
7806 | ||
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
7808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7810 | arg2 = (int) SWIG_AsInt(obj1); | |
7811 | if (PyErr_Occurred()) SWIG_fail; | |
7812 | { | |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | (arg1)->SetRow(arg2); | |
7815 | ||
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | Py_INCREF(Py_None); resultobj = Py_None; | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject *resultobj; | |
7828 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7829 | int result; | |
7830 | PyObject * obj0 = 0 ; | |
7831 | char *kwnames[] = { | |
7832 | (char *) "self", NULL | |
7833 | }; | |
7834 | ||
7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail; | |
7836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (int)((wxGridCellCoords const *)arg1)->GetCol(); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) SWIG_fail; | |
7844 | } | |
7845 | resultobj = SWIG_FromInt((int)result); | |
7846 | return resultobj; | |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
7852 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject *resultobj; | |
7854 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7855 | int arg2 ; | |
7856 | PyObject * obj0 = 0 ; | |
7857 | PyObject * obj1 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self",(char *) "n", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
7863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7865 | arg2 = (int) SWIG_AsInt(obj1); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | { | |
7868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7869 | (arg1)->SetCol(arg2); | |
7870 | ||
7871 | wxPyEndAllowThreads(__tstate); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | Py_INCREF(Py_None); resultobj = Py_None; | |
7875 | return resultobj; | |
7876 | fail: | |
7877 | return NULL; | |
7878 | } | |
7879 | ||
7880 | ||
7881 | static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject *resultobj; | |
7883 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7884 | int arg2 ; | |
7885 | int arg3 ; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | PyObject * obj1 = 0 ; | |
7888 | PyObject * obj2 = 0 ; | |
7889 | char *kwnames[] = { | |
7890 | (char *) "self",(char *) "row",(char *) "col", NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7896 | arg2 = (int) SWIG_AsInt(obj1); | |
7897 | if (PyErr_Occurred()) SWIG_fail; | |
7898 | arg3 = (int) SWIG_AsInt(obj2); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | { | |
7901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7902 | (arg1)->Set(arg2,arg3); | |
7903 | ||
7904 | wxPyEndAllowThreads(__tstate); | |
7905 | if (PyErr_Occurred()) SWIG_fail; | |
7906 | } | |
7907 | Py_INCREF(Py_None); resultobj = Py_None; | |
7908 | return resultobj; | |
7909 | fail: | |
7910 | return NULL; | |
7911 | } | |
7912 | ||
7913 | ||
7914 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject *resultobj; | |
7916 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7917 | wxGridCellCoords *arg2 = 0 ; | |
7918 | bool result; | |
7919 | wxGridCellCoords temp2 ; | |
7920 | PyObject * obj0 = 0 ; | |
7921 | PyObject * obj1 = 0 ; | |
7922 | char *kwnames[] = { | |
7923 | (char *) "self",(char *) "other", NULL | |
7924 | }; | |
7925 | ||
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7929 | { | |
7930 | arg2 = &temp2; | |
7931 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
7932 | } | |
7933 | { | |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); | |
7936 | ||
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
7940 | { | |
7941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7942 | } | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
7949 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7950 | PyObject *resultobj; | |
7951 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7952 | wxGridCellCoords *arg2 = 0 ; | |
7953 | bool result; | |
7954 | wxGridCellCoords temp2 ; | |
7955 | PyObject * obj0 = 0 ; | |
7956 | PyObject * obj1 = 0 ; | |
7957 | char *kwnames[] = { | |
7958 | (char *) "self",(char *) "other", NULL | |
7959 | }; | |
7960 | ||
7961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7964 | { | |
7965 | arg2 = &temp2; | |
7966 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
7967 | } | |
7968 | { | |
7969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7970 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); | |
7971 | ||
7972 | wxPyEndAllowThreads(__tstate); | |
7973 | if (PyErr_Occurred()) SWIG_fail; | |
7974 | } | |
7975 | { | |
7976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7977 | } | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
7984 | static PyObject *_wrap_GridCellCoords_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj; | |
7986 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7987 | PyObject *result; | |
7988 | PyObject * obj0 = 0 ; | |
7989 | char *kwnames[] = { | |
7990 | (char *) "self", NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_Get",kwnames,&obj0)) goto fail; | |
7994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, | |
7995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7996 | { | |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | result = (PyObject *)wxGridCellCoords_Get(arg1); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
8003 | resultobj = result; | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) { | |
8011 | PyObject *obj; | |
8012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8013 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); | |
8014 | Py_INCREF(obj); | |
8015 | return Py_BuildValue((char *)""); | |
8016 | } | |
8017 | static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8018 | PyObject *resultobj; | |
8019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8020 | int arg2 = (int) -1 ; | |
8021 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8022 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8023 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8024 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8025 | long arg5 = (long) wxWANTS_CHARS ; | |
8026 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8027 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8028 | wxGrid *result; | |
8029 | wxPoint temp3 ; | |
8030 | wxSize temp4 ; | |
8031 | bool temp6 = False ; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | PyObject * obj1 = 0 ; | |
8034 | PyObject * obj2 = 0 ; | |
8035 | PyObject * obj3 = 0 ; | |
8036 | PyObject * obj4 = 0 ; | |
8037 | PyObject * obj5 = 0 ; | |
8038 | char *kwnames[] = { | |
8039 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8040 | }; | |
8041 | ||
8042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8045 | if (obj1) { | |
8046 | arg2 = (int) SWIG_AsInt(obj1); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
8049 | if (obj2) { | |
8050 | { | |
8051 | arg3 = &temp3; | |
8052 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8053 | } | |
8054 | } | |
8055 | if (obj3) { | |
8056 | { | |
8057 | arg4 = &temp4; | |
8058 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8059 | } | |
8060 | } | |
8061 | if (obj4) { | |
8062 | arg5 = (long) SWIG_AsLong(obj4); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | if (obj5) { | |
8066 | { | |
8067 | arg6 = wxString_in_helper(obj5); | |
8068 | if (arg6 == NULL) SWIG_fail; | |
8069 | temp6 = True; | |
8070 | } | |
8071 | } | |
8072 | { | |
8073 | if (!wxPyCheckForApp()) SWIG_fail; | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | { | |
8081 | resultobj = wxPyMake_wxObject(result); | |
8082 | } | |
8083 | { | |
8084 | if (temp6) | |
8085 | delete arg6; | |
8086 | } | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | { | |
8090 | if (temp6) | |
8091 | delete arg6; | |
8092 | } | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject *_wrap_new_PreGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject *resultobj; | |
8099 | wxGrid *result; | |
8100 | char *kwnames[] = { | |
8101 | NULL | |
8102 | }; | |
8103 | ||
8104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGrid",kwnames)) goto fail; | |
8105 | { | |
8106 | if (!wxPyCheckForApp()) SWIG_fail; | |
8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8108 | result = (wxGrid *)new wxGrid(); | |
8109 | ||
8110 | wxPyEndAllowThreads(__tstate); | |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
8112 | } | |
8113 | { | |
8114 | resultobj = wxPyMake_wxObject(result); | |
8115 | } | |
8116 | return resultobj; | |
8117 | fail: | |
8118 | return NULL; | |
8119 | } | |
8120 | ||
8121 | ||
8122 | static PyObject *_wrap_Grid_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8123 | PyObject *resultobj; | |
8124 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8126 | int arg3 = (int) -1 ; | |
8127 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8128 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8129 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8130 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8131 | long arg6 = (long) wxWANTS_CHARS ; | |
8132 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
8133 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8134 | bool result; | |
8135 | wxPoint temp4 ; | |
8136 | wxSize temp5 ; | |
8137 | bool temp7 = False ; | |
8138 | PyObject * obj0 = 0 ; | |
8139 | PyObject * obj1 = 0 ; | |
8140 | PyObject * obj2 = 0 ; | |
8141 | PyObject * obj3 = 0 ; | |
8142 | PyObject * obj4 = 0 ; | |
8143 | PyObject * obj5 = 0 ; | |
8144 | PyObject * obj6 = 0 ; | |
8145 | char *kwnames[] = { | |
8146 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Grid_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8152 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8154 | if (obj2) { | |
8155 | arg3 = (int) SWIG_AsInt(obj2); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
8158 | if (obj3) { | |
8159 | { | |
8160 | arg4 = &temp4; | |
8161 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8162 | } | |
8163 | } | |
8164 | if (obj4) { | |
8165 | { | |
8166 | arg5 = &temp5; | |
8167 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8168 | } | |
8169 | } | |
8170 | if (obj5) { | |
8171 | arg6 = (long) SWIG_AsLong(obj5); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | if (obj6) { | |
8175 | { | |
8176 | arg7 = wxString_in_helper(obj6); | |
8177 | if (arg7 == NULL) SWIG_fail; | |
8178 | temp7 = True; | |
8179 | } | |
8180 | } | |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | { | |
8189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8190 | } | |
8191 | { | |
8192 | if (temp7) | |
8193 | delete arg7; | |
8194 | } | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | { | |
8198 | if (temp7) | |
8199 | delete arg7; | |
8200 | } | |
8201 | return NULL; | |
8202 | } | |
8203 | ||
8204 | ||
8205 | static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8206 | PyObject *resultobj; | |
8207 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8208 | int arg2 ; | |
8209 | int arg3 ; | |
8210 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
8211 | bool result; | |
8212 | PyObject * obj0 = 0 ; | |
8213 | PyObject * obj1 = 0 ; | |
8214 | PyObject * obj2 = 0 ; | |
8215 | PyObject * obj3 = 0 ; | |
8216 | char *kwnames[] = { | |
8217 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL | |
8218 | }; | |
8219 | ||
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8223 | arg2 = (int) SWIG_AsInt(obj1); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | arg3 = (int) SWIG_AsInt(obj2); | |
8226 | if (PyErr_Occurred()) SWIG_fail; | |
8227 | if (obj3) { | |
8228 | arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
8231 | { | |
8232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8233 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); | |
8234 | ||
8235 | wxPyEndAllowThreads(__tstate); | |
8236 | if (PyErr_Occurred()) SWIG_fail; | |
8237 | } | |
8238 | { | |
8239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8240 | } | |
8241 | return resultobj; | |
8242 | fail: | |
8243 | return NULL; | |
8244 | } | |
8245 | ||
8246 | ||
8247 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8248 | PyObject *resultobj; | |
8249 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8250 | WXGRIDSELECTIONMODES arg2 ; | |
8251 | PyObject * obj0 = 0 ; | |
8252 | PyObject * obj1 = 0 ; | |
8253 | char *kwnames[] = { | |
8254 | (char *) "self",(char *) "selmode", NULL | |
8255 | }; | |
8256 | ||
8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; | |
8258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8260 | arg2 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj1); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | { | |
8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8264 | (arg1)->SetSelectionMode(arg2); | |
8265 | ||
8266 | wxPyEndAllowThreads(__tstate); | |
8267 | if (PyErr_Occurred()) SWIG_fail; | |
8268 | } | |
8269 | Py_INCREF(Py_None); resultobj = Py_None; | |
8270 | return resultobj; | |
8271 | fail: | |
8272 | return NULL; | |
8273 | } | |
8274 | ||
8275 | ||
8276 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8277 | PyObject *resultobj; | |
8278 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8279 | WXGRIDSELECTIONMODES result; | |
8280 | PyObject * obj0 = 0 ; | |
8281 | char *kwnames[] = { | |
8282 | (char *) "self", NULL | |
8283 | }; | |
8284 | ||
8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; | |
8286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | resultobj = SWIG_FromInt((int)result); | |
8296 | return resultobj; | |
8297 | fail: | |
8298 | return NULL; | |
8299 | } | |
8300 | ||
8301 | ||
8302 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject *resultobj; | |
8304 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8305 | int result; | |
8306 | PyObject * obj0 = 0 ; | |
8307 | char *kwnames[] = { | |
8308 | (char *) "self", NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; | |
8312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | result = (int)(arg1)->GetNumberRows(); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | resultobj = SWIG_FromInt((int)result); | |
8322 | return resultobj; | |
8323 | fail: | |
8324 | return NULL; | |
8325 | } | |
8326 | ||
8327 | ||
8328 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8329 | PyObject *resultobj; | |
8330 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8331 | int result; | |
8332 | PyObject * obj0 = 0 ; | |
8333 | char *kwnames[] = { | |
8334 | (char *) "self", NULL | |
8335 | }; | |
8336 | ||
8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; | |
8338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | result = (int)(arg1)->GetNumberCols(); | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | resultobj = SWIG_FromInt((int)result); | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8357 | wxGridTableMessage *arg2 = 0 ; | |
8358 | bool result; | |
8359 | PyObject * obj0 = 0 ; | |
8360 | PyObject * obj1 = 0 ; | |
8361 | char *kwnames[] = { | |
8362 | (char *) "self","arg2", NULL | |
8363 | }; | |
8364 | ||
8365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; | |
8366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage, | |
8369 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8370 | SWIG_fail; | |
8371 | if (arg2 == NULL) { | |
8372 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8373 | SWIG_fail; | |
8374 | } | |
8375 | { | |
8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8377 | result = (bool)(arg1)->ProcessTableMessage(*arg2); | |
8378 | ||
8379 | wxPyEndAllowThreads(__tstate); | |
8380 | if (PyErr_Occurred()) SWIG_fail; | |
8381 | } | |
8382 | { | |
8383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8384 | } | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8392 | PyObject *resultobj; | |
8393 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8394 | wxGridTableBase *result; | |
8395 | PyObject * obj0 = 0 ; | |
8396 | char *kwnames[] = { | |
8397 | (char *) "self", NULL | |
8398 | }; | |
8399 | ||
8400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; | |
8401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8403 | { | |
8404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8405 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); | |
8406 | ||
8407 | wxPyEndAllowThreads(__tstate); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
8410 | { | |
8411 | resultobj = wxPyMake_wxGridTableBase(result); | |
8412 | } | |
8413 | return resultobj; | |
8414 | fail: | |
8415 | return NULL; | |
8416 | } | |
8417 | ||
8418 | ||
8419 | static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8420 | PyObject *resultobj; | |
8421 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8422 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
8423 | bool arg3 = (bool) False ; | |
8424 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
8425 | bool result; | |
8426 | PyObject * obj0 = 0 ; | |
8427 | PyObject * obj1 = 0 ; | |
8428 | PyObject * obj2 = 0 ; | |
8429 | PyObject * obj3 = 0 ; | |
8430 | char *kwnames[] = { | |
8431 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
8438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8439 | if (obj2) { | |
8440 | arg3 = (bool) SWIG_AsBool(obj2); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
8442 | } | |
8443 | if (obj3) { | |
8444 | arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3); | |
8445 | if (PyErr_Occurred()) SWIG_fail; | |
8446 | } | |
8447 | { | |
8448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8449 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); | |
8450 | ||
8451 | wxPyEndAllowThreads(__tstate); | |
8452 | if (PyErr_Occurred()) SWIG_fail; | |
8453 | } | |
8454 | { | |
8455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8456 | } | |
8457 | return resultobj; | |
8458 | fail: | |
8459 | return NULL; | |
8460 | } | |
8461 | ||
8462 | ||
8463 | static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8464 | PyObject *resultobj; | |
8465 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8466 | PyObject * obj0 = 0 ; | |
8467 | char *kwnames[] = { | |
8468 | (char *) "self", NULL | |
8469 | }; | |
8470 | ||
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; | |
8472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | (arg1)->ClearGrid(); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | Py_INCREF(Py_None); resultobj = Py_None; | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8489 | PyObject *resultobj; | |
8490 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8491 | int arg2 = (int) 0 ; | |
8492 | int arg3 = (int) 1 ; | |
8493 | bool arg4 = (bool) True ; | |
8494 | bool result; | |
8495 | PyObject * obj0 = 0 ; | |
8496 | PyObject * obj1 = 0 ; | |
8497 | PyObject * obj2 = 0 ; | |
8498 | PyObject * obj3 = 0 ; | |
8499 | char *kwnames[] = { | |
8500 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8501 | }; | |
8502 | ||
8503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8506 | if (obj1) { | |
8507 | arg2 = (int) SWIG_AsInt(obj1); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | if (obj2) { | |
8511 | arg3 = (int) SWIG_AsInt(obj2); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | if (obj3) { | |
8515 | arg4 = (bool) SWIG_AsBool(obj3); | |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
8517 | } | |
8518 | { | |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | { | |
8526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8527 | } | |
8528 | return resultobj; | |
8529 | fail: | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
8534 | static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8535 | PyObject *resultobj; | |
8536 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8537 | int arg2 = (int) 1 ; | |
8538 | bool arg3 = (bool) True ; | |
8539 | bool result; | |
8540 | PyObject * obj0 = 0 ; | |
8541 | PyObject * obj1 = 0 ; | |
8542 | PyObject * obj2 = 0 ; | |
8543 | char *kwnames[] = { | |
8544 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL | |
8545 | }; | |
8546 | ||
8547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8550 | if (obj1) { | |
8551 | arg2 = (int) SWIG_AsInt(obj1); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
8554 | if (obj2) { | |
8555 | arg3 = (bool) SWIG_AsBool(obj2); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (bool)(arg1)->AppendRows(arg2,arg3); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | { | |
8566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8567 | } | |
8568 | return resultobj; | |
8569 | fail: | |
8570 | return NULL; | |
8571 | } | |
8572 | ||
8573 | ||
8574 | static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8575 | PyObject *resultobj; | |
8576 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8577 | int arg2 = (int) 0 ; | |
8578 | int arg3 = (int) 1 ; | |
8579 | bool arg4 = (bool) True ; | |
8580 | bool result; | |
8581 | PyObject * obj0 = 0 ; | |
8582 | PyObject * obj1 = 0 ; | |
8583 | PyObject * obj2 = 0 ; | |
8584 | PyObject * obj3 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8592 | if (obj1) { | |
8593 | arg2 = (int) SWIG_AsInt(obj1); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
8596 | if (obj2) { | |
8597 | arg3 = (int) SWIG_AsInt(obj2); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | if (obj3) { | |
8601 | arg4 = (bool) SWIG_AsBool(obj3); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | { | |
8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8606 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); | |
8607 | ||
8608 | wxPyEndAllowThreads(__tstate); | |
8609 | if (PyErr_Occurred()) SWIG_fail; | |
8610 | } | |
8611 | { | |
8612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8613 | } | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
8620 | static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8621 | PyObject *resultobj; | |
8622 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8623 | int arg2 = (int) 0 ; | |
8624 | int arg3 = (int) 1 ; | |
8625 | bool arg4 = (bool) True ; | |
8626 | bool result; | |
8627 | PyObject * obj0 = 0 ; | |
8628 | PyObject * obj1 = 0 ; | |
8629 | PyObject * obj2 = 0 ; | |
8630 | PyObject * obj3 = 0 ; | |
8631 | char *kwnames[] = { | |
8632 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8633 | }; | |
8634 | ||
8635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8638 | if (obj1) { | |
8639 | arg2 = (int) SWIG_AsInt(obj1); | |
8640 | if (PyErr_Occurred()) SWIG_fail; | |
8641 | } | |
8642 | if (obj2) { | |
8643 | arg3 = (int) SWIG_AsInt(obj2); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | } | |
8646 | if (obj3) { | |
8647 | arg4 = (bool) SWIG_AsBool(obj3); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | { | |
8658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8659 | } | |
8660 | return resultobj; | |
8661 | fail: | |
8662 | return NULL; | |
8663 | } | |
8664 | ||
8665 | ||
8666 | static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject *resultobj; | |
8668 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8669 | int arg2 = (int) 1 ; | |
8670 | bool arg3 = (bool) True ; | |
8671 | bool result; | |
8672 | PyObject * obj0 = 0 ; | |
8673 | PyObject * obj1 = 0 ; | |
8674 | PyObject * obj2 = 0 ; | |
8675 | char *kwnames[] = { | |
8676 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL | |
8677 | }; | |
8678 | ||
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8682 | if (obj1) { | |
8683 | arg2 = (int) SWIG_AsInt(obj1); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | if (obj2) { | |
8687 | arg3 = (bool) SWIG_AsBool(obj2); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | { | |
8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8692 | result = (bool)(arg1)->AppendCols(arg2,arg3); | |
8693 | ||
8694 | wxPyEndAllowThreads(__tstate); | |
8695 | if (PyErr_Occurred()) SWIG_fail; | |
8696 | } | |
8697 | { | |
8698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8699 | } | |
8700 | return resultobj; | |
8701 | fail: | |
8702 | return NULL; | |
8703 | } | |
8704 | ||
8705 | ||
8706 | static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8707 | PyObject *resultobj; | |
8708 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8709 | int arg2 = (int) 0 ; | |
8710 | int arg3 = (int) 1 ; | |
8711 | bool arg4 = (bool) True ; | |
8712 | bool result; | |
8713 | PyObject * obj0 = 0 ; | |
8714 | PyObject * obj1 = 0 ; | |
8715 | PyObject * obj2 = 0 ; | |
8716 | PyObject * obj3 = 0 ; | |
8717 | char *kwnames[] = { | |
8718 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8719 | }; | |
8720 | ||
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8724 | if (obj1) { | |
8725 | arg2 = (int) SWIG_AsInt(obj1); | |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | if (obj2) { | |
8729 | arg3 = (int) SWIG_AsInt(obj2); | |
8730 | if (PyErr_Occurred()) SWIG_fail; | |
8731 | } | |
8732 | if (obj3) { | |
8733 | arg4 = (bool) SWIG_AsBool(obj3); | |
8734 | if (PyErr_Occurred()) SWIG_fail; | |
8735 | } | |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | { | |
8744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8745 | } | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
8752 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8753 | PyObject *resultobj; | |
8754 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8755 | wxDC *arg2 = 0 ; | |
8756 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
8757 | PyObject * obj0 = 0 ; | |
8758 | PyObject * obj1 = 0 ; | |
8759 | PyObject * obj2 = 0 ; | |
8760 | char *kwnames[] = { | |
8761 | (char *) "self",(char *) "dc",(char *) "attr", NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8768 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8769 | SWIG_fail; | |
8770 | if (arg2 == NULL) { | |
8771 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8772 | SWIG_fail; | |
8773 | } | |
8774 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
8775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8776 | { | |
8777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8778 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); | |
8779 | ||
8780 | wxPyEndAllowThreads(__tstate); | |
8781 | if (PyErr_Occurred()) SWIG_fail; | |
8782 | } | |
8783 | Py_INCREF(Py_None); resultobj = Py_None; | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | return NULL; | |
8787 | } | |
8788 | ||
8789 | ||
8790 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8791 | PyObject *resultobj; | |
8792 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8793 | wxDC *arg2 = 0 ; | |
8794 | wxString *arg3 = 0 ; | |
8795 | wxRect *arg4 = 0 ; | |
8796 | int arg5 = (int) wxLEFT ; | |
8797 | int arg6 = (int) wxTOP ; | |
8798 | int arg7 = (int) wxHORIZONTAL ; | |
8799 | bool temp3 = False ; | |
8800 | wxRect temp4 ; | |
8801 | PyObject * obj0 = 0 ; | |
8802 | PyObject * obj1 = 0 ; | |
8803 | PyObject * obj2 = 0 ; | |
8804 | PyObject * obj3 = 0 ; | |
8805 | PyObject * obj4 = 0 ; | |
8806 | PyObject * obj5 = 0 ; | |
8807 | PyObject * obj6 = 0 ; | |
8808 | char *kwnames[] = { | |
8809 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL | |
8810 | }; | |
8811 | ||
8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8817 | SWIG_fail; | |
8818 | if (arg2 == NULL) { | |
8819 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8820 | SWIG_fail; | |
8821 | } | |
8822 | { | |
8823 | arg3 = wxString_in_helper(obj2); | |
8824 | if (arg3 == NULL) SWIG_fail; | |
8825 | temp3 = True; | |
8826 | } | |
8827 | { | |
8828 | arg4 = &temp4; | |
8829 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
8830 | } | |
8831 | if (obj4) { | |
8832 | arg5 = (int) SWIG_AsInt(obj4); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | if (obj5) { | |
8836 | arg6 = (int) SWIG_AsInt(obj5); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
8839 | if (obj6) { | |
8840 | arg7 = (int) SWIG_AsInt(obj6); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | { | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | Py_INCREF(Py_None); resultobj = Py_None; | |
8851 | { | |
8852 | if (temp3) | |
8853 | delete arg3; | |
8854 | } | |
8855 | return resultobj; | |
8856 | fail: | |
8857 | { | |
8858 | if (temp3) | |
8859 | delete arg3; | |
8860 | } | |
8861 | return NULL; | |
8862 | } | |
8863 | ||
8864 | ||
8865 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8866 | PyObject *resultobj; | |
8867 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8868 | wxDC *arg2 = 0 ; | |
8869 | wxArrayString *arg3 = 0 ; | |
8870 | long *arg4 = (long *) 0 ; | |
8871 | long *arg5 = (long *) 0 ; | |
8872 | bool temp3 = False ; | |
8873 | long temp4 ; | |
8874 | long temp5 ; | |
8875 | PyObject * obj0 = 0 ; | |
8876 | PyObject * obj1 = 0 ; | |
8877 | PyObject * obj2 = 0 ; | |
8878 | char *kwnames[] = { | |
8879 | (char *) "self",(char *) "dc",(char *) "lines", NULL | |
8880 | }; | |
8881 | ||
8882 | arg4 = &temp4; | |
8883 | arg5 = &temp5; | |
8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8887 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8888 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8889 | SWIG_fail; | |
8890 | if (arg2 == NULL) { | |
8891 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8892 | SWIG_fail; | |
8893 | } | |
8894 | { | |
8895 | if (! PySequence_Check(obj2)) { | |
8896 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8897 | SWIG_fail; | |
8898 | } | |
8899 | arg3 = new wxArrayString; | |
8900 | temp3 = True; | |
8901 | int i, len=PySequence_Length(obj2); | |
8902 | for (i=0; i<len; i++) { | |
8903 | PyObject* item = PySequence_GetItem(obj2, i); | |
8904 | #if wxUSE_UNICODE | |
8905 | PyObject* str = PyObject_Unicode(item); | |
8906 | #else | |
8907 | PyObject* str = PyObject_Str(item); | |
8908 | #endif | |
8909 | if (PyErr_Occurred()) SWIG_fail; | |
8910 | arg3->Add(Py2wxString(str)); | |
8911 | Py_DECREF(item); | |
8912 | Py_DECREF(str); | |
8913 | } | |
8914 | } | |
8915 | { | |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); | |
8918 | ||
8919 | wxPyEndAllowThreads(__tstate); | |
8920 | if (PyErr_Occurred()) SWIG_fail; | |
8921 | } | |
8922 | Py_INCREF(Py_None); resultobj = Py_None; | |
8923 | { | |
8924 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8925 | resultobj = t_output_helper(resultobj,o); | |
8926 | } | |
8927 | { | |
8928 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
8929 | resultobj = t_output_helper(resultobj,o); | |
8930 | } | |
8931 | { | |
8932 | if (temp3) delete arg3; | |
8933 | } | |
8934 | return resultobj; | |
8935 | fail: | |
8936 | { | |
8937 | if (temp3) delete arg3; | |
8938 | } | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8946 | PyObject * obj0 = 0 ; | |
8947 | char *kwnames[] = { | |
8948 | (char *) "self", NULL | |
8949 | }; | |
8950 | ||
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; | |
8952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8954 | { | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | (arg1)->BeginBatch(); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
8961 | Py_INCREF(Py_None); resultobj = Py_None; | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | return NULL; | |
8965 | } | |
8966 | ||
8967 | ||
8968 | static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8969 | PyObject *resultobj; | |
8970 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8971 | PyObject * obj0 = 0 ; | |
8972 | char *kwnames[] = { | |
8973 | (char *) "self", NULL | |
8974 | }; | |
8975 | ||
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; | |
8977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
8978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8979 | { | |
8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8981 | (arg1)->EndBatch(); | |
8982 | ||
8983 | wxPyEndAllowThreads(__tstate); | |
8984 | if (PyErr_Occurred()) SWIG_fail; | |
8985 | } | |
8986 | Py_INCREF(Py_None); resultobj = Py_None; | |
8987 | return resultobj; | |
8988 | fail: | |
8989 | return NULL; | |
8990 | } | |
8991 | ||
8992 | ||
8993 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8994 | PyObject *resultobj; | |
8995 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8996 | int result; | |
8997 | PyObject * obj0 = 0 ; | |
8998 | char *kwnames[] = { | |
8999 | (char *) "self", NULL | |
9000 | }; | |
9001 | ||
9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; | |
9003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9005 | { | |
9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9007 | result = (int)(arg1)->GetBatchCount(); | |
9008 | ||
9009 | wxPyEndAllowThreads(__tstate); | |
9010 | if (PyErr_Occurred()) SWIG_fail; | |
9011 | } | |
9012 | resultobj = SWIG_FromInt((int)result); | |
9013 | return resultobj; | |
9014 | fail: | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
9019 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9020 | PyObject *resultobj; | |
9021 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9022 | PyObject * obj0 = 0 ; | |
9023 | char *kwnames[] = { | |
9024 | (char *) "self", NULL | |
9025 | }; | |
9026 | ||
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; | |
9028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | (arg1)->ForceRefresh(); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | Py_INCREF(Py_None); resultobj = Py_None; | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject *resultobj; | |
9046 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9047 | bool result; | |
9048 | PyObject * obj0 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9056 | { | |
9057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9058 | result = (bool)(arg1)->IsEditable(); | |
9059 | ||
9060 | wxPyEndAllowThreads(__tstate); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | { | |
9064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9065 | } | |
9066 | return resultobj; | |
9067 | fail: | |
9068 | return NULL; | |
9069 | } | |
9070 | ||
9071 | ||
9072 | static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject *resultobj; | |
9074 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9075 | bool arg2 ; | |
9076 | PyObject * obj0 = 0 ; | |
9077 | PyObject * obj1 = 0 ; | |
9078 | char *kwnames[] = { | |
9079 | (char *) "self",(char *) "edit", NULL | |
9080 | }; | |
9081 | ||
9082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; | |
9083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9085 | arg2 = (bool) SWIG_AsBool(obj1); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | { | |
9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9089 | (arg1)->EnableEditing(arg2); | |
9090 | ||
9091 | wxPyEndAllowThreads(__tstate); | |
9092 | if (PyErr_Occurred()) SWIG_fail; | |
9093 | } | |
9094 | Py_INCREF(Py_None); resultobj = Py_None; | |
9095 | return resultobj; | |
9096 | fail: | |
9097 | return NULL; | |
9098 | } | |
9099 | ||
9100 | ||
9101 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9102 | PyObject *resultobj; | |
9103 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9104 | bool arg2 = (bool) True ; | |
9105 | PyObject * obj0 = 0 ; | |
9106 | PyObject * obj1 = 0 ; | |
9107 | char *kwnames[] = { | |
9108 | (char *) "self",(char *) "enable", NULL | |
9109 | }; | |
9110 | ||
9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; | |
9112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9114 | if (obj1) { | |
9115 | arg2 = (bool) SWIG_AsBool(obj1); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | { | |
9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9120 | (arg1)->EnableCellEditControl(arg2); | |
9121 | ||
9122 | wxPyEndAllowThreads(__tstate); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
9124 | } | |
9125 | Py_INCREF(Py_None); resultobj = Py_None; | |
9126 | return resultobj; | |
9127 | fail: | |
9128 | return NULL; | |
9129 | } | |
9130 | ||
9131 | ||
9132 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9133 | PyObject *resultobj; | |
9134 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9135 | PyObject * obj0 = 0 ; | |
9136 | char *kwnames[] = { | |
9137 | (char *) "self", NULL | |
9138 | }; | |
9139 | ||
9140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; | |
9141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9143 | { | |
9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9145 | (arg1)->DisableCellEditControl(); | |
9146 | ||
9147 | wxPyEndAllowThreads(__tstate); | |
9148 | if (PyErr_Occurred()) SWIG_fail; | |
9149 | } | |
9150 | Py_INCREF(Py_None); resultobj = Py_None; | |
9151 | return resultobj; | |
9152 | fail: | |
9153 | return NULL; | |
9154 | } | |
9155 | ||
9156 | ||
9157 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9158 | PyObject *resultobj; | |
9159 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9160 | bool result; | |
9161 | PyObject * obj0 = 0 ; | |
9162 | char *kwnames[] = { | |
9163 | (char *) "self", NULL | |
9164 | }; | |
9165 | ||
9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; | |
9167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9169 | { | |
9170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9171 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); | |
9172 | ||
9173 | wxPyEndAllowThreads(__tstate); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | { | |
9177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9178 | } | |
9179 | return resultobj; | |
9180 | fail: | |
9181 | return NULL; | |
9182 | } | |
9183 | ||
9184 | ||
9185 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9188 | bool result; | |
9189 | PyObject * obj0 = 0 ; | |
9190 | char *kwnames[] = { | |
9191 | (char *) "self", NULL | |
9192 | }; | |
9193 | ||
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; | |
9195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9197 | { | |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); | |
9200 | ||
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | { | |
9205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9206 | } | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
9213 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9214 | PyObject *resultobj; | |
9215 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9216 | bool result; | |
9217 | PyObject * obj0 = 0 ; | |
9218 | char *kwnames[] = { | |
9219 | (char *) "self", NULL | |
9220 | }; | |
9221 | ||
9222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; | |
9223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9225 | { | |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); | |
9228 | ||
9229 | wxPyEndAllowThreads(__tstate); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | { | |
9233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9234 | } | |
9235 | return resultobj; | |
9236 | fail: | |
9237 | return NULL; | |
9238 | } | |
9239 | ||
9240 | ||
9241 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9242 | PyObject *resultobj; | |
9243 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9244 | bool result; | |
9245 | PyObject * obj0 = 0 ; | |
9246 | char *kwnames[] = { | |
9247 | (char *) "self", NULL | |
9248 | }; | |
9249 | ||
9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; | |
9251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
9260 | { | |
9261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9262 | } | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj; | |
9271 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9272 | PyObject * obj0 = 0 ; | |
9273 | char *kwnames[] = { | |
9274 | (char *) "self", NULL | |
9275 | }; | |
9276 | ||
9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; | |
9278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9280 | { | |
9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9282 | (arg1)->ShowCellEditControl(); | |
9283 | ||
9284 | wxPyEndAllowThreads(__tstate); | |
9285 | if (PyErr_Occurred()) SWIG_fail; | |
9286 | } | |
9287 | Py_INCREF(Py_None); resultobj = Py_None; | |
9288 | return resultobj; | |
9289 | fail: | |
9290 | return NULL; | |
9291 | } | |
9292 | ||
9293 | ||
9294 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9295 | PyObject *resultobj; | |
9296 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9297 | PyObject * obj0 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; | |
9303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9305 | { | |
9306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9307 | (arg1)->HideCellEditControl(); | |
9308 | ||
9309 | wxPyEndAllowThreads(__tstate); | |
9310 | if (PyErr_Occurred()) SWIG_fail; | |
9311 | } | |
9312 | Py_INCREF(Py_None); resultobj = Py_None; | |
9313 | return resultobj; | |
9314 | fail: | |
9315 | return NULL; | |
9316 | } | |
9317 | ||
9318 | ||
9319 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9320 | PyObject *resultobj; | |
9321 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | char *kwnames[] = { | |
9324 | (char *) "self", NULL | |
9325 | }; | |
9326 | ||
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; | |
9328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9330 | { | |
9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9332 | (arg1)->SaveEditControlValue(); | |
9333 | ||
9334 | wxPyEndAllowThreads(__tstate); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | } | |
9337 | Py_INCREF(Py_None); resultobj = Py_None; | |
9338 | return resultobj; | |
9339 | fail: | |
9340 | return NULL; | |
9341 | } | |
9342 | ||
9343 | ||
9344 | static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9345 | PyObject *resultobj; | |
9346 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9347 | int arg2 ; | |
9348 | int arg3 ; | |
9349 | wxGridCellCoords result; | |
9350 | PyObject * obj0 = 0 ; | |
9351 | PyObject * obj1 = 0 ; | |
9352 | PyObject * obj2 = 0 ; | |
9353 | char *kwnames[] = { | |
9354 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9355 | }; | |
9356 | ||
9357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9360 | arg2 = (int) SWIG_AsInt(obj1); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | arg3 = (int) SWIG_AsInt(obj2); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | { | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9366 | result = wxGrid_XYToCell(arg1,arg2,arg3); | |
9367 | ||
9368 | wxPyEndAllowThreads(__tstate); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | } | |
9371 | { | |
9372 | wxGridCellCoords * resultptr; | |
9373 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
9374 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); | |
9375 | } | |
9376 | return resultobj; | |
9377 | fail: | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9383 | PyObject *resultobj; | |
9384 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9385 | int arg2 ; | |
9386 | int result; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | PyObject * obj1 = 0 ; | |
9389 | char *kwnames[] = { | |
9390 | (char *) "self",(char *) "y", NULL | |
9391 | }; | |
9392 | ||
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; | |
9394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9396 | arg2 = (int) SWIG_AsInt(obj1); | |
9397 | if (PyErr_Occurred()) SWIG_fail; | |
9398 | { | |
9399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9400 | result = (int)(arg1)->YToRow(arg2); | |
9401 | ||
9402 | wxPyEndAllowThreads(__tstate); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | } | |
9405 | resultobj = SWIG_FromInt((int)result); | |
9406 | return resultobj; | |
9407 | fail: | |
9408 | return NULL; | |
9409 | } | |
9410 | ||
9411 | ||
9412 | static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9413 | PyObject *resultobj; | |
9414 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9415 | int arg2 ; | |
9416 | int result; | |
9417 | PyObject * obj0 = 0 ; | |
9418 | PyObject * obj1 = 0 ; | |
9419 | char *kwnames[] = { | |
9420 | (char *) "self",(char *) "x", NULL | |
9421 | }; | |
9422 | ||
9423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; | |
9424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9426 | arg2 = (int) SWIG_AsInt(obj1); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | { | |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | result = (int)(arg1)->XToCol(arg2); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
9435 | resultobj = SWIG_FromInt((int)result); | |
9436 | return resultobj; | |
9437 | fail: | |
9438 | return NULL; | |
9439 | } | |
9440 | ||
9441 | ||
9442 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject *resultobj; | |
9444 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9445 | int arg2 ; | |
9446 | int result; | |
9447 | PyObject * obj0 = 0 ; | |
9448 | PyObject * obj1 = 0 ; | |
9449 | char *kwnames[] = { | |
9450 | (char *) "self",(char *) "y", NULL | |
9451 | }; | |
9452 | ||
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; | |
9454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9456 | arg2 = (int) SWIG_AsInt(obj1); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | { | |
9459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9460 | result = (int)(arg1)->YToEdgeOfRow(arg2); | |
9461 | ||
9462 | wxPyEndAllowThreads(__tstate); | |
9463 | if (PyErr_Occurred()) SWIG_fail; | |
9464 | } | |
9465 | resultobj = SWIG_FromInt((int)result); | |
9466 | return resultobj; | |
9467 | fail: | |
9468 | return NULL; | |
9469 | } | |
9470 | ||
9471 | ||
9472 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9473 | PyObject *resultobj; | |
9474 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9475 | int arg2 ; | |
9476 | int result; | |
9477 | PyObject * obj0 = 0 ; | |
9478 | PyObject * obj1 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self",(char *) "x", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; | |
9484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9486 | arg2 = (int) SWIG_AsInt(obj1); | |
9487 | if (PyErr_Occurred()) SWIG_fail; | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | result = (int)(arg1)->XToEdgeOfCol(arg2); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | resultobj = SWIG_FromInt((int)result); | |
9496 | return resultobj; | |
9497 | fail: | |
9498 | return NULL; | |
9499 | } | |
9500 | ||
9501 | ||
9502 | static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9503 | PyObject *resultobj; | |
9504 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9505 | int arg2 ; | |
9506 | int arg3 ; | |
9507 | wxRect result; | |
9508 | PyObject * obj0 = 0 ; | |
9509 | PyObject * obj1 = 0 ; | |
9510 | PyObject * obj2 = 0 ; | |
9511 | char *kwnames[] = { | |
9512 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9513 | }; | |
9514 | ||
9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9518 | arg2 = (int) SWIG_AsInt(obj1); | |
9519 | if (PyErr_Occurred()) SWIG_fail; | |
9520 | arg3 = (int) SWIG_AsInt(obj2); | |
9521 | if (PyErr_Occurred()) SWIG_fail; | |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (arg1)->CellToRect(arg2,arg3); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | { | |
9530 | wxRect * resultptr; | |
9531 | resultptr = new wxRect((wxRect &) result); | |
9532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
9533 | } | |
9534 | return resultobj; | |
9535 | fail: | |
9536 | return NULL; | |
9537 | } | |
9538 | ||
9539 | ||
9540 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject *resultobj; | |
9542 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9543 | int result; | |
9544 | PyObject * obj0 = 0 ; | |
9545 | char *kwnames[] = { | |
9546 | (char *) "self", NULL | |
9547 | }; | |
9548 | ||
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; | |
9550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9552 | { | |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | result = (int)(arg1)->GetGridCursorRow(); | |
9555 | ||
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) SWIG_fail; | |
9558 | } | |
9559 | resultobj = SWIG_FromInt((int)result); | |
9560 | return resultobj; | |
9561 | fail: | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
9566 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject *resultobj; | |
9568 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9569 | int result; | |
9570 | PyObject * obj0 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "self", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; | |
9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9578 | { | |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = (int)(arg1)->GetGridCursorCol(); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | resultobj = SWIG_FromInt((int)result); | |
9586 | return resultobj; | |
9587 | fail: | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
9592 | static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject *resultobj; | |
9594 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9595 | int arg2 ; | |
9596 | int arg3 ; | |
9597 | bool arg4 = (bool) True ; | |
9598 | bool result; | |
9599 | PyObject * obj0 = 0 ; | |
9600 | PyObject * obj1 = 0 ; | |
9601 | PyObject * obj2 = 0 ; | |
9602 | PyObject * obj3 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9610 | arg2 = (int) SWIG_AsInt(obj1); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | arg3 = (int) SWIG_AsInt(obj2); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
9614 | if (obj3) { | |
9615 | arg4 = (bool) SWIG_AsBool(obj3); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | { | |
9626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9627 | } | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9635 | PyObject *resultobj; | |
9636 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9637 | int arg2 ; | |
9638 | int arg3 ; | |
9639 | PyObject * obj0 = 0 ; | |
9640 | PyObject * obj1 = 0 ; | |
9641 | PyObject * obj2 = 0 ; | |
9642 | char *kwnames[] = { | |
9643 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9644 | }; | |
9645 | ||
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9649 | arg2 = (int) SWIG_AsInt(obj1); | |
9650 | if (PyErr_Occurred()) SWIG_fail; | |
9651 | arg3 = (int) SWIG_AsInt(obj2); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | (arg1)->MakeCellVisible(arg2,arg3); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | Py_INCREF(Py_None); resultobj = Py_None; | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
9667 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject *resultobj; | |
9669 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9670 | int arg2 ; | |
9671 | int arg3 ; | |
9672 | PyObject * obj0 = 0 ; | |
9673 | PyObject * obj1 = 0 ; | |
9674 | PyObject * obj2 = 0 ; | |
9675 | char *kwnames[] = { | |
9676 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9677 | }; | |
9678 | ||
9679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9682 | arg2 = (int) SWIG_AsInt(obj1); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | arg3 = (int) SWIG_AsInt(obj2); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | { | |
9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9688 | (arg1)->SetGridCursor(arg2,arg3); | |
9689 | ||
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | Py_INCREF(Py_None); resultobj = Py_None; | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9701 | PyObject *resultobj; | |
9702 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9703 | bool arg2 ; | |
9704 | bool result; | |
9705 | PyObject * obj0 = 0 ; | |
9706 | PyObject * obj1 = 0 ; | |
9707 | char *kwnames[] = { | |
9708 | (char *) "self",(char *) "expandSelection", NULL | |
9709 | }; | |
9710 | ||
9711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; | |
9712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9714 | arg2 = (bool) SWIG_AsBool(obj1); | |
9715 | if (PyErr_Occurred()) SWIG_fail; | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (bool)(arg1)->MoveCursorUp(arg2); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | { | |
9724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9725 | } | |
9726 | return resultobj; | |
9727 | fail: | |
9728 | return NULL; | |
9729 | } | |
9730 | ||
9731 | ||
9732 | static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9733 | PyObject *resultobj; | |
9734 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9735 | bool arg2 ; | |
9736 | bool result; | |
9737 | PyObject * obj0 = 0 ; | |
9738 | PyObject * obj1 = 0 ; | |
9739 | char *kwnames[] = { | |
9740 | (char *) "self",(char *) "expandSelection", NULL | |
9741 | }; | |
9742 | ||
9743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail; | |
9744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9746 | arg2 = (bool) SWIG_AsBool(obj1); | |
9747 | if (PyErr_Occurred()) SWIG_fail; | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (bool)(arg1)->MoveCursorDown(arg2); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | { | |
9756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9757 | } | |
9758 | return resultobj; | |
9759 | fail: | |
9760 | return NULL; | |
9761 | } | |
9762 | ||
9763 | ||
9764 | static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9765 | PyObject *resultobj; | |
9766 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9767 | bool arg2 ; | |
9768 | bool result; | |
9769 | PyObject * obj0 = 0 ; | |
9770 | PyObject * obj1 = 0 ; | |
9771 | char *kwnames[] = { | |
9772 | (char *) "self",(char *) "expandSelection", NULL | |
9773 | }; | |
9774 | ||
9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail; | |
9776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9778 | arg2 = (bool) SWIG_AsBool(obj1); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (bool)(arg1)->MoveCursorLeft(arg2); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
9787 | { | |
9788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9789 | } | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
9796 | static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9797 | PyObject *resultobj; | |
9798 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9799 | bool arg2 ; | |
9800 | bool result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | PyObject * obj1 = 0 ; | |
9803 | char *kwnames[] = { | |
9804 | (char *) "self",(char *) "expandSelection", NULL | |
9805 | }; | |
9806 | ||
9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail; | |
9808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9810 | arg2 = (bool) SWIG_AsBool(obj1); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | { | |
9813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9814 | result = (bool)(arg1)->MoveCursorRight(arg2); | |
9815 | ||
9816 | wxPyEndAllowThreads(__tstate); | |
9817 | if (PyErr_Occurred()) SWIG_fail; | |
9818 | } | |
9819 | { | |
9820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9821 | } | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9831 | bool result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; | |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (bool)(arg1)->MovePageDown(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | { | |
9848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9849 | } | |
9850 | return resultobj; | |
9851 | fail: | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
9856 | static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject *resultobj; | |
9858 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9859 | bool result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | char *kwnames[] = { | |
9862 | (char *) "self", NULL | |
9863 | }; | |
9864 | ||
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; | |
9866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9868 | { | |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | result = (bool)(arg1)->MovePageUp(); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
9875 | { | |
9876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9877 | } | |
9878 | return resultobj; | |
9879 | fail: | |
9880 | return NULL; | |
9881 | } | |
9882 | ||
9883 | ||
9884 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject *resultobj; | |
9886 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9887 | bool arg2 ; | |
9888 | bool result; | |
9889 | PyObject * obj0 = 0 ; | |
9890 | PyObject * obj1 = 0 ; | |
9891 | char *kwnames[] = { | |
9892 | (char *) "self",(char *) "expandSelection", NULL | |
9893 | }; | |
9894 | ||
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; | |
9896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9898 | arg2 = (bool) SWIG_AsBool(obj1); | |
9899 | if (PyErr_Occurred()) SWIG_fail; | |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | { | |
9908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9909 | } | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
9916 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject *resultobj; | |
9918 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9919 | bool arg2 ; | |
9920 | bool result; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | PyObject * obj1 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self",(char *) "expandSelection", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; | |
9928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9930 | arg2 = (bool) SWIG_AsBool(obj1); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | { | |
9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9934 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); | |
9935 | ||
9936 | wxPyEndAllowThreads(__tstate); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
9939 | { | |
9940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9941 | } | |
9942 | return resultobj; | |
9943 | fail: | |
9944 | return NULL; | |
9945 | } | |
9946 | ||
9947 | ||
9948 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject *resultobj; | |
9950 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9951 | bool arg2 ; | |
9952 | bool result; | |
9953 | PyObject * obj0 = 0 ; | |
9954 | PyObject * obj1 = 0 ; | |
9955 | char *kwnames[] = { | |
9956 | (char *) "self",(char *) "expandSelection", NULL | |
9957 | }; | |
9958 | ||
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; | |
9960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9962 | arg2 = (bool) SWIG_AsBool(obj1); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | { | |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
9971 | { | |
9972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9973 | } | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
9980 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9981 | PyObject *resultobj; | |
9982 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9983 | bool arg2 ; | |
9984 | bool result; | |
9985 | PyObject * obj0 = 0 ; | |
9986 | PyObject * obj1 = 0 ; | |
9987 | char *kwnames[] = { | |
9988 | (char *) "self",(char *) "expandSelection", NULL | |
9989 | }; | |
9990 | ||
9991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; | |
9992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9994 | arg2 = (bool) SWIG_AsBool(obj1); | |
9995 | if (PyErr_Occurred()) SWIG_fail; | |
9996 | { | |
9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9998 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); | |
9999 | ||
10000 | wxPyEndAllowThreads(__tstate); | |
10001 | if (PyErr_Occurred()) SWIG_fail; | |
10002 | } | |
10003 | { | |
10004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10005 | } | |
10006 | return resultobj; | |
10007 | fail: | |
10008 | return NULL; | |
10009 | } | |
10010 | ||
10011 | ||
10012 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10013 | PyObject *resultobj; | |
10014 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10015 | int result; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | char *kwnames[] = { | |
10018 | (char *) "self", NULL | |
10019 | }; | |
10020 | ||
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; | |
10022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10024 | { | |
10025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10026 | result = (int)(arg1)->GetDefaultRowLabelSize(); | |
10027 | ||
10028 | wxPyEndAllowThreads(__tstate); | |
10029 | if (PyErr_Occurred()) SWIG_fail; | |
10030 | } | |
10031 | resultobj = SWIG_FromInt((int)result); | |
10032 | return resultobj; | |
10033 | fail: | |
10034 | return NULL; | |
10035 | } | |
10036 | ||
10037 | ||
10038 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10039 | PyObject *resultobj; | |
10040 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10041 | int result; | |
10042 | PyObject * obj0 = 0 ; | |
10043 | char *kwnames[] = { | |
10044 | (char *) "self", NULL | |
10045 | }; | |
10046 | ||
10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; | |
10048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10050 | { | |
10051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10052 | result = (int)(arg1)->GetRowLabelSize(); | |
10053 | ||
10054 | wxPyEndAllowThreads(__tstate); | |
10055 | if (PyErr_Occurred()) SWIG_fail; | |
10056 | } | |
10057 | resultobj = SWIG_FromInt((int)result); | |
10058 | return resultobj; | |
10059 | fail: | |
10060 | return NULL; | |
10061 | } | |
10062 | ||
10063 | ||
10064 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject *resultobj; | |
10066 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10067 | int result; | |
10068 | PyObject * obj0 = 0 ; | |
10069 | char *kwnames[] = { | |
10070 | (char *) "self", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; | |
10074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10076 | { | |
10077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10078 | result = (int)(arg1)->GetDefaultColLabelSize(); | |
10079 | ||
10080 | wxPyEndAllowThreads(__tstate); | |
10081 | if (PyErr_Occurred()) SWIG_fail; | |
10082 | } | |
10083 | resultobj = SWIG_FromInt((int)result); | |
10084 | return resultobj; | |
10085 | fail: | |
10086 | return NULL; | |
10087 | } | |
10088 | ||
10089 | ||
10090 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10091 | PyObject *resultobj; | |
10092 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10093 | int result; | |
10094 | PyObject * obj0 = 0 ; | |
10095 | char *kwnames[] = { | |
10096 | (char *) "self", NULL | |
10097 | }; | |
10098 | ||
10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; | |
10100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10102 | { | |
10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10104 | result = (int)(arg1)->GetColLabelSize(); | |
10105 | ||
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | resultobj = SWIG_FromInt((int)result); | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj; | |
10118 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10119 | wxColour result; | |
10120 | PyObject * obj0 = 0 ; | |
10121 | char *kwnames[] = { | |
10122 | (char *) "self", NULL | |
10123 | }; | |
10124 | ||
10125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; | |
10126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | result = (arg1)->GetLabelBackgroundColour(); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | { | |
10136 | wxColour * resultptr; | |
10137 | resultptr = new wxColour((wxColour &) result); | |
10138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10139 | } | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10149 | wxColour result; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | char *kwnames[] = { | |
10152 | (char *) "self", NULL | |
10153 | }; | |
10154 | ||
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; | |
10156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (arg1)->GetLabelTextColour(); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | { | |
10166 | wxColour * resultptr; | |
10167 | resultptr = new wxColour((wxColour &) result); | |
10168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10169 | } | |
10170 | return resultobj; | |
10171 | fail: | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10179 | wxFont result; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | char *kwnames[] = { | |
10182 | (char *) "self", NULL | |
10183 | }; | |
10184 | ||
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; | |
10186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | result = (arg1)->GetLabelFont(); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | wxFont * resultptr; | |
10197 | resultptr = new wxFont((wxFont &) result); | |
10198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
10199 | } | |
10200 | return resultobj; | |
10201 | fail: | |
10202 | return NULL; | |
10203 | } | |
10204 | ||
10205 | ||
10206 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject *resultobj; | |
10208 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10209 | int *arg2 = (int *) 0 ; | |
10210 | int *arg3 = (int *) 0 ; | |
10211 | int temp2 ; | |
10212 | int temp3 ; | |
10213 | PyObject * obj0 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self", NULL | |
10216 | }; | |
10217 | ||
10218 | arg2 = &temp2; | |
10219 | arg3 = &temp3; | |
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; | |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | (arg1)->GetRowLabelAlignment(arg2,arg3); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | Py_INCREF(Py_None); resultobj = Py_None; | |
10231 | { | |
10232 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
10233 | resultobj = t_output_helper(resultobj,o); | |
10234 | } | |
10235 | { | |
10236 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
10237 | resultobj = t_output_helper(resultobj,o); | |
10238 | } | |
10239 | return resultobj; | |
10240 | fail: | |
10241 | return NULL; | |
10242 | } | |
10243 | ||
10244 | ||
10245 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10246 | PyObject *resultobj; | |
10247 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10248 | int *arg2 = (int *) 0 ; | |
10249 | int *arg3 = (int *) 0 ; | |
10250 | int temp2 ; | |
10251 | int temp3 ; | |
10252 | PyObject * obj0 = 0 ; | |
10253 | char *kwnames[] = { | |
10254 | (char *) "self", NULL | |
10255 | }; | |
10256 | ||
10257 | arg2 = &temp2; | |
10258 | arg3 = &temp3; | |
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | (arg1)->GetColLabelAlignment(arg2,arg3); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | Py_INCREF(Py_None); resultobj = Py_None; | |
10270 | { | |
10271 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
10272 | resultobj = t_output_helper(resultobj,o); | |
10273 | } | |
10274 | { | |
10275 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
10276 | resultobj = t_output_helper(resultobj,o); | |
10277 | } | |
10278 | return resultobj; | |
10279 | fail: | |
10280 | return NULL; | |
10281 | } | |
10282 | ||
10283 | ||
10284 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10287 | int result; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | char *kwnames[] = { | |
10290 | (char *) "self", NULL | |
10291 | }; | |
10292 | ||
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; | |
10294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10296 | { | |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (int)(arg1)->GetColLabelTextOrientation(); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | resultobj = SWIG_FromInt((int)result); | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10313 | int arg2 ; | |
10314 | wxString result; | |
10315 | PyObject * obj0 = 0 ; | |
10316 | PyObject * obj1 = 0 ; | |
10317 | char *kwnames[] = { | |
10318 | (char *) "self",(char *) "row", NULL | |
10319 | }; | |
10320 | ||
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
10322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10324 | arg2 = (int) SWIG_AsInt(obj1); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | result = (arg1)->GetRowLabelValue(arg2); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
10333 | { | |
10334 | #if wxUSE_UNICODE | |
10335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10336 | #else | |
10337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10338 | #endif | |
10339 | } | |
10340 | return resultobj; | |
10341 | fail: | |
10342 | return NULL; | |
10343 | } | |
10344 | ||
10345 | ||
10346 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10347 | PyObject *resultobj; | |
10348 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10349 | int arg2 ; | |
10350 | wxString result; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | PyObject * obj1 = 0 ; | |
10353 | char *kwnames[] = { | |
10354 | (char *) "self",(char *) "col", NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; | |
10358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10360 | arg2 = (int) SWIG_AsInt(obj1); | |
10361 | if (PyErr_Occurred()) SWIG_fail; | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | result = (arg1)->GetColLabelValue(arg2); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
10369 | { | |
10370 | #if wxUSE_UNICODE | |
10371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10372 | #else | |
10373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10374 | #endif | |
10375 | } | |
10376 | return resultobj; | |
10377 | fail: | |
10378 | return NULL; | |
10379 | } | |
10380 | ||
10381 | ||
10382 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10383 | PyObject *resultobj; | |
10384 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10385 | wxColour result; | |
10386 | PyObject * obj0 = 0 ; | |
10387 | char *kwnames[] = { | |
10388 | (char *) "self", NULL | |
10389 | }; | |
10390 | ||
10391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; | |
10392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10394 | { | |
10395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10396 | result = (arg1)->GetGridLineColour(); | |
10397 | ||
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | { | |
10402 | wxColour * resultptr; | |
10403 | resultptr = new wxColour((wxColour &) result); | |
10404 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10405 | } | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10415 | wxColour result; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | char *kwnames[] = { | |
10418 | (char *) "self", NULL | |
10419 | }; | |
10420 | ||
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; | |
10422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10424 | { | |
10425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10426 | result = (arg1)->GetCellHighlightColour(); | |
10427 | ||
10428 | wxPyEndAllowThreads(__tstate); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | { | |
10432 | wxColour * resultptr; | |
10433 | resultptr = new wxColour((wxColour &) result); | |
10434 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10435 | } | |
10436 | return resultobj; | |
10437 | fail: | |
10438 | return NULL; | |
10439 | } | |
10440 | ||
10441 | ||
10442 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10443 | PyObject *resultobj; | |
10444 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10445 | int result; | |
10446 | PyObject * obj0 = 0 ; | |
10447 | char *kwnames[] = { | |
10448 | (char *) "self", NULL | |
10449 | }; | |
10450 | ||
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; | |
10452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | result = (int)(arg1)->GetCellHighlightPenWidth(); | |
10457 | ||
10458 | wxPyEndAllowThreads(__tstate); | |
10459 | if (PyErr_Occurred()) SWIG_fail; | |
10460 | } | |
10461 | resultobj = SWIG_FromInt((int)result); | |
10462 | return resultobj; | |
10463 | fail: | |
10464 | return NULL; | |
10465 | } | |
10466 | ||
10467 | ||
10468 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10469 | PyObject *resultobj; | |
10470 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10471 | int result; | |
10472 | PyObject * obj0 = 0 ; | |
10473 | char *kwnames[] = { | |
10474 | (char *) "self", NULL | |
10475 | }; | |
10476 | ||
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; | |
10478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10480 | { | |
10481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10482 | result = (int)(arg1)->GetCellHighlightROPenWidth(); | |
10483 | ||
10484 | wxPyEndAllowThreads(__tstate); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | resultobj = SWIG_FromInt((int)result); | |
10488 | return resultobj; | |
10489 | fail: | |
10490 | return NULL; | |
10491 | } | |
10492 | ||
10493 | ||
10494 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10495 | PyObject *resultobj; | |
10496 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10497 | int arg2 ; | |
10498 | PyObject * obj0 = 0 ; | |
10499 | PyObject * obj1 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self",(char *) "width", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10507 | arg2 = (int) SWIG_AsInt(obj1); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | { | |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | (arg1)->SetRowLabelSize(arg2); | |
10512 | ||
10513 | wxPyEndAllowThreads(__tstate); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | Py_INCREF(Py_None); resultobj = Py_None; | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10526 | int arg2 ; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | PyObject * obj1 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self",(char *) "height", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
10534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10536 | arg2 = (int) SWIG_AsInt(obj1); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | { | |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | (arg1)->SetColLabelSize(arg2); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | Py_INCREF(Py_None); resultobj = Py_None; | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj; | |
10554 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10555 | wxColour *arg2 = 0 ; | |
10556 | wxColour temp2 ; | |
10557 | PyObject * obj0 = 0 ; | |
10558 | PyObject * obj1 = 0 ; | |
10559 | char *kwnames[] = { | |
10560 | (char *) "self","arg2", NULL | |
10561 | }; | |
10562 | ||
10563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
10564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10566 | { | |
10567 | arg2 = &temp2; | |
10568 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10569 | } | |
10570 | { | |
10571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10572 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); | |
10573 | ||
10574 | wxPyEndAllowThreads(__tstate); | |
10575 | if (PyErr_Occurred()) SWIG_fail; | |
10576 | } | |
10577 | Py_INCREF(Py_None); resultobj = Py_None; | |
10578 | return resultobj; | |
10579 | fail: | |
10580 | return NULL; | |
10581 | } | |
10582 | ||
10583 | ||
10584 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10585 | PyObject *resultobj; | |
10586 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10587 | wxColour *arg2 = 0 ; | |
10588 | wxColour temp2 ; | |
10589 | PyObject * obj0 = 0 ; | |
10590 | PyObject * obj1 = 0 ; | |
10591 | char *kwnames[] = { | |
10592 | (char *) "self","arg2", NULL | |
10593 | }; | |
10594 | ||
10595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; | |
10596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10598 | { | |
10599 | arg2 = &temp2; | |
10600 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10601 | } | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
10609 | Py_INCREF(Py_None); resultobj = Py_None; | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
10616 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10617 | PyObject *resultobj; | |
10618 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10619 | wxFont *arg2 = 0 ; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | PyObject * obj1 = 0 ; | |
10622 | char *kwnames[] = { | |
10623 | (char *) "self","arg2", NULL | |
10624 | }; | |
10625 | ||
10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; | |
10627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
10630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10631 | SWIG_fail; | |
10632 | if (arg2 == NULL) { | |
10633 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10634 | SWIG_fail; | |
10635 | } | |
10636 | { | |
10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10638 | (arg1)->SetLabelFont((wxFont const &)*arg2); | |
10639 | ||
10640 | wxPyEndAllowThreads(__tstate); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | } | |
10643 | Py_INCREF(Py_None); resultobj = Py_None; | |
10644 | return resultobj; | |
10645 | fail: | |
10646 | return NULL; | |
10647 | } | |
10648 | ||
10649 | ||
10650 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10651 | PyObject *resultobj; | |
10652 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10653 | int arg2 ; | |
10654 | int arg3 ; | |
10655 | PyObject * obj0 = 0 ; | |
10656 | PyObject * obj1 = 0 ; | |
10657 | PyObject * obj2 = 0 ; | |
10658 | char *kwnames[] = { | |
10659 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10665 | arg2 = (int) SWIG_AsInt(obj1); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
10667 | arg3 = (int) SWIG_AsInt(obj2); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | { | |
10670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10671 | (arg1)->SetRowLabelAlignment(arg2,arg3); | |
10672 | ||
10673 | wxPyEndAllowThreads(__tstate); | |
10674 | if (PyErr_Occurred()) SWIG_fail; | |
10675 | } | |
10676 | Py_INCREF(Py_None); resultobj = Py_None; | |
10677 | return resultobj; | |
10678 | fail: | |
10679 | return NULL; | |
10680 | } | |
10681 | ||
10682 | ||
10683 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10684 | PyObject *resultobj; | |
10685 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10686 | int arg2 ; | |
10687 | int arg3 ; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | PyObject * obj1 = 0 ; | |
10690 | PyObject * obj2 = 0 ; | |
10691 | char *kwnames[] = { | |
10692 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10693 | }; | |
10694 | ||
10695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10698 | arg2 = (int) SWIG_AsInt(obj1); | |
10699 | if (PyErr_Occurred()) SWIG_fail; | |
10700 | arg3 = (int) SWIG_AsInt(obj2); | |
10701 | if (PyErr_Occurred()) SWIG_fail; | |
10702 | { | |
10703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10704 | (arg1)->SetColLabelAlignment(arg2,arg3); | |
10705 | ||
10706 | wxPyEndAllowThreads(__tstate); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
10708 | } | |
10709 | Py_INCREF(Py_None); resultobj = Py_None; | |
10710 | return resultobj; | |
10711 | fail: | |
10712 | return NULL; | |
10713 | } | |
10714 | ||
10715 | ||
10716 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10717 | PyObject *resultobj; | |
10718 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10719 | int arg2 ; | |
10720 | PyObject * obj0 = 0 ; | |
10721 | PyObject * obj1 = 0 ; | |
10722 | char *kwnames[] = { | |
10723 | (char *) "self",(char *) "textOrientation", NULL | |
10724 | }; | |
10725 | ||
10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; | |
10727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10729 | arg2 = (int) SWIG_AsInt(obj1); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | { | |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | (arg1)->SetColLabelTextOrientation(arg2); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
10738 | Py_INCREF(Py_None); resultobj = Py_None; | |
10739 | return resultobj; | |
10740 | fail: | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
10745 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10746 | PyObject *resultobj; | |
10747 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10748 | int arg2 ; | |
10749 | wxString *arg3 = 0 ; | |
10750 | bool temp3 = False ; | |
10751 | PyObject * obj0 = 0 ; | |
10752 | PyObject * obj1 = 0 ; | |
10753 | PyObject * obj2 = 0 ; | |
10754 | char *kwnames[] = { | |
10755 | (char *) "self",(char *) "row","arg3", NULL | |
10756 | }; | |
10757 | ||
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10761 | arg2 = (int) SWIG_AsInt(obj1); | |
10762 | if (PyErr_Occurred()) SWIG_fail; | |
10763 | { | |
10764 | arg3 = wxString_in_helper(obj2); | |
10765 | if (arg3 == NULL) SWIG_fail; | |
10766 | temp3 = True; | |
10767 | } | |
10768 | { | |
10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10770 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
10771 | ||
10772 | wxPyEndAllowThreads(__tstate); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | Py_INCREF(Py_None); resultobj = Py_None; | |
10776 | { | |
10777 | if (temp3) | |
10778 | delete arg3; | |
10779 | } | |
10780 | return resultobj; | |
10781 | fail: | |
10782 | { | |
10783 | if (temp3) | |
10784 | delete arg3; | |
10785 | } | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
10790 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject *resultobj; | |
10792 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10793 | int arg2 ; | |
10794 | wxString *arg3 = 0 ; | |
10795 | bool temp3 = False ; | |
10796 | PyObject * obj0 = 0 ; | |
10797 | PyObject * obj1 = 0 ; | |
10798 | PyObject * obj2 = 0 ; | |
10799 | char *kwnames[] = { | |
10800 | (char *) "self",(char *) "col","arg3", NULL | |
10801 | }; | |
10802 | ||
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10806 | arg2 = (int) SWIG_AsInt(obj1); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | { | |
10809 | arg3 = wxString_in_helper(obj2); | |
10810 | if (arg3 == NULL) SWIG_fail; | |
10811 | temp3 = True; | |
10812 | } | |
10813 | { | |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | Py_INCREF(Py_None); resultobj = Py_None; | |
10821 | { | |
10822 | if (temp3) | |
10823 | delete arg3; | |
10824 | } | |
10825 | return resultobj; | |
10826 | fail: | |
10827 | { | |
10828 | if (temp3) | |
10829 | delete arg3; | |
10830 | } | |
10831 | return NULL; | |
10832 | } | |
10833 | ||
10834 | ||
10835 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10836 | PyObject *resultobj; | |
10837 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10838 | wxColour *arg2 = 0 ; | |
10839 | wxColour temp2 ; | |
10840 | PyObject * obj0 = 0 ; | |
10841 | PyObject * obj1 = 0 ; | |
10842 | char *kwnames[] = { | |
10843 | (char *) "self","arg2", NULL | |
10844 | }; | |
10845 | ||
10846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; | |
10847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10849 | { | |
10850 | arg2 = &temp2; | |
10851 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10852 | } | |
10853 | { | |
10854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10855 | (arg1)->SetGridLineColour((wxColour const &)*arg2); | |
10856 | ||
10857 | wxPyEndAllowThreads(__tstate); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
10860 | Py_INCREF(Py_None); resultobj = Py_None; | |
10861 | return resultobj; | |
10862 | fail: | |
10863 | return NULL; | |
10864 | } | |
10865 | ||
10866 | ||
10867 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10868 | PyObject *resultobj; | |
10869 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10870 | wxColour *arg2 = 0 ; | |
10871 | wxColour temp2 ; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | PyObject * obj1 = 0 ; | |
10874 | char *kwnames[] = { | |
10875 | (char *) "self","arg2", NULL | |
10876 | }; | |
10877 | ||
10878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
10879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10881 | { | |
10882 | arg2 = &temp2; | |
10883 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10884 | } | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); | |
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_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10900 | PyObject *resultobj; | |
10901 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10902 | int arg2 ; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | PyObject * obj1 = 0 ; | |
10905 | char *kwnames[] = { | |
10906 | (char *) "self",(char *) "width", NULL | |
10907 | }; | |
10908 | ||
10909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; | |
10910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10912 | arg2 = (int) SWIG_AsInt(obj1); | |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
10914 | { | |
10915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10916 | (arg1)->SetCellHighlightPenWidth(arg2); | |
10917 | ||
10918 | wxPyEndAllowThreads(__tstate); | |
10919 | if (PyErr_Occurred()) SWIG_fail; | |
10920 | } | |
10921 | Py_INCREF(Py_None); resultobj = Py_None; | |
10922 | return resultobj; | |
10923 | fail: | |
10924 | return NULL; | |
10925 | } | |
10926 | ||
10927 | ||
10928 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10929 | PyObject *resultobj; | |
10930 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10931 | int arg2 ; | |
10932 | PyObject * obj0 = 0 ; | |
10933 | PyObject * obj1 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "width", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10941 | arg2 = (int) SWIG_AsInt(obj1); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | (arg1)->SetCellHighlightROPenWidth(arg2); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | Py_INCREF(Py_None); resultobj = Py_None; | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10960 | bool arg2 = (bool) True ; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | PyObject * obj1 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self",(char *) "enable", NULL | |
10965 | }; | |
10966 | ||
10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; | |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10970 | if (obj1) { | |
10971 | arg2 = (bool) SWIG_AsBool(obj1); | |
10972 | if (PyErr_Occurred()) SWIG_fail; | |
10973 | } | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | (arg1)->EnableDragRowSize(arg2); | |
10977 | ||
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
10981 | Py_INCREF(Py_None); resultobj = Py_None; | |
10982 | return resultobj; | |
10983 | fail: | |
10984 | return NULL; | |
10985 | } | |
10986 | ||
10987 | ||
10988 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10989 | PyObject *resultobj; | |
10990 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10991 | PyObject * obj0 = 0 ; | |
10992 | char *kwnames[] = { | |
10993 | (char *) "self", NULL | |
10994 | }; | |
10995 | ||
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; | |
10997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
10998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10999 | { | |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | (arg1)->DisableDragRowSize(); | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | Py_INCREF(Py_None); resultobj = Py_None; | |
11007 | return resultobj; | |
11008 | fail: | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
11013 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11014 | PyObject *resultobj; | |
11015 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11016 | bool result; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | char *kwnames[] = { | |
11019 | (char *) "self", NULL | |
11020 | }; | |
11021 | ||
11022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; | |
11023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (bool)(arg1)->CanDragRowSize(); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | { | |
11033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11034 | } | |
11035 | return resultobj; | |
11036 | fail: | |
11037 | return NULL; | |
11038 | } | |
11039 | ||
11040 | ||
11041 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11042 | PyObject *resultobj; | |
11043 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11044 | bool arg2 = (bool) True ; | |
11045 | PyObject * obj0 = 0 ; | |
11046 | PyObject * obj1 = 0 ; | |
11047 | char *kwnames[] = { | |
11048 | (char *) "self",(char *) "enable", NULL | |
11049 | }; | |
11050 | ||
11051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; | |
11052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11054 | if (obj1) { | |
11055 | arg2 = (bool) SWIG_AsBool(obj1); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | { | |
11059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11060 | (arg1)->EnableDragColSize(arg2); | |
11061 | ||
11062 | wxPyEndAllowThreads(__tstate); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | Py_INCREF(Py_None); resultobj = Py_None; | |
11066 | return resultobj; | |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11075 | PyObject * obj0 = 0 ; | |
11076 | char *kwnames[] = { | |
11077 | (char *) "self", NULL | |
11078 | }; | |
11079 | ||
11080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; | |
11081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | (arg1)->DisableDragColSize(); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | Py_INCREF(Py_None); resultobj = Py_None; | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11098 | PyObject *resultobj; | |
11099 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11100 | bool result; | |
11101 | PyObject * obj0 = 0 ; | |
11102 | char *kwnames[] = { | |
11103 | (char *) "self", NULL | |
11104 | }; | |
11105 | ||
11106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; | |
11107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11109 | { | |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | result = (bool)(arg1)->CanDragColSize(); | |
11112 | ||
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | { | |
11117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11118 | } | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | return NULL; | |
11122 | } | |
11123 | ||
11124 | ||
11125 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11126 | PyObject *resultobj; | |
11127 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11128 | bool arg2 = (bool) True ; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | PyObject * obj1 = 0 ; | |
11131 | char *kwnames[] = { | |
11132 | (char *) "self",(char *) "enable", NULL | |
11133 | }; | |
11134 | ||
11135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; | |
11136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11138 | if (obj1) { | |
11139 | arg2 = (bool) SWIG_AsBool(obj1); | |
11140 | if (PyErr_Occurred()) SWIG_fail; | |
11141 | } | |
11142 | { | |
11143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11144 | (arg1)->EnableDragGridSize(arg2); | |
11145 | ||
11146 | wxPyEndAllowThreads(__tstate); | |
11147 | if (PyErr_Occurred()) SWIG_fail; | |
11148 | } | |
11149 | Py_INCREF(Py_None); resultobj = Py_None; | |
11150 | return resultobj; | |
11151 | fail: | |
11152 | return NULL; | |
11153 | } | |
11154 | ||
11155 | ||
11156 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11157 | PyObject *resultobj; | |
11158 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11159 | PyObject * obj0 = 0 ; | |
11160 | char *kwnames[] = { | |
11161 | (char *) "self", NULL | |
11162 | }; | |
11163 | ||
11164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; | |
11165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->DisableDragGridSize(); | |
11170 | ||
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | Py_INCREF(Py_None); resultobj = Py_None; | |
11175 | return resultobj; | |
11176 | fail: | |
11177 | return NULL; | |
11178 | } | |
11179 | ||
11180 | ||
11181 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11182 | PyObject *resultobj; | |
11183 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11184 | bool result; | |
11185 | PyObject * obj0 = 0 ; | |
11186 | char *kwnames[] = { | |
11187 | (char *) "self", NULL | |
11188 | }; | |
11189 | ||
11190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; | |
11191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | result = (bool)(arg1)->CanDragGridSize(); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
11200 | { | |
11201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11202 | } | |
11203 | return resultobj; | |
11204 | fail: | |
11205 | return NULL; | |
11206 | } | |
11207 | ||
11208 | ||
11209 | static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11210 | PyObject *resultobj; | |
11211 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11212 | int arg2 ; | |
11213 | int arg3 ; | |
11214 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; | |
11215 | PyObject * obj0 = 0 ; | |
11216 | PyObject * obj1 = 0 ; | |
11217 | PyObject * obj2 = 0 ; | |
11218 | PyObject * obj3 = 0 ; | |
11219 | char *kwnames[] = { | |
11220 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL | |
11221 | }; | |
11222 | ||
11223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11226 | arg2 = (int) SWIG_AsInt(obj1); | |
11227 | if (PyErr_Occurred()) SWIG_fail; | |
11228 | arg3 = (int) SWIG_AsInt(obj2); | |
11229 | if (PyErr_Occurred()) SWIG_fail; | |
11230 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr, | |
11231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11232 | { | |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | (arg1)->SetAttr(arg2,arg3,arg4); | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | } | |
11239 | Py_INCREF(Py_None); resultobj = Py_None; | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
11246 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11247 | PyObject *resultobj; | |
11248 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11249 | int arg2 ; | |
11250 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11251 | PyObject * obj0 = 0 ; | |
11252 | PyObject * obj1 = 0 ; | |
11253 | PyObject * obj2 = 0 ; | |
11254 | char *kwnames[] = { | |
11255 | (char *) "self",(char *) "row",(char *) "attr", NULL | |
11256 | }; | |
11257 | ||
11258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11261 | arg2 = (int) SWIG_AsInt(obj1); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11267 | (arg1)->SetRowAttr(arg2,arg3); | |
11268 | ||
11269 | wxPyEndAllowThreads(__tstate); | |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
11271 | } | |
11272 | Py_INCREF(Py_None); resultobj = Py_None; | |
11273 | return resultobj; | |
11274 | fail: | |
11275 | return NULL; | |
11276 | } | |
11277 | ||
11278 | ||
11279 | static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11280 | PyObject *resultobj; | |
11281 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11282 | int arg2 ; | |
11283 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11284 | PyObject * obj0 = 0 ; | |
11285 | PyObject * obj1 = 0 ; | |
11286 | PyObject * obj2 = 0 ; | |
11287 | char *kwnames[] = { | |
11288 | (char *) "self",(char *) "col",(char *) "attr", NULL | |
11289 | }; | |
11290 | ||
11291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11294 | arg2 = (int) SWIG_AsInt(obj1); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11298 | { | |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | (arg1)->SetColAttr(arg2,arg3); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | Py_INCREF(Py_None); resultobj = Py_None; | |
11306 | return resultobj; | |
11307 | fail: | |
11308 | return NULL; | |
11309 | } | |
11310 | ||
11311 | ||
11312 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11313 | PyObject *resultobj; | |
11314 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11315 | int arg2 ; | |
11316 | PyObject * obj0 = 0 ; | |
11317 | PyObject * obj1 = 0 ; | |
11318 | char *kwnames[] = { | |
11319 | (char *) "self",(char *) "col", NULL | |
11320 | }; | |
11321 | ||
11322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; | |
11323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11325 | arg2 = (int) SWIG_AsInt(obj1); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | (arg1)->SetColFormatBool(arg2); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | Py_INCREF(Py_None); resultobj = Py_None; | |
11335 | return resultobj; | |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11342 | PyObject *resultobj; | |
11343 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11344 | int arg2 ; | |
11345 | PyObject * obj0 = 0 ; | |
11346 | PyObject * obj1 = 0 ; | |
11347 | char *kwnames[] = { | |
11348 | (char *) "self",(char *) "col", NULL | |
11349 | }; | |
11350 | ||
11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; | |
11352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11354 | arg2 = (int) SWIG_AsInt(obj1); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | { | |
11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11358 | (arg1)->SetColFormatNumber(arg2); | |
11359 | ||
11360 | wxPyEndAllowThreads(__tstate); | |
11361 | if (PyErr_Occurred()) SWIG_fail; | |
11362 | } | |
11363 | Py_INCREF(Py_None); resultobj = Py_None; | |
11364 | return resultobj; | |
11365 | fail: | |
11366 | return NULL; | |
11367 | } | |
11368 | ||
11369 | ||
11370 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11371 | PyObject *resultobj; | |
11372 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11373 | int arg2 ; | |
11374 | int arg3 = (int) -1 ; | |
11375 | int arg4 = (int) -1 ; | |
11376 | PyObject * obj0 = 0 ; | |
11377 | PyObject * obj1 = 0 ; | |
11378 | PyObject * obj2 = 0 ; | |
11379 | PyObject * obj3 = 0 ; | |
11380 | char *kwnames[] = { | |
11381 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL | |
11382 | }; | |
11383 | ||
11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11387 | arg2 = (int) SWIG_AsInt(obj1); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | if (obj2) { | |
11390 | arg3 = (int) SWIG_AsInt(obj2); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
11393 | if (obj3) { | |
11394 | arg4 = (int) SWIG_AsInt(obj3); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | { | |
11398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11399 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); | |
11400 | ||
11401 | wxPyEndAllowThreads(__tstate); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | } | |
11404 | Py_INCREF(Py_None); resultobj = Py_None; | |
11405 | return resultobj; | |
11406 | fail: | |
11407 | return NULL; | |
11408 | } | |
11409 | ||
11410 | ||
11411 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11412 | PyObject *resultobj; | |
11413 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11414 | int arg2 ; | |
11415 | wxString *arg3 = 0 ; | |
11416 | bool temp3 = False ; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | PyObject * obj1 = 0 ; | |
11419 | PyObject * obj2 = 0 ; | |
11420 | char *kwnames[] = { | |
11421 | (char *) "self",(char *) "col",(char *) "typeName", NULL | |
11422 | }; | |
11423 | ||
11424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11427 | arg2 = (int) SWIG_AsInt(obj1); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | { | |
11430 | arg3 = wxString_in_helper(obj2); | |
11431 | if (arg3 == NULL) SWIG_fail; | |
11432 | temp3 = True; | |
11433 | } | |
11434 | { | |
11435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11436 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); | |
11437 | ||
11438 | wxPyEndAllowThreads(__tstate); | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | } | |
11441 | Py_INCREF(Py_None); resultobj = Py_None; | |
11442 | { | |
11443 | if (temp3) | |
11444 | delete arg3; | |
11445 | } | |
11446 | return resultobj; | |
11447 | fail: | |
11448 | { | |
11449 | if (temp3) | |
11450 | delete arg3; | |
11451 | } | |
11452 | return NULL; | |
11453 | } | |
11454 | ||
11455 | ||
11456 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11457 | PyObject *resultobj; | |
11458 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11459 | bool arg2 = (bool) True ; | |
11460 | PyObject * obj0 = 0 ; | |
11461 | PyObject * obj1 = 0 ; | |
11462 | char *kwnames[] = { | |
11463 | (char *) "self",(char *) "enable", NULL | |
11464 | }; | |
11465 | ||
11466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; | |
11467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11469 | if (obj1) { | |
11470 | arg2 = (bool) SWIG_AsBool(obj1); | |
11471 | if (PyErr_Occurred()) SWIG_fail; | |
11472 | } | |
11473 | { | |
11474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11475 | (arg1)->EnableGridLines(arg2); | |
11476 | ||
11477 | wxPyEndAllowThreads(__tstate); | |
11478 | if (PyErr_Occurred()) SWIG_fail; | |
11479 | } | |
11480 | Py_INCREF(Py_None); resultobj = Py_None; | |
11481 | return resultobj; | |
11482 | fail: | |
11483 | return NULL; | |
11484 | } | |
11485 | ||
11486 | ||
11487 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11488 | PyObject *resultobj; | |
11489 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11490 | bool result; | |
11491 | PyObject * obj0 = 0 ; | |
11492 | char *kwnames[] = { | |
11493 | (char *) "self", NULL | |
11494 | }; | |
11495 | ||
11496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; | |
11497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | result = (bool)(arg1)->GridLinesEnabled(); | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | { | |
11507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11508 | } | |
11509 | return resultobj; | |
11510 | fail: | |
11511 | return NULL; | |
11512 | } | |
11513 | ||
11514 | ||
11515 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11516 | PyObject *resultobj; | |
11517 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11518 | int result; | |
11519 | PyObject * obj0 = 0 ; | |
11520 | char *kwnames[] = { | |
11521 | (char *) "self", NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; | |
11525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (int)(arg1)->GetDefaultRowSize(); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | resultobj = SWIG_FromInt((int)result); | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11544 | int arg2 ; | |
11545 | int result; | |
11546 | PyObject * obj0 = 0 ; | |
11547 | PyObject * obj1 = 0 ; | |
11548 | char *kwnames[] = { | |
11549 | (char *) "self",(char *) "row", NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; | |
11553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11555 | arg2 = (int) SWIG_AsInt(obj1); | |
11556 | if (PyErr_Occurred()) SWIG_fail; | |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | result = (int)(arg1)->GetRowSize(arg2); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | resultobj = SWIG_FromInt((int)result); | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | return NULL; | |
11568 | } | |
11569 | ||
11570 | ||
11571 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11572 | PyObject *resultobj; | |
11573 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11574 | int result; | |
11575 | PyObject * obj0 = 0 ; | |
11576 | char *kwnames[] = { | |
11577 | (char *) "self", NULL | |
11578 | }; | |
11579 | ||
11580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; | |
11581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11583 | { | |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | result = (int)(arg1)->GetDefaultColSize(); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | resultobj = SWIG_FromInt((int)result); | |
11591 | return resultobj; | |
11592 | fail: | |
11593 | return NULL; | |
11594 | } | |
11595 | ||
11596 | ||
11597 | static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject *resultobj; | |
11599 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11600 | int arg2 ; | |
11601 | int result; | |
11602 | PyObject * obj0 = 0 ; | |
11603 | PyObject * obj1 = 0 ; | |
11604 | char *kwnames[] = { | |
11605 | (char *) "self",(char *) "col", NULL | |
11606 | }; | |
11607 | ||
11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; | |
11609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11611 | arg2 = (int) SWIG_AsInt(obj1); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | { | |
11614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11615 | result = (int)(arg1)->GetColSize(arg2); | |
11616 | ||
11617 | wxPyEndAllowThreads(__tstate); | |
11618 | if (PyErr_Occurred()) SWIG_fail; | |
11619 | } | |
11620 | resultobj = SWIG_FromInt((int)result); | |
11621 | return resultobj; | |
11622 | fail: | |
11623 | return NULL; | |
11624 | } | |
11625 | ||
11626 | ||
11627 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11628 | PyObject *resultobj; | |
11629 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11630 | wxColour result; | |
11631 | PyObject * obj0 = 0 ; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "self", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; | |
11637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11639 | { | |
11640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11641 | result = (arg1)->GetDefaultCellBackgroundColour(); | |
11642 | ||
11643 | wxPyEndAllowThreads(__tstate); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | } | |
11646 | { | |
11647 | wxColour * resultptr; | |
11648 | resultptr = new wxColour((wxColour &) result); | |
11649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11650 | } | |
11651 | return resultobj; | |
11652 | fail: | |
11653 | return NULL; | |
11654 | } | |
11655 | ||
11656 | ||
11657 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11658 | PyObject *resultobj; | |
11659 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11660 | int arg2 ; | |
11661 | int arg3 ; | |
11662 | wxColour result; | |
11663 | PyObject * obj0 = 0 ; | |
11664 | PyObject * obj1 = 0 ; | |
11665 | PyObject * obj2 = 0 ; | |
11666 | char *kwnames[] = { | |
11667 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11668 | }; | |
11669 | ||
11670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11673 | arg2 = (int) SWIG_AsInt(obj1); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | arg3 = (int) SWIG_AsInt(obj2); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | { | |
11678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11679 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); | |
11680 | ||
11681 | wxPyEndAllowThreads(__tstate); | |
11682 | if (PyErr_Occurred()) SWIG_fail; | |
11683 | } | |
11684 | { | |
11685 | wxColour * resultptr; | |
11686 | resultptr = new wxColour((wxColour &) result); | |
11687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11688 | } | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11698 | wxColour result; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | char *kwnames[] = { | |
11701 | (char *) "self", NULL | |
11702 | }; | |
11703 | ||
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; | |
11705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (arg1)->GetDefaultCellTextColour(); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | { | |
11715 | wxColour * resultptr; | |
11716 | resultptr = new wxColour((wxColour &) result); | |
11717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11718 | } | |
11719 | return resultobj; | |
11720 | fail: | |
11721 | return NULL; | |
11722 | } | |
11723 | ||
11724 | ||
11725 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11726 | PyObject *resultobj; | |
11727 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11728 | int arg2 ; | |
11729 | int arg3 ; | |
11730 | wxColour result; | |
11731 | PyObject * obj0 = 0 ; | |
11732 | PyObject * obj1 = 0 ; | |
11733 | PyObject * obj2 = 0 ; | |
11734 | char *kwnames[] = { | |
11735 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11736 | }; | |
11737 | ||
11738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11741 | arg2 = (int) SWIG_AsInt(obj1); | |
11742 | if (PyErr_Occurred()) SWIG_fail; | |
11743 | arg3 = (int) SWIG_AsInt(obj2); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | { | |
11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11747 | result = (arg1)->GetCellTextColour(arg2,arg3); | |
11748 | ||
11749 | wxPyEndAllowThreads(__tstate); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | } | |
11752 | { | |
11753 | wxColour * resultptr; | |
11754 | resultptr = new wxColour((wxColour &) result); | |
11755 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11756 | } | |
11757 | return resultobj; | |
11758 | fail: | |
11759 | return NULL; | |
11760 | } | |
11761 | ||
11762 | ||
11763 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11764 | PyObject *resultobj; | |
11765 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11766 | wxFont result; | |
11767 | PyObject * obj0 = 0 ; | |
11768 | char *kwnames[] = { | |
11769 | (char *) "self", NULL | |
11770 | }; | |
11771 | ||
11772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; | |
11773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11775 | { | |
11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11777 | result = (arg1)->GetDefaultCellFont(); | |
11778 | ||
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | { | |
11783 | wxFont * resultptr; | |
11784 | resultptr = new wxFont((wxFont &) result); | |
11785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11786 | } | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
11793 | static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11794 | PyObject *resultobj; | |
11795 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11796 | int arg2 ; | |
11797 | int arg3 ; | |
11798 | wxFont result; | |
11799 | PyObject * obj0 = 0 ; | |
11800 | PyObject * obj1 = 0 ; | |
11801 | PyObject * obj2 = 0 ; | |
11802 | char *kwnames[] = { | |
11803 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11804 | }; | |
11805 | ||
11806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11809 | arg2 = (int) SWIG_AsInt(obj1); | |
11810 | if (PyErr_Occurred()) SWIG_fail; | |
11811 | arg3 = (int) SWIG_AsInt(obj2); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | { | |
11814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11815 | result = (arg1)->GetCellFont(arg2,arg3); | |
11816 | ||
11817 | wxPyEndAllowThreads(__tstate); | |
11818 | if (PyErr_Occurred()) SWIG_fail; | |
11819 | } | |
11820 | { | |
11821 | wxFont * resultptr; | |
11822 | resultptr = new wxFont((wxFont &) result); | |
11823 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
11824 | } | |
11825 | return resultobj; | |
11826 | fail: | |
11827 | return NULL; | |
11828 | } | |
11829 | ||
11830 | ||
11831 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11832 | PyObject *resultobj; | |
11833 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11834 | int *arg2 = (int *) 0 ; | |
11835 | int *arg3 = (int *) 0 ; | |
11836 | int temp2 ; | |
11837 | int temp3 ; | |
11838 | PyObject * obj0 = 0 ; | |
11839 | char *kwnames[] = { | |
11840 | (char *) "self", NULL | |
11841 | }; | |
11842 | ||
11843 | arg2 = &temp2; | |
11844 | arg3 = &temp3; | |
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; | |
11846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11848 | { | |
11849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11850 | (arg1)->GetDefaultCellAlignment(arg2,arg3); | |
11851 | ||
11852 | wxPyEndAllowThreads(__tstate); | |
11853 | if (PyErr_Occurred()) SWIG_fail; | |
11854 | } | |
11855 | Py_INCREF(Py_None); resultobj = Py_None; | |
11856 | { | |
11857 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11858 | resultobj = t_output_helper(resultobj,o); | |
11859 | } | |
11860 | { | |
11861 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11862 | resultobj = t_output_helper(resultobj,o); | |
11863 | } | |
11864 | return resultobj; | |
11865 | fail: | |
11866 | return NULL; | |
11867 | } | |
11868 | ||
11869 | ||
11870 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11871 | PyObject *resultobj; | |
11872 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11873 | int arg2 ; | |
11874 | int arg3 ; | |
11875 | int *arg4 = (int *) 0 ; | |
11876 | int *arg5 = (int *) 0 ; | |
11877 | int temp4 ; | |
11878 | int temp5 ; | |
11879 | PyObject * obj0 = 0 ; | |
11880 | PyObject * obj1 = 0 ; | |
11881 | PyObject * obj2 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11884 | }; | |
11885 | ||
11886 | arg4 = &temp4; | |
11887 | arg5 = &temp5; | |
11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11891 | arg2 = (int) SWIG_AsInt(obj1); | |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
11893 | arg3 = (int) SWIG_AsInt(obj2); | |
11894 | if (PyErr_Occurred()) SWIG_fail; | |
11895 | { | |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | Py_INCREF(Py_None); resultobj = Py_None; | |
11903 | { | |
11904 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11905 | resultobj = t_output_helper(resultobj,o); | |
11906 | } | |
11907 | { | |
11908 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11909 | resultobj = t_output_helper(resultobj,o); | |
11910 | } | |
11911 | return resultobj; | |
11912 | fail: | |
11913 | return NULL; | |
11914 | } | |
11915 | ||
11916 | ||
11917 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11918 | PyObject *resultobj; | |
11919 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11920 | bool result; | |
11921 | PyObject * obj0 = 0 ; | |
11922 | char *kwnames[] = { | |
11923 | (char *) "self", NULL | |
11924 | }; | |
11925 | ||
11926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; | |
11927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11929 | { | |
11930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11931 | result = (bool)(arg1)->GetDefaultCellOverflow(); | |
11932 | ||
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | { | |
11937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11938 | } | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
11945 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11946 | PyObject *resultobj; | |
11947 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11948 | int arg2 ; | |
11949 | int arg3 ; | |
11950 | bool result; | |
11951 | PyObject * obj0 = 0 ; | |
11952 | PyObject * obj1 = 0 ; | |
11953 | PyObject * obj2 = 0 ; | |
11954 | char *kwnames[] = { | |
11955 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11956 | }; | |
11957 | ||
11958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11961 | arg2 = (int) SWIG_AsInt(obj1); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | arg3 = (int) SWIG_AsInt(obj2); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | { | |
11966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11967 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); | |
11968 | ||
11969 | wxPyEndAllowThreads(__tstate); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
11971 | } | |
11972 | { | |
11973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11974 | } | |
11975 | return resultobj; | |
11976 | fail: | |
11977 | return NULL; | |
11978 | } | |
11979 | ||
11980 | ||
11981 | static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11982 | PyObject *resultobj; | |
11983 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11984 | int arg2 ; | |
11985 | int arg3 ; | |
11986 | int *arg4 = (int *) 0 ; | |
11987 | int *arg5 = (int *) 0 ; | |
11988 | int temp4 ; | |
11989 | int temp5 ; | |
11990 | PyObject * obj0 = 0 ; | |
11991 | PyObject * obj1 = 0 ; | |
11992 | PyObject * obj2 = 0 ; | |
11993 | char *kwnames[] = { | |
11994 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11995 | }; | |
11996 | ||
11997 | arg4 = &temp4; | |
11998 | arg5 = &temp5; | |
11999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12002 | arg2 = (int) SWIG_AsInt(obj1); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | arg3 = (int) SWIG_AsInt(obj2); | |
12005 | if (PyErr_Occurred()) SWIG_fail; | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); | |
12009 | ||
12010 | wxPyEndAllowThreads(__tstate); | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
12013 | Py_INCREF(Py_None); resultobj = Py_None; | |
12014 | { | |
12015 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12016 | resultobj = t_output_helper(resultobj,o); | |
12017 | } | |
12018 | { | |
12019 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12020 | resultobj = t_output_helper(resultobj,o); | |
12021 | } | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | return NULL; | |
12025 | } | |
12026 | ||
12027 | ||
12028 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12029 | PyObject *resultobj; | |
12030 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12031 | int arg2 ; | |
12032 | bool arg3 = (bool) False ; | |
12033 | PyObject * obj0 = 0 ; | |
12034 | PyObject * obj1 = 0 ; | |
12035 | PyObject * obj2 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12043 | arg2 = (int) SWIG_AsInt(obj1); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | if (obj2) { | |
12046 | arg3 = (bool) SWIG_AsBool(obj2); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | (arg1)->SetDefaultRowSize(arg2,arg3); | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | Py_INCREF(Py_None); resultobj = Py_None; | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
12063 | static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12064 | PyObject *resultobj; | |
12065 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12066 | int arg2 ; | |
12067 | int arg3 ; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | PyObject * obj2 = 0 ; | |
12071 | char *kwnames[] = { | |
12072 | (char *) "self",(char *) "row",(char *) "height", NULL | |
12073 | }; | |
12074 | ||
12075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12078 | arg2 = (int) SWIG_AsInt(obj1); | |
12079 | if (PyErr_Occurred()) SWIG_fail; | |
12080 | arg3 = (int) SWIG_AsInt(obj2); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | { | |
12083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12084 | (arg1)->SetRowSize(arg2,arg3); | |
12085 | ||
12086 | wxPyEndAllowThreads(__tstate); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | Py_INCREF(Py_None); resultobj = Py_None; | |
12090 | return resultobj; | |
12091 | fail: | |
12092 | return NULL; | |
12093 | } | |
12094 | ||
12095 | ||
12096 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12097 | PyObject *resultobj; | |
12098 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12099 | int arg2 ; | |
12100 | bool arg3 = (bool) False ; | |
12101 | PyObject * obj0 = 0 ; | |
12102 | PyObject * obj1 = 0 ; | |
12103 | PyObject * obj2 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12111 | arg2 = (int) SWIG_AsInt(obj1); | |
12112 | if (PyErr_Occurred()) SWIG_fail; | |
12113 | if (obj2) { | |
12114 | arg3 = (bool) SWIG_AsBool(obj2); | |
12115 | if (PyErr_Occurred()) SWIG_fail; | |
12116 | } | |
12117 | { | |
12118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12119 | (arg1)->SetDefaultColSize(arg2,arg3); | |
12120 | ||
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
12124 | Py_INCREF(Py_None); resultobj = Py_None; | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | return NULL; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12132 | PyObject *resultobj; | |
12133 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12134 | int arg2 ; | |
12135 | int arg3 ; | |
12136 | PyObject * obj0 = 0 ; | |
12137 | PyObject * obj1 = 0 ; | |
12138 | PyObject * obj2 = 0 ; | |
12139 | char *kwnames[] = { | |
12140 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12141 | }; | |
12142 | ||
12143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12146 | arg2 = (int) SWIG_AsInt(obj1); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | arg3 = (int) SWIG_AsInt(obj2); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | { | |
12151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12152 | (arg1)->SetColSize(arg2,arg3); | |
12153 | ||
12154 | wxPyEndAllowThreads(__tstate); | |
12155 | if (PyErr_Occurred()) SWIG_fail; | |
12156 | } | |
12157 | Py_INCREF(Py_None); resultobj = Py_None; | |
12158 | return resultobj; | |
12159 | fail: | |
12160 | return NULL; | |
12161 | } | |
12162 | ||
12163 | ||
12164 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12165 | PyObject *resultobj; | |
12166 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12167 | int arg2 ; | |
12168 | bool arg3 = (bool) True ; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | PyObject * obj1 = 0 ; | |
12171 | PyObject * obj2 = 0 ; | |
12172 | char *kwnames[] = { | |
12173 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL | |
12174 | }; | |
12175 | ||
12176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12179 | arg2 = (int) SWIG_AsInt(obj1); | |
12180 | if (PyErr_Occurred()) SWIG_fail; | |
12181 | if (obj2) { | |
12182 | arg3 = (bool) SWIG_AsBool(obj2); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | (arg1)->AutoSizeColumn(arg2,arg3); | |
12188 | ||
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | Py_INCREF(Py_None); resultobj = Py_None; | |
12193 | return resultobj; | |
12194 | fail: | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj; | |
12201 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12202 | int arg2 ; | |
12203 | bool arg3 = (bool) True ; | |
12204 | PyObject * obj0 = 0 ; | |
12205 | PyObject * obj1 = 0 ; | |
12206 | PyObject * obj2 = 0 ; | |
12207 | char *kwnames[] = { | |
12208 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL | |
12209 | }; | |
12210 | ||
12211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12214 | arg2 = (int) SWIG_AsInt(obj1); | |
12215 | if (PyErr_Occurred()) SWIG_fail; | |
12216 | if (obj2) { | |
12217 | arg3 = (bool) SWIG_AsBool(obj2); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | { | |
12221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12222 | (arg1)->AutoSizeRow(arg2,arg3); | |
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_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12235 | PyObject *resultobj; | |
12236 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12237 | bool arg2 = (bool) True ; | |
12238 | PyObject * obj0 = 0 ; | |
12239 | PyObject * obj1 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self",(char *) "setAsMin", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; | |
12245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12247 | if (obj1) { | |
12248 | arg2 = (bool) SWIG_AsBool(obj1); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | (arg1)->AutoSizeColumns(arg2); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
12258 | Py_INCREF(Py_None); resultobj = Py_None; | |
12259 | return resultobj; | |
12260 | fail: | |
12261 | return NULL; | |
12262 | } | |
12263 | ||
12264 | ||
12265 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12266 | PyObject *resultobj; | |
12267 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12268 | bool arg2 = (bool) True ; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | PyObject * obj1 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self",(char *) "setAsMin", NULL | |
12273 | }; | |
12274 | ||
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; | |
12276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12278 | if (obj1) { | |
12279 | arg2 = (bool) SWIG_AsBool(obj1); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
12282 | { | |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | (arg1)->AutoSizeRows(arg2); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
12289 | Py_INCREF(Py_None); resultobj = Py_None; | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12299 | PyObject * obj0 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; | |
12305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | (arg1)->AutoSize(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | Py_INCREF(Py_None); resultobj = Py_None; | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12324 | int arg2 ; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | PyObject * obj1 = 0 ; | |
12327 | char *kwnames[] = { | |
12328 | (char *) "self",(char *) "row", NULL | |
12329 | }; | |
12330 | ||
12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
12332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12334 | arg2 = (int) SWIG_AsInt(obj1); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | { | |
12337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12338 | (arg1)->AutoSizeRowLabelSize(arg2); | |
12339 | ||
12340 | wxPyEndAllowThreads(__tstate); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
12342 | } | |
12343 | Py_INCREF(Py_None); resultobj = Py_None; | |
12344 | return resultobj; | |
12345 | fail: | |
12346 | return NULL; | |
12347 | } | |
12348 | ||
12349 | ||
12350 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12351 | PyObject *resultobj; | |
12352 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12353 | int arg2 ; | |
12354 | PyObject * obj0 = 0 ; | |
12355 | PyObject * obj1 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self",(char *) "col", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12363 | arg2 = (int) SWIG_AsInt(obj1); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | { | |
12366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12367 | (arg1)->AutoSizeColLabelSize(arg2); | |
12368 | ||
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
12372 | Py_INCREF(Py_None); resultobj = Py_None; | |
12373 | return resultobj; | |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
12379 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12380 | PyObject *resultobj; | |
12381 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12382 | int arg2 ; | |
12383 | int arg3 ; | |
12384 | PyObject * obj0 = 0 ; | |
12385 | PyObject * obj1 = 0 ; | |
12386 | PyObject * obj2 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12394 | arg2 = (int) SWIG_AsInt(obj1); | |
12395 | if (PyErr_Occurred()) SWIG_fail; | |
12396 | arg3 = (int) SWIG_AsInt(obj2); | |
12397 | if (PyErr_Occurred()) SWIG_fail; | |
12398 | { | |
12399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12400 | (arg1)->SetColMinimalWidth(arg2,arg3); | |
12401 | ||
12402 | wxPyEndAllowThreads(__tstate); | |
12403 | if (PyErr_Occurred()) SWIG_fail; | |
12404 | } | |
12405 | Py_INCREF(Py_None); resultobj = Py_None; | |
12406 | return resultobj; | |
12407 | fail: | |
12408 | return NULL; | |
12409 | } | |
12410 | ||
12411 | ||
12412 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12413 | PyObject *resultobj; | |
12414 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12415 | int arg2 ; | |
12416 | int arg3 ; | |
12417 | PyObject * obj0 = 0 ; | |
12418 | PyObject * obj1 = 0 ; | |
12419 | PyObject * obj2 = 0 ; | |
12420 | char *kwnames[] = { | |
12421 | (char *) "self",(char *) "row",(char *) "width", NULL | |
12422 | }; | |
12423 | ||
12424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12427 | arg2 = (int) SWIG_AsInt(obj1); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | arg3 = (int) SWIG_AsInt(obj2); | |
12430 | if (PyErr_Occurred()) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | (arg1)->SetRowMinimalHeight(arg2,arg3); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | Py_INCREF(Py_None); resultobj = Py_None; | |
12439 | return resultobj; | |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12446 | PyObject *resultobj; | |
12447 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12448 | int arg2 ; | |
12449 | PyObject * obj0 = 0 ; | |
12450 | PyObject * obj1 = 0 ; | |
12451 | char *kwnames[] = { | |
12452 | (char *) "self",(char *) "width", NULL | |
12453 | }; | |
12454 | ||
12455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; | |
12456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12458 | arg2 = (int) SWIG_AsInt(obj1); | |
12459 | if (PyErr_Occurred()) SWIG_fail; | |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | (arg1)->SetColMinimalAcceptableWidth(arg2); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | Py_INCREF(Py_None); resultobj = Py_None; | |
12468 | return resultobj; | |
12469 | fail: | |
12470 | return NULL; | |
12471 | } | |
12472 | ||
12473 | ||
12474 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12475 | PyObject *resultobj; | |
12476 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12477 | int arg2 ; | |
12478 | PyObject * obj0 = 0 ; | |
12479 | PyObject * obj1 = 0 ; | |
12480 | char *kwnames[] = { | |
12481 | (char *) "self",(char *) "width", NULL | |
12482 | }; | |
12483 | ||
12484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; | |
12485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12487 | arg2 = (int) SWIG_AsInt(obj1); | |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
12489 | { | |
12490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12491 | (arg1)->SetRowMinimalAcceptableHeight(arg2); | |
12492 | ||
12493 | wxPyEndAllowThreads(__tstate); | |
12494 | if (PyErr_Occurred()) SWIG_fail; | |
12495 | } | |
12496 | Py_INCREF(Py_None); resultobj = Py_None; | |
12497 | return resultobj; | |
12498 | fail: | |
12499 | return NULL; | |
12500 | } | |
12501 | ||
12502 | ||
12503 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12504 | PyObject *resultobj; | |
12505 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12506 | int result; | |
12507 | PyObject * obj0 = 0 ; | |
12508 | char *kwnames[] = { | |
12509 | (char *) "self", NULL | |
12510 | }; | |
12511 | ||
12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; | |
12513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12515 | { | |
12516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12517 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); | |
12518 | ||
12519 | wxPyEndAllowThreads(__tstate); | |
12520 | if (PyErr_Occurred()) SWIG_fail; | |
12521 | } | |
12522 | resultobj = SWIG_FromInt((int)result); | |
12523 | return resultobj; | |
12524 | fail: | |
12525 | return NULL; | |
12526 | } | |
12527 | ||
12528 | ||
12529 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12530 | PyObject *resultobj; | |
12531 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12532 | int result; | |
12533 | PyObject * obj0 = 0 ; | |
12534 | char *kwnames[] = { | |
12535 | (char *) "self", NULL | |
12536 | }; | |
12537 | ||
12538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; | |
12539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12541 | { | |
12542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12543 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); | |
12544 | ||
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | resultobj = SWIG_FromInt((int)result); | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | return NULL; | |
12552 | } | |
12553 | ||
12554 | ||
12555 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12556 | PyObject *resultobj; | |
12557 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12558 | wxColour *arg2 = 0 ; | |
12559 | wxColour temp2 ; | |
12560 | PyObject * obj0 = 0 ; | |
12561 | PyObject * obj1 = 0 ; | |
12562 | char *kwnames[] = { | |
12563 | (char *) "self","arg2", NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
12567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12569 | { | |
12570 | arg2 = &temp2; | |
12571 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12572 | } | |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | Py_INCREF(Py_None); resultobj = Py_None; | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
12587 | static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12588 | PyObject *resultobj; | |
12589 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12590 | int arg2 ; | |
12591 | int arg3 ; | |
12592 | wxColour *arg4 = 0 ; | |
12593 | wxColour temp4 ; | |
12594 | PyObject * obj0 = 0 ; | |
12595 | PyObject * obj1 = 0 ; | |
12596 | PyObject * obj2 = 0 ; | |
12597 | PyObject * obj3 = 0 ; | |
12598 | char *kwnames[] = { | |
12599 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12600 | }; | |
12601 | ||
12602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12605 | arg2 = (int) SWIG_AsInt(obj1); | |
12606 | if (PyErr_Occurred()) SWIG_fail; | |
12607 | arg3 = (int) SWIG_AsInt(obj2); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | { | |
12610 | arg4 = &temp4; | |
12611 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12612 | } | |
12613 | { | |
12614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12615 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); | |
12616 | ||
12617 | wxPyEndAllowThreads(__tstate); | |
12618 | if (PyErr_Occurred()) SWIG_fail; | |
12619 | } | |
12620 | Py_INCREF(Py_None); resultobj = Py_None; | |
12621 | return resultobj; | |
12622 | fail: | |
12623 | return NULL; | |
12624 | } | |
12625 | ||
12626 | ||
12627 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12628 | PyObject *resultobj; | |
12629 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12630 | wxColour *arg2 = 0 ; | |
12631 | wxColour temp2 ; | |
12632 | PyObject * obj0 = 0 ; | |
12633 | PyObject * obj1 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self","arg2", NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; | |
12639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12641 | { | |
12642 | arg2 = &temp2; | |
12643 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12644 | } | |
12645 | { | |
12646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12647 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); | |
12648 | ||
12649 | wxPyEndAllowThreads(__tstate); | |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
12651 | } | |
12652 | Py_INCREF(Py_None); resultobj = Py_None; | |
12653 | return resultobj; | |
12654 | fail: | |
12655 | return NULL; | |
12656 | } | |
12657 | ||
12658 | ||
12659 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12660 | PyObject *resultobj; | |
12661 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12662 | int arg2 ; | |
12663 | int arg3 ; | |
12664 | wxColour *arg4 = 0 ; | |
12665 | wxColour temp4 ; | |
12666 | PyObject * obj0 = 0 ; | |
12667 | PyObject * obj1 = 0 ; | |
12668 | PyObject * obj2 = 0 ; | |
12669 | PyObject * obj3 = 0 ; | |
12670 | char *kwnames[] = { | |
12671 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12672 | }; | |
12673 | ||
12674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12677 | arg2 = (int) SWIG_AsInt(obj1); | |
12678 | if (PyErr_Occurred()) SWIG_fail; | |
12679 | arg3 = (int) SWIG_AsInt(obj2); | |
12680 | if (PyErr_Occurred()) SWIG_fail; | |
12681 | { | |
12682 | arg4 = &temp4; | |
12683 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12684 | } | |
12685 | { | |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
12692 | Py_INCREF(Py_None); resultobj = Py_None; | |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12702 | wxFont *arg2 = 0 ; | |
12703 | PyObject * obj0 = 0 ; | |
12704 | PyObject * obj1 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "self","arg2", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12713 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12714 | SWIG_fail; | |
12715 | if (arg2 == NULL) { | |
12716 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12717 | SWIG_fail; | |
12718 | } | |
12719 | { | |
12720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12721 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); | |
12722 | ||
12723 | wxPyEndAllowThreads(__tstate); | |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
12725 | } | |
12726 | Py_INCREF(Py_None); resultobj = Py_None; | |
12727 | return resultobj; | |
12728 | fail: | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
12733 | static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12734 | PyObject *resultobj; | |
12735 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12736 | int arg2 ; | |
12737 | int arg3 ; | |
12738 | wxFont *arg4 = 0 ; | |
12739 | PyObject * obj0 = 0 ; | |
12740 | PyObject * obj1 = 0 ; | |
12741 | PyObject * obj2 = 0 ; | |
12742 | PyObject * obj3 = 0 ; | |
12743 | char *kwnames[] = { | |
12744 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12745 | }; | |
12746 | ||
12747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12750 | arg2 = (int) SWIG_AsInt(obj1); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | arg3 = (int) SWIG_AsInt(obj2); | |
12753 | if (PyErr_Occurred()) SWIG_fail; | |
12754 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont, | |
12755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12756 | SWIG_fail; | |
12757 | if (arg4 == NULL) { | |
12758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12759 | SWIG_fail; | |
12760 | } | |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | Py_INCREF(Py_None); resultobj = Py_None; | |
12769 | return resultobj; | |
12770 | fail: | |
12771 | return NULL; | |
12772 | } | |
12773 | ||
12774 | ||
12775 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12776 | PyObject *resultobj; | |
12777 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12778 | int arg2 ; | |
12779 | int arg3 ; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | PyObject * obj1 = 0 ; | |
12782 | PyObject * obj2 = 0 ; | |
12783 | char *kwnames[] = { | |
12784 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
12785 | }; | |
12786 | ||
12787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12790 | arg2 = (int) SWIG_AsInt(obj1); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | arg3 = (int) SWIG_AsInt(obj2); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | { | |
12795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12796 | (arg1)->SetDefaultCellAlignment(arg2,arg3); | |
12797 | ||
12798 | wxPyEndAllowThreads(__tstate); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | Py_INCREF(Py_None); resultobj = Py_None; | |
12802 | return resultobj; | |
12803 | fail: | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj; | |
12810 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12811 | int arg2 ; | |
12812 | int arg3 ; | |
12813 | int arg4 ; | |
12814 | int arg5 ; | |
12815 | PyObject * obj0 = 0 ; | |
12816 | PyObject * obj1 = 0 ; | |
12817 | PyObject * obj2 = 0 ; | |
12818 | PyObject * obj3 = 0 ; | |
12819 | PyObject * obj4 = 0 ; | |
12820 | char *kwnames[] = { | |
12821 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL | |
12822 | }; | |
12823 | ||
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12827 | arg2 = (int) SWIG_AsInt(obj1); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | arg3 = (int) SWIG_AsInt(obj2); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | arg4 = (int) SWIG_AsInt(obj3); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | arg5 = (int) SWIG_AsInt(obj4); | |
12834 | if (PyErr_Occurred()) SWIG_fail; | |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); | |
12838 | ||
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | Py_INCREF(Py_None); resultobj = Py_None; | |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
12849 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12850 | PyObject *resultobj; | |
12851 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12852 | bool arg2 ; | |
12853 | PyObject * obj0 = 0 ; | |
12854 | PyObject * obj1 = 0 ; | |
12855 | char *kwnames[] = { | |
12856 | (char *) "self",(char *) "allow", NULL | |
12857 | }; | |
12858 | ||
12859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; | |
12860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12862 | arg2 = (bool) SWIG_AsBool(obj1); | |
12863 | if (PyErr_Occurred()) SWIG_fail; | |
12864 | { | |
12865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12866 | (arg1)->SetDefaultCellOverflow(arg2); | |
12867 | ||
12868 | wxPyEndAllowThreads(__tstate); | |
12869 | if (PyErr_Occurred()) SWIG_fail; | |
12870 | } | |
12871 | Py_INCREF(Py_None); resultobj = Py_None; | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12881 | int arg2 ; | |
12882 | int arg3 ; | |
12883 | bool arg4 ; | |
12884 | PyObject * obj0 = 0 ; | |
12885 | PyObject * obj1 = 0 ; | |
12886 | PyObject * obj2 = 0 ; | |
12887 | PyObject * obj3 = 0 ; | |
12888 | char *kwnames[] = { | |
12889 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL | |
12890 | }; | |
12891 | ||
12892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12895 | arg2 = (int) SWIG_AsInt(obj1); | |
12896 | if (PyErr_Occurred()) SWIG_fail; | |
12897 | arg3 = (int) SWIG_AsInt(obj2); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | arg4 = (bool) SWIG_AsBool(obj3); | |
12900 | if (PyErr_Occurred()) SWIG_fail; | |
12901 | { | |
12902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12903 | (arg1)->SetCellOverflow(arg2,arg3,arg4); | |
12904 | ||
12905 | wxPyEndAllowThreads(__tstate); | |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
12907 | } | |
12908 | Py_INCREF(Py_None); resultobj = Py_None; | |
12909 | return resultobj; | |
12910 | fail: | |
12911 | return NULL; | |
12912 | } | |
12913 | ||
12914 | ||
12915 | static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12916 | PyObject *resultobj; | |
12917 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12918 | int arg2 ; | |
12919 | int arg3 ; | |
12920 | int arg4 ; | |
12921 | int arg5 ; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | PyObject * obj1 = 0 ; | |
12924 | PyObject * obj2 = 0 ; | |
12925 | PyObject * obj3 = 0 ; | |
12926 | PyObject * obj4 = 0 ; | |
12927 | char *kwnames[] = { | |
12928 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL | |
12929 | }; | |
12930 | ||
12931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12934 | arg2 = (int) SWIG_AsInt(obj1); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | arg3 = (int) SWIG_AsInt(obj2); | |
12937 | if (PyErr_Occurred()) SWIG_fail; | |
12938 | arg4 = (int) SWIG_AsInt(obj3); | |
12939 | if (PyErr_Occurred()) SWIG_fail; | |
12940 | arg5 = (int) SWIG_AsInt(obj4); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | { | |
12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12944 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); | |
12945 | ||
12946 | wxPyEndAllowThreads(__tstate); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
12949 | Py_INCREF(Py_None); resultobj = Py_None; | |
12950 | return resultobj; | |
12951 | fail: | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj; | |
12958 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12959 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
12960 | PyObject * obj0 = 0 ; | |
12961 | PyObject * obj1 = 0 ; | |
12962 | char *kwnames[] = { | |
12963 | (char *) "self",(char *) "renderer", NULL | |
12964 | }; | |
12965 | ||
12966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; | |
12967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
12970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12971 | { | |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | (arg1)->SetDefaultRenderer(arg2); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | Py_INCREF(Py_None); resultobj = Py_None; | |
12979 | return resultobj; | |
12980 | fail: | |
12981 | return NULL; | |
12982 | } | |
12983 | ||
12984 | ||
12985 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12986 | PyObject *resultobj; | |
12987 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12988 | int arg2 ; | |
12989 | int arg3 ; | |
12990 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; | |
12991 | PyObject * obj0 = 0 ; | |
12992 | PyObject * obj1 = 0 ; | |
12993 | PyObject * obj2 = 0 ; | |
12994 | PyObject * obj3 = 0 ; | |
12995 | char *kwnames[] = { | |
12996 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL | |
12997 | }; | |
12998 | ||
12999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13002 | arg2 = (int) SWIG_AsInt(obj1); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | arg3 = (int) SWIG_AsInt(obj2); | |
13005 | if (PyErr_Occurred()) SWIG_fail; | |
13006 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer, | |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13008 | { | |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13010 | (arg1)->SetCellRenderer(arg2,arg3,arg4); | |
13011 | ||
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
13015 | Py_INCREF(Py_None); resultobj = Py_None; | |
13016 | return resultobj; | |
13017 | fail: | |
13018 | return NULL; | |
13019 | } | |
13020 | ||
13021 | ||
13022 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13025 | wxGridCellRenderer *result; | |
13026 | PyObject * obj0 = 0 ; | |
13027 | char *kwnames[] = { | |
13028 | (char *) "self", NULL | |
13029 | }; | |
13030 | ||
13031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; | |
13032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); | |
13037 | ||
13038 | wxPyEndAllowThreads(__tstate); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
13040 | } | |
13041 | { | |
13042 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
13043 | } | |
13044 | return resultobj; | |
13045 | fail: | |
13046 | return NULL; | |
13047 | } | |
13048 | ||
13049 | ||
13050 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13051 | PyObject *resultobj; | |
13052 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13053 | int arg2 ; | |
13054 | int arg3 ; | |
13055 | wxGridCellRenderer *result; | |
13056 | PyObject * obj0 = 0 ; | |
13057 | PyObject * obj1 = 0 ; | |
13058 | PyObject * obj2 = 0 ; | |
13059 | char *kwnames[] = { | |
13060 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13061 | }; | |
13062 | ||
13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13066 | arg2 = (int) SWIG_AsInt(obj1); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | arg3 = (int) SWIG_AsInt(obj2); | |
13069 | if (PyErr_Occurred()) SWIG_fail; | |
13070 | { | |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13072 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); | |
13073 | ||
13074 | wxPyEndAllowThreads(__tstate); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | { | |
13078 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
13079 | } | |
13080 | return resultobj; | |
13081 | fail: | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13087 | PyObject *resultobj; | |
13088 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13089 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | PyObject * obj1 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self",(char *) "editor", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; | |
13097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, | |
13100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13101 | { | |
13102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13103 | (arg1)->SetDefaultEditor(arg2); | |
13104 | ||
13105 | wxPyEndAllowThreads(__tstate); | |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
13107 | } | |
13108 | Py_INCREF(Py_None); resultobj = Py_None; | |
13109 | return resultobj; | |
13110 | fail: | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj; | |
13117 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13118 | int arg2 ; | |
13119 | int arg3 ; | |
13120 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
13121 | PyObject * obj0 = 0 ; | |
13122 | PyObject * obj1 = 0 ; | |
13123 | PyObject * obj2 = 0 ; | |
13124 | PyObject * obj3 = 0 ; | |
13125 | char *kwnames[] = { | |
13126 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL | |
13127 | }; | |
13128 | ||
13129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13132 | arg2 = (int) SWIG_AsInt(obj1); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | arg3 = (int) SWIG_AsInt(obj2); | |
13135 | if (PyErr_Occurred()) SWIG_fail; | |
13136 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
13137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13140 | (arg1)->SetCellEditor(arg2,arg3,arg4); | |
13141 | ||
13142 | wxPyEndAllowThreads(__tstate); | |
13143 | if (PyErr_Occurred()) SWIG_fail; | |
13144 | } | |
13145 | Py_INCREF(Py_None); resultobj = Py_None; | |
13146 | return resultobj; | |
13147 | fail: | |
13148 | return NULL; | |
13149 | } | |
13150 | ||
13151 | ||
13152 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13153 | PyObject *resultobj; | |
13154 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13155 | wxGridCellEditor *result; | |
13156 | PyObject * obj0 = 0 ; | |
13157 | char *kwnames[] = { | |
13158 | (char *) "self", NULL | |
13159 | }; | |
13160 | ||
13161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; | |
13162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13166 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); | |
13167 | ||
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | { | |
13172 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13173 | } | |
13174 | return resultobj; | |
13175 | fail: | |
13176 | return NULL; | |
13177 | } | |
13178 | ||
13179 | ||
13180 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj; | |
13182 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13183 | int arg2 ; | |
13184 | int arg3 ; | |
13185 | wxGridCellEditor *result; | |
13186 | PyObject * obj0 = 0 ; | |
13187 | PyObject * obj1 = 0 ; | |
13188 | PyObject * obj2 = 0 ; | |
13189 | char *kwnames[] = { | |
13190 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13191 | }; | |
13192 | ||
13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13196 | arg2 = (int) SWIG_AsInt(obj1); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | arg3 = (int) SWIG_AsInt(obj2); | |
13199 | if (PyErr_Occurred()) SWIG_fail; | |
13200 | { | |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
13207 | { | |
13208 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13209 | } | |
13210 | return resultobj; | |
13211 | fail: | |
13212 | return NULL; | |
13213 | } | |
13214 | ||
13215 | ||
13216 | static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13217 | PyObject *resultobj; | |
13218 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13219 | int arg2 ; | |
13220 | int arg3 ; | |
13221 | wxString result; | |
13222 | PyObject * obj0 = 0 ; | |
13223 | PyObject * obj1 = 0 ; | |
13224 | PyObject * obj2 = 0 ; | |
13225 | char *kwnames[] = { | |
13226 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13227 | }; | |
13228 | ||
13229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13232 | arg2 = (int) SWIG_AsInt(obj1); | |
13233 | if (PyErr_Occurred()) SWIG_fail; | |
13234 | arg3 = (int) SWIG_AsInt(obj2); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | { | |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | result = (arg1)->GetCellValue(arg2,arg3); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
13243 | { | |
13244 | #if wxUSE_UNICODE | |
13245 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13246 | #else | |
13247 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13248 | #endif | |
13249 | } | |
13250 | return resultobj; | |
13251 | fail: | |
13252 | return NULL; | |
13253 | } | |
13254 | ||
13255 | ||
13256 | static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13257 | PyObject *resultobj; | |
13258 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13259 | int arg2 ; | |
13260 | int arg3 ; | |
13261 | wxString *arg4 = 0 ; | |
13262 | bool temp4 = False ; | |
13263 | PyObject * obj0 = 0 ; | |
13264 | PyObject * obj1 = 0 ; | |
13265 | PyObject * obj2 = 0 ; | |
13266 | PyObject * obj3 = 0 ; | |
13267 | char *kwnames[] = { | |
13268 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL | |
13269 | }; | |
13270 | ||
13271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13274 | arg2 = (int) SWIG_AsInt(obj1); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | arg3 = (int) SWIG_AsInt(obj2); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | { | |
13279 | arg4 = wxString_in_helper(obj3); | |
13280 | if (arg4 == NULL) SWIG_fail; | |
13281 | temp4 = True; | |
13282 | } | |
13283 | { | |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | Py_INCREF(Py_None); resultobj = Py_None; | |
13291 | { | |
13292 | if (temp4) | |
13293 | delete arg4; | |
13294 | } | |
13295 | return resultobj; | |
13296 | fail: | |
13297 | { | |
13298 | if (temp4) | |
13299 | delete arg4; | |
13300 | } | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj; | |
13307 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13308 | int arg2 ; | |
13309 | int arg3 ; | |
13310 | bool result; | |
13311 | PyObject * obj0 = 0 ; | |
13312 | PyObject * obj1 = 0 ; | |
13313 | PyObject * obj2 = 0 ; | |
13314 | char *kwnames[] = { | |
13315 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13316 | }; | |
13317 | ||
13318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13321 | arg2 = (int) SWIG_AsInt(obj1); | |
13322 | if (PyErr_Occurred()) SWIG_fail; | |
13323 | arg3 = (int) SWIG_AsInt(obj2); | |
13324 | if (PyErr_Occurred()) SWIG_fail; | |
13325 | { | |
13326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13327 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); | |
13328 | ||
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | { | |
13333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13334 | } | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj; | |
13343 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13344 | int arg2 ; | |
13345 | int arg3 ; | |
13346 | bool arg4 = (bool) True ; | |
13347 | PyObject * obj0 = 0 ; | |
13348 | PyObject * obj1 = 0 ; | |
13349 | PyObject * obj2 = 0 ; | |
13350 | PyObject * obj3 = 0 ; | |
13351 | char *kwnames[] = { | |
13352 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL | |
13353 | }; | |
13354 | ||
13355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13358 | arg2 = (int) SWIG_AsInt(obj1); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | arg3 = (int) SWIG_AsInt(obj2); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | if (obj3) { | |
13363 | arg4 = (bool) SWIG_AsBool(obj3); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | { | |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | (arg1)->SetReadOnly(arg2,arg3,arg4); | |
13369 | ||
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
13373 | Py_INCREF(Py_None); resultobj = Py_None; | |
13374 | return resultobj; | |
13375 | fail: | |
13376 | return NULL; | |
13377 | } | |
13378 | ||
13379 | ||
13380 | static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13381 | PyObject *resultobj; | |
13382 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13383 | int arg2 ; | |
13384 | bool arg3 = (bool) False ; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | PyObject * obj1 = 0 ; | |
13387 | PyObject * obj2 = 0 ; | |
13388 | char *kwnames[] = { | |
13389 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL | |
13390 | }; | |
13391 | ||
13392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13395 | arg2 = (int) SWIG_AsInt(obj1); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | if (obj2) { | |
13398 | arg3 = (bool) SWIG_AsBool(obj2); | |
13399 | if (PyErr_Occurred()) SWIG_fail; | |
13400 | } | |
13401 | { | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | (arg1)->SelectRow(arg2,arg3); | |
13404 | ||
13405 | wxPyEndAllowThreads(__tstate); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
13408 | Py_INCREF(Py_None); resultobj = Py_None; | |
13409 | return resultobj; | |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
13415 | static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13416 | PyObject *resultobj; | |
13417 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13418 | int arg2 ; | |
13419 | bool arg3 = (bool) False ; | |
13420 | PyObject * obj0 = 0 ; | |
13421 | PyObject * obj1 = 0 ; | |
13422 | PyObject * obj2 = 0 ; | |
13423 | char *kwnames[] = { | |
13424 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL | |
13425 | }; | |
13426 | ||
13427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13430 | arg2 = (int) SWIG_AsInt(obj1); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | if (obj2) { | |
13433 | arg3 = (bool) SWIG_AsBool(obj2); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | { | |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | (arg1)->SelectCol(arg2,arg3); | |
13439 | ||
13440 | wxPyEndAllowThreads(__tstate); | |
13441 | if (PyErr_Occurred()) SWIG_fail; | |
13442 | } | |
13443 | Py_INCREF(Py_None); resultobj = Py_None; | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | return NULL; | |
13447 | } | |
13448 | ||
13449 | ||
13450 | static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13451 | PyObject *resultobj; | |
13452 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13453 | int arg2 ; | |
13454 | int arg3 ; | |
13455 | int arg4 ; | |
13456 | int arg5 ; | |
13457 | bool arg6 = (bool) False ; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | PyObject * obj1 = 0 ; | |
13460 | PyObject * obj2 = 0 ; | |
13461 | PyObject * obj3 = 0 ; | |
13462 | PyObject * obj4 = 0 ; | |
13463 | PyObject * obj5 = 0 ; | |
13464 | char *kwnames[] = { | |
13465 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL | |
13466 | }; | |
13467 | ||
13468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13471 | arg2 = (int) SWIG_AsInt(obj1); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | arg3 = (int) SWIG_AsInt(obj2); | |
13474 | if (PyErr_Occurred()) SWIG_fail; | |
13475 | arg4 = (int) SWIG_AsInt(obj3); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | arg5 = (int) SWIG_AsInt(obj4); | |
13478 | if (PyErr_Occurred()) SWIG_fail; | |
13479 | if (obj5) { | |
13480 | arg6 = (bool) SWIG_AsBool(obj5); | |
13481 | if (PyErr_Occurred()) SWIG_fail; | |
13482 | } | |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); | |
13486 | ||
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | Py_INCREF(Py_None); resultobj = Py_None; | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
13497 | static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13498 | PyObject *resultobj; | |
13499 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13500 | PyObject * obj0 = 0 ; | |
13501 | char *kwnames[] = { | |
13502 | (char *) "self", NULL | |
13503 | }; | |
13504 | ||
13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; | |
13506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13508 | { | |
13509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13510 | (arg1)->SelectAll(); | |
13511 | ||
13512 | wxPyEndAllowThreads(__tstate); | |
13513 | if (PyErr_Occurred()) SWIG_fail; | |
13514 | } | |
13515 | Py_INCREF(Py_None); resultobj = Py_None; | |
13516 | return resultobj; | |
13517 | fail: | |
13518 | return NULL; | |
13519 | } | |
13520 | ||
13521 | ||
13522 | static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13523 | PyObject *resultobj; | |
13524 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13525 | bool result; | |
13526 | PyObject * obj0 = 0 ; | |
13527 | char *kwnames[] = { | |
13528 | (char *) "self", NULL | |
13529 | }; | |
13530 | ||
13531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; | |
13532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13534 | { | |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | result = (bool)(arg1)->IsSelection(); | |
13537 | ||
13538 | wxPyEndAllowThreads(__tstate); | |
13539 | if (PyErr_Occurred()) SWIG_fail; | |
13540 | } | |
13541 | { | |
13542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13543 | } | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | return NULL; | |
13547 | } | |
13548 | ||
13549 | ||
13550 | static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13551 | PyObject *resultobj; | |
13552 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13553 | PyObject * obj0 = 0 ; | |
13554 | char *kwnames[] = { | |
13555 | (char *) "self", NULL | |
13556 | }; | |
13557 | ||
13558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; | |
13559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | (arg1)->ClearSelection(); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | Py_INCREF(Py_None); resultobj = Py_None; | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | return NULL; | |
13572 | } | |
13573 | ||
13574 | ||
13575 | static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13576 | PyObject *resultobj; | |
13577 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13578 | int arg2 ; | |
13579 | int arg3 ; | |
13580 | bool result; | |
13581 | PyObject * obj0 = 0 ; | |
13582 | PyObject * obj1 = 0 ; | |
13583 | PyObject * obj2 = 0 ; | |
13584 | char *kwnames[] = { | |
13585 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13586 | }; | |
13587 | ||
13588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13591 | arg2 = (int) SWIG_AsInt(obj1); | |
13592 | if (PyErr_Occurred()) SWIG_fail; | |
13593 | arg3 = (int) SWIG_AsInt(obj2); | |
13594 | if (PyErr_Occurred()) SWIG_fail; | |
13595 | { | |
13596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13597 | result = (bool)(arg1)->IsInSelection(arg2,arg3); | |
13598 | ||
13599 | wxPyEndAllowThreads(__tstate); | |
13600 | if (PyErr_Occurred()) SWIG_fail; | |
13601 | } | |
13602 | { | |
13603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13604 | } | |
13605 | return resultobj; | |
13606 | fail: | |
13607 | return NULL; | |
13608 | } | |
13609 | ||
13610 | ||
13611 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13612 | PyObject *resultobj; | |
13613 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13614 | wxGridCellCoordsArray result; | |
13615 | PyObject * obj0 = 0 ; | |
13616 | char *kwnames[] = { | |
13617 | (char *) "self", NULL | |
13618 | }; | |
13619 | ||
13620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; | |
13621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13623 | { | |
13624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13625 | result = ((wxGrid const *)arg1)->GetSelectedCells(); | |
13626 | ||
13627 | wxPyEndAllowThreads(__tstate); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | { | |
13631 | resultobj = wxGridCellCoordsArray_helper(result); | |
13632 | } | |
13633 | return resultobj; | |
13634 | fail: | |
13635 | return NULL; | |
13636 | } | |
13637 | ||
13638 | ||
13639 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13640 | PyObject *resultobj; | |
13641 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13642 | wxGridCellCoordsArray result; | |
13643 | PyObject * obj0 = 0 ; | |
13644 | char *kwnames[] = { | |
13645 | (char *) "self", NULL | |
13646 | }; | |
13647 | ||
13648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; | |
13649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13651 | { | |
13652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13653 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); | |
13654 | ||
13655 | wxPyEndAllowThreads(__tstate); | |
13656 | if (PyErr_Occurred()) SWIG_fail; | |
13657 | } | |
13658 | { | |
13659 | resultobj = wxGridCellCoordsArray_helper(result); | |
13660 | } | |
13661 | return resultobj; | |
13662 | fail: | |
13663 | return NULL; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13668 | PyObject *resultobj; | |
13669 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13670 | wxGridCellCoordsArray result; | |
13671 | PyObject * obj0 = 0 ; | |
13672 | char *kwnames[] = { | |
13673 | (char *) "self", NULL | |
13674 | }; | |
13675 | ||
13676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; | |
13677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13679 | { | |
13680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13681 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); | |
13682 | ||
13683 | wxPyEndAllowThreads(__tstate); | |
13684 | if (PyErr_Occurred()) SWIG_fail; | |
13685 | } | |
13686 | { | |
13687 | resultobj = wxGridCellCoordsArray_helper(result); | |
13688 | } | |
13689 | return resultobj; | |
13690 | fail: | |
13691 | return NULL; | |
13692 | } | |
13693 | ||
13694 | ||
13695 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13696 | PyObject *resultobj; | |
13697 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13698 | wxArrayInt result; | |
13699 | PyObject * obj0 = 0 ; | |
13700 | char *kwnames[] = { | |
13701 | (char *) "self", NULL | |
13702 | }; | |
13703 | ||
13704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; | |
13705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = ((wxGrid const *)arg1)->GetSelectedRows(); | |
13710 | ||
13711 | wxPyEndAllowThreads(__tstate); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
13714 | { | |
13715 | resultobj = PyList_New(0); | |
13716 | size_t idx; | |
13717 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13718 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13719 | PyList_Append(resultobj, val); | |
13720 | Py_DECREF(val); | |
13721 | } | |
13722 | } | |
13723 | return resultobj; | |
13724 | fail: | |
13725 | return NULL; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13730 | PyObject *resultobj; | |
13731 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13732 | wxArrayInt result; | |
13733 | PyObject * obj0 = 0 ; | |
13734 | char *kwnames[] = { | |
13735 | (char *) "self", NULL | |
13736 | }; | |
13737 | ||
13738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; | |
13739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13741 | { | |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13743 | result = ((wxGrid const *)arg1)->GetSelectedCols(); | |
13744 | ||
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | { | |
13749 | resultobj = PyList_New(0); | |
13750 | size_t idx; | |
13751 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13752 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13753 | PyList_Append(resultobj, val); | |
13754 | Py_DECREF(val); | |
13755 | } | |
13756 | } | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | return NULL; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13764 | PyObject *resultobj; | |
13765 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13766 | int arg2 ; | |
13767 | PyObject * obj0 = 0 ; | |
13768 | PyObject * obj1 = 0 ; | |
13769 | char *kwnames[] = { | |
13770 | (char *) "self",(char *) "row", NULL | |
13771 | }; | |
13772 | ||
13773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; | |
13774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13776 | arg2 = (int) SWIG_AsInt(obj1); | |
13777 | if (PyErr_Occurred()) SWIG_fail; | |
13778 | { | |
13779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13780 | (arg1)->DeselectRow(arg2); | |
13781 | ||
13782 | wxPyEndAllowThreads(__tstate); | |
13783 | if (PyErr_Occurred()) SWIG_fail; | |
13784 | } | |
13785 | Py_INCREF(Py_None); resultobj = Py_None; | |
13786 | return resultobj; | |
13787 | fail: | |
13788 | return NULL; | |
13789 | } | |
13790 | ||
13791 | ||
13792 | static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13793 | PyObject *resultobj; | |
13794 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13795 | int arg2 ; | |
13796 | PyObject * obj0 = 0 ; | |
13797 | PyObject * obj1 = 0 ; | |
13798 | char *kwnames[] = { | |
13799 | (char *) "self",(char *) "col", NULL | |
13800 | }; | |
13801 | ||
13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; | |
13803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13805 | arg2 = (int) SWIG_AsInt(obj1); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | { | |
13808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13809 | (arg1)->DeselectCol(arg2); | |
13810 | ||
13811 | wxPyEndAllowThreads(__tstate); | |
13812 | if (PyErr_Occurred()) SWIG_fail; | |
13813 | } | |
13814 | Py_INCREF(Py_None); resultobj = Py_None; | |
13815 | return resultobj; | |
13816 | fail: | |
13817 | return NULL; | |
13818 | } | |
13819 | ||
13820 | ||
13821 | static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13822 | PyObject *resultobj; | |
13823 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13824 | int arg2 ; | |
13825 | int arg3 ; | |
13826 | PyObject * obj0 = 0 ; | |
13827 | PyObject * obj1 = 0 ; | |
13828 | PyObject * obj2 = 0 ; | |
13829 | char *kwnames[] = { | |
13830 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13831 | }; | |
13832 | ||
13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13836 | arg2 = (int) SWIG_AsInt(obj1); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | arg3 = (int) SWIG_AsInt(obj2); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | (arg1)->DeselectCell(arg2,arg3); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | Py_INCREF(Py_None); resultobj = Py_None; | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | return NULL; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13855 | PyObject *resultobj; | |
13856 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13857 | wxGridCellCoords *arg2 = 0 ; | |
13858 | wxGridCellCoords *arg3 = 0 ; | |
13859 | wxRect result; | |
13860 | wxGridCellCoords temp2 ; | |
13861 | wxGridCellCoords temp3 ; | |
13862 | PyObject * obj0 = 0 ; | |
13863 | PyObject * obj1 = 0 ; | |
13864 | PyObject * obj2 = 0 ; | |
13865 | char *kwnames[] = { | |
13866 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL | |
13867 | }; | |
13868 | ||
13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13872 | { | |
13873 | arg2 = &temp2; | |
13874 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
13875 | } | |
13876 | { | |
13877 | arg3 = &temp3; | |
13878 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; | |
13879 | } | |
13880 | { | |
13881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13882 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); | |
13883 | ||
13884 | wxPyEndAllowThreads(__tstate); | |
13885 | if (PyErr_Occurred()) SWIG_fail; | |
13886 | } | |
13887 | { | |
13888 | wxRect * resultptr; | |
13889 | resultptr = new wxRect((wxRect &) result); | |
13890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13891 | } | |
13892 | return resultobj; | |
13893 | fail: | |
13894 | return NULL; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13899 | PyObject *resultobj; | |
13900 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13901 | wxColour result; | |
13902 | PyObject * obj0 = 0 ; | |
13903 | char *kwnames[] = { | |
13904 | (char *) "self", NULL | |
13905 | }; | |
13906 | ||
13907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
13908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13910 | { | |
13911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13912 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); | |
13913 | ||
13914 | wxPyEndAllowThreads(__tstate); | |
13915 | if (PyErr_Occurred()) SWIG_fail; | |
13916 | } | |
13917 | { | |
13918 | wxColour * resultptr; | |
13919 | resultptr = new wxColour((wxColour &) result); | |
13920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13921 | } | |
13922 | return resultobj; | |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj; | |
13930 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13931 | wxColour result; | |
13932 | PyObject * obj0 = 0 ; | |
13933 | char *kwnames[] = { | |
13934 | (char *) "self", NULL | |
13935 | }; | |
13936 | ||
13937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; | |
13938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13940 | { | |
13941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13942 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); | |
13943 | ||
13944 | wxPyEndAllowThreads(__tstate); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | } | |
13947 | { | |
13948 | wxColour * resultptr; | |
13949 | resultptr = new wxColour((wxColour &) result); | |
13950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13951 | } | |
13952 | return resultobj; | |
13953 | fail: | |
13954 | return NULL; | |
13955 | } | |
13956 | ||
13957 | ||
13958 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13959 | PyObject *resultobj; | |
13960 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13961 | wxColour *arg2 = 0 ; | |
13962 | wxColour temp2 ; | |
13963 | PyObject * obj0 = 0 ; | |
13964 | PyObject * obj1 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self",(char *) "c", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
13970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13972 | { | |
13973 | arg2 = &temp2; | |
13974 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13975 | } | |
13976 | { | |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13978 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
13979 | ||
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | Py_INCREF(Py_None); resultobj = Py_None; | |
13984 | return resultobj; | |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13991 | PyObject *resultobj; | |
13992 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13993 | wxColour *arg2 = 0 ; | |
13994 | wxColour temp2 ; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | PyObject * obj1 = 0 ; | |
13997 | char *kwnames[] = { | |
13998 | (char *) "self",(char *) "c", NULL | |
13999 | }; | |
14000 | ||
14001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; | |
14002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14004 | { | |
14005 | arg2 = &temp2; | |
14006 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14007 | } | |
14008 | { | |
14009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14010 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); | |
14011 | ||
14012 | wxPyEndAllowThreads(__tstate); | |
14013 | if (PyErr_Occurred()) SWIG_fail; | |
14014 | } | |
14015 | Py_INCREF(Py_None); resultobj = Py_None; | |
14016 | return resultobj; | |
14017 | fail: | |
14018 | return NULL; | |
14019 | } | |
14020 | ||
14021 | ||
14022 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14023 | PyObject *resultobj; | |
14024 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14025 | wxString *arg2 = 0 ; | |
14026 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; | |
14027 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
14028 | bool temp2 = False ; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | PyObject * obj1 = 0 ; | |
14031 | PyObject * obj2 = 0 ; | |
14032 | PyObject * obj3 = 0 ; | |
14033 | char *kwnames[] = { | |
14034 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL | |
14035 | }; | |
14036 | ||
14037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14040 | { | |
14041 | arg2 = wxString_in_helper(obj1); | |
14042 | if (arg2 == NULL) SWIG_fail; | |
14043 | temp2 = True; | |
14044 | } | |
14045 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer, | |
14046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14047 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
14048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14049 | { | |
14050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14051 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); | |
14052 | ||
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | Py_INCREF(Py_None); resultobj = Py_None; | |
14057 | { | |
14058 | if (temp2) | |
14059 | delete arg2; | |
14060 | } | |
14061 | return resultobj; | |
14062 | fail: | |
14063 | { | |
14064 | if (temp2) | |
14065 | delete arg2; | |
14066 | } | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14074 | int arg2 ; | |
14075 | int arg3 ; | |
14076 | wxGridCellEditor *result; | |
14077 | PyObject * obj0 = 0 ; | |
14078 | PyObject * obj1 = 0 ; | |
14079 | PyObject * obj2 = 0 ; | |
14080 | char *kwnames[] = { | |
14081 | (char *) "self",(char *) "row",(char *) "col", NULL | |
14082 | }; | |
14083 | ||
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14087 | arg2 = (int) SWIG_AsInt(obj1); | |
14088 | if (PyErr_Occurred()) SWIG_fail; | |
14089 | arg3 = (int) SWIG_AsInt(obj2); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | { | |
14092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14093 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | { | |
14099 | resultobj = wxPyMake_wxGridCellEditor(result); | |
14100 | } | |
14101 | return resultobj; | |
14102 | fail: | |
14103 | return NULL; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14108 | PyObject *resultobj; | |
14109 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14110 | int arg2 ; | |
14111 | int arg3 ; | |
14112 | wxGridCellRenderer *result; | |
14113 | PyObject * obj0 = 0 ; | |
14114 | PyObject * obj1 = 0 ; | |
14115 | PyObject * obj2 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self",(char *) "row",(char *) "col", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14123 | arg2 = (int) SWIG_AsInt(obj1); | |
14124 | if (PyErr_Occurred()) SWIG_fail; | |
14125 | arg3 = (int) SWIG_AsInt(obj2); | |
14126 | if (PyErr_Occurred()) SWIG_fail; | |
14127 | { | |
14128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14129 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); | |
14130 | ||
14131 | wxPyEndAllowThreads(__tstate); | |
14132 | if (PyErr_Occurred()) SWIG_fail; | |
14133 | } | |
14134 | { | |
14135 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14136 | } | |
14137 | return resultobj; | |
14138 | fail: | |
14139 | return NULL; | |
14140 | } | |
14141 | ||
14142 | ||
14143 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14144 | PyObject *resultobj; | |
14145 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14146 | wxString *arg2 = 0 ; | |
14147 | wxGridCellEditor *result; | |
14148 | bool temp2 = False ; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | PyObject * obj1 = 0 ; | |
14151 | char *kwnames[] = { | |
14152 | (char *) "self",(char *) "typeName", NULL | |
14153 | }; | |
14154 | ||
14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; | |
14156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14158 | { | |
14159 | arg2 = wxString_in_helper(obj1); | |
14160 | if (arg2 == NULL) SWIG_fail; | |
14161 | temp2 = True; | |
14162 | } | |
14163 | { | |
14164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14165 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); | |
14166 | ||
14167 | wxPyEndAllowThreads(__tstate); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | } | |
14170 | { | |
14171 | resultobj = wxPyMake_wxGridCellEditor(result); | |
14172 | } | |
14173 | { | |
14174 | if (temp2) | |
14175 | delete arg2; | |
14176 | } | |
14177 | return resultobj; | |
14178 | fail: | |
14179 | { | |
14180 | if (temp2) | |
14181 | delete arg2; | |
14182 | } | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14188 | PyObject *resultobj; | |
14189 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14190 | wxString *arg2 = 0 ; | |
14191 | wxGridCellRenderer *result; | |
14192 | bool temp2 = False ; | |
14193 | PyObject * obj0 = 0 ; | |
14194 | PyObject * obj1 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self",(char *) "typeName", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; | |
14200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14202 | { | |
14203 | arg2 = wxString_in_helper(obj1); | |
14204 | if (arg2 == NULL) SWIG_fail; | |
14205 | temp2 = True; | |
14206 | } | |
14207 | { | |
14208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14209 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); | |
14210 | ||
14211 | wxPyEndAllowThreads(__tstate); | |
14212 | if (PyErr_Occurred()) SWIG_fail; | |
14213 | } | |
14214 | { | |
14215 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14216 | } | |
14217 | { | |
14218 | if (temp2) | |
14219 | delete arg2; | |
14220 | } | |
14221 | return resultobj; | |
14222 | fail: | |
14223 | { | |
14224 | if (temp2) | |
14225 | delete arg2; | |
14226 | } | |
14227 | return NULL; | |
14228 | } | |
14229 | ||
14230 | ||
14231 | static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14232 | PyObject *resultobj; | |
14233 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14234 | int arg2 ; | |
14235 | int arg3 ; | |
14236 | PyObject * obj0 = 0 ; | |
14237 | PyObject * obj1 = 0 ; | |
14238 | PyObject * obj2 = 0 ; | |
14239 | char *kwnames[] = { | |
14240 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL | |
14241 | }; | |
14242 | ||
14243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14246 | arg2 = (int) SWIG_AsInt(obj1); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | arg3 = (int) SWIG_AsInt(obj2); | |
14249 | if (PyErr_Occurred()) SWIG_fail; | |
14250 | { | |
14251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14252 | (arg1)->SetMargins(arg2,arg3); | |
14253 | ||
14254 | wxPyEndAllowThreads(__tstate); | |
14255 | if (PyErr_Occurred()) SWIG_fail; | |
14256 | } | |
14257 | Py_INCREF(Py_None); resultobj = Py_None; | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | return NULL; | |
14261 | } | |
14262 | ||
14263 | ||
14264 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14265 | PyObject *resultobj; | |
14266 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14267 | wxWindow *result; | |
14268 | PyObject * obj0 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; | |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | { | |
14277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14278 | result = (wxWindow *)(arg1)->GetGridWindow(); | |
14279 | ||
14280 | wxPyEndAllowThreads(__tstate); | |
14281 | if (PyErr_Occurred()) SWIG_fail; | |
14282 | } | |
14283 | { | |
14284 | resultobj = wxPyMake_wxObject(result); | |
14285 | } | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14295 | wxWindow *result; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "self", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); | |
14307 | ||
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
14312 | resultobj = wxPyMake_wxObject(result); | |
14313 | } | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
14320 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14321 | PyObject *resultobj; | |
14322 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14323 | wxWindow *result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; | |
14330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | { | |
14340 | resultobj = wxPyMake_wxObject(result); | |
14341 | } | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14351 | wxWindow *result; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; | |
14358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14360 | { | |
14361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14362 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); | |
14363 | ||
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
14367 | { | |
14368 | resultobj = wxPyMake_wxObject(result); | |
14369 | } | |
14370 | return resultobj; | |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
14376 | static PyObject *_wrap_Grid_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14377 | PyObject *resultobj; | |
14378 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14379 | wxVisualAttributes result; | |
14380 | PyObject * obj0 = 0 ; | |
14381 | char *kwnames[] = { | |
14382 | (char *) "variant", NULL | |
14383 | }; | |
14384 | ||
14385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Grid_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14386 | if (obj0) { | |
14387 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14388 | if (PyErr_Occurred()) SWIG_fail; | |
14389 | } | |
14390 | { | |
14391 | if (!wxPyCheckForApp()) SWIG_fail; | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = wxGrid::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
14398 | { | |
14399 | wxVisualAttributes * resultptr; | |
14400 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14402 | } | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject * Grid_swigregister(PyObject *self, PyObject *args) { | |
14410 | PyObject *obj; | |
14411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14412 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); | |
14413 | Py_INCREF(obj); | |
14414 | return Py_BuildValue((char *)""); | |
14415 | } | |
14416 | static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14417 | PyObject *resultobj; | |
14418 | int arg1 ; | |
14419 | wxEventType arg2 ; | |
14420 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14421 | int arg4 = (int) -1 ; | |
14422 | int arg5 = (int) -1 ; | |
14423 | int arg6 = (int) -1 ; | |
14424 | int arg7 = (int) -1 ; | |
14425 | bool arg8 = (bool) True ; | |
14426 | bool arg9 = (bool) False ; | |
14427 | bool arg10 = (bool) False ; | |
14428 | bool arg11 = (bool) False ; | |
14429 | bool arg12 = (bool) False ; | |
14430 | wxGridEvent *result; | |
14431 | PyObject * obj0 = 0 ; | |
14432 | PyObject * obj1 = 0 ; | |
14433 | PyObject * obj2 = 0 ; | |
14434 | PyObject * obj3 = 0 ; | |
14435 | PyObject * obj4 = 0 ; | |
14436 | PyObject * obj5 = 0 ; | |
14437 | PyObject * obj6 = 0 ; | |
14438 | PyObject * obj7 = 0 ; | |
14439 | PyObject * obj8 = 0 ; | |
14440 | PyObject * obj9 = 0 ; | |
14441 | PyObject * obj10 = 0 ; | |
14442 | PyObject * obj11 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (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 | |
14445 | }; | |
14446 | ||
14447 | 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; | |
14448 | arg1 = (int) SWIG_AsInt(obj0); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14454 | if (obj3) { | |
14455 | arg4 = (int) SWIG_AsInt(obj3); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | if (obj4) { | |
14459 | arg5 = (int) SWIG_AsInt(obj4); | |
14460 | if (PyErr_Occurred()) SWIG_fail; | |
14461 | } | |
14462 | if (obj5) { | |
14463 | arg6 = (int) SWIG_AsInt(obj5); | |
14464 | if (PyErr_Occurred()) SWIG_fail; | |
14465 | } | |
14466 | if (obj6) { | |
14467 | arg7 = (int) SWIG_AsInt(obj6); | |
14468 | if (PyErr_Occurred()) SWIG_fail; | |
14469 | } | |
14470 | if (obj7) { | |
14471 | arg8 = (bool) SWIG_AsBool(obj7); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | if (obj8) { | |
14475 | arg9 = (bool) SWIG_AsBool(obj8); | |
14476 | if (PyErr_Occurred()) SWIG_fail; | |
14477 | } | |
14478 | if (obj9) { | |
14479 | arg10 = (bool) SWIG_AsBool(obj9); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | if (obj10) { | |
14483 | arg11 = (bool) SWIG_AsBool(obj10); | |
14484 | if (PyErr_Occurred()) SWIG_fail; | |
14485 | } | |
14486 | if (obj11) { | |
14487 | arg12 = (bool) SWIG_AsBool(obj11); | |
14488 | if (PyErr_Occurred()) SWIG_fail; | |
14489 | } | |
14490 | { | |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14492 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1); | |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
14504 | static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14505 | PyObject *resultobj; | |
14506 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14507 | int result; | |
14508 | PyObject * obj0 = 0 ; | |
14509 | char *kwnames[] = { | |
14510 | (char *) "self", NULL | |
14511 | }; | |
14512 | ||
14513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; | |
14514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14516 | { | |
14517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14518 | result = (int)(arg1)->GetRow(); | |
14519 | ||
14520 | wxPyEndAllowThreads(__tstate); | |
14521 | if (PyErr_Occurred()) SWIG_fail; | |
14522 | } | |
14523 | resultobj = SWIG_FromInt((int)result); | |
14524 | return resultobj; | |
14525 | fail: | |
14526 | return NULL; | |
14527 | } | |
14528 | ||
14529 | ||
14530 | static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14531 | PyObject *resultobj; | |
14532 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14533 | int result; | |
14534 | PyObject * obj0 = 0 ; | |
14535 | char *kwnames[] = { | |
14536 | (char *) "self", NULL | |
14537 | }; | |
14538 | ||
14539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; | |
14540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14542 | { | |
14543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14544 | result = (int)(arg1)->GetCol(); | |
14545 | ||
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = SWIG_FromInt((int)result); | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj; | |
14558 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14559 | wxPoint result; | |
14560 | PyObject * obj0 = 0 ; | |
14561 | char *kwnames[] = { | |
14562 | (char *) "self", NULL | |
14563 | }; | |
14564 | ||
14565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14568 | { | |
14569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14570 | result = (arg1)->GetPosition(); | |
14571 | ||
14572 | wxPyEndAllowThreads(__tstate); | |
14573 | if (PyErr_Occurred()) SWIG_fail; | |
14574 | } | |
14575 | { | |
14576 | wxPoint * resultptr; | |
14577 | resultptr = new wxPoint((wxPoint &) result); | |
14578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14579 | } | |
14580 | return resultobj; | |
14581 | fail: | |
14582 | return NULL; | |
14583 | } | |
14584 | ||
14585 | ||
14586 | static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14587 | PyObject *resultobj; | |
14588 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14589 | bool result; | |
14590 | PyObject * obj0 = 0 ; | |
14591 | char *kwnames[] = { | |
14592 | (char *) "self", NULL | |
14593 | }; | |
14594 | ||
14595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; | |
14596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14598 | { | |
14599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14600 | result = (bool)(arg1)->Selecting(); | |
14601 | ||
14602 | wxPyEndAllowThreads(__tstate); | |
14603 | if (PyErr_Occurred()) SWIG_fail; | |
14604 | } | |
14605 | { | |
14606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14607 | } | |
14608 | return resultobj; | |
14609 | fail: | |
14610 | return NULL; | |
14611 | } | |
14612 | ||
14613 | ||
14614 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14615 | PyObject *resultobj; | |
14616 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14617 | bool result; | |
14618 | PyObject * obj0 = 0 ; | |
14619 | char *kwnames[] = { | |
14620 | (char *) "self", NULL | |
14621 | }; | |
14622 | ||
14623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14626 | { | |
14627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14628 | result = (bool)(arg1)->ControlDown(); | |
14629 | ||
14630 | wxPyEndAllowThreads(__tstate); | |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
14632 | } | |
14633 | { | |
14634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14635 | } | |
14636 | return resultobj; | |
14637 | fail: | |
14638 | return NULL; | |
14639 | } | |
14640 | ||
14641 | ||
14642 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14643 | PyObject *resultobj; | |
14644 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14645 | bool result; | |
14646 | PyObject * obj0 = 0 ; | |
14647 | char *kwnames[] = { | |
14648 | (char *) "self", NULL | |
14649 | }; | |
14650 | ||
14651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14654 | { | |
14655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14656 | result = (bool)(arg1)->MetaDown(); | |
14657 | ||
14658 | wxPyEndAllowThreads(__tstate); | |
14659 | if (PyErr_Occurred()) SWIG_fail; | |
14660 | } | |
14661 | { | |
14662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14663 | } | |
14664 | return resultobj; | |
14665 | fail: | |
14666 | return NULL; | |
14667 | } | |
14668 | ||
14669 | ||
14670 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14671 | PyObject *resultobj; | |
14672 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14673 | bool result; | |
14674 | PyObject * obj0 = 0 ; | |
14675 | char *kwnames[] = { | |
14676 | (char *) "self", NULL | |
14677 | }; | |
14678 | ||
14679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14682 | { | |
14683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14684 | result = (bool)(arg1)->ShiftDown(); | |
14685 | ||
14686 | wxPyEndAllowThreads(__tstate); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
14689 | { | |
14690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14691 | } | |
14692 | return resultobj; | |
14693 | fail: | |
14694 | return NULL; | |
14695 | } | |
14696 | ||
14697 | ||
14698 | static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14699 | PyObject *resultobj; | |
14700 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14701 | bool result; | |
14702 | PyObject * obj0 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, | |
14709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14710 | { | |
14711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14712 | result = (bool)(arg1)->AltDown(); | |
14713 | ||
14714 | wxPyEndAllowThreads(__tstate); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
14716 | } | |
14717 | { | |
14718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14719 | } | |
14720 | return resultobj; | |
14721 | fail: | |
14722 | return NULL; | |
14723 | } | |
14724 | ||
14725 | ||
14726 | static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) { | |
14727 | PyObject *obj; | |
14728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14729 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); | |
14730 | Py_INCREF(obj); | |
14731 | return Py_BuildValue((char *)""); | |
14732 | } | |
14733 | static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14734 | PyObject *resultobj; | |
14735 | int arg1 ; | |
14736 | wxEventType arg2 ; | |
14737 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14738 | int arg4 = (int) -1 ; | |
14739 | int arg5 = (int) -1 ; | |
14740 | int arg6 = (int) -1 ; | |
14741 | bool arg7 = (bool) False ; | |
14742 | bool arg8 = (bool) False ; | |
14743 | bool arg9 = (bool) False ; | |
14744 | bool arg10 = (bool) False ; | |
14745 | wxGridSizeEvent *result; | |
14746 | PyObject * obj0 = 0 ; | |
14747 | PyObject * obj1 = 0 ; | |
14748 | PyObject * obj2 = 0 ; | |
14749 | PyObject * obj3 = 0 ; | |
14750 | PyObject * obj4 = 0 ; | |
14751 | PyObject * obj5 = 0 ; | |
14752 | PyObject * obj6 = 0 ; | |
14753 | PyObject * obj7 = 0 ; | |
14754 | PyObject * obj8 = 0 ; | |
14755 | PyObject * obj9 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
14761 | arg1 = (int) SWIG_AsInt(obj0); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
14765 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14767 | if (obj3) { | |
14768 | arg4 = (int) SWIG_AsInt(obj3); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
14771 | if (obj4) { | |
14772 | arg5 = (int) SWIG_AsInt(obj4); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | if (obj5) { | |
14776 | arg6 = (int) SWIG_AsInt(obj5); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | if (obj6) { | |
14780 | arg7 = (bool) SWIG_AsBool(obj6); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | if (obj7) { | |
14784 | arg8 = (bool) SWIG_AsBool(obj7); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | } | |
14787 | if (obj8) { | |
14788 | arg9 = (bool) SWIG_AsBool(obj8); | |
14789 | if (PyErr_Occurred()) SWIG_fail; | |
14790 | } | |
14791 | if (obj9) { | |
14792 | arg10 = (bool) SWIG_AsBool(obj9); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | } | |
14795 | { | |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14797 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
14798 | ||
14799 | wxPyEndAllowThreads(__tstate); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1); | |
14803 | return resultobj; | |
14804 | fail: | |
14805 | return NULL; | |
14806 | } | |
14807 | ||
14808 | ||
14809 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14810 | PyObject *resultobj; | |
14811 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14812 | int result; | |
14813 | PyObject * obj0 = 0 ; | |
14814 | char *kwnames[] = { | |
14815 | (char *) "self", NULL | |
14816 | }; | |
14817 | ||
14818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; | |
14819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14821 | { | |
14822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14823 | result = (int)(arg1)->GetRowOrCol(); | |
14824 | ||
14825 | wxPyEndAllowThreads(__tstate); | |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
14827 | } | |
14828 | resultobj = SWIG_FromInt((int)result); | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
14835 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14836 | PyObject *resultobj; | |
14837 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14838 | wxPoint result; | |
14839 | PyObject * obj0 = 0 ; | |
14840 | char *kwnames[] = { | |
14841 | (char *) "self", NULL | |
14842 | }; | |
14843 | ||
14844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14847 | { | |
14848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14849 | result = (arg1)->GetPosition(); | |
14850 | ||
14851 | wxPyEndAllowThreads(__tstate); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
14853 | } | |
14854 | { | |
14855 | wxPoint * resultptr; | |
14856 | resultptr = new wxPoint((wxPoint &) result); | |
14857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14858 | } | |
14859 | return resultobj; | |
14860 | fail: | |
14861 | return NULL; | |
14862 | } | |
14863 | ||
14864 | ||
14865 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14866 | PyObject *resultobj; | |
14867 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14868 | bool result; | |
14869 | PyObject * obj0 = 0 ; | |
14870 | char *kwnames[] = { | |
14871 | (char *) "self", NULL | |
14872 | }; | |
14873 | ||
14874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14877 | { | |
14878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14879 | result = (bool)(arg1)->ControlDown(); | |
14880 | ||
14881 | wxPyEndAllowThreads(__tstate); | |
14882 | if (PyErr_Occurred()) SWIG_fail; | |
14883 | } | |
14884 | { | |
14885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14886 | } | |
14887 | return resultobj; | |
14888 | fail: | |
14889 | return NULL; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14894 | PyObject *resultobj; | |
14895 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14896 | bool result; | |
14897 | PyObject * obj0 = 0 ; | |
14898 | char *kwnames[] = { | |
14899 | (char *) "self", NULL | |
14900 | }; | |
14901 | ||
14902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14907 | result = (bool)(arg1)->MetaDown(); | |
14908 | ||
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
14912 | { | |
14913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14914 | } | |
14915 | return resultobj; | |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14922 | PyObject *resultobj; | |
14923 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14924 | bool result; | |
14925 | PyObject * obj0 = 0 ; | |
14926 | char *kwnames[] = { | |
14927 | (char *) "self", NULL | |
14928 | }; | |
14929 | ||
14930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14933 | { | |
14934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14935 | result = (bool)(arg1)->ShiftDown(); | |
14936 | ||
14937 | wxPyEndAllowThreads(__tstate); | |
14938 | if (PyErr_Occurred()) SWIG_fail; | |
14939 | } | |
14940 | { | |
14941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14942 | } | |
14943 | return resultobj; | |
14944 | fail: | |
14945 | return NULL; | |
14946 | } | |
14947 | ||
14948 | ||
14949 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14950 | PyObject *resultobj; | |
14951 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14952 | bool result; | |
14953 | PyObject * obj0 = 0 ; | |
14954 | char *kwnames[] = { | |
14955 | (char *) "self", NULL | |
14956 | }; | |
14957 | ||
14958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; | |
14959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, | |
14960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14961 | { | |
14962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14963 | result = (bool)(arg1)->AltDown(); | |
14964 | ||
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
14968 | { | |
14969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14970 | } | |
14971 | return resultobj; | |
14972 | fail: | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
14977 | static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14978 | PyObject *obj; | |
14979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14980 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); | |
14981 | Py_INCREF(obj); | |
14982 | return Py_BuildValue((char *)""); | |
14983 | } | |
14984 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14985 | PyObject *resultobj; | |
14986 | int arg1 ; | |
14987 | wxEventType arg2 ; | |
14988 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14989 | wxGridCellCoords *arg4 = 0 ; | |
14990 | wxGridCellCoords *arg5 = 0 ; | |
14991 | bool arg6 = (bool) True ; | |
14992 | bool arg7 = (bool) False ; | |
14993 | bool arg8 = (bool) False ; | |
14994 | bool arg9 = (bool) False ; | |
14995 | bool arg10 = (bool) False ; | |
14996 | wxGridRangeSelectEvent *result; | |
14997 | wxGridCellCoords temp4 ; | |
14998 | wxGridCellCoords temp5 ; | |
14999 | PyObject * obj0 = 0 ; | |
15000 | PyObject * obj1 = 0 ; | |
15001 | PyObject * obj2 = 0 ; | |
15002 | PyObject * obj3 = 0 ; | |
15003 | PyObject * obj4 = 0 ; | |
15004 | PyObject * obj5 = 0 ; | |
15005 | PyObject * obj6 = 0 ; | |
15006 | PyObject * obj7 = 0 ; | |
15007 | PyObject * obj8 = 0 ; | |
15008 | PyObject * obj9 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
15014 | arg1 = (int) SWIG_AsInt(obj0); | |
15015 | if (PyErr_Occurred()) SWIG_fail; | |
15016 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
15019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15020 | { | |
15021 | arg4 = &temp4; | |
15022 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; | |
15023 | } | |
15024 | { | |
15025 | arg5 = &temp5; | |
15026 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; | |
15027 | } | |
15028 | if (obj5) { | |
15029 | arg6 = (bool) SWIG_AsBool(obj5); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | } | |
15032 | if (obj6) { | |
15033 | arg7 = (bool) SWIG_AsBool(obj6); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | if (obj7) { | |
15037 | arg8 = (bool) SWIG_AsBool(obj7); | |
15038 | if (PyErr_Occurred()) SWIG_fail; | |
15039 | } | |
15040 | if (obj8) { | |
15041 | arg9 = (bool) SWIG_AsBool(obj8); | |
15042 | if (PyErr_Occurred()) SWIG_fail; | |
15043 | } | |
15044 | if (obj9) { | |
15045 | arg10 = (bool) SWIG_AsBool(obj9); | |
15046 | if (PyErr_Occurred()) SWIG_fail; | |
15047 | } | |
15048 | { | |
15049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15050 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); | |
15051 | ||
15052 | wxPyEndAllowThreads(__tstate); | |
15053 | if (PyErr_Occurred()) SWIG_fail; | |
15054 | } | |
15055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1); | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | return NULL; | |
15059 | } | |
15060 | ||
15061 | ||
15062 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15063 | PyObject *resultobj; | |
15064 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15065 | wxGridCellCoords result; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | result = (arg1)->GetTopLeftCoords(); | |
15077 | ||
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | { | |
15082 | wxGridCellCoords * resultptr; | |
15083 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
15084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); | |
15085 | } | |
15086 | return resultobj; | |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
15092 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15095 | wxGridCellCoords result; | |
15096 | PyObject * obj0 = 0 ; | |
15097 | char *kwnames[] = { | |
15098 | (char *) "self", NULL | |
15099 | }; | |
15100 | ||
15101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; | |
15102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | result = (arg1)->GetBottomRightCoords(); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | { | |
15112 | wxGridCellCoords * resultptr; | |
15113 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
15114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); | |
15115 | } | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
15122 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15123 | PyObject *resultobj; | |
15124 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15125 | int result; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (int)(arg1)->GetTopRow(); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
15140 | } | |
15141 | resultobj = SWIG_FromInt((int)result); | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
15148 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15151 | int result; | |
15152 | PyObject * obj0 = 0 ; | |
15153 | char *kwnames[] = { | |
15154 | (char *) "self", NULL | |
15155 | }; | |
15156 | ||
15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; | |
15158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | result = (int)(arg1)->GetBottomRow(); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
15167 | resultobj = SWIG_FromInt((int)result); | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | return NULL; | |
15171 | } | |
15172 | ||
15173 | ||
15174 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15175 | PyObject *resultobj; | |
15176 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15177 | int result; | |
15178 | PyObject * obj0 = 0 ; | |
15179 | char *kwnames[] = { | |
15180 | (char *) "self", NULL | |
15181 | }; | |
15182 | ||
15183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; | |
15184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15186 | { | |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | result = (int)(arg1)->GetLeftCol(); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
15193 | resultobj = SWIG_FromInt((int)result); | |
15194 | return resultobj; | |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
15200 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15201 | PyObject *resultobj; | |
15202 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15203 | int result; | |
15204 | PyObject * obj0 = 0 ; | |
15205 | char *kwnames[] = { | |
15206 | (char *) "self", NULL | |
15207 | }; | |
15208 | ||
15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; | |
15210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15212 | { | |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15214 | result = (int)(arg1)->GetRightCol(); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
15217 | if (PyErr_Occurred()) SWIG_fail; | |
15218 | } | |
15219 | resultobj = SWIG_FromInt((int)result); | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
15226 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15227 | PyObject *resultobj; | |
15228 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15229 | bool result; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | char *kwnames[] = { | |
15232 | (char *) "self", NULL | |
15233 | }; | |
15234 | ||
15235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; | |
15236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | result = (bool)(arg1)->Selecting(); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
15245 | { | |
15246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15247 | } | |
15248 | return resultobj; | |
15249 | fail: | |
15250 | return NULL; | |
15251 | } | |
15252 | ||
15253 | ||
15254 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15255 | PyObject *resultobj; | |
15256 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15257 | bool result; | |
15258 | PyObject * obj0 = 0 ; | |
15259 | char *kwnames[] = { | |
15260 | (char *) "self", NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (bool)(arg1)->ControlDown(); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | { | |
15274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15275 | } | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15285 | bool result; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | char *kwnames[] = { | |
15288 | (char *) "self", NULL | |
15289 | }; | |
15290 | ||
15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | result = (bool)(arg1)->MetaDown(); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | { | |
15302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15303 | } | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | return NULL; | |
15307 | } | |
15308 | ||
15309 | ||
15310 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15311 | PyObject *resultobj; | |
15312 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15313 | bool result; | |
15314 | PyObject * obj0 = 0 ; | |
15315 | char *kwnames[] = { | |
15316 | (char *) "self", NULL | |
15317 | }; | |
15318 | ||
15319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | result = (bool)(arg1)->ShiftDown(); | |
15325 | ||
15326 | wxPyEndAllowThreads(__tstate); | |
15327 | if (PyErr_Occurred()) SWIG_fail; | |
15328 | } | |
15329 | { | |
15330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15331 | } | |
15332 | return resultobj; | |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
15338 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15339 | PyObject *resultobj; | |
15340 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15341 | bool result; | |
15342 | PyObject * obj0 = 0 ; | |
15343 | char *kwnames[] = { | |
15344 | (char *) "self", NULL | |
15345 | }; | |
15346 | ||
15347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; | |
15348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, | |
15349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15350 | { | |
15351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15352 | result = (bool)(arg1)->AltDown(); | |
15353 | ||
15354 | wxPyEndAllowThreads(__tstate); | |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
15356 | } | |
15357 | { | |
15358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15359 | } | |
15360 | return resultobj; | |
15361 | fail: | |
15362 | return NULL; | |
15363 | } | |
15364 | ||
15365 | ||
15366 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) { | |
15367 | PyObject *obj; | |
15368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15369 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); | |
15370 | Py_INCREF(obj); | |
15371 | return Py_BuildValue((char *)""); | |
15372 | } | |
15373 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15374 | PyObject *resultobj; | |
15375 | int arg1 ; | |
15376 | wxEventType arg2 ; | |
15377 | wxObject *arg3 = (wxObject *) 0 ; | |
15378 | int arg4 ; | |
15379 | int arg5 ; | |
15380 | wxControl *arg6 = (wxControl *) 0 ; | |
15381 | wxGridEditorCreatedEvent *result; | |
15382 | PyObject * obj0 = 0 ; | |
15383 | PyObject * obj1 = 0 ; | |
15384 | PyObject * obj2 = 0 ; | |
15385 | PyObject * obj3 = 0 ; | |
15386 | PyObject * obj4 = 0 ; | |
15387 | PyObject * obj5 = 0 ; | |
15388 | char *kwnames[] = { | |
15389 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL | |
15390 | }; | |
15391 | ||
15392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15393 | arg1 = (int) SWIG_AsInt(obj0); | |
15394 | if (PyErr_Occurred()) SWIG_fail; | |
15395 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
15396 | if (PyErr_Occurred()) SWIG_fail; | |
15397 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
15398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15399 | arg4 = (int) SWIG_AsInt(obj3); | |
15400 | if (PyErr_Occurred()) SWIG_fail; | |
15401 | arg5 = (int) SWIG_AsInt(obj4); | |
15402 | if (PyErr_Occurred()) SWIG_fail; | |
15403 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl, | |
15404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15405 | { | |
15406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15407 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); | |
15408 | ||
15409 | wxPyEndAllowThreads(__tstate); | |
15410 | if (PyErr_Occurred()) SWIG_fail; | |
15411 | } | |
15412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1); | |
15413 | return resultobj; | |
15414 | fail: | |
15415 | return NULL; | |
15416 | } | |
15417 | ||
15418 | ||
15419 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj; | |
15421 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15422 | int result; | |
15423 | PyObject * obj0 = 0 ; | |
15424 | char *kwnames[] = { | |
15425 | (char *) "self", NULL | |
15426 | }; | |
15427 | ||
15428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; | |
15429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | result = (int)(arg1)->GetRow(); | |
15434 | ||
15435 | wxPyEndAllowThreads(__tstate); | |
15436 | if (PyErr_Occurred()) SWIG_fail; | |
15437 | } | |
15438 | resultobj = SWIG_FromInt((int)result); | |
15439 | return resultobj; | |
15440 | fail: | |
15441 | return NULL; | |
15442 | } | |
15443 | ||
15444 | ||
15445 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15446 | PyObject *resultobj; | |
15447 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15448 | int result; | |
15449 | PyObject * obj0 = 0 ; | |
15450 | char *kwnames[] = { | |
15451 | (char *) "self", NULL | |
15452 | }; | |
15453 | ||
15454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; | |
15455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15457 | { | |
15458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15459 | result = (int)(arg1)->GetCol(); | |
15460 | ||
15461 | wxPyEndAllowThreads(__tstate); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | resultobj = SWIG_FromInt((int)result); | |
15465 | return resultobj; | |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
15471 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15472 | PyObject *resultobj; | |
15473 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15474 | wxControl *result; | |
15475 | PyObject * obj0 = 0 ; | |
15476 | char *kwnames[] = { | |
15477 | (char *) "self", NULL | |
15478 | }; | |
15479 | ||
15480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; | |
15481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15483 | { | |
15484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15485 | result = (wxControl *)(arg1)->GetControl(); | |
15486 | ||
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
15490 | { | |
15491 | resultobj = wxPyMake_wxObject(result); | |
15492 | } | |
15493 | return resultobj; | |
15494 | fail: | |
15495 | return NULL; | |
15496 | } | |
15497 | ||
15498 | ||
15499 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15500 | PyObject *resultobj; | |
15501 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15502 | int arg2 ; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | PyObject * obj1 = 0 ; | |
15505 | char *kwnames[] = { | |
15506 | (char *) "self",(char *) "row", NULL | |
15507 | }; | |
15508 | ||
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
15510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15512 | arg2 = (int) SWIG_AsInt(obj1); | |
15513 | if (PyErr_Occurred()) SWIG_fail; | |
15514 | { | |
15515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15516 | (arg1)->SetRow(arg2); | |
15517 | ||
15518 | wxPyEndAllowThreads(__tstate); | |
15519 | if (PyErr_Occurred()) SWIG_fail; | |
15520 | } | |
15521 | Py_INCREF(Py_None); resultobj = Py_None; | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
15525 | } | |
15526 | ||
15527 | ||
15528 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15529 | PyObject *resultobj; | |
15530 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15531 | int arg2 ; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | PyObject * obj1 = 0 ; | |
15534 | char *kwnames[] = { | |
15535 | (char *) "self",(char *) "col", NULL | |
15536 | }; | |
15537 | ||
15538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
15539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15541 | arg2 = (int) SWIG_AsInt(obj1); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | { | |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15545 | (arg1)->SetCol(arg2); | |
15546 | ||
15547 | wxPyEndAllowThreads(__tstate); | |
15548 | if (PyErr_Occurred()) SWIG_fail; | |
15549 | } | |
15550 | Py_INCREF(Py_None); resultobj = Py_None; | |
15551 | return resultobj; | |
15552 | fail: | |
15553 | return NULL; | |
15554 | } | |
15555 | ||
15556 | ||
15557 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15558 | PyObject *resultobj; | |
15559 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15560 | wxControl *arg2 = (wxControl *) 0 ; | |
15561 | PyObject * obj0 = 0 ; | |
15562 | PyObject * obj1 = 0 ; | |
15563 | char *kwnames[] = { | |
15564 | (char *) "self",(char *) "ctrl", NULL | |
15565 | }; | |
15566 | ||
15567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
15568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, | |
15569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
15571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15572 | { | |
15573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15574 | (arg1)->SetControl(arg2); | |
15575 | ||
15576 | wxPyEndAllowThreads(__tstate); | |
15577 | if (PyErr_Occurred()) SWIG_fail; | |
15578 | } | |
15579 | Py_INCREF(Py_None); resultobj = Py_None; | |
15580 | return resultobj; | |
15581 | fail: | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
15586 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) { | |
15587 | PyObject *obj; | |
15588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15589 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); | |
15590 | Py_INCREF(obj); | |
15591 | return Py_BuildValue((char *)""); | |
15592 | } | |
15593 | static PyMethodDef SwigMethods[] = { | |
15594 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15595 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15596 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15597 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15598 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS }, | |
15599 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
15600 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15601 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS }, | |
15602 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15603 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15604 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15605 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS }, | |
15606 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15607 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS }, | |
15608 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15609 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS }, | |
15610 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15611 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15612 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15613 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15614 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15615 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS }, | |
15616 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15617 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS }, | |
15618 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15619 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS }, | |
15620 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15621 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS }, | |
15622 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15623 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS }, | |
15624 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15625 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS }, | |
15626 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15627 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15628 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15629 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15630 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15631 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15632 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15633 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS }, | |
15634 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS }, | |
15635 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS }, | |
15636 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS }, | |
15637 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15638 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15639 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS }, | |
15640 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15641 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15642 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15643 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15644 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15645 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15646 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS }, | |
15647 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15648 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15649 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15650 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS }, | |
15651 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15652 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15653 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15654 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15655 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15656 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15657 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15658 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS }, | |
15659 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS }, | |
15660 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15661 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS }, | |
15662 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS }, | |
15663 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15664 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS }, | |
15665 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS }, | |
15666 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15667 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS }, | |
15668 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS }, | |
15669 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15670 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS }, | |
15671 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS }, | |
15672 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15673 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS }, | |
15674 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS }, | |
15675 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15676 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS }, | |
15677 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS }, | |
15678 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15679 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS }, | |
15680 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15681 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15682 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15683 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS }, | |
15684 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15685 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15686 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15687 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15688 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
15689 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15690 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15691 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15692 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15693 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15694 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15695 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
15696 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15697 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15698 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
15699 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15700 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15701 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS }, | |
15702 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS }, | |
15703 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS }, | |
15704 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15705 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15706 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
15707 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15708 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
15709 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15710 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15711 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15712 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15713 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS }, | |
15714 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS }, | |
15715 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15716 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15717 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15718 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15719 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15720 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15721 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS }, | |
15722 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS }, | |
15723 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS }, | |
15724 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15725 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15726 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15727 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15728 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15729 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15730 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS }, | |
15731 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15732 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15733 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15734 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS }, | |
15735 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS }, | |
15736 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15737 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15738 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS }, | |
15739 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15740 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
15741 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15742 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15743 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15744 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15745 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15746 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15747 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15748 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15749 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15750 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15751 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15752 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15753 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15754 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15755 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15756 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15757 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15758 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15759 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15760 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15761 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15762 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15763 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15764 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15765 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15766 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS }, | |
15767 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS }, | |
15768 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15769 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15770 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15771 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15772 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15773 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15774 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15775 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15776 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15777 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15778 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15779 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15780 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15781 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15782 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15783 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15784 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15785 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15786 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15787 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15788 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15789 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS }, | |
15790 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS }, | |
15791 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS }, | |
15792 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15793 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15794 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15795 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15796 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS }, | |
15797 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS }, | |
15798 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15799 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15800 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15801 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15802 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS }, | |
15803 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15804 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15805 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15806 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15807 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15808 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15809 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS }, | |
15810 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15811 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15812 | { (char *)"GridCellCoords_Get", (PyCFunction) _wrap_GridCellCoords_Get, METH_VARARGS | METH_KEYWORDS }, | |
15813 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS }, | |
15814 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS }, | |
15815 | { (char *)"new_PreGrid", (PyCFunction) _wrap_new_PreGrid, METH_VARARGS | METH_KEYWORDS }, | |
15816 | { (char *)"Grid_Create", (PyCFunction) _wrap_Grid_Create, METH_VARARGS | METH_KEYWORDS }, | |
15817 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS }, | |
15818 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15819 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15820 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15821 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15822 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15823 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS }, | |
15824 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS }, | |
15825 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS }, | |
15826 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15827 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15828 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15829 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15830 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15831 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15832 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS }, | |
15833 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS }, | |
15834 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS }, | |
15835 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS }, | |
15836 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS }, | |
15837 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS }, | |
15838 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS }, | |
15839 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
15840 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS }, | |
15841 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15842 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15843 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS }, | |
15844 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15845 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS }, | |
15846 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15847 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15848 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15849 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS }, | |
15850 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS }, | |
15851 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS }, | |
15852 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS }, | |
15853 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS }, | |
15854 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS }, | |
15855 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS }, | |
15856 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS }, | |
15857 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS }, | |
15858 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
15859 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS }, | |
15860 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS }, | |
15861 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS }, | |
15862 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS }, | |
15863 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS }, | |
15864 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS }, | |
15865 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS }, | |
15866 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS }, | |
15867 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS }, | |
15868 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS }, | |
15869 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS }, | |
15870 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS }, | |
15871 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15872 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15873 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15874 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15875 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15876 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15877 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15878 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15879 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15880 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15881 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15882 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15883 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15884 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15885 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15886 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15887 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15888 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15889 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15890 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15891 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15892 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15893 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15894 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15895 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15896 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15897 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15898 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15899 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15900 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15901 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15902 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15903 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15904 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15905 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15906 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15907 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15908 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15909 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15910 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15911 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15912 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15913 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS }, | |
15914 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS }, | |
15915 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS }, | |
15916 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS }, | |
15917 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS }, | |
15918 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15919 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15920 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15921 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15922 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15923 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15924 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15925 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15926 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15927 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15928 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15929 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15930 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15931 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15932 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15933 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15934 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15935 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15936 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15937 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15938 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS }, | |
15939 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS }, | |
15940 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS }, | |
15941 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS }, | |
15942 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS }, | |
15943 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15944 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15945 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS }, | |
15946 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS }, | |
15947 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15948 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15949 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15950 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15951 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15952 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15953 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15954 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15955 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15956 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15957 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15958 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15959 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15960 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15961 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15962 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15963 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15964 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15965 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15966 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15967 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15968 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15969 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15970 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15971 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15972 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15973 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15974 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS }, | |
15975 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS }, | |
15976 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS }, | |
15977 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
15978 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
15979 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS }, | |
15980 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS }, | |
15981 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS }, | |
15982 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
15983 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
15984 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS }, | |
15985 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS }, | |
15986 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS }, | |
15987 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS }, | |
15988 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS }, | |
15989 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS }, | |
15990 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15991 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15992 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15993 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15994 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS }, | |
15995 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS }, | |
15996 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS }, | |
15997 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS }, | |
15998 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS }, | |
15999 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
16000 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS }, | |
16001 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
16002 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
16003 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
16004 | { (char *)"Grid_GetClassDefaultAttributes", (PyCFunction) _wrap_Grid_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
16005 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS }, | |
16006 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS }, | |
16007 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
16008 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
16009 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
16010 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
16011 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
16012 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
16013 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
16014 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
16015 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS }, | |
16016 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
16017 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS }, | |
16018 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
16019 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
16020 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
16021 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
16022 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
16023 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS }, | |
16024 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS }, | |
16025 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS }, | |
16026 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS }, | |
16027 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS }, | |
16028 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS }, | |
16029 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS }, | |
16030 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS }, | |
16031 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
16032 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
16033 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
16034 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
16035 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
16036 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS }, | |
16037 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS }, | |
16038 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
16039 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
16040 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
16041 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
16042 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
16043 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
16044 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS }, | |
16045 | { NULL, NULL } | |
16046 | }; | |
16047 | ||
16048 | ||
16049 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
16050 | ||
16051 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { | |
16052 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); | |
16053 | } | |
16054 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { | |
16055 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); | |
16056 | } | |
16057 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { | |
16058 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
16059 | } | |
16060 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { | |
16061 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
16062 | } | |
16063 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { | |
16064 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); | |
16065 | } | |
16066 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { | |
16067 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
16068 | } | |
16069 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { | |
16070 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
16071 | } | |
16072 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { | |
16073 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
16074 | } | |
16075 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16076 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
16077 | } | |
16078 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16079 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
16080 | } | |
16081 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16082 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
16083 | } | |
16084 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16085 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
16086 | } | |
16087 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16088 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
16089 | } | |
16090 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
16091 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
16092 | } | |
16093 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
16094 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16095 | } | |
16096 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
16097 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16098 | } | |
16099 | static void *_p_wxGridTo_p_wxPanel(void *x) { | |
16100 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); | |
16101 | } | |
16102 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
16103 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16104 | } | |
16105 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
16106 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16107 | } | |
16108 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
16109 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
16110 | } | |
16111 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
16112 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16113 | } | |
16114 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
16115 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
16116 | } | |
16117 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
16118 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16119 | } | |
16120 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { | |
16121 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16122 | } | |
16123 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { | |
16124 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16125 | } | |
16126 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
16127 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16128 | } | |
16129 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { | |
16130 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); | |
16131 | } | |
16132 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
16133 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16134 | } | |
16135 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { | |
16136 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); | |
16137 | } | |
16138 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
16139 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16140 | } | |
16141 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
16142 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16143 | } | |
16144 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
16145 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16146 | } | |
16147 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
16148 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
16149 | } | |
16150 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
16151 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
16152 | } | |
16153 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
16154 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16155 | } | |
16156 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
16157 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16158 | } | |
16159 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
16160 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16161 | } | |
16162 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
16163 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16164 | } | |
16165 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
16166 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16167 | } | |
16168 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
16169 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16170 | } | |
16171 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
16172 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16173 | } | |
16174 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
16175 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
16176 | } | |
16177 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
16178 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
16179 | } | |
16180 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
16181 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
16182 | } | |
16183 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
16184 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16185 | } | |
16186 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
16187 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16188 | } | |
16189 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
16190 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16191 | } | |
16192 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
16193 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
16194 | } | |
16195 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
16196 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16197 | } | |
16198 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
16199 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
16200 | } | |
16201 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
16202 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
16203 | } | |
16204 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
16205 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
16206 | } | |
16207 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
16208 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
16209 | } | |
16210 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
16211 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
16212 | } | |
16213 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
16214 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16215 | } | |
16216 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
16217 | return (void *)((wxWindow *) ((wxControl *) x)); | |
16218 | } | |
16219 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
16220 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16221 | } | |
16222 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
16223 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16224 | } | |
16225 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
16226 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16227 | } | |
16228 | static void *_p_wxGridTo_p_wxWindow(void *x) { | |
16229 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16230 | } | |
16231 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
16232 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
16233 | } | |
16234 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
16235 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
16236 | } | |
16237 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
16238 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16239 | } | |
16240 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
16241 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16242 | } | |
16243 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
16244 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16245 | } | |
16246 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
16247 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
16248 | } | |
16249 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
16250 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16251 | } | |
16252 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
16253 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
16254 | } | |
16255 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
16256 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16257 | } | |
16258 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
16259 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16260 | } | |
16261 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
16262 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16263 | } | |
16264 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
16265 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
16266 | } | |
16267 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
16268 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16269 | } | |
16270 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
16271 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16272 | } | |
16273 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
16274 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16275 | } | |
16276 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
16277 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
16278 | } | |
16279 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
16280 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16281 | } | |
16282 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
16283 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
16284 | } | |
16285 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
16286 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
16287 | } | |
16288 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
16289 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
16290 | } | |
16291 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
16292 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
16293 | } | |
16294 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
16295 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
16296 | } | |
16297 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
16298 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16299 | } | |
16300 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
16301 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
16302 | } | |
16303 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
16304 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
16305 | } | |
16306 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
16307 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16308 | } | |
16309 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
16310 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
16311 | } | |
16312 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
16313 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16314 | } | |
16315 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
16316 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16317 | } | |
16318 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { | |
16319 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16320 | } | |
16321 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
16322 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
16323 | } | |
16324 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
16325 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16326 | } | |
16327 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
16328 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16329 | } | |
16330 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
16331 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
16332 | } | |
16333 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
16334 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
16335 | } | |
16336 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
16337 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
16338 | } | |
16339 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
16340 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
16341 | } | |
16342 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
16343 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
16344 | } | |
16345 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { | |
16346 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16347 | } | |
16348 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
16349 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
16350 | } | |
16351 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
16352 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
16353 | } | |
16354 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
16355 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16356 | } | |
16357 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
16358 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16359 | } | |
16360 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
16361 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16362 | } | |
16363 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
16364 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16365 | } | |
16366 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
16367 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16368 | } | |
16369 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { | |
16370 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16371 | } | |
16372 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { | |
16373 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16374 | } | |
16375 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
16376 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
16377 | } | |
16378 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
16379 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
16380 | } | |
16381 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
16382 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16383 | } | |
16384 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
16385 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
16386 | } | |
16387 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
16388 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16389 | } | |
16390 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
16391 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
16392 | } | |
16393 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
16394 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
16395 | } | |
16396 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
16397 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16398 | } | |
16399 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
16400 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16401 | } | |
16402 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
16403 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16404 | } | |
16405 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
16406 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
16407 | } | |
16408 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
16409 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
16410 | } | |
16411 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
16412 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16413 | } | |
16414 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
16415 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16416 | } | |
16417 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
16418 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16419 | } | |
16420 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
16421 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16422 | } | |
16423 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
16424 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16425 | } | |
16426 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16427 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16428 | } | |
16429 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16430 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16431 | } | |
16432 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16433 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16434 | } | |
16435 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16436 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16437 | } | |
16438 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16439 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16440 | } | |
16441 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16442 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16443 | } | |
16444 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16445 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16446 | } | |
16447 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16448 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16449 | } | |
16450 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16451 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16452 | } | |
16453 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
16454 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16455 | } | |
16456 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16457 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16458 | } | |
16459 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
16460 | return (void *)((wxObject *) ((wxFontData *) x)); | |
16461 | } | |
16462 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
16463 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
16464 | } | |
16465 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16466 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16467 | } | |
16468 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16469 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16470 | } | |
16471 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16472 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16473 | } | |
16474 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
16475 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
16476 | } | |
16477 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
16478 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16479 | } | |
16480 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
16481 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16482 | } | |
16483 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { | |
16484 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); | |
16485 | } | |
16486 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16487 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16488 | } | |
16489 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16490 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16491 | } | |
16492 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16493 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16494 | } | |
16495 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16496 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16497 | } | |
16498 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16499 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16500 | } | |
16501 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16502 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16503 | } | |
16504 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
16505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16506 | } | |
16507 | static void *_p_wxGridEventTo_p_wxObject(void *x) { | |
16508 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16509 | } | |
16510 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { | |
16511 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16512 | } | |
16513 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16514 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16515 | } | |
16516 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16517 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16518 | } | |
16519 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
16520 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16521 | } | |
16522 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16523 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16524 | } | |
16525 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
16526 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
16527 | } | |
16528 | static void *_p_wxGridTo_p_wxObject(void *x) { | |
16529 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16530 | } | |
16531 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16532 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16533 | } | |
16534 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
16535 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16536 | } | |
16537 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
16538 | return (void *)((wxObject *) ((wxColourData *) x)); | |
16539 | } | |
16540 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16541 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16542 | } | |
16543 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16544 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16545 | } | |
16546 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
16547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
16548 | } | |
16549 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
16550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16551 | } | |
16552 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
16553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16554 | } | |
16555 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
16556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16557 | } | |
16558 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
16559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16560 | } | |
16561 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
16562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16563 | } | |
16564 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
16565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16566 | } | |
16567 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
16568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16569 | } | |
16570 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
16571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16572 | } | |
16573 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
16574 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
16575 | } | |
16576 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
16577 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
16578 | } | |
16579 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
16580 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
16581 | } | |
16582 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
16583 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
16584 | } | |
16585 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
16586 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16587 | } | |
16588 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
16589 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16590 | } | |
16591 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
16592 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
16593 | } | |
16594 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
16595 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
16596 | } | |
16597 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
16598 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
16599 | } | |
16600 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
16601 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
16602 | } | |
16603 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
16604 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
16605 | } | |
16606 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { | |
16607 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16608 | } | |
16609 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
16610 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
16611 | } | |
16612 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
16613 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
16614 | } | |
16615 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
16616 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
16617 | } | |
16618 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
16619 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
16620 | } | |
16621 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
16622 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
16623 | } | |
16624 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
16625 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
16626 | } | |
16627 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
16628 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
16629 | } | |
16630 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
16631 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
16632 | } | |
16633 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
16634 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
16635 | } | |
16636 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
16637 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
16638 | } | |
16639 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
16640 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
16641 | } | |
16642 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
16643 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
16644 | } | |
16645 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
16646 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
16647 | } | |
16648 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
16649 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16650 | } | |
16651 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { | |
16652 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16653 | } | |
16654 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
16655 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16656 | } | |
16657 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
16658 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16659 | } | |
16660 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
16661 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
16662 | } | |
16663 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
16664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16665 | } | |
16666 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
16667 | return (void *)((wxObject *) ((wxImage *) x)); | |
16668 | } | |
16669 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
16670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16671 | } | |
16672 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
16673 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
16674 | } | |
16675 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
16676 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
16677 | } | |
16678 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
16679 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16680 | } | |
16681 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
16682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
16683 | } | |
16684 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
16685 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16686 | } | |
16687 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
16688 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16689 | } | |
16690 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
16691 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16692 | } | |
16693 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
16694 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
16695 | } | |
16696 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
16697 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
16698 | } | |
16699 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
16700 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
16701 | } | |
16702 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
16703 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
16704 | } | |
16705 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
16706 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16707 | } | |
16708 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
16709 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
16710 | } | |
16711 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
16712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
16713 | } | |
16714 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
16715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
16716 | } | |
16717 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
16718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
16719 | } | |
16720 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
16721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16722 | } | |
16723 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
16724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
16725 | } | |
16726 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
16727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16728 | } | |
16729 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
16730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16731 | } | |
16732 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
16733 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16734 | } | |
16735 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
16736 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
16737 | } | |
16738 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
16739 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16740 | } | |
16741 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
16742 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
16743 | } | |
16744 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
16745 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
16746 | } | |
16747 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
16748 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
16749 | } | |
16750 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
16751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
16752 | } | |
16753 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
16754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16755 | } | |
16756 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
16757 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16758 | } | |
16759 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
16760 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16761 | } | |
16762 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
16763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16764 | } | |
16765 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
16766 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16767 | } | |
16768 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
16769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16770 | } | |
16771 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
16772 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
16773 | } | |
16774 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
16775 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16776 | } | |
16777 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
16778 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
16779 | } | |
16780 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
16781 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
16782 | } | |
16783 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
16784 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
16785 | } | |
16786 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
16787 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
16788 | } | |
16789 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
16790 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
16791 | } | |
16792 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { | |
16793 | return (void *)((wxObject *) ((wxGridTableBase *) x)); | |
16794 | } | |
16795 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { | |
16796 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16797 | } | |
16798 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
16799 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16800 | } | |
16801 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
16802 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
16803 | } | |
16804 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
16805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16806 | } | |
16807 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
16808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16809 | } | |
16810 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
16811 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
16812 | } | |
16813 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
16814 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
16815 | } | |
16816 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
16817 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16818 | } | |
16819 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
16820 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16821 | } | |
16822 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
16823 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
16824 | } | |
16825 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
16826 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
16827 | } | |
16828 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
16829 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
16830 | } | |
16831 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
16832 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
16833 | } | |
16834 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
16835 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16836 | } | |
16837 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
16838 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16839 | } | |
16840 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
16841 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16842 | } | |
16843 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
16844 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
16845 | } | |
16846 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
16847 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
16848 | } | |
16849 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
16850 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
16851 | } | |
16852 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
16853 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
16854 | } | |
16855 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
16856 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16857 | } | |
16858 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16859 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16860 | } | |
16861 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16863 | } | |
16864 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
16865 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16866 | } | |
16867 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
16868 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16869 | } | |
16870 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
16871 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16872 | } | |
16873 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
16874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16875 | } | |
16876 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
16877 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
16878 | } | |
16879 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
16880 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
16881 | } | |
16882 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16883 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16884 | } | |
16885 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
16886 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16887 | } | |
16888 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
16889 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16890 | } | |
16891 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
16892 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
16893 | } | |
16894 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
16895 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16896 | } | |
16897 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
16898 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
16899 | } | |
16900 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
16901 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
16902 | } | |
16903 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
16904 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
16905 | } | |
16906 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
16907 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
16908 | } | |
16909 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16910 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16911 | } | |
16912 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
16913 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
16914 | } | |
16915 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
16916 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
16917 | } | |
16918 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16919 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16920 | } | |
16921 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
16922 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
16923 | } | |
16924 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16925 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16926 | } | |
16927 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16928 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16929 | } | |
16930 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
16931 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16932 | } | |
16933 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
16934 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
16935 | } | |
16936 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { | |
16937 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16938 | } | |
16939 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
16940 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16941 | } | |
16942 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
16943 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
16944 | } | |
16945 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
16946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16947 | } | |
16948 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
16949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16950 | } | |
16951 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
16952 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16953 | } | |
16954 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16955 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16956 | } | |
16957 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16959 | } | |
16960 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
16961 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16962 | } | |
16963 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
16964 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16965 | } | |
16966 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
16967 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16968 | } | |
16969 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
16970 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16971 | } | |
16972 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
16973 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16974 | } | |
16975 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
16976 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16977 | } | |
16978 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
16979 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16980 | } | |
16981 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
16982 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16983 | } | |
16984 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
16985 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16986 | } | |
16987 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { | |
16988 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); | |
16989 | } | |
16990 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { | |
16991 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16992 | } | |
16993 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { | |
16994 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); | |
16995 | } | |
16996 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { | |
16997 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); | |
16998 | } | |
16999 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { | |
17000 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
17001 | } | |
17002 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { | |
17003 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
17004 | } | |
17005 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { | |
17006 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); | |
17007 | } | |
17008 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { | |
17009 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); | |
17010 | } | |
17011 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { | |
17012 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
17013 | } | |
17014 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { | |
17015 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
17016 | } | |
17017 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { | |
17018 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
17019 | } | |
17020 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { | |
17021 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
17022 | } | |
17023 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { | |
17024 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
17025 | } | |
17026 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
17027 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
17028 | } | |
17029 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
17030 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17031 | } | |
17032 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
17033 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
17034 | } | |
17035 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
17036 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
17037 | } | |
17038 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
17039 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17040 | } | |
17041 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
17042 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17043 | } | |
17044 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
17045 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17046 | } | |
17047 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { | |
17048 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
17049 | } | |
17050 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { | |
17051 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
17052 | } | |
17053 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
17054 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17055 | } | |
17056 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { | |
17057 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); | |
17058 | } | |
17059 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { | |
17060 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
17061 | } | |
17062 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
17063 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17064 | } | |
17065 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
17066 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
17067 | } | |
17068 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
17069 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17070 | } | |
17071 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { | |
17072 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); | |
17073 | } | |
17074 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { | |
17075 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
17076 | } | |
17077 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17078 | static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17079 | static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17080 | static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17081 | static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17082 | static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17083 | static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17084 | static swig_type_info _swigt__p_wxGridCellRenderer[] = {{"_p_wxGridCellRenderer", 0, "wxGridCellRenderer *", 0, 0, 0, 0},{"_p_wxGridCellRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", _p_wxPyGridCellRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", _p_wxGridCellStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", _p_wxGridCellBoolRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17085 | static swig_type_info _swigt__p_wxGridCellStringRenderer[] = {{"_p_wxGridCellStringRenderer", 0, "wxGridCellStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17086 | static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0, 0, 0, 0},{"_p_wxGridCellAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17087 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17088 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17089 | static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0, 0, 0, 0},{"_p_wxGridTableMessage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17090 | static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0, 0, 0, 0},{"_p_wxGrid", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17091 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17092 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17093 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17094 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17095 | static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17096 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17097 | static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0, 0, 0, 0},{"_p_wxGridCellCoords", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17098 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17099 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17100 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17101 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17102 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17103 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", _p_wxGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17104 | static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17105 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17106 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17107 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17108 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17109 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17110 | static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0, 0, 0, 0},{"_p_wxGridEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17111 | static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17112 | static swig_type_info _swigt__p_wxGridTableBase[] = {{"_p_wxGridTableBase", 0, "wxGridTableBase *", 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17113 | static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17114 | static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0, 0, 0, 0},{"_p_wxPyGridCellEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17115 | static swig_type_info _swigt__p_wxGridCellEditor[] = {{"_p_wxGridCellEditor", 0, "wxGridCellEditor *", 0, 0, 0, 0},{"_p_wxGridCellEditor", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellEditor", _p_wxPyGridCellEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellTextEditor", _p_wxGridCellTextEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", _p_wxGridCellBoolEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", _p_wxGridCellChoiceEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17116 | static swig_type_info _swigt__p_wxGridCellTextEditor[] = {{"_p_wxGridCellTextEditor", 0, "wxGridCellTextEditor *", 0, 0, 0, 0},{"_p_wxGridCellTextEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17117 | static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17118 | static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17119 | static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0, 0, 0, 0},{"_p_wxPyGridTableBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17120 | static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0, 0, 0, 0},{"_p_wxGridStringTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17121 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17122 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17123 | static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17124 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17125 | static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17126 | static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17127 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17128 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17129 | static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17130 | ||
17131 | static swig_type_info *swig_types_initial[] = { | |
17132 | _swigt__p_wxGridCellAutoWrapStringRenderer, | |
17133 | _swigt__p_wxGridCellEnumRenderer, | |
17134 | _swigt__p_wxGridCellDateTimeRenderer, | |
17135 | _swigt__p_wxGridCellBoolRenderer, | |
17136 | _swigt__p_wxGridCellFloatRenderer, | |
17137 | _swigt__p_wxGridCellNumberRenderer, | |
17138 | _swigt__p_wxPyGridCellRenderer, | |
17139 | _swigt__p_wxGridCellRenderer, | |
17140 | _swigt__p_wxGridCellStringRenderer, | |
17141 | _swigt__p_wxGridCellAttr, | |
17142 | _swigt__p_wxColour, | |
17143 | _swigt__p_wxDC, | |
17144 | _swigt__p_wxGridTableMessage, | |
17145 | _swigt__p_wxGrid, | |
17146 | _swigt__p_wxVisualAttributes, | |
17147 | _swigt__p_char, | |
17148 | _swigt__p_wxPanel, | |
17149 | _swigt__p_wxNotifyEvent, | |
17150 | _swigt__p_wxGridRangeSelectEvent, | |
17151 | _swigt__p_wxSize, | |
17152 | _swigt__p_wxGridCellCoords, | |
17153 | _swigt__p_wxScrolledWindow, | |
17154 | _swigt__p_wxWindow, | |
17155 | _swigt__p_wxFont, | |
17156 | _swigt__p_wxControl, | |
17157 | _swigt__p_wxEvent, | |
17158 | _swigt__p_wxObject, | |
17159 | _swigt__p_wxGridSizeEvent, | |
17160 | _swigt__p_wxRect, | |
17161 | _swigt__p_long, | |
17162 | _swigt__p_wxString, | |
17163 | _swigt__p_wxEvtHandler, | |
17164 | _swigt__p_wxPoint, | |
17165 | _swigt__p_wxGridEvent, | |
17166 | _swigt__p_wxGridEditorCreatedEvent, | |
17167 | _swigt__p_wxGridTableBase, | |
17168 | _swigt__p_wxGridCellNumberEditor, | |
17169 | _swigt__p_wxPyGridCellEditor, | |
17170 | _swigt__p_wxGridCellEditor, | |
17171 | _swigt__p_wxGridCellTextEditor, | |
17172 | _swigt__p_wxGridCellFloatEditor, | |
17173 | _swigt__p_wxGridCellBoolEditor, | |
17174 | _swigt__p_wxPyGridTableBase, | |
17175 | _swigt__p_wxGridStringTable, | |
17176 | _swigt__p_wxArrayString, | |
17177 | _swigt__p_wxCommandEvent, | |
17178 | _swigt__p_wxGridCellAttrProvider, | |
17179 | _swigt__p_wxKeyEvent, | |
17180 | _swigt__p_wxGridCellChoiceEditor, | |
17181 | _swigt__p_wxGridCellEnumEditor, | |
17182 | _swigt__p_wxGridCellAutoWrapStringEditor, | |
17183 | _swigt__p_int, | |
17184 | _swigt__p_wxPyGridCellAttrProvider, | |
17185 | 0 | |
17186 | }; | |
17187 | ||
17188 | ||
17189 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17190 | ||
17191 | static swig_const_info swig_const_table[] = { | |
17192 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char}, | |
17193 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char}, | |
17194 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17195 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char}, | |
17196 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char}, | |
17197 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char}, | |
17198 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17199 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char}, | |
17200 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char}, | |
17201 | {0}}; | |
17202 | ||
17203 | #ifdef __cplusplus | |
17204 | } | |
17205 | #endif | |
17206 | ||
17207 | #ifdef __cplusplus | |
17208 | extern "C" | |
17209 | #endif | |
17210 | SWIGEXPORT(void) SWIG_init(void) { | |
17211 | static PyObject *SWIG_globals = 0; | |
17212 | static int typeinit = 0; | |
17213 | PyObject *m, *d; | |
17214 | int i; | |
17215 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17216 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17217 | d = PyModule_GetDict(m); | |
17218 | ||
17219 | if (!typeinit) { | |
17220 | for (i = 0; swig_types_initial[i]; i++) { | |
17221 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17222 | } | |
17223 | typeinit = 1; | |
17224 | } | |
17225 | SWIG_InstallConstants(d,swig_const_table); | |
17226 | ||
17227 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
17228 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); | |
17229 | PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string")); | |
17230 | PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool")); | |
17231 | PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long")); | |
17232 | PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double")); | |
17233 | PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice")); | |
17234 | PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string")); | |
17235 | PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long")); | |
17236 | PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint")); | |
17237 | PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime")); | |
17238 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); | |
17239 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); | |
17240 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any)); | |
17241 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default)); | |
17242 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell)); | |
17243 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_FromInt((int)wxGridCellAttr::Row)); | |
17244 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_FromInt((int)wxGridCellAttr::Col)); | |
17245 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_FromInt((int)wxGridCellAttr::Merged)); | |
17246 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); | |
17247 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); | |
17248 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); | |
17249 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); | |
17250 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); | |
17251 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); | |
17252 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); | |
17253 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); | |
17254 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_FromInt((int)wxGrid::wxGridSelectCells)); | |
17255 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_FromInt((int)wxGrid::wxGridSelectRows)); | |
17256 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_FromInt((int)wxGrid::wxGridSelectColumns)); | |
17257 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); | |
17258 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); | |
17259 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); | |
17260 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); | |
17261 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); | |
17262 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); | |
17263 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); | |
17264 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); | |
17265 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); | |
17266 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); | |
17267 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); | |
17268 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); | |
17269 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); | |
17270 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); | |
17271 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); | |
17272 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); | |
17273 | ||
17274 | ||
17275 | } | |
17276 |