| 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_TypePrettyName SWIG_Python_TypePrettyName |
| 47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
| 48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData |
| 49 | #define SWIG_PackData SWIG_Python_PackData |
| 50 | #define SWIG_UnpackData SWIG_Python_UnpackData |
| 51 | |
| 52 | |
| 53 | /*********************************************************************** |
| 54 | * common.swg for wxPython |
| 55 | * |
| 56 | * Include only the function prototypes and such from SWIG's common.swg, |
| 57 | * but not the runtime functions themselves. This helps keep the |
| 58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file |
| 59 | * anyway. |
| 60 | * |
| 61 | ************************************************************************/ |
| 62 | |
| 63 | #include <string.h> |
| 64 | |
| 65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
| 66 | # if defined(_MSC_VER) || defined(__GNUC__) |
| 67 | # if defined(STATIC_LINKED) |
| 68 | # define SWIGEXPORT(a) a |
| 69 | # define SWIGIMPORT(a) extern a |
| 70 | # else |
| 71 | # define SWIGEXPORT(a) __declspec(dllexport) a |
| 72 | # define SWIGIMPORT(a) extern a |
| 73 | # endif |
| 74 | # else |
| 75 | # if defined(__BORLANDC__) |
| 76 | # define SWIGEXPORT(a) a _export |
| 77 | # define SWIGIMPORT(a) a _export |
| 78 | # else |
| 79 | # define SWIGEXPORT(a) a |
| 80 | # define SWIGIMPORT(a) a |
| 81 | # endif |
| 82 | # endif |
| 83 | #else |
| 84 | # define SWIGEXPORT(a) a |
| 85 | # define SWIGIMPORT(a) a |
| 86 | #endif |
| 87 | |
| 88 | #ifdef SWIG_GLOBAL |
| 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
| 90 | #else |
| 91 | # define SWIGRUNTIME(a) static a |
| 92 | #endif |
| 93 | |
| 94 | #ifdef __cplusplus |
| 95 | extern "C" { |
| 96 | #endif |
| 97 | |
| 98 | typedef void *(*swig_converter_func)(void *); |
| 99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
| 100 | |
| 101 | typedef struct swig_type_info { |
| 102 | const char *name; |
| 103 | swig_converter_func converter; |
| 104 | const char *str; |
| 105 | void *clientdata; |
| 106 | swig_dycast_func dcast; |
| 107 | struct swig_type_info *next; |
| 108 | struct swig_type_info *prev; |
| 109 | } swig_type_info; |
| 110 | |
| 111 | |
| 112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); |
| 113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); |
| 114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); |
| 115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); |
| 116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); |
| 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
| 118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
| 119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); |
| 120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
| 121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); |
| 122 | |
| 123 | |
| 124 | #ifdef __cplusplus |
| 125 | } |
| 126 | #endif |
| 127 | |
| 128 | |
| 129 | /*********************************************************************** |
| 130 | * pyrun.swg for wxPython |
| 131 | * |
| 132 | * Include only the function prototypes and such from SWIG's pyrun.swg, |
| 133 | * but not the runtime functions themselves. This helps keep the |
| 134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file |
| 135 | * anyway. |
| 136 | * |
| 137 | ************************************************************************/ |
| 138 | |
| 139 | #ifdef __cplusplus |
| 140 | extern "C" { |
| 141 | #endif |
| 142 | |
| 143 | #define SWIG_PY_INT 1 |
| 144 | #define SWIG_PY_FLOAT 2 |
| 145 | #define SWIG_PY_STRING 3 |
| 146 | #define SWIG_PY_POINTER 4 |
| 147 | #define SWIG_PY_BINARY 5 |
| 148 | |
| 149 | /* Flags for pointer conversion */ |
| 150 | |
| 151 | #define SWIG_POINTER_EXCEPTION 0x1 |
| 152 | #define SWIG_POINTER_DISOWN 0x2 |
| 153 | |
| 154 | /* Exception handling in wrappers */ |
| 155 | #define SWIG_fail goto fail |
| 156 | |
| 157 | /* Constant information structure */ |
| 158 | typedef struct swig_const_info { |
| 159 | int type; |
| 160 | char *name; |
| 161 | long lvalue; |
| 162 | double dvalue; |
| 163 | void *pvalue; |
| 164 | swig_type_info **ptype; |
| 165 | } swig_const_info; |
| 166 | |
| 167 | /* Common SWIG API */ |
| 168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ |
| 169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) |
| 170 | #define SWIG_NewPointerObj(p, type, flags) \ |
| 171 | SWIG_Python_NewPointerObj(p, type, flags) |
| 172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ |
| 173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) |
| 174 | |
| 175 | /* Python-specific SWIG API */ |
| 176 | #define SWIG_newvarlink() \ |
| 177 | SWIG_Python_newvarlink() |
| 178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ |
| 179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) |
| 180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ |
| 181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) |
| 182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
| 183 | SWIG_Python_NewPackedObj(ptr, sz, type) |
| 184 | #define SWIG_InstallConstants(d, constants) \ |
| 185 | SWIG_Python_InstallConstants(d, constants) |
| 186 | |
| 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
| 188 | |
| 189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
| 190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); |
| 191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); |
| 192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); |
| 193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
| 194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); |
| 195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); |
| 196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); |
| 197 | |
| 198 | |
| 199 | /* Contract support */ |
| 200 | |
| 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
| 202 | |
| 203 | #ifdef __cplusplus |
| 204 | } |
| 205 | #endif |
| 206 | |
| 207 | |
| 208 | |
| 209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
| 210 | |
| 211 | #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0] |
| 212 | #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1] |
| 213 | #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2] |
| 214 | #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3] |
| 215 | #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4] |
| 216 | #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5] |
| 217 | #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6] |
| 218 | #define SWIGTYPE_p_wxGridCellRenderer swig_types[7] |
| 219 | #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8] |
| 220 | #define SWIGTYPE_p_wxGridCellAttr swig_types[9] |
| 221 | #define SWIGTYPE_p_wxColour swig_types[10] |
| 222 | #define SWIGTYPE_p_wxDC swig_types[11] |
| 223 | #define SWIGTYPE_p_wxGridTableMessage swig_types[12] |
| 224 | #define SWIGTYPE_p_wxGrid swig_types[13] |
| 225 | #define SWIGTYPE_p_wxVisualAttributes swig_types[14] |
| 226 | #define SWIGTYPE_p_char swig_types[15] |
| 227 | #define SWIGTYPE_p_wxPanel swig_types[16] |
| 228 | #define SWIGTYPE_p_wxNotifyEvent swig_types[17] |
| 229 | #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[18] |
| 230 | #define SWIGTYPE_p_wxSize swig_types[19] |
| 231 | #define SWIGTYPE_p_wxGridCellCoords swig_types[20] |
| 232 | #define SWIGTYPE_p_wxScrolledWindow swig_types[21] |
| 233 | #define SWIGTYPE_p_wxWindow swig_types[22] |
| 234 | #define SWIGTYPE_p_wxFont swig_types[23] |
| 235 | #define SWIGTYPE_p_wxControl swig_types[24] |
| 236 | #define SWIGTYPE_p_wxEvent swig_types[25] |
| 237 | #define SWIGTYPE_p_wxObject swig_types[26] |
| 238 | #define SWIGTYPE_p_wxGridSizeEvent swig_types[27] |
| 239 | #define SWIGTYPE_p_wxRect swig_types[28] |
| 240 | #define SWIGTYPE_p_long swig_types[29] |
| 241 | #define SWIGTYPE_p_wxString swig_types[30] |
| 242 | #define SWIGTYPE_p_wxEvtHandler swig_types[31] |
| 243 | #define SWIGTYPE_p_wxPoint swig_types[32] |
| 244 | #define SWIGTYPE_p_wxGridEvent swig_types[33] |
| 245 | #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[34] |
| 246 | #define SWIGTYPE_p_wxGridTableBase swig_types[35] |
| 247 | #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[36] |
| 248 | #define SWIGTYPE_p_wxPyGridCellEditor swig_types[37] |
| 249 | #define SWIGTYPE_p_wxGridCellEditor swig_types[38] |
| 250 | #define SWIGTYPE_p_wxGridCellTextEditor swig_types[39] |
| 251 | #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[40] |
| 252 | #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[41] |
| 253 | #define SWIGTYPE_p_wxPyGridTableBase swig_types[42] |
| 254 | #define SWIGTYPE_p_wxGridStringTable swig_types[43] |
| 255 | #define SWIGTYPE_p_wxArrayString swig_types[44] |
| 256 | #define SWIGTYPE_p_wxCommandEvent swig_types[45] |
| 257 | #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[46] |
| 258 | #define SWIGTYPE_p_wxKeyEvent swig_types[47] |
| 259 | #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[48] |
| 260 | #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[49] |
| 261 | #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[50] |
| 262 | #define SWIGTYPE_p_int swig_types[51] |
| 263 | #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[52] |
| 264 | static swig_type_info *swig_types[54]; |
| 265 | |
| 266 | /* -------- TYPES TABLE (END) -------- */ |
| 267 | |
| 268 | |
| 269 | /*----------------------------------------------- |
| 270 | @(target):= _grid.so |
| 271 | ------------------------------------------------*/ |
| 272 | #define SWIG_init init_grid |
| 273 | |
| 274 | #define SWIG_name "_grid" |
| 275 | |
| 276 | /* Auxiliar swig macros that appear in the header */ |
| 277 | |
| 278 | #define SWIG_OLDOBJ 1 |
| 279 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 |
| 280 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 |
| 281 | |
| 282 | #ifdef __cplusplus |
| 283 | #define SWIGSTATICINLINE(a) static inline a |
| 284 | #define SWIGSTATIC(a) static a |
| 285 | #define swig_new_array(size,Type) (new Type[(size)]) |
| 286 | #define swig_delete(cptr) delete cptr |
| 287 | #define swig_delete_array(cptr) delete[] cptr |
| 288 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
| 289 | #define swig_static_cast(a,Type) static_cast<Type >(a) |
| 290 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) |
| 291 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) |
| 292 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) |
| 293 | |
| 294 | #else /* C case */ |
| 295 | |
| 296 | #define SWIGSTATICINLINE(a) static a |
| 297 | #define SWIGSTATIC(a) static a |
| 298 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
| 299 | #define swig_delete(cptr) free((char*)cptr) |
| 300 | #define swig_delete_array(cptr) free((char*)cptr) |
| 301 | #define swig_const_cast(a,Type) (Type)(a) |
| 302 | #define swig_static_cast(a,Type) (Type)(a) |
| 303 | #define swig_reinterpret_cast(a,Type) (Type)(a) |
| 304 | #define swig_numeric_cast(a,Type) (Type)(a) |
| 305 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) |
| 306 | |
| 307 | #endif /* __cplusplus */ |
| 308 | |
| 309 | |
| 310 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 311 | #define SWIG_From_signed_SS_char PyInt_FromLong |
| 312 | /*@@*/ |
| 313 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 314 | #define SWIG_From_unsigned_SS_char PyInt_FromLong |
| 315 | /*@@*/ |
| 316 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 317 | #define SWIG_From_short PyInt_FromLong |
| 318 | /*@@*/ |
| 319 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 320 | #define SWIG_From_unsigned_SS_short PyInt_FromLong |
| 321 | /*@@*/ |
| 322 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 323 | #define SWIG_From_int PyInt_FromLong |
| 324 | /*@@*/ |
| 325 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 326 | #define SWIG_From_long PyInt_FromLong |
| 327 | /*@@*/ |
| 328 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 329 | #define SWIG_From_float PyFloat_FromDouble |
| 330 | /*@@*/ |
| 331 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
| 332 | #define SWIG_From_double PyFloat_FromDouble |
| 333 | /*@@*/ |
| 334 | |
| 335 | |
| 336 | #include "wx/wxPython/wxPython.h" |
| 337 | #include "wx/wxPython/pyclasses.h" |
| 338 | #include "wx/wxPython/printfw.h" |
| 339 | |
| 340 | #include <wx/grid.h> |
| 341 | #include <wx/generic/gridctrl.h> |
| 342 | |
| 343 | |
| 344 | static const wxString wxPyEmptyString(wxEmptyString); |
| 345 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
| 346 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); |
| 347 | |
| 348 | |
| 349 | #define wxPyMake_TEMPLATE(TYPE) \ |
| 350 | PyObject* wxPyMake_##TYPE(TYPE* source, bool setThisOwn) { \ |
| 351 | PyObject* target = NULL; \ |
| 352 | if (source) { \ |
| 353 | /* Check if there is already a pointer to a Python object in the \ |
| 354 | OOR data that we can use. */ \ |
| 355 | wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \ |
| 356 | if (data) { \ |
| 357 | target = data->m_obj; \ |
| 358 | if (target) \ |
| 359 | Py_INCREF(target); \ |
| 360 | } \ |
| 361 | /* Otherwise make a new wrapper for it the old fashioned way and \ |
| 362 | give it the OOR treatment */ \ |
| 363 | if (! target) { \ |
| 364 | target = wxPyConstructObject(source, wxT(#TYPE), setThisOwn); \ |
| 365 | if (target) \ |
| 366 | source->SetClientObject(new wxPyOORClientData(target)); \ |
| 367 | } \ |
| 368 | } else { /* source was NULL so return None. */ \ |
| 369 | Py_INCREF(Py_None); target = Py_None; \ |
| 370 | } \ |
| 371 | return target; \ |
| 372 | } \ |
| 373 | |
| 374 | |
| 375 | wxPyMake_TEMPLATE(wxGridCellRenderer) |
| 376 | wxPyMake_TEMPLATE(wxGridCellEditor) |
| 377 | wxPyMake_TEMPLATE(wxGridCellAttr) |
| 378 | wxPyMake_TEMPLATE(wxGridCellAttrProvider) |
| 379 | wxPyMake_TEMPLATE(wxGridTableBase) |
| 380 | |
| 381 | |
| 382 | |
| 383 | #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \ |
| 384 | wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ |
| 385 | wxGridCellAttr* rval = NULL; \ |
| 386 | bool found; \ |
| 387 | bool blocked = wxPyBeginBlockThreads(); \ |
| 388 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 389 | PyObject* ro; \ |
| 390 | wxGridCellAttr* ptr; \ |
| 391 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \ |
| 392 | if (ro) { \ |
| 393 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \ |
| 394 | rval = ptr; \ |
| 395 | Py_DECREF(ro); \ |
| 396 | } \ |
| 397 | } \ |
| 398 | wxPyEndBlockThreads(blocked); \ |
| 399 | if (! found) \ |
| 400 | rval = PCLASS::CBNAME(a, b, c); \ |
| 401 | return rval; \ |
| 402 | } \ |
| 403 | wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ |
| 404 | return PCLASS::CBNAME(a, b, c); \ |
| 405 | } |
| 406 | |
| 407 | |
| 408 | |
| 409 | #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \ |
| 410 | void CBNAME(wxGridCellAttr *attr, int a, int b) { \ |
| 411 | bool blocked = wxPyBeginBlockThreads(); \ |
| 412 | bool found; \ |
| 413 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 414 | PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \ |
| 415 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \ |
| 416 | Py_DECREF(obj); \ |
| 417 | } \ |
| 418 | wxPyEndBlockThreads(blocked); \ |
| 419 | if (! found) \ |
| 420 | PCLASS::CBNAME(attr, a, b); \ |
| 421 | } \ |
| 422 | void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \ |
| 423 | PCLASS::CBNAME(attr, a, b); \ |
| 424 | } |
| 425 | |
| 426 | |
| 427 | |
| 428 | #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \ |
| 429 | void CBNAME(wxGridCellAttr *attr, int val) { \ |
| 430 | bool blocked = wxPyBeginBlockThreads(); \ |
| 431 | bool found; \ |
| 432 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 433 | PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \ |
| 434 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \ |
| 435 | Py_DECREF(obj); \ |
| 436 | } \ |
| 437 | wxPyEndBlockThreads(blocked); \ |
| 438 | if (! found) \ |
| 439 | PCLASS::CBNAME(attr, val); \ |
| 440 | } \ |
| 441 | void base_##CBNAME(wxGridCellAttr *attr, int val) { \ |
| 442 | PCLASS::CBNAME(attr, val); \ |
| 443 | } |
| 444 | |
| 445 | |
| 446 | |
| 447 | #define PYCALLBACK_INT__pure(CBNAME) \ |
| 448 | int CBNAME() { \ |
| 449 | bool blocked = wxPyBeginBlockThreads(); \ |
| 450 | int rval = 0; \ |
| 451 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ |
| 452 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ |
| 453 | wxPyEndBlockThreads(blocked); \ |
| 454 | return rval; \ |
| 455 | } |
| 456 | |
| 457 | |
| 458 | |
| 459 | #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \ |
| 460 | bool CBNAME(int a, int b) { \ |
| 461 | bool blocked = wxPyBeginBlockThreads(); \ |
| 462 | bool rval = 0; \ |
| 463 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ |
| 464 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \ |
| 465 | wxPyEndBlockThreads(blocked); \ |
| 466 | return rval; \ |
| 467 | } |
| 468 | |
| 469 | |
| 470 | #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \ |
| 471 | wxString CBNAME(int a, int b) { \ |
| 472 | bool blocked = wxPyBeginBlockThreads(); \ |
| 473 | wxString rval; \ |
| 474 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ |
| 475 | PyObject* ro; \ |
| 476 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ |
| 477 | if (ro) { \ |
| 478 | rval = Py2wxString(ro); \ |
| 479 | Py_DECREF(ro); \ |
| 480 | } \ |
| 481 | } \ |
| 482 | wxPyEndBlockThreads(blocked); \ |
| 483 | return rval; \ |
| 484 | } |
| 485 | |
| 486 | |
| 487 | #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \ |
| 488 | void CBNAME(int a, int b, const wxString& c) { \ |
| 489 | bool blocked = wxPyBeginBlockThreads(); \ |
| 490 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ |
| 491 | PyObject* s = wx2PyString(c); \ |
| 492 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ |
| 493 | Py_DECREF(s); \ |
| 494 | } \ |
| 495 | wxPyEndBlockThreads(blocked); \ |
| 496 | } |
| 497 | |
| 498 | |
| 499 | #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \ |
| 500 | wxString CBNAME(int a, int b) { \ |
| 501 | bool found; \ |
| 502 | bool blocked = wxPyBeginBlockThreads(); \ |
| 503 | wxString rval; \ |
| 504 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 505 | PyObject* ro; \ |
| 506 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ |
| 507 | if (ro) { \ |
| 508 | rval = Py2wxString(ro); \ |
| 509 | Py_DECREF(ro); \ |
| 510 | } \ |
| 511 | } \ |
| 512 | wxPyEndBlockThreads(blocked); \ |
| 513 | if (! found) \ |
| 514 | rval = PCLASS::CBNAME(a, b); \ |
| 515 | return rval; \ |
| 516 | } \ |
| 517 | wxString base_##CBNAME(int a, int b) { \ |
| 518 | return PCLASS::CBNAME(a, b); \ |
| 519 | } |
| 520 | |
| 521 | |
| 522 | #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ |
| 523 | bool CBNAME(int a, int b, const wxString& c) { \ |
| 524 | bool rval = 0; \ |
| 525 | bool found; \ |
| 526 | bool blocked = wxPyBeginBlockThreads(); \ |
| 527 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 528 | PyObject* s = wx2PyString(c); \ |
| 529 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ |
| 530 | Py_DECREF(s); \ |
| 531 | } \ |
| 532 | wxPyEndBlockThreads(blocked); \ |
| 533 | if (! found) \ |
| 534 | rval = PCLASS::CBNAME(a,b,c); \ |
| 535 | return rval; \ |
| 536 | } \ |
| 537 | bool base_##CBNAME(int a, int b, const wxString& c) { \ |
| 538 | return PCLASS::CBNAME(a,b,c); \ |
| 539 | } |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \ |
| 545 | long CBNAME(int a, int b) { \ |
| 546 | long rval; \ |
| 547 | bool found; \ |
| 548 | bool blocked = wxPyBeginBlockThreads(); \ |
| 549 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 550 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ |
| 551 | wxPyEndBlockThreads(blocked); \ |
| 552 | if (! found) \ |
| 553 | rval = PCLASS::CBNAME(a,b); \ |
| 554 | return rval; \ |
| 555 | } \ |
| 556 | long base_##CBNAME(int a, int b) { \ |
| 557 | return PCLASS::CBNAME(a,b); \ |
| 558 | } |
| 559 | |
| 560 | |
| 561 | |
| 562 | #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ |
| 563 | bool CBNAME(int a, int b) { \ |
| 564 | bool rval = 0; \ |
| 565 | bool found; \ |
| 566 | bool blocked = wxPyBeginBlockThreads(); \ |
| 567 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 568 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ |
| 569 | wxPyEndBlockThreads(blocked); \ |
| 570 | if (! found) \ |
| 571 | rval = PCLASS::CBNAME(a,b); \ |
| 572 | return rval; \ |
| 573 | } \ |
| 574 | bool base_##CBNAME(int a, int b) { \ |
| 575 | return PCLASS::CBNAME(a,b); \ |
| 576 | } |
| 577 | |
| 578 | |
| 579 | |
| 580 | #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \ |
| 581 | double CBNAME(int a, int b) { \ |
| 582 | bool found; \ |
| 583 | bool blocked = wxPyBeginBlockThreads(); \ |
| 584 | double rval; \ |
| 585 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 586 | PyObject* ro; \ |
| 587 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ |
| 588 | if (ro) { \ |
| 589 | PyObject* str = PyObject_Str(ro); \ |
| 590 | rval = PyFloat_AsDouble(str); \ |
| 591 | Py_DECREF(ro); Py_DECREF(str); \ |
| 592 | } \ |
| 593 | } \ |
| 594 | wxPyEndBlockThreads(blocked); \ |
| 595 | if (! found) \ |
| 596 | rval = PCLASS::CBNAME(a, b); \ |
| 597 | return rval; \ |
| 598 | } \ |
| 599 | double base_##CBNAME(int a, int b) { \ |
| 600 | return PCLASS::CBNAME(a, b); \ |
| 601 | } |
| 602 | |
| 603 | |
| 604 | |
| 605 | #define PYCALLBACK__(PCLASS, CBNAME) \ |
| 606 | void CBNAME() { \ |
| 607 | bool found; \ |
| 608 | bool blocked = wxPyBeginBlockThreads(); \ |
| 609 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 610 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ |
| 611 | wxPyEndBlockThreads(blocked); \ |
| 612 | if (! found) \ |
| 613 | PCLASS::CBNAME(); \ |
| 614 | } \ |
| 615 | void base_##CBNAME() { \ |
| 616 | PCLASS::CBNAME(); \ |
| 617 | } |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ |
| 623 | bool CBNAME(size_t a, size_t b) { \ |
| 624 | bool rval = 0; \ |
| 625 | bool found; \ |
| 626 | bool blocked = wxPyBeginBlockThreads(); \ |
| 627 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 628 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ |
| 629 | wxPyEndBlockThreads(blocked); \ |
| 630 | if (! found) \ |
| 631 | rval = PCLASS::CBNAME(a,b); \ |
| 632 | return rval; \ |
| 633 | } \ |
| 634 | bool base_##CBNAME(size_t a, size_t b) { \ |
| 635 | return PCLASS::CBNAME(a,b); \ |
| 636 | } |
| 637 | |
| 638 | |
| 639 | |
| 640 | #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ |
| 641 | bool CBNAME(size_t a) { \ |
| 642 | bool rval = 0; \ |
| 643 | bool found; \ |
| 644 | bool blocked = wxPyBeginBlockThreads(); \ |
| 645 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 646 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ |
| 647 | wxPyEndBlockThreads(blocked); \ |
| 648 | if (! found) \ |
| 649 | rval = PCLASS::CBNAME(a); \ |
| 650 | return rval; \ |
| 651 | } \ |
| 652 | bool base_##CBNAME(size_t a) { \ |
| 653 | return PCLASS::CBNAME(a); \ |
| 654 | } |
| 655 | |
| 656 | |
| 657 | #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \ |
| 658 | wxString CBNAME(int a) { \ |
| 659 | bool found; \ |
| 660 | bool blocked = wxPyBeginBlockThreads(); \ |
| 661 | wxString rval; \ |
| 662 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 663 | PyObject* ro; \ |
| 664 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \ |
| 665 | if (ro) { \ |
| 666 | rval = Py2wxString(ro); \ |
| 667 | Py_DECREF(ro); \ |
| 668 | } \ |
| 669 | } \ |
| 670 | wxPyEndBlockThreads(blocked); \ |
| 671 | if (! found) \ |
| 672 | rval = PCLASS::CBNAME(a); \ |
| 673 | return rval; \ |
| 674 | } \ |
| 675 | wxString base_##CBNAME(int a) { \ |
| 676 | return PCLASS::CBNAME(a); \ |
| 677 | } |
| 678 | |
| 679 | |
| 680 | #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \ |
| 681 | void CBNAME(int a, const wxString& c) { \ |
| 682 | bool found; \ |
| 683 | bool blocked = wxPyBeginBlockThreads(); \ |
| 684 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
| 685 | PyObject* s = wx2PyString(c); \ |
| 686 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \ |
| 687 | Py_DECREF(s); \ |
| 688 | } \ |
| 689 | wxPyEndBlockThreads(blocked); \ |
| 690 | if (! found) \ |
| 691 | PCLASS::CBNAME(a,c); \ |
| 692 | } \ |
| 693 | void base_##CBNAME(int a, const wxString& c) { \ |
| 694 | PCLASS::CBNAME(a,c); \ |
| 695 | } |
| 696 | |
| 697 | |
| 698 | |
| 699 | |
| 700 | #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ |
| 701 | bool CBNAME() { \ |
| 702 | bool rval = 0; \ |
| 703 | bool found; \ |
| 704 | bool blocked = wxPyBeginBlockThreads(); \ |
| 705 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 706 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ |
| 707 | wxPyEndBlockThreads(blocked); \ |
| 708 | if (! found) \ |
| 709 | rval = PCLASS::CBNAME(); \ |
| 710 | return rval; \ |
| 711 | } \ |
| 712 | bool base_##CBNAME() { \ |
| 713 | return PCLASS::CBNAME(); \ |
| 714 | } |
| 715 | |
| 716 | |
| 717 | |
| 718 | #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \ |
| 719 | void CBNAME(size_t a, int b) { \ |
| 720 | bool found; \ |
| 721 | bool blocked = wxPyBeginBlockThreads(); \ |
| 722 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 723 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ |
| 724 | wxPyEndBlockThreads(blocked); \ |
| 725 | if (! found) \ |
| 726 | PCLASS::CBNAME(a,b); \ |
| 727 | } \ |
| 728 | void base_##CBNAME(size_t a, int b) { \ |
| 729 | PCLASS::CBNAME(a,b); \ |
| 730 | } |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \ |
| 736 | void CBNAME(int a, int b, long c) { \ |
| 737 | bool found; \ |
| 738 | bool blocked = wxPyBeginBlockThreads(); \ |
| 739 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 740 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ |
| 741 | wxPyEndBlockThreads(blocked); \ |
| 742 | if (! found) \ |
| 743 | PCLASS::CBNAME(a,b,c); \ |
| 744 | } \ |
| 745 | void base_##CBNAME(int a, int b, long c) { \ |
| 746 | PCLASS::CBNAME(a,b,c); \ |
| 747 | } |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \ |
| 753 | void CBNAME(int a, int b, double c) { \ |
| 754 | bool found; \ |
| 755 | bool blocked = wxPyBeginBlockThreads(); \ |
| 756 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 757 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \ |
| 758 | wxPyEndBlockThreads(blocked); \ |
| 759 | if (! found) \ |
| 760 | PCLASS::CBNAME(a,b,c); \ |
| 761 | } \ |
| 762 | void base_##CBNAME(int a, int b, double c) { \ |
| 763 | PCLASS::CBNAME(a,b,c); \ |
| 764 | } |
| 765 | |
| 766 | |
| 767 | |
| 768 | #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \ |
| 769 | void CBNAME(int a, int b, bool c) { \ |
| 770 | bool found; \ |
| 771 | bool blocked = wxPyBeginBlockThreads(); \ |
| 772 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
| 773 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ |
| 774 | wxPyEndBlockThreads(blocked); \ |
| 775 | if (! found) \ |
| 776 | PCLASS::CBNAME(a,b,c); \ |
| 777 | } \ |
| 778 | void base_##CBNAME(int a, int b, bool c) { \ |
| 779 | PCLASS::CBNAME(a,b,c); \ |
| 780 | } |
| 781 | |
| 782 | |
| 783 | |
| 784 | |
| 785 | |
| 786 | |
| 787 | SWIGSTATICINLINE(PyObject *) |
| 788 | SWIG_FromCharPtr(const char* cptr) |
| 789 | { |
| 790 | if (cptr) { |
| 791 | size_t size = strlen(cptr); |
| 792 | if (size > INT_MAX) { |
| 793 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
| 794 | SWIG_TypeQuery("char *"), 0); |
| 795 | } else { |
| 796 | if (size != 0) { |
| 797 | return PyString_FromStringAndSize(cptr, size); |
| 798 | } else { |
| 799 | return PyString_FromString(cptr); |
| 800 | } |
| 801 | } |
| 802 | } |
| 803 | Py_INCREF(Py_None); |
| 804 | return Py_None; |
| 805 | } |
| 806 | |
| 807 | |
| 808 | #define wxGRID_DEFAULT_NUMBER_ROWS WXGRID_DEFAULT_NUMBER_ROWS |
| 809 | #define wxGRID_DEFAULT_NUMBER_COLS WXGRID_DEFAULT_NUMBER_COLS |
| 810 | #define wxGRID_DEFAULT_ROW_HEIGHT WXGRID_DEFAULT_ROW_HEIGHT |
| 811 | #define wxGRID_DEFAULT_COL_WIDTH WXGRID_DEFAULT_COL_WIDTH |
| 812 | #define wxGRID_DEFAULT_COL_LABEL_HEIGHT WXGRID_DEFAULT_COL_LABEL_HEIGHT |
| 813 | #define wxGRID_DEFAULT_ROW_LABEL_WIDTH WXGRID_DEFAULT_ROW_LABEL_WIDTH |
| 814 | #define wxGRID_LABEL_EDGE_ZONE WXGRID_LABEL_EDGE_ZONE |
| 815 | #define wxGRID_MIN_ROW_HEIGHT WXGRID_MIN_ROW_HEIGHT |
| 816 | #define wxGRID_MIN_COL_WIDTH WXGRID_MIN_COL_WIDTH |
| 817 | #define wxGRID_DEFAULT_SCROLLBAR_WIDTH WXGRID_DEFAULT_SCROLLBAR_WIDTH |
| 818 | |
| 819 | void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){ |
| 820 | if (!self->GetClientObject()) |
| 821 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 822 | } |
| 823 | |
| 824 | #include <limits.h> |
| 825 | |
| 826 | |
| 827 | SWIGSTATICINLINE(int) |
| 828 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
| 829 | const char *errmsg) |
| 830 | { |
| 831 | if (value < min_value) { |
| 832 | if (errmsg) { |
| 833 | PyErr_Format(PyExc_OverflowError, |
| 834 | "value %ld is less than '%s' minimum %ld", |
| 835 | value, errmsg, min_value); |
| 836 | } |
| 837 | return 0; |
| 838 | } else if (value > max_value) { |
| 839 | if (errmsg) { |
| 840 | PyErr_Format(PyExc_OverflowError, |
| 841 | "value %ld is greater than '%s' maximum %ld", |
| 842 | value, errmsg, max_value); |
| 843 | } |
| 844 | return 0; |
| 845 | } |
| 846 | return 1; |
| 847 | } |
| 848 | |
| 849 | |
| 850 | // See my_fragments.i |
| 851 | SWIGSTATICINLINE(int) |
| 852 | SWIG_AsVal_long(PyObject* obj, long* val) |
| 853 | { |
| 854 | if (PyNumber_Check(obj)) { |
| 855 | if (val) *val = PyInt_AsLong(obj); |
| 856 | return 1; |
| 857 | } |
| 858 | else { |
| 859 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", |
| 860 | obj->ob_type->tp_name); |
| 861 | PyErr_SetObject(PyExc_TypeError, errmsg); |
| 862 | Py_DECREF(errmsg); |
| 863 | } |
| 864 | return 0; |
| 865 | } |
| 866 | |
| 867 | |
| 868 | #if INT_MAX != LONG_MAX |
| 869 | SWIGSTATICINLINE(int) |
| 870 | SWIG_AsVal_int(PyObject *obj, int *val) |
| 871 | { |
| 872 | const char* errmsg = val ? "int" : 0; |
| 873 | long v; |
| 874 | if (SWIG_AsVal_long(obj, &v)) { |
| 875 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { |
| 876 | if (val) *val = swig_numeric_cast(v, int); |
| 877 | return 1; |
| 878 | } else { |
| 879 | return 0; |
| 880 | } |
| 881 | } else { |
| 882 | PyErr_Clear(); |
| 883 | } |
| 884 | if (val) { |
| 885 | PyErr_SetString(PyExc_TypeError, "an int is expected"); |
| 886 | } |
| 887 | return 0; |
| 888 | } |
| 889 | #else |
| 890 | SWIGSTATICINLINE(int) |
| 891 | SWIG_AsVal_int(PyObject *obj, int *val) |
| 892 | { |
| 893 | return SWIG_AsVal_long(obj,(long*)val); |
| 894 | } |
| 895 | #endif |
| 896 | |
| 897 | |
| 898 | SWIGSTATICINLINE(int) |
| 899 | SWIG_As_int(PyObject* obj) |
| 900 | { |
| 901 | int v; |
| 902 | if (!SWIG_AsVal_int(obj, &v)) { |
| 903 | /* |
| 904 | this is needed to make valgrind/purify happier. the other |
| 905 | solution is throw an exception, but since this code should work |
| 906 | with plain C .... |
| 907 | */ |
| 908 | memset((void*)&v, 0, sizeof(int)); |
| 909 | } |
| 910 | return v; |
| 911 | } |
| 912 | |
| 913 | |
| 914 | SWIGSTATICINLINE(int) |
| 915 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
| 916 | { |
| 917 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
| 918 | if (obj == Py_True) { |
| 919 | if (val) *val = true; |
| 920 | return 1; |
| 921 | } |
| 922 | if (obj == Py_False) { |
| 923 | if (val) *val = false; |
| 924 | return 1; |
| 925 | } |
| 926 | int res = 0; |
| 927 | if (SWIG_AsVal_int(obj, &res)) { |
| 928 | if (val) *val = (bool)res; |
| 929 | return 1; |
| 930 | } |
| 931 | if (val) { |
| 932 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); |
| 933 | } |
| 934 | return 0; |
| 935 | } |
| 936 | |
| 937 | |
| 938 | SWIGSTATICINLINE(bool) |
| 939 | SWIG_As_bool(PyObject* obj) |
| 940 | { |
| 941 | bool v; |
| 942 | if (!SWIG_AsVal_bool(obj, &v)) { |
| 943 | /* |
| 944 | this is needed to make valgrind/purify happier. the other |
| 945 | solution is throw an exception, but since this code should work |
| 946 | with plain C .... |
| 947 | */ |
| 948 | memset((void*)&v, 0, sizeof(bool)); |
| 949 | } |
| 950 | return v; |
| 951 | } |
| 952 | |
| 953 | |
| 954 | SWIGSTATICINLINE(int) |
| 955 | SWIG_Check_int(PyObject* obj) |
| 956 | { |
| 957 | return SWIG_AsVal_int(obj, (int*)0); |
| 958 | } |
| 959 | |
| 960 | |
| 961 | SWIGSTATICINLINE(int) |
| 962 | SWIG_Check_bool(PyObject* obj) |
| 963 | { |
| 964 | return SWIG_AsVal_bool(obj, (bool*)0); |
| 965 | } |
| 966 | |
| 967 | |
| 968 | class wxPyGridCellRenderer : public wxGridCellRenderer |
| 969 | { |
| 970 | public: |
| 971 | wxPyGridCellRenderer() : wxGridCellRenderer() {}; |
| 972 | |
| 973 | // Implement Python callback aware virtual methods |
| 974 | void Draw(wxGrid& grid, wxGridCellAttr& attr, |
| 975 | wxDC& dc, const wxRect& rect, |
| 976 | int row, int col, bool isSelected) { |
| 977 | bool blocked = wxPyBeginBlockThreads(); |
| 978 | if (wxPyCBH_findCallback(m_myInst, "Draw")) { |
| 979 | PyObject* go = wxPyMake_wxObject(&grid,false); |
| 980 | PyObject* dco = wxPyMake_wxObject(&dc,false); |
| 981 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false); |
| 982 | PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0); |
| 983 | |
| 984 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro, |
| 985 | row, col, isSelected)); |
| 986 | Py_DECREF(go); |
| 987 | Py_DECREF(ao); |
| 988 | Py_DECREF(dco); |
| 989 | Py_DECREF(ro); |
| 990 | } |
| 991 | wxPyEndBlockThreads(blocked); |
| 992 | } |
| 993 | |
| 994 | wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, |
| 995 | int row, int col) { |
| 996 | wxSize rval; |
| 997 | bool blocked = wxPyBeginBlockThreads(); |
| 998 | if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) { |
| 999 | PyObject* ro; |
| 1000 | wxSize* ptr; |
| 1001 | PyObject* go = wxPyMake_wxObject(&grid,false); |
| 1002 | PyObject* dco = wxPyMake_wxObject(&dc,false); |
| 1003 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false); |
| 1004 | |
| 1005 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)", |
| 1006 | go, ao, dco, |
| 1007 | row, col)); |
| 1008 | Py_DECREF(go); |
| 1009 | Py_DECREF(ao); |
| 1010 | Py_DECREF(dco); |
| 1011 | |
| 1012 | if (ro) { |
| 1013 | const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object."; |
| 1014 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) { |
| 1015 | rval = *ptr; |
| 1016 | } |
| 1017 | else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { |
| 1018 | PyObject* o1 = PySequence_GetItem(ro, 0); |
| 1019 | PyObject* o2 = PySequence_GetItem(ro, 1); |
| 1020 | if (PyNumber_Check(o1) && PyNumber_Check(o2)) |
| 1021 | rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2)); |
| 1022 | else |
| 1023 | PyErr_SetString(PyExc_TypeError, errmsg); |
| 1024 | Py_DECREF(o1); |
| 1025 | Py_DECREF(o2); |
| 1026 | } |
| 1027 | else { |
| 1028 | PyErr_SetString(PyExc_TypeError, errmsg); |
| 1029 | } |
| 1030 | Py_DECREF(ro); |
| 1031 | } |
| 1032 | } |
| 1033 | wxPyEndBlockThreads(blocked); |
| 1034 | return rval; |
| 1035 | } |
| 1036 | |
| 1037 | |
| 1038 | wxGridCellRenderer *Clone() const { |
| 1039 | wxGridCellRenderer* rval = NULL; |
| 1040 | bool blocked = wxPyBeginBlockThreads(); |
| 1041 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
| 1042 | PyObject* ro; |
| 1043 | wxGridCellRenderer* ptr; |
| 1044 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); |
| 1045 | if (ro) { |
| 1046 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer"))) |
| 1047 | rval = ptr; |
| 1048 | Py_DECREF(ro); |
| 1049 | } |
| 1050 | } |
| 1051 | wxPyEndBlockThreads(blocked); |
| 1052 | return rval; |
| 1053 | } |
| 1054 | |
| 1055 | DEC_PYCALLBACK__STRING(SetParameters); |
| 1056 | |
| 1057 | PYPRIVATE; |
| 1058 | }; |
| 1059 | |
| 1060 | IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters); |
| 1061 | |
| 1062 | |
| 1063 | void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){ |
| 1064 | if (!self->GetClientObject()) |
| 1065 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 1066 | } |
| 1067 | |
| 1068 | class wxPyGridCellEditor : public wxGridCellEditor |
| 1069 | { |
| 1070 | public: |
| 1071 | wxPyGridCellEditor() : wxGridCellEditor() {} |
| 1072 | |
| 1073 | void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) { |
| 1074 | bool blocked = wxPyBeginBlockThreads(); |
| 1075 | if (wxPyCBH_findCallback(m_myInst, "Create")) { |
| 1076 | PyObject* po = wxPyMake_wxObject(parent,false); |
| 1077 | PyObject* eo = wxPyMake_wxObject(evtHandler,false); |
| 1078 | |
| 1079 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo)); |
| 1080 | Py_DECREF(po); |
| 1081 | Py_DECREF(eo); |
| 1082 | } |
| 1083 | wxPyEndBlockThreads(blocked); |
| 1084 | } |
| 1085 | |
| 1086 | |
| 1087 | void BeginEdit(int row, int col, wxGrid* grid) { |
| 1088 | bool blocked = wxPyBeginBlockThreads(); |
| 1089 | if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) { |
| 1090 | PyObject* go = wxPyMake_wxObject(grid,false); |
| 1091 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); |
| 1092 | Py_DECREF(go); |
| 1093 | } |
| 1094 | wxPyEndBlockThreads(blocked); |
| 1095 | } |
| 1096 | |
| 1097 | |
| 1098 | bool EndEdit(int row, int col, wxGrid* grid) { |
| 1099 | bool rv = false; |
| 1100 | bool blocked = wxPyBeginBlockThreads(); |
| 1101 | if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { |
| 1102 | PyObject* go = wxPyMake_wxObject(grid,false); |
| 1103 | rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); |
| 1104 | Py_DECREF(go); |
| 1105 | } |
| 1106 | wxPyEndBlockThreads(blocked); |
| 1107 | return rv; |
| 1108 | } |
| 1109 | |
| 1110 | |
| 1111 | wxGridCellEditor* Clone() const { |
| 1112 | wxGridCellEditor* rval = NULL; |
| 1113 | bool blocked = wxPyBeginBlockThreads(); |
| 1114 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
| 1115 | PyObject* ro; |
| 1116 | wxGridCellEditor* ptr; |
| 1117 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); |
| 1118 | if (ro) { |
| 1119 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor"))) |
| 1120 | rval = ptr; |
| 1121 | Py_DECREF(ro); |
| 1122 | } |
| 1123 | } |
| 1124 | wxPyEndBlockThreads(blocked); |
| 1125 | return rval; |
| 1126 | } |
| 1127 | |
| 1128 | |
| 1129 | void Show(bool show, wxGridCellAttr *attr) { |
| 1130 | bool found; |
| 1131 | bool blocked = wxPyBeginBlockThreads(); |
| 1132 | if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) { |
| 1133 | PyObject* ao = wxPyMake_wxGridCellAttr(attr,false); |
| 1134 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao)); |
| 1135 | Py_DECREF(ao); |
| 1136 | } |
| 1137 | wxPyEndBlockThreads(blocked); |
| 1138 | if (! found) |
| 1139 | wxGridCellEditor::Show(show, attr); |
| 1140 | } |
| 1141 | void base_Show(bool show, wxGridCellAttr *attr) { |
| 1142 | wxGridCellEditor::Show(show, attr); |
| 1143 | } |
| 1144 | |
| 1145 | |
| 1146 | void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { |
| 1147 | bool found; |
| 1148 | bool blocked = wxPyBeginBlockThreads(); |
| 1149 | if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) { |
| 1150 | PyObject* ao = wxPyMake_wxGridCellAttr(attr,false); |
| 1151 | PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0); |
| 1152 | |
| 1153 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao)); |
| 1154 | |
| 1155 | Py_DECREF(ro); |
| 1156 | Py_DECREF(ao); |
| 1157 | } |
| 1158 | wxPyEndBlockThreads(blocked); |
| 1159 | if (! found) |
| 1160 | wxGridCellEditor::PaintBackground(rectCell, attr); |
| 1161 | } |
| 1162 | void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { |
| 1163 | wxGridCellEditor::PaintBackground(rectCell, attr); |
| 1164 | } |
| 1165 | |
| 1166 | |
| 1167 | DEC_PYCALLBACK___pure(Reset); |
| 1168 | DEC_PYCALLBACK__constany(SetSize, wxRect); |
| 1169 | DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent); |
| 1170 | DEC_PYCALLBACK__any(StartingKey, wxKeyEvent); |
| 1171 | DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent); |
| 1172 | DEC_PYCALLBACK__(StartingClick); |
| 1173 | DEC_PYCALLBACK__(Destroy); |
| 1174 | DEC_PYCALLBACK__STRING(SetParameters); |
| 1175 | DEC_PYCALLBACK_STRING__constpure(GetValue); |
| 1176 | |
| 1177 | PYPRIVATE; |
| 1178 | }; |
| 1179 | |
| 1180 | |
| 1181 | IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters); |
| 1182 | IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset); |
| 1183 | IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect); |
| 1184 | IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent); |
| 1185 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent); |
| 1186 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent); |
| 1187 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick); |
| 1188 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy); |
| 1189 | IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue); |
| 1190 | |
| 1191 | |
| 1192 | void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){ |
| 1193 | if (!self->GetClientObject()) |
| 1194 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 1195 | } |
| 1196 | |
| 1197 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
| 1198 | PyObject* o2; |
| 1199 | PyObject* o3; |
| 1200 | |
| 1201 | if (!target) { |
| 1202 | target = o; |
| 1203 | } else if (target == Py_None) { |
| 1204 | Py_DECREF(Py_None); |
| 1205 | target = o; |
| 1206 | } else { |
| 1207 | if (!PyTuple_Check(target)) { |
| 1208 | o2 = target; |
| 1209 | target = PyTuple_New(1); |
| 1210 | PyTuple_SetItem(target, 0, o2); |
| 1211 | } |
| 1212 | o3 = PyTuple_New(1); |
| 1213 | PyTuple_SetItem(o3, 0, o); |
| 1214 | |
| 1215 | o2 = target; |
| 1216 | target = PySequence_Concat(o2, o3); |
| 1217 | Py_DECREF(o2); |
| 1218 | Py_DECREF(o3); |
| 1219 | } |
| 1220 | return target; |
| 1221 | } |
| 1222 | |
| 1223 | |
| 1224 | void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){ |
| 1225 | if (!self->GetClientObject()) |
| 1226 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 1227 | } |
| 1228 | |
| 1229 | // See my_fragments.i |
| 1230 | SWIGSTATICINLINE(int) |
| 1231 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
| 1232 | { |
| 1233 | long v = 0; |
| 1234 | if (SWIG_AsVal_long(obj, &v) && v < 0) { |
| 1235 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
| 1236 | return 0; |
| 1237 | } |
| 1238 | else if (val) |
| 1239 | *val = (unsigned long)v; |
| 1240 | return 1; |
| 1241 | } |
| 1242 | |
| 1243 | |
| 1244 | SWIGSTATICINLINE(unsigned long) |
| 1245 | SWIG_As_unsigned_SS_long(PyObject* obj) |
| 1246 | { |
| 1247 | unsigned long v; |
| 1248 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { |
| 1249 | /* |
| 1250 | this is needed to make valgrind/purify happier. the other |
| 1251 | solution is throw an exception, but since this code should work |
| 1252 | with plain C .... |
| 1253 | */ |
| 1254 | memset((void*)&v, 0, sizeof(unsigned long)); |
| 1255 | } |
| 1256 | return v; |
| 1257 | } |
| 1258 | |
| 1259 | |
| 1260 | SWIGSTATICINLINE(int) |
| 1261 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
| 1262 | { |
| 1263 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); |
| 1264 | } |
| 1265 | |
| 1266 | |
| 1267 | class wxPyGridCellAttrProvider : public wxGridCellAttrProvider |
| 1268 | { |
| 1269 | public: |
| 1270 | wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {}; |
| 1271 | |
| 1272 | PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr); |
| 1273 | PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr); |
| 1274 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr); |
| 1275 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr); |
| 1276 | |
| 1277 | PYPRIVATE; |
| 1278 | }; |
| 1279 | |
| 1280 | void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){ |
| 1281 | if (!self->GetClientObject()) |
| 1282 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 1283 | } |
| 1284 | |
| 1285 | SWIGSTATICINLINE(long) |
| 1286 | SWIG_As_long(PyObject* obj) |
| 1287 | { |
| 1288 | long v; |
| 1289 | if (!SWIG_AsVal_long(obj, &v)) { |
| 1290 | /* |
| 1291 | this is needed to make valgrind/purify happier. the other |
| 1292 | solution is throw an exception, but since this code should work |
| 1293 | with plain C .... |
| 1294 | */ |
| 1295 | memset((void*)&v, 0, sizeof(long)); |
| 1296 | } |
| 1297 | return v; |
| 1298 | } |
| 1299 | |
| 1300 | |
| 1301 | SWIGSTATICINLINE(int) |
| 1302 | SWIG_Check_long(PyObject* obj) |
| 1303 | { |
| 1304 | return SWIG_AsVal_long(obj, (long*)0); |
| 1305 | } |
| 1306 | |
| 1307 | |
| 1308 | // See my_fragments.i |
| 1309 | SWIGSTATICINLINE(int) |
| 1310 | SWIG_AsVal_double(PyObject *obj, double* val) |
| 1311 | { |
| 1312 | if (PyNumber_Check(obj)) { |
| 1313 | if (val) *val = PyFloat_AsDouble(obj); |
| 1314 | return 1; |
| 1315 | } |
| 1316 | else { |
| 1317 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", |
| 1318 | obj->ob_type->tp_name); |
| 1319 | PyErr_SetObject(PyExc_TypeError, errmsg); |
| 1320 | Py_DECREF(errmsg); |
| 1321 | } |
| 1322 | return 0; |
| 1323 | } |
| 1324 | |
| 1325 | |
| 1326 | SWIGSTATICINLINE(double) |
| 1327 | SWIG_As_double(PyObject* obj) |
| 1328 | { |
| 1329 | double v; |
| 1330 | if (!SWIG_AsVal_double(obj, &v)) { |
| 1331 | /* |
| 1332 | this is needed to make valgrind/purify happier. the other |
| 1333 | solution is throw an exception, but since this code should work |
| 1334 | with plain C .... |
| 1335 | */ |
| 1336 | memset((void*)&v, 0, sizeof(double)); |
| 1337 | } |
| 1338 | return v; |
| 1339 | } |
| 1340 | |
| 1341 | |
| 1342 | SWIGSTATICINLINE(int) |
| 1343 | SWIG_Check_double(PyObject* obj) |
| 1344 | { |
| 1345 | return SWIG_AsVal_double(obj, (double*)0); |
| 1346 | } |
| 1347 | |
| 1348 | |
| 1349 | class wxPyGridTableBase : public wxGridTableBase |
| 1350 | { |
| 1351 | public: |
| 1352 | wxPyGridTableBase() : wxGridTableBase() {} |
| 1353 | |
| 1354 | PYCALLBACK_INT__pure(GetNumberRows); |
| 1355 | PYCALLBACK_INT__pure(GetNumberCols); |
| 1356 | PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell); |
| 1357 | PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName); |
| 1358 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs); |
| 1359 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs); |
| 1360 | PYCALLBACK__(wxGridTableBase, Clear); |
| 1361 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows); |
| 1362 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows); |
| 1363 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols); |
| 1364 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols); |
| 1365 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows); |
| 1366 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols); |
| 1367 | PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue); |
| 1368 | PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue); |
| 1369 | PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue); |
| 1370 | PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue); |
| 1371 | PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes); |
| 1372 | PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr); |
| 1373 | PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr); |
| 1374 | PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr); |
| 1375 | PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr); |
| 1376 | |
| 1377 | |
| 1378 | wxString GetValue(int row, int col) { |
| 1379 | bool blocked = wxPyBeginBlockThreads(); |
| 1380 | wxString rval; |
| 1381 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
| 1382 | PyObject* ro; |
| 1383 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col)); |
| 1384 | if (ro) { |
| 1385 | if (!PyString_Check(ro) && !PyUnicode_Check(ro)) { |
| 1386 | PyObject* old = ro; |
| 1387 | ro = PyObject_Str(ro); |
| 1388 | Py_DECREF(old); |
| 1389 | } |
| 1390 | rval = Py2wxString(ro); |
| 1391 | Py_DECREF(ro); |
| 1392 | } |
| 1393 | } |
| 1394 | wxPyEndBlockThreads(blocked); |
| 1395 | return rval; |
| 1396 | } |
| 1397 | |
| 1398 | void SetValue(int row, int col, const wxString& val) { |
| 1399 | bool blocked = wxPyBeginBlockThreads(); |
| 1400 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
| 1401 | PyObject* s = wx2PyString(val); |
| 1402 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s)); |
| 1403 | Py_DECREF(s); |
| 1404 | } |
| 1405 | wxPyEndBlockThreads(blocked); |
| 1406 | } |
| 1407 | |
| 1408 | |
| 1409 | // Map the Get/Set methods for the standard non-string types to |
| 1410 | // the GetValue and SetValue python methods. |
| 1411 | long GetValueAsLong( int row, int col ) { |
| 1412 | long rval = 0; |
| 1413 | bool blocked = wxPyBeginBlockThreads(); |
| 1414 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
| 1415 | PyObject* ro; |
| 1416 | PyObject* num; |
| 1417 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); |
| 1418 | if (ro && PyNumber_Check(ro)) { |
| 1419 | num = PyNumber_Int(ro); |
| 1420 | if (num) { |
| 1421 | rval = PyInt_AsLong(num); |
| 1422 | Py_DECREF(num); |
| 1423 | } |
| 1424 | Py_DECREF(ro); |
| 1425 | } |
| 1426 | } |
| 1427 | wxPyEndBlockThreads(blocked); |
| 1428 | return rval; |
| 1429 | } |
| 1430 | |
| 1431 | double GetValueAsDouble( int row, int col ) { |
| 1432 | double rval = 0.0; |
| 1433 | bool blocked = wxPyBeginBlockThreads(); |
| 1434 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
| 1435 | PyObject* ro; |
| 1436 | PyObject* num; |
| 1437 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); |
| 1438 | if (ro && PyNumber_Check(ro)) { |
| 1439 | num = PyNumber_Float(ro); |
| 1440 | if (num) { |
| 1441 | rval = PyFloat_AsDouble(num); |
| 1442 | Py_DECREF(num); |
| 1443 | } |
| 1444 | Py_DECREF(ro); |
| 1445 | } |
| 1446 | } |
| 1447 | wxPyEndBlockThreads(blocked); |
| 1448 | return rval; |
| 1449 | } |
| 1450 | |
| 1451 | bool GetValueAsBool( int row, int col ) { |
| 1452 | return (bool)GetValueAsLong(row, col); |
| 1453 | } |
| 1454 | |
| 1455 | void SetValueAsLong( int row, int col, long value ) { |
| 1456 | bool blocked = wxPyBeginBlockThreads(); |
| 1457 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
| 1458 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value)); |
| 1459 | } |
| 1460 | wxPyEndBlockThreads(blocked); |
| 1461 | } |
| 1462 | |
| 1463 | void SetValueAsDouble( int row, int col, double value ) { |
| 1464 | bool blocked = wxPyBeginBlockThreads(); |
| 1465 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
| 1466 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value)); |
| 1467 | } |
| 1468 | wxPyEndBlockThreads(blocked); |
| 1469 | } |
| 1470 | |
| 1471 | void SetValueAsBool( int row, int col, bool value ) { |
| 1472 | SetValueAsLong( row, col, (long)value ); |
| 1473 | } |
| 1474 | |
| 1475 | |
| 1476 | PYPRIVATE; |
| 1477 | }; |
| 1478 | |
| 1479 | void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; } |
| 1480 | |
| 1481 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { |
| 1482 | |
| 1483 | if (source == Py_None) { |
| 1484 | **obj = wxGridCellCoords(-1,-1); |
| 1485 | return true; |
| 1486 | } |
| 1487 | |
| 1488 | // If source is an object instance then it may already be the right type |
| 1489 | if (wxPySwigInstance_Check(source)) { |
| 1490 | wxGridCellCoords* ptr; |
| 1491 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) |
| 1492 | goto error; |
| 1493 | *obj = ptr; |
| 1494 | return true; |
| 1495 | } |
| 1496 | // otherwise a 2-tuple of integers is expected |
| 1497 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { |
| 1498 | PyObject* o1 = PySequence_GetItem(source, 0); |
| 1499 | PyObject* o2 = PySequence_GetItem(source, 1); |
| 1500 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { |
| 1501 | Py_DECREF(o1); |
| 1502 | Py_DECREF(o2); |
| 1503 | goto error; |
| 1504 | } |
| 1505 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); |
| 1506 | Py_DECREF(o1); |
| 1507 | Py_DECREF(o2); |
| 1508 | return true; |
| 1509 | } |
| 1510 | |
| 1511 | error: |
| 1512 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); |
| 1513 | return false; |
| 1514 | } |
| 1515 | |
| 1516 | |
| 1517 | bool wxGridCellCoords_typecheck(PyObject* source) { |
| 1518 | void* ptr; |
| 1519 | |
| 1520 | if (wxPySwigInstance_Check(source) && |
| 1521 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) |
| 1522 | return true; |
| 1523 | |
| 1524 | PyErr_Clear(); |
| 1525 | if (PySequence_Check(source) && PySequence_Length(source) == 2) |
| 1526 | return true; |
| 1527 | |
| 1528 | return false; |
| 1529 | } |
| 1530 | |
| 1531 | |
| 1532 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) |
| 1533 | { |
| 1534 | PyObject* list = PyList_New(0); |
| 1535 | size_t idx; |
| 1536 | for (idx = 0; idx < source.GetCount(); idx += 1) { |
| 1537 | wxGridCellCoords& coord = source.Item(idx); |
| 1538 | PyObject* tup = PyTuple_New(2); |
| 1539 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); |
| 1540 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); |
| 1541 | PyList_Append(list, tup); |
| 1542 | Py_DECREF(tup); |
| 1543 | } |
| 1544 | return list; |
| 1545 | } |
| 1546 | |
| 1547 | PyObject *wxGridCellCoords_Get(wxGridCellCoords *self){ |
| 1548 | PyObject* tup = PyTuple_New(2); |
| 1549 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); |
| 1550 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); |
| 1551 | return tup; |
| 1552 | } |
| 1553 | |
| 1554 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; |
| 1555 | |
| 1556 | |
| 1557 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ |
| 1558 | wxGridCellCoords rv; |
| 1559 | self->XYToCell(x, y, rv); |
| 1560 | return rv; |
| 1561 | } |
| 1562 | #ifdef __cplusplus |
| 1563 | extern "C" { |
| 1564 | #endif |
| 1565 | static int _wrap_DateTimeFormatStr_set(PyObject *) { |
| 1566 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); |
| 1567 | return 1; |
| 1568 | } |
| 1569 | |
| 1570 | |
| 1571 | static PyObject *_wrap_DateTimeFormatStr_get() { |
| 1572 | PyObject *pyobj; |
| 1573 | |
| 1574 | { |
| 1575 | #if wxUSE_UNICODE |
| 1576 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); |
| 1577 | #else |
| 1578 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); |
| 1579 | #endif |
| 1580 | } |
| 1581 | return pyobj; |
| 1582 | } |
| 1583 | |
| 1584 | |
| 1585 | static int _wrap_GridNoCellCoords_set(PyObject *) { |
| 1586 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); |
| 1587 | return 1; |
| 1588 | } |
| 1589 | |
| 1590 | |
| 1591 | static PyObject *_wrap_GridNoCellCoords_get() { |
| 1592 | PyObject *pyobj; |
| 1593 | |
| 1594 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0); |
| 1595 | return pyobj; |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | static int _wrap_GridNoCellRect_set(PyObject *) { |
| 1600 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); |
| 1601 | return 1; |
| 1602 | } |
| 1603 | |
| 1604 | |
| 1605 | static PyObject *_wrap_GridNoCellRect_get() { |
| 1606 | PyObject *pyobj; |
| 1607 | |
| 1608 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0); |
| 1609 | return pyobj; |
| 1610 | } |
| 1611 | |
| 1612 | |
| 1613 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1614 | PyObject *resultobj; |
| 1615 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1616 | PyObject *arg2 = (PyObject *) 0 ; |
| 1617 | PyObject * obj0 = 0 ; |
| 1618 | PyObject * obj1 = 0 ; |
| 1619 | char *kwnames[] = { |
| 1620 | (char *) "self",(char *) "_self", NULL |
| 1621 | }; |
| 1622 | |
| 1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; |
| 1624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1626 | arg2 = obj1; |
| 1627 | { |
| 1628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1629 | wxGridCellRenderer__setOORInfo(arg1,arg2); |
| 1630 | |
| 1631 | wxPyEndAllowThreads(__tstate); |
| 1632 | if (PyErr_Occurred()) SWIG_fail; |
| 1633 | } |
| 1634 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1635 | return resultobj; |
| 1636 | fail: |
| 1637 | return NULL; |
| 1638 | } |
| 1639 | |
| 1640 | |
| 1641 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1642 | PyObject *resultobj; |
| 1643 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1644 | wxString *arg2 = 0 ; |
| 1645 | bool temp2 = false ; |
| 1646 | PyObject * obj0 = 0 ; |
| 1647 | PyObject * obj1 = 0 ; |
| 1648 | char *kwnames[] = { |
| 1649 | (char *) "self",(char *) "params", NULL |
| 1650 | }; |
| 1651 | |
| 1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; |
| 1653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1655 | { |
| 1656 | arg2 = wxString_in_helper(obj1); |
| 1657 | if (arg2 == NULL) SWIG_fail; |
| 1658 | temp2 = true; |
| 1659 | } |
| 1660 | { |
| 1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1662 | (arg1)->SetParameters((wxString const &)*arg2); |
| 1663 | |
| 1664 | wxPyEndAllowThreads(__tstate); |
| 1665 | if (PyErr_Occurred()) SWIG_fail; |
| 1666 | } |
| 1667 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1668 | { |
| 1669 | if (temp2) |
| 1670 | delete arg2; |
| 1671 | } |
| 1672 | return resultobj; |
| 1673 | fail: |
| 1674 | { |
| 1675 | if (temp2) |
| 1676 | delete arg2; |
| 1677 | } |
| 1678 | return NULL; |
| 1679 | } |
| 1680 | |
| 1681 | |
| 1682 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1683 | PyObject *resultobj; |
| 1684 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1685 | PyObject * obj0 = 0 ; |
| 1686 | char *kwnames[] = { |
| 1687 | (char *) "self", NULL |
| 1688 | }; |
| 1689 | |
| 1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; |
| 1691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1693 | { |
| 1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1695 | (arg1)->IncRef(); |
| 1696 | |
| 1697 | wxPyEndAllowThreads(__tstate); |
| 1698 | if (PyErr_Occurred()) SWIG_fail; |
| 1699 | } |
| 1700 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1701 | return resultobj; |
| 1702 | fail: |
| 1703 | return NULL; |
| 1704 | } |
| 1705 | |
| 1706 | |
| 1707 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1708 | PyObject *resultobj; |
| 1709 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1710 | PyObject * obj0 = 0 ; |
| 1711 | char *kwnames[] = { |
| 1712 | (char *) "self", NULL |
| 1713 | }; |
| 1714 | |
| 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; |
| 1716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1718 | { |
| 1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1720 | (arg1)->DecRef(); |
| 1721 | |
| 1722 | wxPyEndAllowThreads(__tstate); |
| 1723 | if (PyErr_Occurred()) SWIG_fail; |
| 1724 | } |
| 1725 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1726 | return resultobj; |
| 1727 | fail: |
| 1728 | return NULL; |
| 1729 | } |
| 1730 | |
| 1731 | |
| 1732 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1733 | PyObject *resultobj; |
| 1734 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1735 | wxGrid *arg2 = 0 ; |
| 1736 | wxGridCellAttr *arg3 = 0 ; |
| 1737 | wxDC *arg4 = 0 ; |
| 1738 | wxRect *arg5 = 0 ; |
| 1739 | int arg6 ; |
| 1740 | int arg7 ; |
| 1741 | bool arg8 ; |
| 1742 | wxRect temp5 ; |
| 1743 | PyObject * obj0 = 0 ; |
| 1744 | PyObject * obj1 = 0 ; |
| 1745 | PyObject * obj2 = 0 ; |
| 1746 | PyObject * obj3 = 0 ; |
| 1747 | PyObject * obj4 = 0 ; |
| 1748 | PyObject * obj5 = 0 ; |
| 1749 | PyObject * obj6 = 0 ; |
| 1750 | PyObject * obj7 = 0 ; |
| 1751 | char *kwnames[] = { |
| 1752 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL |
| 1753 | }; |
| 1754 | |
| 1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
| 1756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, |
| 1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1760 | SWIG_fail; |
| 1761 | if (arg2 == NULL) { |
| 1762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1763 | SWIG_fail; |
| 1764 | } |
| 1765 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 1766 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1767 | SWIG_fail; |
| 1768 | if (arg3 == NULL) { |
| 1769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1770 | SWIG_fail; |
| 1771 | } |
| 1772 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
| 1773 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1774 | SWIG_fail; |
| 1775 | if (arg4 == NULL) { |
| 1776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1777 | SWIG_fail; |
| 1778 | } |
| 1779 | { |
| 1780 | arg5 = &temp5; |
| 1781 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; |
| 1782 | } |
| 1783 | arg6 = (int)SWIG_As_int(obj5); |
| 1784 | if (PyErr_Occurred()) SWIG_fail; |
| 1785 | arg7 = (int)SWIG_As_int(obj6); |
| 1786 | if (PyErr_Occurred()) SWIG_fail; |
| 1787 | arg8 = (bool)SWIG_As_bool(obj7); |
| 1788 | if (PyErr_Occurred()) SWIG_fail; |
| 1789 | { |
| 1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1791 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); |
| 1792 | |
| 1793 | wxPyEndAllowThreads(__tstate); |
| 1794 | if (PyErr_Occurred()) SWIG_fail; |
| 1795 | } |
| 1796 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1797 | return resultobj; |
| 1798 | fail: |
| 1799 | return NULL; |
| 1800 | } |
| 1801 | |
| 1802 | |
| 1803 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1804 | PyObject *resultobj; |
| 1805 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1806 | wxGrid *arg2 = 0 ; |
| 1807 | wxGridCellAttr *arg3 = 0 ; |
| 1808 | wxDC *arg4 = 0 ; |
| 1809 | int arg5 ; |
| 1810 | int arg6 ; |
| 1811 | wxSize result; |
| 1812 | PyObject * obj0 = 0 ; |
| 1813 | PyObject * obj1 = 0 ; |
| 1814 | PyObject * obj2 = 0 ; |
| 1815 | PyObject * obj3 = 0 ; |
| 1816 | PyObject * obj4 = 0 ; |
| 1817 | PyObject * obj5 = 0 ; |
| 1818 | char *kwnames[] = { |
| 1819 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL |
| 1820 | }; |
| 1821 | |
| 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
| 1823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, |
| 1826 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1827 | SWIG_fail; |
| 1828 | if (arg2 == NULL) { |
| 1829 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1830 | SWIG_fail; |
| 1831 | } |
| 1832 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 1833 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1834 | SWIG_fail; |
| 1835 | if (arg3 == NULL) { |
| 1836 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1837 | SWIG_fail; |
| 1838 | } |
| 1839 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
| 1840 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 1841 | SWIG_fail; |
| 1842 | if (arg4 == NULL) { |
| 1843 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 1844 | SWIG_fail; |
| 1845 | } |
| 1846 | arg5 = (int)SWIG_As_int(obj4); |
| 1847 | if (PyErr_Occurred()) SWIG_fail; |
| 1848 | arg6 = (int)SWIG_As_int(obj5); |
| 1849 | if (PyErr_Occurred()) SWIG_fail; |
| 1850 | { |
| 1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1852 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); |
| 1853 | |
| 1854 | wxPyEndAllowThreads(__tstate); |
| 1855 | if (PyErr_Occurred()) SWIG_fail; |
| 1856 | } |
| 1857 | { |
| 1858 | wxSize * resultptr; |
| 1859 | resultptr = new wxSize((wxSize &) result); |
| 1860 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
| 1861 | } |
| 1862 | return resultobj; |
| 1863 | fail: |
| 1864 | return NULL; |
| 1865 | } |
| 1866 | |
| 1867 | |
| 1868 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1869 | PyObject *resultobj; |
| 1870 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; |
| 1871 | wxGridCellRenderer *result; |
| 1872 | PyObject * obj0 = 0 ; |
| 1873 | char *kwnames[] = { |
| 1874 | (char *) "self", NULL |
| 1875 | }; |
| 1876 | |
| 1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; |
| 1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
| 1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1880 | { |
| 1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1882 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); |
| 1883 | |
| 1884 | wxPyEndAllowThreads(__tstate); |
| 1885 | if (PyErr_Occurred()) SWIG_fail; |
| 1886 | } |
| 1887 | { |
| 1888 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 1889 | } |
| 1890 | return resultobj; |
| 1891 | fail: |
| 1892 | return NULL; |
| 1893 | } |
| 1894 | |
| 1895 | |
| 1896 | static PyObject * GridCellRenderer_swigregister(PyObject *, PyObject *args) { |
| 1897 | PyObject *obj; |
| 1898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 1899 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); |
| 1900 | Py_INCREF(obj); |
| 1901 | return Py_BuildValue((char *)""); |
| 1902 | } |
| 1903 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1904 | PyObject *resultobj; |
| 1905 | wxPyGridCellRenderer *result; |
| 1906 | char *kwnames[] = { |
| 1907 | NULL |
| 1908 | }; |
| 1909 | |
| 1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; |
| 1911 | { |
| 1912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1913 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); |
| 1914 | |
| 1915 | wxPyEndAllowThreads(__tstate); |
| 1916 | if (PyErr_Occurred()) SWIG_fail; |
| 1917 | } |
| 1918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1); |
| 1919 | return resultobj; |
| 1920 | fail: |
| 1921 | return NULL; |
| 1922 | } |
| 1923 | |
| 1924 | |
| 1925 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1926 | PyObject *resultobj; |
| 1927 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; |
| 1928 | PyObject *arg2 = (PyObject *) 0 ; |
| 1929 | PyObject *arg3 = (PyObject *) 0 ; |
| 1930 | PyObject * obj0 = 0 ; |
| 1931 | PyObject * obj1 = 0 ; |
| 1932 | PyObject * obj2 = 0 ; |
| 1933 | char *kwnames[] = { |
| 1934 | (char *) "self",(char *) "self",(char *) "_class", NULL |
| 1935 | }; |
| 1936 | |
| 1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 1938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
| 1939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1940 | arg2 = obj1; |
| 1941 | arg3 = obj2; |
| 1942 | { |
| 1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1944 | (arg1)->_setCallbackInfo(arg2,arg3); |
| 1945 | |
| 1946 | wxPyEndAllowThreads(__tstate); |
| 1947 | if (PyErr_Occurred()) SWIG_fail; |
| 1948 | } |
| 1949 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1950 | return resultobj; |
| 1951 | fail: |
| 1952 | return NULL; |
| 1953 | } |
| 1954 | |
| 1955 | |
| 1956 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
| 1957 | PyObject *resultobj; |
| 1958 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; |
| 1959 | wxString *arg2 = 0 ; |
| 1960 | bool temp2 = false ; |
| 1961 | PyObject * obj0 = 0 ; |
| 1962 | PyObject * obj1 = 0 ; |
| 1963 | char *kwnames[] = { |
| 1964 | (char *) "self",(char *) "params", NULL |
| 1965 | }; |
| 1966 | |
| 1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; |
| 1968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
| 1969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 1970 | { |
| 1971 | arg2 = wxString_in_helper(obj1); |
| 1972 | if (arg2 == NULL) SWIG_fail; |
| 1973 | temp2 = true; |
| 1974 | } |
| 1975 | { |
| 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1977 | (arg1)->base_SetParameters((wxString const &)*arg2); |
| 1978 | |
| 1979 | wxPyEndAllowThreads(__tstate); |
| 1980 | if (PyErr_Occurred()) SWIG_fail; |
| 1981 | } |
| 1982 | Py_INCREF(Py_None); resultobj = Py_None; |
| 1983 | { |
| 1984 | if (temp2) |
| 1985 | delete arg2; |
| 1986 | } |
| 1987 | return resultobj; |
| 1988 | fail: |
| 1989 | { |
| 1990 | if (temp2) |
| 1991 | delete arg2; |
| 1992 | } |
| 1993 | return NULL; |
| 1994 | } |
| 1995 | |
| 1996 | |
| 1997 | static PyObject * PyGridCellRenderer_swigregister(PyObject *, PyObject *args) { |
| 1998 | PyObject *obj; |
| 1999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2000 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); |
| 2001 | Py_INCREF(obj); |
| 2002 | return Py_BuildValue((char *)""); |
| 2003 | } |
| 2004 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2005 | PyObject *resultobj; |
| 2006 | wxGridCellStringRenderer *result; |
| 2007 | char *kwnames[] = { |
| 2008 | NULL |
| 2009 | }; |
| 2010 | |
| 2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; |
| 2012 | { |
| 2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2014 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); |
| 2015 | |
| 2016 | wxPyEndAllowThreads(__tstate); |
| 2017 | if (PyErr_Occurred()) SWIG_fail; |
| 2018 | } |
| 2019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1); |
| 2020 | return resultobj; |
| 2021 | fail: |
| 2022 | return NULL; |
| 2023 | } |
| 2024 | |
| 2025 | |
| 2026 | static PyObject * GridCellStringRenderer_swigregister(PyObject *, PyObject *args) { |
| 2027 | PyObject *obj; |
| 2028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2029 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); |
| 2030 | Py_INCREF(obj); |
| 2031 | return Py_BuildValue((char *)""); |
| 2032 | } |
| 2033 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2034 | PyObject *resultobj; |
| 2035 | wxGridCellNumberRenderer *result; |
| 2036 | char *kwnames[] = { |
| 2037 | NULL |
| 2038 | }; |
| 2039 | |
| 2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; |
| 2041 | { |
| 2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2043 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); |
| 2044 | |
| 2045 | wxPyEndAllowThreads(__tstate); |
| 2046 | if (PyErr_Occurred()) SWIG_fail; |
| 2047 | } |
| 2048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1); |
| 2049 | return resultobj; |
| 2050 | fail: |
| 2051 | return NULL; |
| 2052 | } |
| 2053 | |
| 2054 | |
| 2055 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *, PyObject *args) { |
| 2056 | PyObject *obj; |
| 2057 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2058 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); |
| 2059 | Py_INCREF(obj); |
| 2060 | return Py_BuildValue((char *)""); |
| 2061 | } |
| 2062 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2063 | PyObject *resultobj; |
| 2064 | int arg1 = (int) -1 ; |
| 2065 | int arg2 = (int) -1 ; |
| 2066 | wxGridCellFloatRenderer *result; |
| 2067 | PyObject * obj0 = 0 ; |
| 2068 | PyObject * obj1 = 0 ; |
| 2069 | char *kwnames[] = { |
| 2070 | (char *) "width",(char *) "precision", NULL |
| 2071 | }; |
| 2072 | |
| 2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; |
| 2074 | if (obj0) { |
| 2075 | arg1 = (int)SWIG_As_int(obj0); |
| 2076 | if (PyErr_Occurred()) SWIG_fail; |
| 2077 | } |
| 2078 | if (obj1) { |
| 2079 | arg2 = (int)SWIG_As_int(obj1); |
| 2080 | if (PyErr_Occurred()) SWIG_fail; |
| 2081 | } |
| 2082 | { |
| 2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2084 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); |
| 2085 | |
| 2086 | wxPyEndAllowThreads(__tstate); |
| 2087 | if (PyErr_Occurred()) SWIG_fail; |
| 2088 | } |
| 2089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1); |
| 2090 | return resultobj; |
| 2091 | fail: |
| 2092 | return NULL; |
| 2093 | } |
| 2094 | |
| 2095 | |
| 2096 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2097 | PyObject *resultobj; |
| 2098 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; |
| 2099 | int result; |
| 2100 | PyObject * obj0 = 0 ; |
| 2101 | char *kwnames[] = { |
| 2102 | (char *) "self", NULL |
| 2103 | }; |
| 2104 | |
| 2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; |
| 2106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
| 2107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2108 | { |
| 2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2110 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); |
| 2111 | |
| 2112 | wxPyEndAllowThreads(__tstate); |
| 2113 | if (PyErr_Occurred()) SWIG_fail; |
| 2114 | } |
| 2115 | resultobj = SWIG_From_int((int)result); |
| 2116 | return resultobj; |
| 2117 | fail: |
| 2118 | return NULL; |
| 2119 | } |
| 2120 | |
| 2121 | |
| 2122 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2123 | PyObject *resultobj; |
| 2124 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; |
| 2125 | int arg2 ; |
| 2126 | PyObject * obj0 = 0 ; |
| 2127 | PyObject * obj1 = 0 ; |
| 2128 | char *kwnames[] = { |
| 2129 | (char *) "self",(char *) "width", NULL |
| 2130 | }; |
| 2131 | |
| 2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
| 2133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
| 2134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2135 | arg2 = (int)SWIG_As_int(obj1); |
| 2136 | if (PyErr_Occurred()) SWIG_fail; |
| 2137 | { |
| 2138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2139 | (arg1)->SetWidth(arg2); |
| 2140 | |
| 2141 | wxPyEndAllowThreads(__tstate); |
| 2142 | if (PyErr_Occurred()) SWIG_fail; |
| 2143 | } |
| 2144 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2145 | return resultobj; |
| 2146 | fail: |
| 2147 | return NULL; |
| 2148 | } |
| 2149 | |
| 2150 | |
| 2151 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2152 | PyObject *resultobj; |
| 2153 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; |
| 2154 | int result; |
| 2155 | PyObject * obj0 = 0 ; |
| 2156 | char *kwnames[] = { |
| 2157 | (char *) "self", NULL |
| 2158 | }; |
| 2159 | |
| 2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; |
| 2161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
| 2162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2163 | { |
| 2164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2165 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); |
| 2166 | |
| 2167 | wxPyEndAllowThreads(__tstate); |
| 2168 | if (PyErr_Occurred()) SWIG_fail; |
| 2169 | } |
| 2170 | resultobj = SWIG_From_int((int)result); |
| 2171 | return resultobj; |
| 2172 | fail: |
| 2173 | return NULL; |
| 2174 | } |
| 2175 | |
| 2176 | |
| 2177 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2178 | PyObject *resultobj; |
| 2179 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; |
| 2180 | int arg2 ; |
| 2181 | PyObject * obj0 = 0 ; |
| 2182 | PyObject * obj1 = 0 ; |
| 2183 | char *kwnames[] = { |
| 2184 | (char *) "self",(char *) "precision", NULL |
| 2185 | }; |
| 2186 | |
| 2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; |
| 2188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
| 2189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2190 | arg2 = (int)SWIG_As_int(obj1); |
| 2191 | if (PyErr_Occurred()) SWIG_fail; |
| 2192 | { |
| 2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2194 | (arg1)->SetPrecision(arg2); |
| 2195 | |
| 2196 | wxPyEndAllowThreads(__tstate); |
| 2197 | if (PyErr_Occurred()) SWIG_fail; |
| 2198 | } |
| 2199 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2200 | return resultobj; |
| 2201 | fail: |
| 2202 | return NULL; |
| 2203 | } |
| 2204 | |
| 2205 | |
| 2206 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *, PyObject *args) { |
| 2207 | PyObject *obj; |
| 2208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2209 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); |
| 2210 | Py_INCREF(obj); |
| 2211 | return Py_BuildValue((char *)""); |
| 2212 | } |
| 2213 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2214 | PyObject *resultobj; |
| 2215 | wxGridCellBoolRenderer *result; |
| 2216 | char *kwnames[] = { |
| 2217 | NULL |
| 2218 | }; |
| 2219 | |
| 2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; |
| 2221 | { |
| 2222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2223 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); |
| 2224 | |
| 2225 | wxPyEndAllowThreads(__tstate); |
| 2226 | if (PyErr_Occurred()) SWIG_fail; |
| 2227 | } |
| 2228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1); |
| 2229 | return resultobj; |
| 2230 | fail: |
| 2231 | return NULL; |
| 2232 | } |
| 2233 | |
| 2234 | |
| 2235 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *, PyObject *args) { |
| 2236 | PyObject *obj; |
| 2237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2238 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); |
| 2239 | Py_INCREF(obj); |
| 2240 | return Py_BuildValue((char *)""); |
| 2241 | } |
| 2242 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2243 | PyObject *resultobj; |
| 2244 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; |
| 2245 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; |
| 2246 | wxGridCellDateTimeRenderer *result; |
| 2247 | PyObject * obj0 = 0 ; |
| 2248 | PyObject * obj1 = 0 ; |
| 2249 | char *kwnames[] = { |
| 2250 | (char *) "outformat",(char *) "informat", NULL |
| 2251 | }; |
| 2252 | |
| 2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; |
| 2254 | if (obj0) { |
| 2255 | { |
| 2256 | wxString* sptr = wxString_in_helper(obj0); |
| 2257 | if (sptr == NULL) SWIG_fail; |
| 2258 | arg1 = *sptr; |
| 2259 | delete sptr; |
| 2260 | } |
| 2261 | } |
| 2262 | if (obj1) { |
| 2263 | { |
| 2264 | wxString* sptr = wxString_in_helper(obj1); |
| 2265 | if (sptr == NULL) SWIG_fail; |
| 2266 | arg2 = *sptr; |
| 2267 | delete sptr; |
| 2268 | } |
| 2269 | } |
| 2270 | { |
| 2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2272 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); |
| 2273 | |
| 2274 | wxPyEndAllowThreads(__tstate); |
| 2275 | if (PyErr_Occurred()) SWIG_fail; |
| 2276 | } |
| 2277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); |
| 2278 | return resultobj; |
| 2279 | fail: |
| 2280 | return NULL; |
| 2281 | } |
| 2282 | |
| 2283 | |
| 2284 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *, PyObject *args) { |
| 2285 | PyObject *obj; |
| 2286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2287 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); |
| 2288 | Py_INCREF(obj); |
| 2289 | return Py_BuildValue((char *)""); |
| 2290 | } |
| 2291 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2292 | PyObject *resultobj; |
| 2293 | wxString const &arg1_defvalue = wxPyEmptyString ; |
| 2294 | wxString *arg1 = (wxString *) &arg1_defvalue ; |
| 2295 | wxGridCellEnumRenderer *result; |
| 2296 | bool temp1 = false ; |
| 2297 | PyObject * obj0 = 0 ; |
| 2298 | char *kwnames[] = { |
| 2299 | (char *) "choices", NULL |
| 2300 | }; |
| 2301 | |
| 2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; |
| 2303 | if (obj0) { |
| 2304 | { |
| 2305 | arg1 = wxString_in_helper(obj0); |
| 2306 | if (arg1 == NULL) SWIG_fail; |
| 2307 | temp1 = true; |
| 2308 | } |
| 2309 | } |
| 2310 | { |
| 2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2312 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); |
| 2313 | |
| 2314 | wxPyEndAllowThreads(__tstate); |
| 2315 | if (PyErr_Occurred()) SWIG_fail; |
| 2316 | } |
| 2317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1); |
| 2318 | { |
| 2319 | if (temp1) |
| 2320 | delete arg1; |
| 2321 | } |
| 2322 | return resultobj; |
| 2323 | fail: |
| 2324 | { |
| 2325 | if (temp1) |
| 2326 | delete arg1; |
| 2327 | } |
| 2328 | return NULL; |
| 2329 | } |
| 2330 | |
| 2331 | |
| 2332 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *, PyObject *args) { |
| 2333 | PyObject *obj; |
| 2334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2335 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); |
| 2336 | Py_INCREF(obj); |
| 2337 | return Py_BuildValue((char *)""); |
| 2338 | } |
| 2339 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2340 | PyObject *resultobj; |
| 2341 | wxGridCellAutoWrapStringRenderer *result; |
| 2342 | char *kwnames[] = { |
| 2343 | NULL |
| 2344 | }; |
| 2345 | |
| 2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; |
| 2347 | { |
| 2348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2349 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); |
| 2350 | |
| 2351 | wxPyEndAllowThreads(__tstate); |
| 2352 | if (PyErr_Occurred()) SWIG_fail; |
| 2353 | } |
| 2354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); |
| 2355 | return resultobj; |
| 2356 | fail: |
| 2357 | return NULL; |
| 2358 | } |
| 2359 | |
| 2360 | |
| 2361 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *, PyObject *args) { |
| 2362 | PyObject *obj; |
| 2363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 2364 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); |
| 2365 | Py_INCREF(obj); |
| 2366 | return Py_BuildValue((char *)""); |
| 2367 | } |
| 2368 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2369 | PyObject *resultobj; |
| 2370 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2371 | PyObject *arg2 = (PyObject *) 0 ; |
| 2372 | PyObject * obj0 = 0 ; |
| 2373 | PyObject * obj1 = 0 ; |
| 2374 | char *kwnames[] = { |
| 2375 | (char *) "self",(char *) "_self", NULL |
| 2376 | }; |
| 2377 | |
| 2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; |
| 2379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2381 | arg2 = obj1; |
| 2382 | { |
| 2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2384 | wxGridCellEditor__setOORInfo(arg1,arg2); |
| 2385 | |
| 2386 | wxPyEndAllowThreads(__tstate); |
| 2387 | if (PyErr_Occurred()) SWIG_fail; |
| 2388 | } |
| 2389 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2390 | return resultobj; |
| 2391 | fail: |
| 2392 | return NULL; |
| 2393 | } |
| 2394 | |
| 2395 | |
| 2396 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2397 | PyObject *resultobj; |
| 2398 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2399 | bool result; |
| 2400 | PyObject * obj0 = 0 ; |
| 2401 | char *kwnames[] = { |
| 2402 | (char *) "self", NULL |
| 2403 | }; |
| 2404 | |
| 2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; |
| 2406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2408 | { |
| 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2410 | result = (bool)(arg1)->IsCreated(); |
| 2411 | |
| 2412 | wxPyEndAllowThreads(__tstate); |
| 2413 | if (PyErr_Occurred()) SWIG_fail; |
| 2414 | } |
| 2415 | { |
| 2416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 2417 | } |
| 2418 | return resultobj; |
| 2419 | fail: |
| 2420 | return NULL; |
| 2421 | } |
| 2422 | |
| 2423 | |
| 2424 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2425 | PyObject *resultobj; |
| 2426 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2427 | wxControl *result; |
| 2428 | PyObject * obj0 = 0 ; |
| 2429 | char *kwnames[] = { |
| 2430 | (char *) "self", NULL |
| 2431 | }; |
| 2432 | |
| 2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; |
| 2434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2436 | { |
| 2437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2438 | result = (wxControl *)(arg1)->GetControl(); |
| 2439 | |
| 2440 | wxPyEndAllowThreads(__tstate); |
| 2441 | if (PyErr_Occurred()) SWIG_fail; |
| 2442 | } |
| 2443 | { |
| 2444 | resultobj = wxPyMake_wxObject(result, 0); |
| 2445 | } |
| 2446 | return resultobj; |
| 2447 | fail: |
| 2448 | return NULL; |
| 2449 | } |
| 2450 | |
| 2451 | |
| 2452 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2453 | PyObject *resultobj; |
| 2454 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2455 | wxControl *arg2 = (wxControl *) 0 ; |
| 2456 | PyObject * obj0 = 0 ; |
| 2457 | PyObject * obj1 = 0 ; |
| 2458 | char *kwnames[] = { |
| 2459 | (char *) "self",(char *) "control", NULL |
| 2460 | }; |
| 2461 | |
| 2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; |
| 2463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, |
| 2466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2467 | { |
| 2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2469 | (arg1)->SetControl(arg2); |
| 2470 | |
| 2471 | wxPyEndAllowThreads(__tstate); |
| 2472 | if (PyErr_Occurred()) SWIG_fail; |
| 2473 | } |
| 2474 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2475 | return resultobj; |
| 2476 | fail: |
| 2477 | return NULL; |
| 2478 | } |
| 2479 | |
| 2480 | |
| 2481 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2482 | PyObject *resultobj; |
| 2483 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2484 | wxGridCellAttr *result; |
| 2485 | PyObject * obj0 = 0 ; |
| 2486 | char *kwnames[] = { |
| 2487 | (char *) "self", NULL |
| 2488 | }; |
| 2489 | |
| 2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; |
| 2491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2493 | { |
| 2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2495 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); |
| 2496 | |
| 2497 | wxPyEndAllowThreads(__tstate); |
| 2498 | if (PyErr_Occurred()) SWIG_fail; |
| 2499 | } |
| 2500 | { |
| 2501 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 2502 | } |
| 2503 | return resultobj; |
| 2504 | fail: |
| 2505 | return NULL; |
| 2506 | } |
| 2507 | |
| 2508 | |
| 2509 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2510 | PyObject *resultobj; |
| 2511 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2512 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 2513 | PyObject * obj0 = 0 ; |
| 2514 | PyObject * obj1 = 0 ; |
| 2515 | char *kwnames[] = { |
| 2516 | (char *) "self",(char *) "attr", NULL |
| 2517 | }; |
| 2518 | |
| 2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; |
| 2520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 2523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2524 | { |
| 2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2526 | (arg1)->SetCellAttr(arg2); |
| 2527 | |
| 2528 | wxPyEndAllowThreads(__tstate); |
| 2529 | if (PyErr_Occurred()) SWIG_fail; |
| 2530 | } |
| 2531 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2532 | return resultobj; |
| 2533 | fail: |
| 2534 | return NULL; |
| 2535 | } |
| 2536 | |
| 2537 | |
| 2538 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2539 | PyObject *resultobj; |
| 2540 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2541 | wxString *arg2 = 0 ; |
| 2542 | bool temp2 = false ; |
| 2543 | PyObject * obj0 = 0 ; |
| 2544 | PyObject * obj1 = 0 ; |
| 2545 | char *kwnames[] = { |
| 2546 | (char *) "self",(char *) "params", NULL |
| 2547 | }; |
| 2548 | |
| 2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; |
| 2550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2552 | { |
| 2553 | arg2 = wxString_in_helper(obj1); |
| 2554 | if (arg2 == NULL) SWIG_fail; |
| 2555 | temp2 = true; |
| 2556 | } |
| 2557 | { |
| 2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2559 | (arg1)->SetParameters((wxString const &)*arg2); |
| 2560 | |
| 2561 | wxPyEndAllowThreads(__tstate); |
| 2562 | if (PyErr_Occurred()) SWIG_fail; |
| 2563 | } |
| 2564 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2565 | { |
| 2566 | if (temp2) |
| 2567 | delete arg2; |
| 2568 | } |
| 2569 | return resultobj; |
| 2570 | fail: |
| 2571 | { |
| 2572 | if (temp2) |
| 2573 | delete arg2; |
| 2574 | } |
| 2575 | return NULL; |
| 2576 | } |
| 2577 | |
| 2578 | |
| 2579 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2580 | PyObject *resultobj; |
| 2581 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2582 | PyObject * obj0 = 0 ; |
| 2583 | char *kwnames[] = { |
| 2584 | (char *) "self", NULL |
| 2585 | }; |
| 2586 | |
| 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; |
| 2588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2590 | { |
| 2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2592 | (arg1)->IncRef(); |
| 2593 | |
| 2594 | wxPyEndAllowThreads(__tstate); |
| 2595 | if (PyErr_Occurred()) SWIG_fail; |
| 2596 | } |
| 2597 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2598 | return resultobj; |
| 2599 | fail: |
| 2600 | return NULL; |
| 2601 | } |
| 2602 | |
| 2603 | |
| 2604 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2605 | PyObject *resultobj; |
| 2606 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2607 | PyObject * obj0 = 0 ; |
| 2608 | char *kwnames[] = { |
| 2609 | (char *) "self", NULL |
| 2610 | }; |
| 2611 | |
| 2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; |
| 2613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2615 | { |
| 2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2617 | (arg1)->DecRef(); |
| 2618 | |
| 2619 | wxPyEndAllowThreads(__tstate); |
| 2620 | if (PyErr_Occurred()) SWIG_fail; |
| 2621 | } |
| 2622 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2623 | return resultobj; |
| 2624 | fail: |
| 2625 | return NULL; |
| 2626 | } |
| 2627 | |
| 2628 | |
| 2629 | static PyObject *_wrap_GridCellEditor_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2630 | PyObject *resultobj; |
| 2631 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2632 | wxWindow *arg2 = (wxWindow *) 0 ; |
| 2633 | int arg3 ; |
| 2634 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; |
| 2635 | PyObject * obj0 = 0 ; |
| 2636 | PyObject * obj1 = 0 ; |
| 2637 | PyObject * obj2 = 0 ; |
| 2638 | PyObject * obj3 = 0 ; |
| 2639 | char *kwnames[] = { |
| 2640 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL |
| 2641 | }; |
| 2642 | |
| 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 2644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
| 2647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2648 | arg3 = (int)SWIG_As_int(obj2); |
| 2649 | if (PyErr_Occurred()) SWIG_fail; |
| 2650 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler, |
| 2651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2652 | { |
| 2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2654 | (arg1)->Create(arg2,arg3,arg4); |
| 2655 | |
| 2656 | wxPyEndAllowThreads(__tstate); |
| 2657 | if (PyErr_Occurred()) SWIG_fail; |
| 2658 | } |
| 2659 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2660 | return resultobj; |
| 2661 | fail: |
| 2662 | return NULL; |
| 2663 | } |
| 2664 | |
| 2665 | |
| 2666 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2667 | PyObject *resultobj; |
| 2668 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2669 | int arg2 ; |
| 2670 | int arg3 ; |
| 2671 | wxGrid *arg4 = (wxGrid *) 0 ; |
| 2672 | PyObject * obj0 = 0 ; |
| 2673 | PyObject * obj1 = 0 ; |
| 2674 | PyObject * obj2 = 0 ; |
| 2675 | PyObject * obj3 = 0 ; |
| 2676 | char *kwnames[] = { |
| 2677 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL |
| 2678 | }; |
| 2679 | |
| 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 2681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2683 | arg2 = (int)SWIG_As_int(obj1); |
| 2684 | if (PyErr_Occurred()) SWIG_fail; |
| 2685 | arg3 = (int)SWIG_As_int(obj2); |
| 2686 | if (PyErr_Occurred()) SWIG_fail; |
| 2687 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, |
| 2688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2689 | { |
| 2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2691 | (arg1)->BeginEdit(arg2,arg3,arg4); |
| 2692 | |
| 2693 | wxPyEndAllowThreads(__tstate); |
| 2694 | if (PyErr_Occurred()) SWIG_fail; |
| 2695 | } |
| 2696 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2697 | return resultobj; |
| 2698 | fail: |
| 2699 | return NULL; |
| 2700 | } |
| 2701 | |
| 2702 | |
| 2703 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2704 | PyObject *resultobj; |
| 2705 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2706 | int arg2 ; |
| 2707 | int arg3 ; |
| 2708 | wxGrid *arg4 = (wxGrid *) 0 ; |
| 2709 | bool result; |
| 2710 | PyObject * obj0 = 0 ; |
| 2711 | PyObject * obj1 = 0 ; |
| 2712 | PyObject * obj2 = 0 ; |
| 2713 | PyObject * obj3 = 0 ; |
| 2714 | char *kwnames[] = { |
| 2715 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL |
| 2716 | }; |
| 2717 | |
| 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 2719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2721 | arg2 = (int)SWIG_As_int(obj1); |
| 2722 | if (PyErr_Occurred()) SWIG_fail; |
| 2723 | arg3 = (int)SWIG_As_int(obj2); |
| 2724 | if (PyErr_Occurred()) SWIG_fail; |
| 2725 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, |
| 2726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2727 | { |
| 2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2729 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); |
| 2730 | |
| 2731 | wxPyEndAllowThreads(__tstate); |
| 2732 | if (PyErr_Occurred()) SWIG_fail; |
| 2733 | } |
| 2734 | { |
| 2735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 2736 | } |
| 2737 | return resultobj; |
| 2738 | fail: |
| 2739 | return NULL; |
| 2740 | } |
| 2741 | |
| 2742 | |
| 2743 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2744 | PyObject *resultobj; |
| 2745 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2746 | PyObject * obj0 = 0 ; |
| 2747 | char *kwnames[] = { |
| 2748 | (char *) "self", NULL |
| 2749 | }; |
| 2750 | |
| 2751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; |
| 2752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2754 | { |
| 2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2756 | (arg1)->Reset(); |
| 2757 | |
| 2758 | wxPyEndAllowThreads(__tstate); |
| 2759 | if (PyErr_Occurred()) SWIG_fail; |
| 2760 | } |
| 2761 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2762 | return resultobj; |
| 2763 | fail: |
| 2764 | return NULL; |
| 2765 | } |
| 2766 | |
| 2767 | |
| 2768 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2769 | PyObject *resultobj; |
| 2770 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2771 | wxGridCellEditor *result; |
| 2772 | PyObject * obj0 = 0 ; |
| 2773 | char *kwnames[] = { |
| 2774 | (char *) "self", NULL |
| 2775 | }; |
| 2776 | |
| 2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; |
| 2778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2780 | { |
| 2781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2782 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); |
| 2783 | |
| 2784 | wxPyEndAllowThreads(__tstate); |
| 2785 | if (PyErr_Occurred()) SWIG_fail; |
| 2786 | } |
| 2787 | { |
| 2788 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 2789 | } |
| 2790 | return resultobj; |
| 2791 | fail: |
| 2792 | return NULL; |
| 2793 | } |
| 2794 | |
| 2795 | |
| 2796 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2797 | PyObject *resultobj; |
| 2798 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2799 | wxRect *arg2 = 0 ; |
| 2800 | wxRect temp2 ; |
| 2801 | PyObject * obj0 = 0 ; |
| 2802 | PyObject * obj1 = 0 ; |
| 2803 | char *kwnames[] = { |
| 2804 | (char *) "self",(char *) "rect", NULL |
| 2805 | }; |
| 2806 | |
| 2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; |
| 2808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2810 | { |
| 2811 | arg2 = &temp2; |
| 2812 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
| 2813 | } |
| 2814 | { |
| 2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2816 | (arg1)->SetSize((wxRect const &)*arg2); |
| 2817 | |
| 2818 | wxPyEndAllowThreads(__tstate); |
| 2819 | if (PyErr_Occurred()) SWIG_fail; |
| 2820 | } |
| 2821 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2822 | return resultobj; |
| 2823 | fail: |
| 2824 | return NULL; |
| 2825 | } |
| 2826 | |
| 2827 | |
| 2828 | static PyObject *_wrap_GridCellEditor_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2829 | PyObject *resultobj; |
| 2830 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2831 | bool arg2 ; |
| 2832 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; |
| 2833 | PyObject * obj0 = 0 ; |
| 2834 | PyObject * obj1 = 0 ; |
| 2835 | PyObject * obj2 = 0 ; |
| 2836 | char *kwnames[] = { |
| 2837 | (char *) "self",(char *) "show",(char *) "attr", NULL |
| 2838 | }; |
| 2839 | |
| 2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 2841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2843 | arg2 = (bool)SWIG_As_bool(obj1); |
| 2844 | if (PyErr_Occurred()) SWIG_fail; |
| 2845 | if (obj2) { |
| 2846 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2848 | } |
| 2849 | { |
| 2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2851 | (arg1)->Show(arg2,arg3); |
| 2852 | |
| 2853 | wxPyEndAllowThreads(__tstate); |
| 2854 | if (PyErr_Occurred()) SWIG_fail; |
| 2855 | } |
| 2856 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2857 | return resultobj; |
| 2858 | fail: |
| 2859 | return NULL; |
| 2860 | } |
| 2861 | |
| 2862 | |
| 2863 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2864 | PyObject *resultobj; |
| 2865 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2866 | wxRect *arg2 = 0 ; |
| 2867 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; |
| 2868 | wxRect temp2 ; |
| 2869 | PyObject * obj0 = 0 ; |
| 2870 | PyObject * obj1 = 0 ; |
| 2871 | PyObject * obj2 = 0 ; |
| 2872 | char *kwnames[] = { |
| 2873 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL |
| 2874 | }; |
| 2875 | |
| 2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 2877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2879 | { |
| 2880 | arg2 = &temp2; |
| 2881 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
| 2882 | } |
| 2883 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 2884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2885 | { |
| 2886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2887 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); |
| 2888 | |
| 2889 | wxPyEndAllowThreads(__tstate); |
| 2890 | if (PyErr_Occurred()) SWIG_fail; |
| 2891 | } |
| 2892 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2893 | return resultobj; |
| 2894 | fail: |
| 2895 | return NULL; |
| 2896 | } |
| 2897 | |
| 2898 | |
| 2899 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2900 | PyObject *resultobj; |
| 2901 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2902 | wxKeyEvent *arg2 = 0 ; |
| 2903 | bool result; |
| 2904 | PyObject * obj0 = 0 ; |
| 2905 | PyObject * obj1 = 0 ; |
| 2906 | char *kwnames[] = { |
| 2907 | (char *) "self",(char *) "event", NULL |
| 2908 | }; |
| 2909 | |
| 2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; |
| 2911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 2914 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 2915 | SWIG_fail; |
| 2916 | if (arg2 == NULL) { |
| 2917 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 2918 | SWIG_fail; |
| 2919 | } |
| 2920 | { |
| 2921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2922 | result = (bool)(arg1)->IsAcceptedKey(*arg2); |
| 2923 | |
| 2924 | wxPyEndAllowThreads(__tstate); |
| 2925 | if (PyErr_Occurred()) SWIG_fail; |
| 2926 | } |
| 2927 | { |
| 2928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 2929 | } |
| 2930 | return resultobj; |
| 2931 | fail: |
| 2932 | return NULL; |
| 2933 | } |
| 2934 | |
| 2935 | |
| 2936 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2937 | PyObject *resultobj; |
| 2938 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2939 | wxKeyEvent *arg2 = 0 ; |
| 2940 | PyObject * obj0 = 0 ; |
| 2941 | PyObject * obj1 = 0 ; |
| 2942 | char *kwnames[] = { |
| 2943 | (char *) "self",(char *) "event", NULL |
| 2944 | }; |
| 2945 | |
| 2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; |
| 2947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 2950 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 2951 | SWIG_fail; |
| 2952 | if (arg2 == NULL) { |
| 2953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 2954 | SWIG_fail; |
| 2955 | } |
| 2956 | { |
| 2957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2958 | (arg1)->StartingKey(*arg2); |
| 2959 | |
| 2960 | wxPyEndAllowThreads(__tstate); |
| 2961 | if (PyErr_Occurred()) SWIG_fail; |
| 2962 | } |
| 2963 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2964 | return resultobj; |
| 2965 | fail: |
| 2966 | return NULL; |
| 2967 | } |
| 2968 | |
| 2969 | |
| 2970 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2971 | PyObject *resultobj; |
| 2972 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2973 | PyObject * obj0 = 0 ; |
| 2974 | char *kwnames[] = { |
| 2975 | (char *) "self", NULL |
| 2976 | }; |
| 2977 | |
| 2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; |
| 2979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 2980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 2981 | { |
| 2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2983 | (arg1)->StartingClick(); |
| 2984 | |
| 2985 | wxPyEndAllowThreads(__tstate); |
| 2986 | if (PyErr_Occurred()) SWIG_fail; |
| 2987 | } |
| 2988 | Py_INCREF(Py_None); resultobj = Py_None; |
| 2989 | return resultobj; |
| 2990 | fail: |
| 2991 | return NULL; |
| 2992 | } |
| 2993 | |
| 2994 | |
| 2995 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *, PyObject *args, PyObject *kwargs) { |
| 2996 | PyObject *resultobj; |
| 2997 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 2998 | wxKeyEvent *arg2 = 0 ; |
| 2999 | PyObject * obj0 = 0 ; |
| 3000 | PyObject * obj1 = 0 ; |
| 3001 | char *kwnames[] = { |
| 3002 | (char *) "self",(char *) "event", NULL |
| 3003 | }; |
| 3004 | |
| 3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; |
| 3006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 3007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 3009 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 3010 | SWIG_fail; |
| 3011 | if (arg2 == NULL) { |
| 3012 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 3013 | SWIG_fail; |
| 3014 | } |
| 3015 | { |
| 3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3017 | (arg1)->HandleReturn(*arg2); |
| 3018 | |
| 3019 | wxPyEndAllowThreads(__tstate); |
| 3020 | if (PyErr_Occurred()) SWIG_fail; |
| 3021 | } |
| 3022 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3023 | return resultobj; |
| 3024 | fail: |
| 3025 | return NULL; |
| 3026 | } |
| 3027 | |
| 3028 | |
| 3029 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3030 | PyObject *resultobj; |
| 3031 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; |
| 3032 | PyObject * obj0 = 0 ; |
| 3033 | char *kwnames[] = { |
| 3034 | (char *) "self", NULL |
| 3035 | }; |
| 3036 | |
| 3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; |
| 3038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
| 3039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3040 | { |
| 3041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3042 | (arg1)->Destroy(); |
| 3043 | |
| 3044 | wxPyEndAllowThreads(__tstate); |
| 3045 | if (PyErr_Occurred()) SWIG_fail; |
| 3046 | } |
| 3047 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3048 | return resultobj; |
| 3049 | fail: |
| 3050 | return NULL; |
| 3051 | } |
| 3052 | |
| 3053 | |
| 3054 | static PyObject * GridCellEditor_swigregister(PyObject *, PyObject *args) { |
| 3055 | PyObject *obj; |
| 3056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3057 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); |
| 3058 | Py_INCREF(obj); |
| 3059 | return Py_BuildValue((char *)""); |
| 3060 | } |
| 3061 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3062 | PyObject *resultobj; |
| 3063 | wxPyGridCellEditor *result; |
| 3064 | char *kwnames[] = { |
| 3065 | NULL |
| 3066 | }; |
| 3067 | |
| 3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; |
| 3069 | { |
| 3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3071 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); |
| 3072 | |
| 3073 | wxPyEndAllowThreads(__tstate); |
| 3074 | if (PyErr_Occurred()) SWIG_fail; |
| 3075 | } |
| 3076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1); |
| 3077 | return resultobj; |
| 3078 | fail: |
| 3079 | return NULL; |
| 3080 | } |
| 3081 | |
| 3082 | |
| 3083 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3084 | PyObject *resultobj; |
| 3085 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3086 | PyObject *arg2 = (PyObject *) 0 ; |
| 3087 | PyObject *arg3 = (PyObject *) 0 ; |
| 3088 | PyObject * obj0 = 0 ; |
| 3089 | PyObject * obj1 = 0 ; |
| 3090 | PyObject * obj2 = 0 ; |
| 3091 | char *kwnames[] = { |
| 3092 | (char *) "self",(char *) "self",(char *) "_class", NULL |
| 3093 | }; |
| 3094 | |
| 3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 3096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3098 | arg2 = obj1; |
| 3099 | arg3 = obj2; |
| 3100 | { |
| 3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3102 | (arg1)->_setCallbackInfo(arg2,arg3); |
| 3103 | |
| 3104 | wxPyEndAllowThreads(__tstate); |
| 3105 | if (PyErr_Occurred()) SWIG_fail; |
| 3106 | } |
| 3107 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3108 | return resultobj; |
| 3109 | fail: |
| 3110 | return NULL; |
| 3111 | } |
| 3112 | |
| 3113 | |
| 3114 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3115 | PyObject *resultobj; |
| 3116 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3117 | wxRect *arg2 = 0 ; |
| 3118 | wxRect temp2 ; |
| 3119 | PyObject * obj0 = 0 ; |
| 3120 | PyObject * obj1 = 0 ; |
| 3121 | char *kwnames[] = { |
| 3122 | (char *) "self",(char *) "rect", NULL |
| 3123 | }; |
| 3124 | |
| 3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; |
| 3126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3128 | { |
| 3129 | arg2 = &temp2; |
| 3130 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
| 3131 | } |
| 3132 | { |
| 3133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3134 | (arg1)->base_SetSize((wxRect const &)*arg2); |
| 3135 | |
| 3136 | wxPyEndAllowThreads(__tstate); |
| 3137 | if (PyErr_Occurred()) SWIG_fail; |
| 3138 | } |
| 3139 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3140 | return resultobj; |
| 3141 | fail: |
| 3142 | return NULL; |
| 3143 | } |
| 3144 | |
| 3145 | |
| 3146 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3147 | PyObject *resultobj; |
| 3148 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3149 | bool arg2 ; |
| 3150 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; |
| 3151 | PyObject * obj0 = 0 ; |
| 3152 | PyObject * obj1 = 0 ; |
| 3153 | PyObject * obj2 = 0 ; |
| 3154 | char *kwnames[] = { |
| 3155 | (char *) "self",(char *) "show",(char *) "attr", NULL |
| 3156 | }; |
| 3157 | |
| 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 3159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3161 | arg2 = (bool)SWIG_As_bool(obj1); |
| 3162 | if (PyErr_Occurred()) SWIG_fail; |
| 3163 | if (obj2) { |
| 3164 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 3165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3166 | } |
| 3167 | { |
| 3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3169 | (arg1)->base_Show(arg2,arg3); |
| 3170 | |
| 3171 | wxPyEndAllowThreads(__tstate); |
| 3172 | if (PyErr_Occurred()) SWIG_fail; |
| 3173 | } |
| 3174 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3175 | return resultobj; |
| 3176 | fail: |
| 3177 | return NULL; |
| 3178 | } |
| 3179 | |
| 3180 | |
| 3181 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3182 | PyObject *resultobj; |
| 3183 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3184 | wxRect *arg2 = 0 ; |
| 3185 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; |
| 3186 | wxRect temp2 ; |
| 3187 | PyObject * obj0 = 0 ; |
| 3188 | PyObject * obj1 = 0 ; |
| 3189 | PyObject * obj2 = 0 ; |
| 3190 | char *kwnames[] = { |
| 3191 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL |
| 3192 | }; |
| 3193 | |
| 3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 3195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3197 | { |
| 3198 | arg2 = &temp2; |
| 3199 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
| 3200 | } |
| 3201 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3203 | { |
| 3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3205 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); |
| 3206 | |
| 3207 | wxPyEndAllowThreads(__tstate); |
| 3208 | if (PyErr_Occurred()) SWIG_fail; |
| 3209 | } |
| 3210 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3211 | return resultobj; |
| 3212 | fail: |
| 3213 | return NULL; |
| 3214 | } |
| 3215 | |
| 3216 | |
| 3217 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3218 | PyObject *resultobj; |
| 3219 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3220 | wxKeyEvent *arg2 = 0 ; |
| 3221 | bool result; |
| 3222 | PyObject * obj0 = 0 ; |
| 3223 | PyObject * obj1 = 0 ; |
| 3224 | char *kwnames[] = { |
| 3225 | (char *) "self",(char *) "event", NULL |
| 3226 | }; |
| 3227 | |
| 3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; |
| 3229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 3232 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 3233 | SWIG_fail; |
| 3234 | if (arg2 == NULL) { |
| 3235 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 3236 | SWIG_fail; |
| 3237 | } |
| 3238 | { |
| 3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3240 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); |
| 3241 | |
| 3242 | wxPyEndAllowThreads(__tstate); |
| 3243 | if (PyErr_Occurred()) SWIG_fail; |
| 3244 | } |
| 3245 | { |
| 3246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 3247 | } |
| 3248 | return resultobj; |
| 3249 | fail: |
| 3250 | return NULL; |
| 3251 | } |
| 3252 | |
| 3253 | |
| 3254 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3255 | PyObject *resultobj; |
| 3256 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3257 | wxKeyEvent *arg2 = 0 ; |
| 3258 | PyObject * obj0 = 0 ; |
| 3259 | PyObject * obj1 = 0 ; |
| 3260 | char *kwnames[] = { |
| 3261 | (char *) "self",(char *) "event", NULL |
| 3262 | }; |
| 3263 | |
| 3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; |
| 3265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 3268 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 3269 | SWIG_fail; |
| 3270 | if (arg2 == NULL) { |
| 3271 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 3272 | SWIG_fail; |
| 3273 | } |
| 3274 | { |
| 3275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3276 | (arg1)->base_StartingKey(*arg2); |
| 3277 | |
| 3278 | wxPyEndAllowThreads(__tstate); |
| 3279 | if (PyErr_Occurred()) SWIG_fail; |
| 3280 | } |
| 3281 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3282 | return resultobj; |
| 3283 | fail: |
| 3284 | return NULL; |
| 3285 | } |
| 3286 | |
| 3287 | |
| 3288 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3289 | PyObject *resultobj; |
| 3290 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3291 | PyObject * obj0 = 0 ; |
| 3292 | char *kwnames[] = { |
| 3293 | (char *) "self", NULL |
| 3294 | }; |
| 3295 | |
| 3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; |
| 3297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3299 | { |
| 3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3301 | (arg1)->base_StartingClick(); |
| 3302 | |
| 3303 | wxPyEndAllowThreads(__tstate); |
| 3304 | if (PyErr_Occurred()) SWIG_fail; |
| 3305 | } |
| 3306 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3307 | return resultobj; |
| 3308 | fail: |
| 3309 | return NULL; |
| 3310 | } |
| 3311 | |
| 3312 | |
| 3313 | static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3314 | PyObject *resultobj; |
| 3315 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3316 | wxKeyEvent *arg2 = 0 ; |
| 3317 | PyObject * obj0 = 0 ; |
| 3318 | PyObject * obj1 = 0 ; |
| 3319 | char *kwnames[] = { |
| 3320 | (char *) "self",(char *) "event", NULL |
| 3321 | }; |
| 3322 | |
| 3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; |
| 3324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, |
| 3327 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 3328 | SWIG_fail; |
| 3329 | if (arg2 == NULL) { |
| 3330 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 3331 | SWIG_fail; |
| 3332 | } |
| 3333 | { |
| 3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3335 | (arg1)->base_HandleReturn(*arg2); |
| 3336 | |
| 3337 | wxPyEndAllowThreads(__tstate); |
| 3338 | if (PyErr_Occurred()) SWIG_fail; |
| 3339 | } |
| 3340 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3341 | return resultobj; |
| 3342 | fail: |
| 3343 | return NULL; |
| 3344 | } |
| 3345 | |
| 3346 | |
| 3347 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3348 | PyObject *resultobj; |
| 3349 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3350 | PyObject * obj0 = 0 ; |
| 3351 | char *kwnames[] = { |
| 3352 | (char *) "self", NULL |
| 3353 | }; |
| 3354 | |
| 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; |
| 3356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3358 | { |
| 3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3360 | (arg1)->base_Destroy(); |
| 3361 | |
| 3362 | wxPyEndAllowThreads(__tstate); |
| 3363 | if (PyErr_Occurred()) SWIG_fail; |
| 3364 | } |
| 3365 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3366 | return resultobj; |
| 3367 | fail: |
| 3368 | return NULL; |
| 3369 | } |
| 3370 | |
| 3371 | |
| 3372 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3373 | PyObject *resultobj; |
| 3374 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; |
| 3375 | wxString *arg2 = 0 ; |
| 3376 | bool temp2 = false ; |
| 3377 | PyObject * obj0 = 0 ; |
| 3378 | PyObject * obj1 = 0 ; |
| 3379 | char *kwnames[] = { |
| 3380 | (char *) "self",(char *) "params", NULL |
| 3381 | }; |
| 3382 | |
| 3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; |
| 3384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
| 3385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3386 | { |
| 3387 | arg2 = wxString_in_helper(obj1); |
| 3388 | if (arg2 == NULL) SWIG_fail; |
| 3389 | temp2 = true; |
| 3390 | } |
| 3391 | { |
| 3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3393 | (arg1)->base_SetParameters((wxString const &)*arg2); |
| 3394 | |
| 3395 | wxPyEndAllowThreads(__tstate); |
| 3396 | if (PyErr_Occurred()) SWIG_fail; |
| 3397 | } |
| 3398 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3399 | { |
| 3400 | if (temp2) |
| 3401 | delete arg2; |
| 3402 | } |
| 3403 | return resultobj; |
| 3404 | fail: |
| 3405 | { |
| 3406 | if (temp2) |
| 3407 | delete arg2; |
| 3408 | } |
| 3409 | return NULL; |
| 3410 | } |
| 3411 | |
| 3412 | |
| 3413 | static PyObject * PyGridCellEditor_swigregister(PyObject *, PyObject *args) { |
| 3414 | PyObject *obj; |
| 3415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3416 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); |
| 3417 | Py_INCREF(obj); |
| 3418 | return Py_BuildValue((char *)""); |
| 3419 | } |
| 3420 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3421 | PyObject *resultobj; |
| 3422 | wxGridCellTextEditor *result; |
| 3423 | char *kwnames[] = { |
| 3424 | NULL |
| 3425 | }; |
| 3426 | |
| 3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; |
| 3428 | { |
| 3429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3430 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); |
| 3431 | |
| 3432 | wxPyEndAllowThreads(__tstate); |
| 3433 | if (PyErr_Occurred()) SWIG_fail; |
| 3434 | } |
| 3435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1); |
| 3436 | return resultobj; |
| 3437 | fail: |
| 3438 | return NULL; |
| 3439 | } |
| 3440 | |
| 3441 | |
| 3442 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3443 | PyObject *resultobj; |
| 3444 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; |
| 3445 | wxString result; |
| 3446 | PyObject * obj0 = 0 ; |
| 3447 | char *kwnames[] = { |
| 3448 | (char *) "self", NULL |
| 3449 | }; |
| 3450 | |
| 3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor, |
| 3453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3454 | { |
| 3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3456 | result = (arg1)->GetValue(); |
| 3457 | |
| 3458 | wxPyEndAllowThreads(__tstate); |
| 3459 | if (PyErr_Occurred()) SWIG_fail; |
| 3460 | } |
| 3461 | { |
| 3462 | #if wxUSE_UNICODE |
| 3463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3464 | #else |
| 3465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3466 | #endif |
| 3467 | } |
| 3468 | return resultobj; |
| 3469 | fail: |
| 3470 | return NULL; |
| 3471 | } |
| 3472 | |
| 3473 | |
| 3474 | static PyObject * GridCellTextEditor_swigregister(PyObject *, PyObject *args) { |
| 3475 | PyObject *obj; |
| 3476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3477 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); |
| 3478 | Py_INCREF(obj); |
| 3479 | return Py_BuildValue((char *)""); |
| 3480 | } |
| 3481 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3482 | PyObject *resultobj; |
| 3483 | int arg1 = (int) -1 ; |
| 3484 | int arg2 = (int) -1 ; |
| 3485 | wxGridCellNumberEditor *result; |
| 3486 | PyObject * obj0 = 0 ; |
| 3487 | PyObject * obj1 = 0 ; |
| 3488 | char *kwnames[] = { |
| 3489 | (char *) "min",(char *) "max", NULL |
| 3490 | }; |
| 3491 | |
| 3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; |
| 3493 | if (obj0) { |
| 3494 | arg1 = (int)SWIG_As_int(obj0); |
| 3495 | if (PyErr_Occurred()) SWIG_fail; |
| 3496 | } |
| 3497 | if (obj1) { |
| 3498 | arg2 = (int)SWIG_As_int(obj1); |
| 3499 | if (PyErr_Occurred()) SWIG_fail; |
| 3500 | } |
| 3501 | { |
| 3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3503 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); |
| 3504 | |
| 3505 | wxPyEndAllowThreads(__tstate); |
| 3506 | if (PyErr_Occurred()) SWIG_fail; |
| 3507 | } |
| 3508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1); |
| 3509 | return resultobj; |
| 3510 | fail: |
| 3511 | return NULL; |
| 3512 | } |
| 3513 | |
| 3514 | |
| 3515 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3516 | PyObject *resultobj; |
| 3517 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; |
| 3518 | wxString result; |
| 3519 | PyObject * obj0 = 0 ; |
| 3520 | char *kwnames[] = { |
| 3521 | (char *) "self", NULL |
| 3522 | }; |
| 3523 | |
| 3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor, |
| 3526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3527 | { |
| 3528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3529 | result = (arg1)->GetValue(); |
| 3530 | |
| 3531 | wxPyEndAllowThreads(__tstate); |
| 3532 | if (PyErr_Occurred()) SWIG_fail; |
| 3533 | } |
| 3534 | { |
| 3535 | #if wxUSE_UNICODE |
| 3536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3537 | #else |
| 3538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3539 | #endif |
| 3540 | } |
| 3541 | return resultobj; |
| 3542 | fail: |
| 3543 | return NULL; |
| 3544 | } |
| 3545 | |
| 3546 | |
| 3547 | static PyObject * GridCellNumberEditor_swigregister(PyObject *, PyObject *args) { |
| 3548 | PyObject *obj; |
| 3549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3550 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); |
| 3551 | Py_INCREF(obj); |
| 3552 | return Py_BuildValue((char *)""); |
| 3553 | } |
| 3554 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3555 | PyObject *resultobj; |
| 3556 | int arg1 = (int) -1 ; |
| 3557 | int arg2 = (int) -1 ; |
| 3558 | wxGridCellFloatEditor *result; |
| 3559 | PyObject * obj0 = 0 ; |
| 3560 | PyObject * obj1 = 0 ; |
| 3561 | char *kwnames[] = { |
| 3562 | (char *) "width",(char *) "precision", NULL |
| 3563 | }; |
| 3564 | |
| 3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatEditor",kwnames,&obj0,&obj1)) goto fail; |
| 3566 | if (obj0) { |
| 3567 | arg1 = (int)SWIG_As_int(obj0); |
| 3568 | if (PyErr_Occurred()) SWIG_fail; |
| 3569 | } |
| 3570 | if (obj1) { |
| 3571 | arg2 = (int)SWIG_As_int(obj1); |
| 3572 | if (PyErr_Occurred()) SWIG_fail; |
| 3573 | } |
| 3574 | { |
| 3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3576 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(arg1,arg2); |
| 3577 | |
| 3578 | wxPyEndAllowThreads(__tstate); |
| 3579 | if (PyErr_Occurred()) SWIG_fail; |
| 3580 | } |
| 3581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1); |
| 3582 | return resultobj; |
| 3583 | fail: |
| 3584 | return NULL; |
| 3585 | } |
| 3586 | |
| 3587 | |
| 3588 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3589 | PyObject *resultobj; |
| 3590 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; |
| 3591 | wxString result; |
| 3592 | PyObject * obj0 = 0 ; |
| 3593 | char *kwnames[] = { |
| 3594 | (char *) "self", NULL |
| 3595 | }; |
| 3596 | |
| 3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor, |
| 3599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3600 | { |
| 3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3602 | result = (arg1)->GetValue(); |
| 3603 | |
| 3604 | wxPyEndAllowThreads(__tstate); |
| 3605 | if (PyErr_Occurred()) SWIG_fail; |
| 3606 | } |
| 3607 | { |
| 3608 | #if wxUSE_UNICODE |
| 3609 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3610 | #else |
| 3611 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3612 | #endif |
| 3613 | } |
| 3614 | return resultobj; |
| 3615 | fail: |
| 3616 | return NULL; |
| 3617 | } |
| 3618 | |
| 3619 | |
| 3620 | static PyObject * GridCellFloatEditor_swigregister(PyObject *, PyObject *args) { |
| 3621 | PyObject *obj; |
| 3622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3623 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); |
| 3624 | Py_INCREF(obj); |
| 3625 | return Py_BuildValue((char *)""); |
| 3626 | } |
| 3627 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3628 | PyObject *resultobj; |
| 3629 | wxGridCellBoolEditor *result; |
| 3630 | char *kwnames[] = { |
| 3631 | NULL |
| 3632 | }; |
| 3633 | |
| 3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; |
| 3635 | { |
| 3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3637 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); |
| 3638 | |
| 3639 | wxPyEndAllowThreads(__tstate); |
| 3640 | if (PyErr_Occurred()) SWIG_fail; |
| 3641 | } |
| 3642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1); |
| 3643 | return resultobj; |
| 3644 | fail: |
| 3645 | return NULL; |
| 3646 | } |
| 3647 | |
| 3648 | |
| 3649 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3650 | PyObject *resultobj; |
| 3651 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; |
| 3652 | wxString result; |
| 3653 | PyObject * obj0 = 0 ; |
| 3654 | char *kwnames[] = { |
| 3655 | (char *) "self", NULL |
| 3656 | }; |
| 3657 | |
| 3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor, |
| 3660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3661 | { |
| 3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3663 | result = (arg1)->GetValue(); |
| 3664 | |
| 3665 | wxPyEndAllowThreads(__tstate); |
| 3666 | if (PyErr_Occurred()) SWIG_fail; |
| 3667 | } |
| 3668 | { |
| 3669 | #if wxUSE_UNICODE |
| 3670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3671 | #else |
| 3672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3673 | #endif |
| 3674 | } |
| 3675 | return resultobj; |
| 3676 | fail: |
| 3677 | return NULL; |
| 3678 | } |
| 3679 | |
| 3680 | |
| 3681 | static PyObject * GridCellBoolEditor_swigregister(PyObject *, PyObject *args) { |
| 3682 | PyObject *obj; |
| 3683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3684 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); |
| 3685 | Py_INCREF(obj); |
| 3686 | return Py_BuildValue((char *)""); |
| 3687 | } |
| 3688 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3689 | PyObject *resultobj; |
| 3690 | int arg1 = (int) 0 ; |
| 3691 | wxString *arg2 = (wxString *) NULL ; |
| 3692 | bool arg3 = (bool) false ; |
| 3693 | wxGridCellChoiceEditor *result; |
| 3694 | PyObject * obj0 = 0 ; |
| 3695 | PyObject * obj1 = 0 ; |
| 3696 | char *kwnames[] = { |
| 3697 | (char *) "choices",(char *) "allowOthers", NULL |
| 3698 | }; |
| 3699 | |
| 3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; |
| 3701 | if (obj0) { |
| 3702 | { |
| 3703 | arg1 = PyList_Size(obj0); |
| 3704 | arg2 = wxString_LIST_helper(obj0); |
| 3705 | if (arg2 == NULL) SWIG_fail; |
| 3706 | } |
| 3707 | } |
| 3708 | if (obj1) { |
| 3709 | arg3 = (bool)SWIG_As_bool(obj1); |
| 3710 | if (PyErr_Occurred()) SWIG_fail; |
| 3711 | } |
| 3712 | { |
| 3713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3714 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); |
| 3715 | |
| 3716 | wxPyEndAllowThreads(__tstate); |
| 3717 | if (PyErr_Occurred()) SWIG_fail; |
| 3718 | } |
| 3719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1); |
| 3720 | { |
| 3721 | if (arg2) delete [] arg2; |
| 3722 | } |
| 3723 | return resultobj; |
| 3724 | fail: |
| 3725 | { |
| 3726 | if (arg2) delete [] arg2; |
| 3727 | } |
| 3728 | return NULL; |
| 3729 | } |
| 3730 | |
| 3731 | |
| 3732 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3733 | PyObject *resultobj; |
| 3734 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; |
| 3735 | wxString result; |
| 3736 | PyObject * obj0 = 0 ; |
| 3737 | char *kwnames[] = { |
| 3738 | (char *) "self", NULL |
| 3739 | }; |
| 3740 | |
| 3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor, |
| 3743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3744 | { |
| 3745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3746 | result = (arg1)->GetValue(); |
| 3747 | |
| 3748 | wxPyEndAllowThreads(__tstate); |
| 3749 | if (PyErr_Occurred()) SWIG_fail; |
| 3750 | } |
| 3751 | { |
| 3752 | #if wxUSE_UNICODE |
| 3753 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3754 | #else |
| 3755 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3756 | #endif |
| 3757 | } |
| 3758 | return resultobj; |
| 3759 | fail: |
| 3760 | return NULL; |
| 3761 | } |
| 3762 | |
| 3763 | |
| 3764 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *, PyObject *args) { |
| 3765 | PyObject *obj; |
| 3766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3767 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); |
| 3768 | Py_INCREF(obj); |
| 3769 | return Py_BuildValue((char *)""); |
| 3770 | } |
| 3771 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3772 | PyObject *resultobj; |
| 3773 | wxString const &arg1_defvalue = wxPyEmptyString ; |
| 3774 | wxString *arg1 = (wxString *) &arg1_defvalue ; |
| 3775 | wxGridCellEnumEditor *result; |
| 3776 | bool temp1 = false ; |
| 3777 | PyObject * obj0 = 0 ; |
| 3778 | char *kwnames[] = { |
| 3779 | (char *) "choices", NULL |
| 3780 | }; |
| 3781 | |
| 3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; |
| 3783 | if (obj0) { |
| 3784 | { |
| 3785 | arg1 = wxString_in_helper(obj0); |
| 3786 | if (arg1 == NULL) SWIG_fail; |
| 3787 | temp1 = true; |
| 3788 | } |
| 3789 | } |
| 3790 | { |
| 3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3792 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); |
| 3793 | |
| 3794 | wxPyEndAllowThreads(__tstate); |
| 3795 | if (PyErr_Occurred()) SWIG_fail; |
| 3796 | } |
| 3797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1); |
| 3798 | { |
| 3799 | if (temp1) |
| 3800 | delete arg1; |
| 3801 | } |
| 3802 | return resultobj; |
| 3803 | fail: |
| 3804 | { |
| 3805 | if (temp1) |
| 3806 | delete arg1; |
| 3807 | } |
| 3808 | return NULL; |
| 3809 | } |
| 3810 | |
| 3811 | |
| 3812 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3813 | PyObject *resultobj; |
| 3814 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; |
| 3815 | wxString result; |
| 3816 | PyObject * obj0 = 0 ; |
| 3817 | char *kwnames[] = { |
| 3818 | (char *) "self", NULL |
| 3819 | }; |
| 3820 | |
| 3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor, |
| 3823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3824 | { |
| 3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3826 | result = (arg1)->GetValue(); |
| 3827 | |
| 3828 | wxPyEndAllowThreads(__tstate); |
| 3829 | if (PyErr_Occurred()) SWIG_fail; |
| 3830 | } |
| 3831 | { |
| 3832 | #if wxUSE_UNICODE |
| 3833 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3834 | #else |
| 3835 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3836 | #endif |
| 3837 | } |
| 3838 | return resultobj; |
| 3839 | fail: |
| 3840 | return NULL; |
| 3841 | } |
| 3842 | |
| 3843 | |
| 3844 | static PyObject * GridCellEnumEditor_swigregister(PyObject *, PyObject *args) { |
| 3845 | PyObject *obj; |
| 3846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3847 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); |
| 3848 | Py_INCREF(obj); |
| 3849 | return Py_BuildValue((char *)""); |
| 3850 | } |
| 3851 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3852 | PyObject *resultobj; |
| 3853 | wxGridCellAutoWrapStringEditor *result; |
| 3854 | char *kwnames[] = { |
| 3855 | NULL |
| 3856 | }; |
| 3857 | |
| 3858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; |
| 3859 | { |
| 3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3861 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); |
| 3862 | |
| 3863 | wxPyEndAllowThreads(__tstate); |
| 3864 | if (PyErr_Occurred()) SWIG_fail; |
| 3865 | } |
| 3866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); |
| 3867 | return resultobj; |
| 3868 | fail: |
| 3869 | return NULL; |
| 3870 | } |
| 3871 | |
| 3872 | |
| 3873 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3874 | PyObject *resultobj; |
| 3875 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; |
| 3876 | wxString result; |
| 3877 | PyObject * obj0 = 0 ; |
| 3878 | char *kwnames[] = { |
| 3879 | (char *) "self", NULL |
| 3880 | }; |
| 3881 | |
| 3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; |
| 3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor, |
| 3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3885 | { |
| 3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3887 | result = (arg1)->GetValue(); |
| 3888 | |
| 3889 | wxPyEndAllowThreads(__tstate); |
| 3890 | if (PyErr_Occurred()) SWIG_fail; |
| 3891 | } |
| 3892 | { |
| 3893 | #if wxUSE_UNICODE |
| 3894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 3895 | #else |
| 3896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 3897 | #endif |
| 3898 | } |
| 3899 | return resultobj; |
| 3900 | fail: |
| 3901 | return NULL; |
| 3902 | } |
| 3903 | |
| 3904 | |
| 3905 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *, PyObject *args) { |
| 3906 | PyObject *obj; |
| 3907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 3908 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); |
| 3909 | Py_INCREF(obj); |
| 3910 | return Py_BuildValue((char *)""); |
| 3911 | } |
| 3912 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3913 | PyObject *resultobj; |
| 3914 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 3915 | PyObject *arg2 = (PyObject *) 0 ; |
| 3916 | PyObject * obj0 = 0 ; |
| 3917 | PyObject * obj1 = 0 ; |
| 3918 | char *kwnames[] = { |
| 3919 | (char *) "self",(char *) "_self", NULL |
| 3920 | }; |
| 3921 | |
| 3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; |
| 3923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 3924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3925 | arg2 = obj1; |
| 3926 | { |
| 3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3928 | wxGridCellAttr__setOORInfo(arg1,arg2); |
| 3929 | |
| 3930 | wxPyEndAllowThreads(__tstate); |
| 3931 | if (PyErr_Occurred()) SWIG_fail; |
| 3932 | } |
| 3933 | Py_INCREF(Py_None); resultobj = Py_None; |
| 3934 | return resultobj; |
| 3935 | fail: |
| 3936 | return NULL; |
| 3937 | } |
| 3938 | |
| 3939 | |
| 3940 | static PyObject *_wrap_new_GridCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3941 | PyObject *resultobj; |
| 3942 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; |
| 3943 | wxGridCellAttr *result; |
| 3944 | PyObject * obj0 = 0 ; |
| 3945 | char *kwnames[] = { |
| 3946 | (char *) "attrDefault", NULL |
| 3947 | }; |
| 3948 | |
| 3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; |
| 3950 | if (obj0) { |
| 3951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3953 | } |
| 3954 | { |
| 3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3956 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); |
| 3957 | |
| 3958 | wxPyEndAllowThreads(__tstate); |
| 3959 | if (PyErr_Occurred()) SWIG_fail; |
| 3960 | } |
| 3961 | { |
| 3962 | resultobj = wxPyMake_wxGridCellAttr(result, 1); |
| 3963 | } |
| 3964 | return resultobj; |
| 3965 | fail: |
| 3966 | return NULL; |
| 3967 | } |
| 3968 | |
| 3969 | |
| 3970 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3971 | PyObject *resultobj; |
| 3972 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 3973 | wxGridCellAttr *result; |
| 3974 | PyObject * obj0 = 0 ; |
| 3975 | char *kwnames[] = { |
| 3976 | (char *) "self", NULL |
| 3977 | }; |
| 3978 | |
| 3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; |
| 3980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 3981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 3982 | { |
| 3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3984 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); |
| 3985 | |
| 3986 | wxPyEndAllowThreads(__tstate); |
| 3987 | if (PyErr_Occurred()) SWIG_fail; |
| 3988 | } |
| 3989 | { |
| 3990 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 3991 | } |
| 3992 | return resultobj; |
| 3993 | fail: |
| 3994 | return NULL; |
| 3995 | } |
| 3996 | |
| 3997 | |
| 3998 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *, PyObject *args, PyObject *kwargs) { |
| 3999 | PyObject *resultobj; |
| 4000 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4001 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 4002 | PyObject * obj0 = 0 ; |
| 4003 | PyObject * obj1 = 0 ; |
| 4004 | char *kwnames[] = { |
| 4005 | (char *) "self",(char *) "mergefrom", NULL |
| 4006 | }; |
| 4007 | |
| 4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; |
| 4009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4013 | { |
| 4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4015 | (arg1)->MergeWith(arg2); |
| 4016 | |
| 4017 | wxPyEndAllowThreads(__tstate); |
| 4018 | if (PyErr_Occurred()) SWIG_fail; |
| 4019 | } |
| 4020 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4021 | return resultobj; |
| 4022 | fail: |
| 4023 | return NULL; |
| 4024 | } |
| 4025 | |
| 4026 | |
| 4027 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4028 | PyObject *resultobj; |
| 4029 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4030 | PyObject * obj0 = 0 ; |
| 4031 | char *kwnames[] = { |
| 4032 | (char *) "self", NULL |
| 4033 | }; |
| 4034 | |
| 4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; |
| 4036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4038 | { |
| 4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4040 | (arg1)->IncRef(); |
| 4041 | |
| 4042 | wxPyEndAllowThreads(__tstate); |
| 4043 | if (PyErr_Occurred()) SWIG_fail; |
| 4044 | } |
| 4045 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4046 | return resultobj; |
| 4047 | fail: |
| 4048 | return NULL; |
| 4049 | } |
| 4050 | |
| 4051 | |
| 4052 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4053 | PyObject *resultobj; |
| 4054 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4055 | PyObject * obj0 = 0 ; |
| 4056 | char *kwnames[] = { |
| 4057 | (char *) "self", NULL |
| 4058 | }; |
| 4059 | |
| 4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; |
| 4061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4063 | { |
| 4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4065 | (arg1)->DecRef(); |
| 4066 | |
| 4067 | wxPyEndAllowThreads(__tstate); |
| 4068 | if (PyErr_Occurred()) SWIG_fail; |
| 4069 | } |
| 4070 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4071 | return resultobj; |
| 4072 | fail: |
| 4073 | return NULL; |
| 4074 | } |
| 4075 | |
| 4076 | |
| 4077 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4078 | PyObject *resultobj; |
| 4079 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4080 | wxColour *arg2 = 0 ; |
| 4081 | wxColour temp2 ; |
| 4082 | PyObject * obj0 = 0 ; |
| 4083 | PyObject * obj1 = 0 ; |
| 4084 | char *kwnames[] = { |
| 4085 | (char *) "self",(char *) "colText", NULL |
| 4086 | }; |
| 4087 | |
| 4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; |
| 4089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4091 | { |
| 4092 | arg2 = &temp2; |
| 4093 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 4094 | } |
| 4095 | { |
| 4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4097 | (arg1)->SetTextColour((wxColour const &)*arg2); |
| 4098 | |
| 4099 | wxPyEndAllowThreads(__tstate); |
| 4100 | if (PyErr_Occurred()) SWIG_fail; |
| 4101 | } |
| 4102 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4103 | return resultobj; |
| 4104 | fail: |
| 4105 | return NULL; |
| 4106 | } |
| 4107 | |
| 4108 | |
| 4109 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4110 | PyObject *resultobj; |
| 4111 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4112 | wxColour *arg2 = 0 ; |
| 4113 | wxColour temp2 ; |
| 4114 | PyObject * obj0 = 0 ; |
| 4115 | PyObject * obj1 = 0 ; |
| 4116 | char *kwnames[] = { |
| 4117 | (char *) "self",(char *) "colBack", NULL |
| 4118 | }; |
| 4119 | |
| 4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
| 4121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4123 | { |
| 4124 | arg2 = &temp2; |
| 4125 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 4126 | } |
| 4127 | { |
| 4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4129 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); |
| 4130 | |
| 4131 | wxPyEndAllowThreads(__tstate); |
| 4132 | if (PyErr_Occurred()) SWIG_fail; |
| 4133 | } |
| 4134 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4135 | return resultobj; |
| 4136 | fail: |
| 4137 | return NULL; |
| 4138 | } |
| 4139 | |
| 4140 | |
| 4141 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4142 | PyObject *resultobj; |
| 4143 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4144 | wxFont *arg2 = 0 ; |
| 4145 | PyObject * obj0 = 0 ; |
| 4146 | PyObject * obj1 = 0 ; |
| 4147 | char *kwnames[] = { |
| 4148 | (char *) "self",(char *) "font", NULL |
| 4149 | }; |
| 4150 | |
| 4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; |
| 4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, |
| 4155 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 4156 | SWIG_fail; |
| 4157 | if (arg2 == NULL) { |
| 4158 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 4159 | SWIG_fail; |
| 4160 | } |
| 4161 | { |
| 4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4163 | (arg1)->SetFont((wxFont const &)*arg2); |
| 4164 | |
| 4165 | wxPyEndAllowThreads(__tstate); |
| 4166 | if (PyErr_Occurred()) SWIG_fail; |
| 4167 | } |
| 4168 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4169 | return resultobj; |
| 4170 | fail: |
| 4171 | return NULL; |
| 4172 | } |
| 4173 | |
| 4174 | |
| 4175 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4176 | PyObject *resultobj; |
| 4177 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4178 | int arg2 ; |
| 4179 | int arg3 ; |
| 4180 | PyObject * obj0 = 0 ; |
| 4181 | PyObject * obj1 = 0 ; |
| 4182 | PyObject * obj2 = 0 ; |
| 4183 | char *kwnames[] = { |
| 4184 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL |
| 4185 | }; |
| 4186 | |
| 4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 4188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4190 | arg2 = (int)SWIG_As_int(obj1); |
| 4191 | if (PyErr_Occurred()) SWIG_fail; |
| 4192 | arg3 = (int)SWIG_As_int(obj2); |
| 4193 | if (PyErr_Occurred()) SWIG_fail; |
| 4194 | { |
| 4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4196 | (arg1)->SetAlignment(arg2,arg3); |
| 4197 | |
| 4198 | wxPyEndAllowThreads(__tstate); |
| 4199 | if (PyErr_Occurred()) SWIG_fail; |
| 4200 | } |
| 4201 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4202 | return resultobj; |
| 4203 | fail: |
| 4204 | return NULL; |
| 4205 | } |
| 4206 | |
| 4207 | |
| 4208 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4209 | PyObject *resultobj; |
| 4210 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4211 | int arg2 ; |
| 4212 | int arg3 ; |
| 4213 | PyObject * obj0 = 0 ; |
| 4214 | PyObject * obj1 = 0 ; |
| 4215 | PyObject * obj2 = 0 ; |
| 4216 | char *kwnames[] = { |
| 4217 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL |
| 4218 | }; |
| 4219 | |
| 4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 4221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4223 | arg2 = (int)SWIG_As_int(obj1); |
| 4224 | if (PyErr_Occurred()) SWIG_fail; |
| 4225 | arg3 = (int)SWIG_As_int(obj2); |
| 4226 | if (PyErr_Occurred()) SWIG_fail; |
| 4227 | { |
| 4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4229 | (arg1)->SetSize(arg2,arg3); |
| 4230 | |
| 4231 | wxPyEndAllowThreads(__tstate); |
| 4232 | if (PyErr_Occurred()) SWIG_fail; |
| 4233 | } |
| 4234 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4235 | return resultobj; |
| 4236 | fail: |
| 4237 | return NULL; |
| 4238 | } |
| 4239 | |
| 4240 | |
| 4241 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4242 | PyObject *resultobj; |
| 4243 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4244 | bool arg2 = (bool) true ; |
| 4245 | PyObject * obj0 = 0 ; |
| 4246 | PyObject * obj1 = 0 ; |
| 4247 | char *kwnames[] = { |
| 4248 | (char *) "self",(char *) "allow", NULL |
| 4249 | }; |
| 4250 | |
| 4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; |
| 4252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4254 | if (obj1) { |
| 4255 | arg2 = (bool)SWIG_As_bool(obj1); |
| 4256 | if (PyErr_Occurred()) SWIG_fail; |
| 4257 | } |
| 4258 | { |
| 4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4260 | (arg1)->SetOverflow(arg2); |
| 4261 | |
| 4262 | wxPyEndAllowThreads(__tstate); |
| 4263 | if (PyErr_Occurred()) SWIG_fail; |
| 4264 | } |
| 4265 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4266 | return resultobj; |
| 4267 | fail: |
| 4268 | return NULL; |
| 4269 | } |
| 4270 | |
| 4271 | |
| 4272 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4273 | PyObject *resultobj; |
| 4274 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4275 | bool arg2 = (bool) true ; |
| 4276 | PyObject * obj0 = 0 ; |
| 4277 | PyObject * obj1 = 0 ; |
| 4278 | char *kwnames[] = { |
| 4279 | (char *) "self",(char *) "isReadOnly", NULL |
| 4280 | }; |
| 4281 | |
| 4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; |
| 4283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4285 | if (obj1) { |
| 4286 | arg2 = (bool)SWIG_As_bool(obj1); |
| 4287 | if (PyErr_Occurred()) SWIG_fail; |
| 4288 | } |
| 4289 | { |
| 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4291 | (arg1)->SetReadOnly(arg2); |
| 4292 | |
| 4293 | wxPyEndAllowThreads(__tstate); |
| 4294 | if (PyErr_Occurred()) SWIG_fail; |
| 4295 | } |
| 4296 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4297 | return resultobj; |
| 4298 | fail: |
| 4299 | return NULL; |
| 4300 | } |
| 4301 | |
| 4302 | |
| 4303 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4304 | PyObject *resultobj; |
| 4305 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4306 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; |
| 4307 | PyObject * obj0 = 0 ; |
| 4308 | PyObject * obj1 = 0 ; |
| 4309 | char *kwnames[] = { |
| 4310 | (char *) "self",(char *) "renderer", NULL |
| 4311 | }; |
| 4312 | |
| 4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; |
| 4314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4316 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, |
| 4317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4318 | { |
| 4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4320 | (arg1)->SetRenderer(arg2); |
| 4321 | |
| 4322 | wxPyEndAllowThreads(__tstate); |
| 4323 | if (PyErr_Occurred()) SWIG_fail; |
| 4324 | } |
| 4325 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4326 | return resultobj; |
| 4327 | fail: |
| 4328 | return NULL; |
| 4329 | } |
| 4330 | |
| 4331 | |
| 4332 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4333 | PyObject *resultobj; |
| 4334 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4335 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; |
| 4336 | PyObject * obj0 = 0 ; |
| 4337 | PyObject * obj1 = 0 ; |
| 4338 | char *kwnames[] = { |
| 4339 | (char *) "self",(char *) "editor", NULL |
| 4340 | }; |
| 4341 | |
| 4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; |
| 4343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, |
| 4346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4347 | { |
| 4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4349 | (arg1)->SetEditor(arg2); |
| 4350 | |
| 4351 | wxPyEndAllowThreads(__tstate); |
| 4352 | if (PyErr_Occurred()) SWIG_fail; |
| 4353 | } |
| 4354 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4355 | return resultobj; |
| 4356 | fail: |
| 4357 | return NULL; |
| 4358 | } |
| 4359 | |
| 4360 | |
| 4361 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4362 | PyObject *resultobj; |
| 4363 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4364 | int arg2 ; |
| 4365 | PyObject * obj0 = 0 ; |
| 4366 | PyObject * obj1 = 0 ; |
| 4367 | char *kwnames[] = { |
| 4368 | (char *) "self",(char *) "kind", NULL |
| 4369 | }; |
| 4370 | |
| 4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; |
| 4372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4374 | arg2 = (int)SWIG_As_int(obj1); |
| 4375 | if (PyErr_Occurred()) SWIG_fail; |
| 4376 | { |
| 4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4378 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); |
| 4379 | |
| 4380 | wxPyEndAllowThreads(__tstate); |
| 4381 | if (PyErr_Occurred()) SWIG_fail; |
| 4382 | } |
| 4383 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4384 | return resultobj; |
| 4385 | fail: |
| 4386 | return NULL; |
| 4387 | } |
| 4388 | |
| 4389 | |
| 4390 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4391 | PyObject *resultobj; |
| 4392 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4393 | bool result; |
| 4394 | PyObject * obj0 = 0 ; |
| 4395 | char *kwnames[] = { |
| 4396 | (char *) "self", NULL |
| 4397 | }; |
| 4398 | |
| 4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; |
| 4400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4402 | { |
| 4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4404 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); |
| 4405 | |
| 4406 | wxPyEndAllowThreads(__tstate); |
| 4407 | if (PyErr_Occurred()) SWIG_fail; |
| 4408 | } |
| 4409 | { |
| 4410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4411 | } |
| 4412 | return resultobj; |
| 4413 | fail: |
| 4414 | return NULL; |
| 4415 | } |
| 4416 | |
| 4417 | |
| 4418 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4419 | PyObject *resultobj; |
| 4420 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4421 | bool result; |
| 4422 | PyObject * obj0 = 0 ; |
| 4423 | char *kwnames[] = { |
| 4424 | (char *) "self", NULL |
| 4425 | }; |
| 4426 | |
| 4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; |
| 4428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4430 | { |
| 4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4432 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); |
| 4433 | |
| 4434 | wxPyEndAllowThreads(__tstate); |
| 4435 | if (PyErr_Occurred()) SWIG_fail; |
| 4436 | } |
| 4437 | { |
| 4438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4439 | } |
| 4440 | return resultobj; |
| 4441 | fail: |
| 4442 | return NULL; |
| 4443 | } |
| 4444 | |
| 4445 | |
| 4446 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4447 | PyObject *resultobj; |
| 4448 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4449 | bool result; |
| 4450 | PyObject * obj0 = 0 ; |
| 4451 | char *kwnames[] = { |
| 4452 | (char *) "self", NULL |
| 4453 | }; |
| 4454 | |
| 4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; |
| 4456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4458 | { |
| 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4460 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); |
| 4461 | |
| 4462 | wxPyEndAllowThreads(__tstate); |
| 4463 | if (PyErr_Occurred()) SWIG_fail; |
| 4464 | } |
| 4465 | { |
| 4466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4467 | } |
| 4468 | return resultobj; |
| 4469 | fail: |
| 4470 | return NULL; |
| 4471 | } |
| 4472 | |
| 4473 | |
| 4474 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4475 | PyObject *resultobj; |
| 4476 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4477 | bool result; |
| 4478 | PyObject * obj0 = 0 ; |
| 4479 | char *kwnames[] = { |
| 4480 | (char *) "self", NULL |
| 4481 | }; |
| 4482 | |
| 4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; |
| 4484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4486 | { |
| 4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4488 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); |
| 4489 | |
| 4490 | wxPyEndAllowThreads(__tstate); |
| 4491 | if (PyErr_Occurred()) SWIG_fail; |
| 4492 | } |
| 4493 | { |
| 4494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4495 | } |
| 4496 | return resultobj; |
| 4497 | fail: |
| 4498 | return NULL; |
| 4499 | } |
| 4500 | |
| 4501 | |
| 4502 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4503 | PyObject *resultobj; |
| 4504 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4505 | bool result; |
| 4506 | PyObject * obj0 = 0 ; |
| 4507 | char *kwnames[] = { |
| 4508 | (char *) "self", NULL |
| 4509 | }; |
| 4510 | |
| 4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; |
| 4512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4514 | { |
| 4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4516 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); |
| 4517 | |
| 4518 | wxPyEndAllowThreads(__tstate); |
| 4519 | if (PyErr_Occurred()) SWIG_fail; |
| 4520 | } |
| 4521 | { |
| 4522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4523 | } |
| 4524 | return resultobj; |
| 4525 | fail: |
| 4526 | return NULL; |
| 4527 | } |
| 4528 | |
| 4529 | |
| 4530 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4531 | PyObject *resultobj; |
| 4532 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4533 | bool result; |
| 4534 | PyObject * obj0 = 0 ; |
| 4535 | char *kwnames[] = { |
| 4536 | (char *) "self", NULL |
| 4537 | }; |
| 4538 | |
| 4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; |
| 4540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4542 | { |
| 4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4544 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); |
| 4545 | |
| 4546 | wxPyEndAllowThreads(__tstate); |
| 4547 | if (PyErr_Occurred()) SWIG_fail; |
| 4548 | } |
| 4549 | { |
| 4550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4551 | } |
| 4552 | return resultobj; |
| 4553 | fail: |
| 4554 | return NULL; |
| 4555 | } |
| 4556 | |
| 4557 | |
| 4558 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4559 | PyObject *resultobj; |
| 4560 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4561 | bool result; |
| 4562 | PyObject * obj0 = 0 ; |
| 4563 | char *kwnames[] = { |
| 4564 | (char *) "self", NULL |
| 4565 | }; |
| 4566 | |
| 4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; |
| 4568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4570 | { |
| 4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4572 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); |
| 4573 | |
| 4574 | wxPyEndAllowThreads(__tstate); |
| 4575 | if (PyErr_Occurred()) SWIG_fail; |
| 4576 | } |
| 4577 | { |
| 4578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4579 | } |
| 4580 | return resultobj; |
| 4581 | fail: |
| 4582 | return NULL; |
| 4583 | } |
| 4584 | |
| 4585 | |
| 4586 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4587 | PyObject *resultobj; |
| 4588 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4589 | bool result; |
| 4590 | PyObject * obj0 = 0 ; |
| 4591 | char *kwnames[] = { |
| 4592 | (char *) "self", NULL |
| 4593 | }; |
| 4594 | |
| 4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; |
| 4596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4598 | { |
| 4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4600 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); |
| 4601 | |
| 4602 | wxPyEndAllowThreads(__tstate); |
| 4603 | if (PyErr_Occurred()) SWIG_fail; |
| 4604 | } |
| 4605 | { |
| 4606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4607 | } |
| 4608 | return resultobj; |
| 4609 | fail: |
| 4610 | return NULL; |
| 4611 | } |
| 4612 | |
| 4613 | |
| 4614 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4615 | PyObject *resultobj; |
| 4616 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4617 | wxColour result; |
| 4618 | PyObject * obj0 = 0 ; |
| 4619 | char *kwnames[] = { |
| 4620 | (char *) "self", NULL |
| 4621 | }; |
| 4622 | |
| 4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; |
| 4624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4626 | { |
| 4627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4628 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); |
| 4629 | |
| 4630 | wxPyEndAllowThreads(__tstate); |
| 4631 | if (PyErr_Occurred()) SWIG_fail; |
| 4632 | } |
| 4633 | { |
| 4634 | wxColour * resultptr; |
| 4635 | resultptr = new wxColour((wxColour &) result); |
| 4636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 4637 | } |
| 4638 | return resultobj; |
| 4639 | fail: |
| 4640 | return NULL; |
| 4641 | } |
| 4642 | |
| 4643 | |
| 4644 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4645 | PyObject *resultobj; |
| 4646 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4647 | wxColour result; |
| 4648 | PyObject * obj0 = 0 ; |
| 4649 | char *kwnames[] = { |
| 4650 | (char *) "self", NULL |
| 4651 | }; |
| 4652 | |
| 4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; |
| 4654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4656 | { |
| 4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4658 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); |
| 4659 | |
| 4660 | wxPyEndAllowThreads(__tstate); |
| 4661 | if (PyErr_Occurred()) SWIG_fail; |
| 4662 | } |
| 4663 | { |
| 4664 | wxColour * resultptr; |
| 4665 | resultptr = new wxColour((wxColour &) result); |
| 4666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 4667 | } |
| 4668 | return resultobj; |
| 4669 | fail: |
| 4670 | return NULL; |
| 4671 | } |
| 4672 | |
| 4673 | |
| 4674 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4675 | PyObject *resultobj; |
| 4676 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4677 | wxFont result; |
| 4678 | PyObject * obj0 = 0 ; |
| 4679 | char *kwnames[] = { |
| 4680 | (char *) "self", NULL |
| 4681 | }; |
| 4682 | |
| 4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; |
| 4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4686 | { |
| 4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4688 | result = ((wxGridCellAttr const *)arg1)->GetFont(); |
| 4689 | |
| 4690 | wxPyEndAllowThreads(__tstate); |
| 4691 | if (PyErr_Occurred()) SWIG_fail; |
| 4692 | } |
| 4693 | { |
| 4694 | wxFont * resultptr; |
| 4695 | resultptr = new wxFont((wxFont &) result); |
| 4696 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
| 4697 | } |
| 4698 | return resultobj; |
| 4699 | fail: |
| 4700 | return NULL; |
| 4701 | } |
| 4702 | |
| 4703 | |
| 4704 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4705 | PyObject *resultobj; |
| 4706 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4707 | int *arg2 = (int *) 0 ; |
| 4708 | int *arg3 = (int *) 0 ; |
| 4709 | int temp2 ; |
| 4710 | int res2 = 0 ; |
| 4711 | int temp3 ; |
| 4712 | int res3 = 0 ; |
| 4713 | PyObject * obj0 = 0 ; |
| 4714 | char *kwnames[] = { |
| 4715 | (char *) "self", NULL |
| 4716 | }; |
| 4717 | |
| 4718 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
| 4719 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
| 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; |
| 4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4723 | { |
| 4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4725 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); |
| 4726 | |
| 4727 | wxPyEndAllowThreads(__tstate); |
| 4728 | if (PyErr_Occurred()) SWIG_fail; |
| 4729 | } |
| 4730 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4731 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
| 4732 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); |
| 4733 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
| 4734 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); |
| 4735 | return resultobj; |
| 4736 | fail: |
| 4737 | return NULL; |
| 4738 | } |
| 4739 | |
| 4740 | |
| 4741 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4742 | PyObject *resultobj; |
| 4743 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4744 | int *arg2 = (int *) 0 ; |
| 4745 | int *arg3 = (int *) 0 ; |
| 4746 | int temp2 ; |
| 4747 | int res2 = 0 ; |
| 4748 | int temp3 ; |
| 4749 | int res3 = 0 ; |
| 4750 | PyObject * obj0 = 0 ; |
| 4751 | char *kwnames[] = { |
| 4752 | (char *) "self", NULL |
| 4753 | }; |
| 4754 | |
| 4755 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
| 4756 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
| 4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; |
| 4758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4760 | { |
| 4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4762 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); |
| 4763 | |
| 4764 | wxPyEndAllowThreads(__tstate); |
| 4765 | if (PyErr_Occurred()) SWIG_fail; |
| 4766 | } |
| 4767 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4768 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
| 4769 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); |
| 4770 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
| 4771 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); |
| 4772 | return resultobj; |
| 4773 | fail: |
| 4774 | return NULL; |
| 4775 | } |
| 4776 | |
| 4777 | |
| 4778 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4779 | PyObject *resultobj; |
| 4780 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4781 | bool result; |
| 4782 | PyObject * obj0 = 0 ; |
| 4783 | char *kwnames[] = { |
| 4784 | (char *) "self", NULL |
| 4785 | }; |
| 4786 | |
| 4787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; |
| 4788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4790 | { |
| 4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4792 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); |
| 4793 | |
| 4794 | wxPyEndAllowThreads(__tstate); |
| 4795 | if (PyErr_Occurred()) SWIG_fail; |
| 4796 | } |
| 4797 | { |
| 4798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4799 | } |
| 4800 | return resultobj; |
| 4801 | fail: |
| 4802 | return NULL; |
| 4803 | } |
| 4804 | |
| 4805 | |
| 4806 | static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4807 | PyObject *resultobj; |
| 4808 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4809 | wxGrid *arg2 = (wxGrid *) 0 ; |
| 4810 | int arg3 ; |
| 4811 | int arg4 ; |
| 4812 | wxGridCellRenderer *result; |
| 4813 | PyObject * obj0 = 0 ; |
| 4814 | PyObject * obj1 = 0 ; |
| 4815 | PyObject * obj2 = 0 ; |
| 4816 | PyObject * obj3 = 0 ; |
| 4817 | char *kwnames[] = { |
| 4818 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL |
| 4819 | }; |
| 4820 | |
| 4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 4822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, |
| 4825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4826 | arg3 = (int)SWIG_As_int(obj2); |
| 4827 | if (PyErr_Occurred()) SWIG_fail; |
| 4828 | arg4 = (int)SWIG_As_int(obj3); |
| 4829 | if (PyErr_Occurred()) SWIG_fail; |
| 4830 | { |
| 4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4832 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); |
| 4833 | |
| 4834 | wxPyEndAllowThreads(__tstate); |
| 4835 | if (PyErr_Occurred()) SWIG_fail; |
| 4836 | } |
| 4837 | { |
| 4838 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 4839 | } |
| 4840 | return resultobj; |
| 4841 | fail: |
| 4842 | return NULL; |
| 4843 | } |
| 4844 | |
| 4845 | |
| 4846 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4847 | PyObject *resultobj; |
| 4848 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4849 | wxGrid *arg2 = (wxGrid *) 0 ; |
| 4850 | int arg3 ; |
| 4851 | int arg4 ; |
| 4852 | wxGridCellEditor *result; |
| 4853 | PyObject * obj0 = 0 ; |
| 4854 | PyObject * obj1 = 0 ; |
| 4855 | PyObject * obj2 = 0 ; |
| 4856 | PyObject * obj3 = 0 ; |
| 4857 | char *kwnames[] = { |
| 4858 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL |
| 4859 | }; |
| 4860 | |
| 4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 4862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, |
| 4865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4866 | arg3 = (int)SWIG_As_int(obj2); |
| 4867 | if (PyErr_Occurred()) SWIG_fail; |
| 4868 | arg4 = (int)SWIG_As_int(obj3); |
| 4869 | if (PyErr_Occurred()) SWIG_fail; |
| 4870 | { |
| 4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4872 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); |
| 4873 | |
| 4874 | wxPyEndAllowThreads(__tstate); |
| 4875 | if (PyErr_Occurred()) SWIG_fail; |
| 4876 | } |
| 4877 | { |
| 4878 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 4879 | } |
| 4880 | return resultobj; |
| 4881 | fail: |
| 4882 | return NULL; |
| 4883 | } |
| 4884 | |
| 4885 | |
| 4886 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4887 | PyObject *resultobj; |
| 4888 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4889 | bool result; |
| 4890 | PyObject * obj0 = 0 ; |
| 4891 | char *kwnames[] = { |
| 4892 | (char *) "self", NULL |
| 4893 | }; |
| 4894 | |
| 4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; |
| 4896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4898 | { |
| 4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4900 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); |
| 4901 | |
| 4902 | wxPyEndAllowThreads(__tstate); |
| 4903 | if (PyErr_Occurred()) SWIG_fail; |
| 4904 | } |
| 4905 | { |
| 4906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 4907 | } |
| 4908 | return resultobj; |
| 4909 | fail: |
| 4910 | return NULL; |
| 4911 | } |
| 4912 | |
| 4913 | |
| 4914 | static PyObject *_wrap_GridCellAttr_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4915 | PyObject *resultobj; |
| 4916 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4917 | int result; |
| 4918 | PyObject * obj0 = 0 ; |
| 4919 | char *kwnames[] = { |
| 4920 | (char *) "self", NULL |
| 4921 | }; |
| 4922 | |
| 4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetKind",kwnames,&obj0)) goto fail; |
| 4924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4926 | { |
| 4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4928 | result = (int)(arg1)->GetKind(); |
| 4929 | |
| 4930 | wxPyEndAllowThreads(__tstate); |
| 4931 | if (PyErr_Occurred()) SWIG_fail; |
| 4932 | } |
| 4933 | resultobj = SWIG_From_int((int)result); |
| 4934 | return resultobj; |
| 4935 | fail: |
| 4936 | return NULL; |
| 4937 | } |
| 4938 | |
| 4939 | |
| 4940 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4941 | PyObject *resultobj; |
| 4942 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; |
| 4943 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 4944 | PyObject * obj0 = 0 ; |
| 4945 | PyObject * obj1 = 0 ; |
| 4946 | char *kwnames[] = { |
| 4947 | (char *) "self",(char *) "defAttr", NULL |
| 4948 | }; |
| 4949 | |
| 4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; |
| 4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
| 4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 4954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 4955 | { |
| 4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4957 | (arg1)->SetDefAttr(arg2); |
| 4958 | |
| 4959 | wxPyEndAllowThreads(__tstate); |
| 4960 | if (PyErr_Occurred()) SWIG_fail; |
| 4961 | } |
| 4962 | Py_INCREF(Py_None); resultobj = Py_None; |
| 4963 | return resultobj; |
| 4964 | fail: |
| 4965 | return NULL; |
| 4966 | } |
| 4967 | |
| 4968 | |
| 4969 | static PyObject * GridCellAttr_swigregister(PyObject *, PyObject *args) { |
| 4970 | PyObject *obj; |
| 4971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 4972 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); |
| 4973 | Py_INCREF(obj); |
| 4974 | return Py_BuildValue((char *)""); |
| 4975 | } |
| 4976 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
| 4977 | PyObject *resultobj; |
| 4978 | wxGridCellAttrProvider *result; |
| 4979 | char *kwnames[] = { |
| 4980 | NULL |
| 4981 | }; |
| 4982 | |
| 4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; |
| 4984 | { |
| 4985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4986 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); |
| 4987 | |
| 4988 | wxPyEndAllowThreads(__tstate); |
| 4989 | if (PyErr_Occurred()) SWIG_fail; |
| 4990 | } |
| 4991 | { |
| 4992 | resultobj = wxPyMake_wxGridCellAttrProvider(result, 1); |
| 4993 | } |
| 4994 | return resultobj; |
| 4995 | fail: |
| 4996 | return NULL; |
| 4997 | } |
| 4998 | |
| 4999 | |
| 5000 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5001 | PyObject *resultobj; |
| 5002 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5003 | PyObject *arg2 = (PyObject *) 0 ; |
| 5004 | PyObject * obj0 = 0 ; |
| 5005 | PyObject * obj1 = 0 ; |
| 5006 | char *kwnames[] = { |
| 5007 | (char *) "self",(char *) "_self", NULL |
| 5008 | }; |
| 5009 | |
| 5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; |
| 5011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5013 | arg2 = obj1; |
| 5014 | { |
| 5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5016 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); |
| 5017 | |
| 5018 | wxPyEndAllowThreads(__tstate); |
| 5019 | if (PyErr_Occurred()) SWIG_fail; |
| 5020 | } |
| 5021 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5022 | return resultobj; |
| 5023 | fail: |
| 5024 | return NULL; |
| 5025 | } |
| 5026 | |
| 5027 | |
| 5028 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5029 | PyObject *resultobj; |
| 5030 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5031 | int arg2 ; |
| 5032 | int arg3 ; |
| 5033 | int arg4 ; |
| 5034 | wxGridCellAttr *result; |
| 5035 | PyObject * obj0 = 0 ; |
| 5036 | PyObject * obj1 = 0 ; |
| 5037 | PyObject * obj2 = 0 ; |
| 5038 | PyObject * obj3 = 0 ; |
| 5039 | char *kwnames[] = { |
| 5040 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL |
| 5041 | }; |
| 5042 | |
| 5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5046 | arg2 = (int)SWIG_As_int(obj1); |
| 5047 | if (PyErr_Occurred()) SWIG_fail; |
| 5048 | arg3 = (int)SWIG_As_int(obj2); |
| 5049 | if (PyErr_Occurred()) SWIG_fail; |
| 5050 | arg4 = (int)SWIG_As_int(obj3); |
| 5051 | if (PyErr_Occurred()) SWIG_fail; |
| 5052 | { |
| 5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5054 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); |
| 5055 | |
| 5056 | wxPyEndAllowThreads(__tstate); |
| 5057 | if (PyErr_Occurred()) SWIG_fail; |
| 5058 | } |
| 5059 | { |
| 5060 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 5061 | } |
| 5062 | return resultobj; |
| 5063 | fail: |
| 5064 | return NULL; |
| 5065 | } |
| 5066 | |
| 5067 | |
| 5068 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5069 | PyObject *resultobj; |
| 5070 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5071 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5072 | int arg3 ; |
| 5073 | int arg4 ; |
| 5074 | PyObject * obj0 = 0 ; |
| 5075 | PyObject * obj1 = 0 ; |
| 5076 | PyObject * obj2 = 0 ; |
| 5077 | PyObject * obj3 = 0 ; |
| 5078 | char *kwnames[] = { |
| 5079 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL |
| 5080 | }; |
| 5081 | |
| 5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5085 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5087 | arg3 = (int)SWIG_As_int(obj2); |
| 5088 | if (PyErr_Occurred()) SWIG_fail; |
| 5089 | arg4 = (int)SWIG_As_int(obj3); |
| 5090 | if (PyErr_Occurred()) SWIG_fail; |
| 5091 | { |
| 5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5093 | (arg1)->SetAttr(arg2,arg3,arg4); |
| 5094 | |
| 5095 | wxPyEndAllowThreads(__tstate); |
| 5096 | if (PyErr_Occurred()) SWIG_fail; |
| 5097 | } |
| 5098 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5099 | return resultobj; |
| 5100 | fail: |
| 5101 | return NULL; |
| 5102 | } |
| 5103 | |
| 5104 | |
| 5105 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5106 | PyObject *resultobj; |
| 5107 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5108 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5109 | int arg3 ; |
| 5110 | PyObject * obj0 = 0 ; |
| 5111 | PyObject * obj1 = 0 ; |
| 5112 | PyObject * obj2 = 0 ; |
| 5113 | char *kwnames[] = { |
| 5114 | (char *) "self",(char *) "attr",(char *) "row", NULL |
| 5115 | }; |
| 5116 | |
| 5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5122 | arg3 = (int)SWIG_As_int(obj2); |
| 5123 | if (PyErr_Occurred()) SWIG_fail; |
| 5124 | { |
| 5125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5126 | (arg1)->SetRowAttr(arg2,arg3); |
| 5127 | |
| 5128 | wxPyEndAllowThreads(__tstate); |
| 5129 | if (PyErr_Occurred()) SWIG_fail; |
| 5130 | } |
| 5131 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5132 | return resultobj; |
| 5133 | fail: |
| 5134 | return NULL; |
| 5135 | } |
| 5136 | |
| 5137 | |
| 5138 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5139 | PyObject *resultobj; |
| 5140 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5141 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5142 | int arg3 ; |
| 5143 | PyObject * obj0 = 0 ; |
| 5144 | PyObject * obj1 = 0 ; |
| 5145 | PyObject * obj2 = 0 ; |
| 5146 | char *kwnames[] = { |
| 5147 | (char *) "self",(char *) "attr",(char *) "col", NULL |
| 5148 | }; |
| 5149 | |
| 5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5155 | arg3 = (int)SWIG_As_int(obj2); |
| 5156 | if (PyErr_Occurred()) SWIG_fail; |
| 5157 | { |
| 5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5159 | (arg1)->SetColAttr(arg2,arg3); |
| 5160 | |
| 5161 | wxPyEndAllowThreads(__tstate); |
| 5162 | if (PyErr_Occurred()) SWIG_fail; |
| 5163 | } |
| 5164 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5165 | return resultobj; |
| 5166 | fail: |
| 5167 | return NULL; |
| 5168 | } |
| 5169 | |
| 5170 | |
| 5171 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5172 | PyObject *resultobj; |
| 5173 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5174 | size_t arg2 ; |
| 5175 | int arg3 ; |
| 5176 | PyObject * obj0 = 0 ; |
| 5177 | PyObject * obj1 = 0 ; |
| 5178 | PyObject * obj2 = 0 ; |
| 5179 | char *kwnames[] = { |
| 5180 | (char *) "self",(char *) "pos",(char *) "numRows", NULL |
| 5181 | }; |
| 5182 | |
| 5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5186 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 5187 | if (PyErr_Occurred()) SWIG_fail; |
| 5188 | arg3 = (int)SWIG_As_int(obj2); |
| 5189 | if (PyErr_Occurred()) SWIG_fail; |
| 5190 | { |
| 5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5192 | (arg1)->UpdateAttrRows(arg2,arg3); |
| 5193 | |
| 5194 | wxPyEndAllowThreads(__tstate); |
| 5195 | if (PyErr_Occurred()) SWIG_fail; |
| 5196 | } |
| 5197 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5198 | return resultobj; |
| 5199 | fail: |
| 5200 | return NULL; |
| 5201 | } |
| 5202 | |
| 5203 | |
| 5204 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5205 | PyObject *resultobj; |
| 5206 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; |
| 5207 | size_t arg2 ; |
| 5208 | int arg3 ; |
| 5209 | PyObject * obj0 = 0 ; |
| 5210 | PyObject * obj1 = 0 ; |
| 5211 | PyObject * obj2 = 0 ; |
| 5212 | char *kwnames[] = { |
| 5213 | (char *) "self",(char *) "pos",(char *) "numCols", NULL |
| 5214 | }; |
| 5215 | |
| 5216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5219 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 5220 | if (PyErr_Occurred()) SWIG_fail; |
| 5221 | arg3 = (int)SWIG_As_int(obj2); |
| 5222 | if (PyErr_Occurred()) SWIG_fail; |
| 5223 | { |
| 5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5225 | (arg1)->UpdateAttrCols(arg2,arg3); |
| 5226 | |
| 5227 | wxPyEndAllowThreads(__tstate); |
| 5228 | if (PyErr_Occurred()) SWIG_fail; |
| 5229 | } |
| 5230 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5231 | return resultobj; |
| 5232 | fail: |
| 5233 | return NULL; |
| 5234 | } |
| 5235 | |
| 5236 | |
| 5237 | static PyObject * GridCellAttrProvider_swigregister(PyObject *, PyObject *args) { |
| 5238 | PyObject *obj; |
| 5239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 5240 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); |
| 5241 | Py_INCREF(obj); |
| 5242 | return Py_BuildValue((char *)""); |
| 5243 | } |
| 5244 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5245 | PyObject *resultobj; |
| 5246 | wxPyGridCellAttrProvider *result; |
| 5247 | char *kwnames[] = { |
| 5248 | NULL |
| 5249 | }; |
| 5250 | |
| 5251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; |
| 5252 | { |
| 5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5254 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); |
| 5255 | |
| 5256 | wxPyEndAllowThreads(__tstate); |
| 5257 | if (PyErr_Occurred()) SWIG_fail; |
| 5258 | } |
| 5259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1); |
| 5260 | return resultobj; |
| 5261 | fail: |
| 5262 | return NULL; |
| 5263 | } |
| 5264 | |
| 5265 | |
| 5266 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5267 | PyObject *resultobj; |
| 5268 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; |
| 5269 | PyObject *arg2 = (PyObject *) 0 ; |
| 5270 | PyObject *arg3 = (PyObject *) 0 ; |
| 5271 | PyObject * obj0 = 0 ; |
| 5272 | PyObject * obj1 = 0 ; |
| 5273 | PyObject * obj2 = 0 ; |
| 5274 | char *kwnames[] = { |
| 5275 | (char *) "self",(char *) "self",(char *) "_class", NULL |
| 5276 | }; |
| 5277 | |
| 5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
| 5280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5281 | arg2 = obj1; |
| 5282 | arg3 = obj2; |
| 5283 | { |
| 5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5285 | (arg1)->_setCallbackInfo(arg2,arg3); |
| 5286 | |
| 5287 | wxPyEndAllowThreads(__tstate); |
| 5288 | if (PyErr_Occurred()) SWIG_fail; |
| 5289 | } |
| 5290 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5291 | return resultobj; |
| 5292 | fail: |
| 5293 | return NULL; |
| 5294 | } |
| 5295 | |
| 5296 | |
| 5297 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5298 | PyObject *resultobj; |
| 5299 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; |
| 5300 | int arg2 ; |
| 5301 | int arg3 ; |
| 5302 | int arg4 ; |
| 5303 | wxGridCellAttr *result; |
| 5304 | PyObject * obj0 = 0 ; |
| 5305 | PyObject * obj1 = 0 ; |
| 5306 | PyObject * obj2 = 0 ; |
| 5307 | PyObject * obj3 = 0 ; |
| 5308 | char *kwnames[] = { |
| 5309 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL |
| 5310 | }; |
| 5311 | |
| 5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
| 5314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5315 | arg2 = (int)SWIG_As_int(obj1); |
| 5316 | if (PyErr_Occurred()) SWIG_fail; |
| 5317 | arg3 = (int)SWIG_As_int(obj2); |
| 5318 | if (PyErr_Occurred()) SWIG_fail; |
| 5319 | arg4 = (int)SWIG_As_int(obj3); |
| 5320 | if (PyErr_Occurred()) SWIG_fail; |
| 5321 | { |
| 5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5323 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); |
| 5324 | |
| 5325 | wxPyEndAllowThreads(__tstate); |
| 5326 | if (PyErr_Occurred()) SWIG_fail; |
| 5327 | } |
| 5328 | { |
| 5329 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 5330 | } |
| 5331 | return resultobj; |
| 5332 | fail: |
| 5333 | return NULL; |
| 5334 | } |
| 5335 | |
| 5336 | |
| 5337 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5338 | PyObject *resultobj; |
| 5339 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; |
| 5340 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5341 | int arg3 ; |
| 5342 | int arg4 ; |
| 5343 | PyObject * obj0 = 0 ; |
| 5344 | PyObject * obj1 = 0 ; |
| 5345 | PyObject * obj2 = 0 ; |
| 5346 | PyObject * obj3 = 0 ; |
| 5347 | char *kwnames[] = { |
| 5348 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL |
| 5349 | }; |
| 5350 | |
| 5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
| 5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5356 | arg3 = (int)SWIG_As_int(obj2); |
| 5357 | if (PyErr_Occurred()) SWIG_fail; |
| 5358 | arg4 = (int)SWIG_As_int(obj3); |
| 5359 | if (PyErr_Occurred()) SWIG_fail; |
| 5360 | { |
| 5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5362 | (arg1)->base_SetAttr(arg2,arg3,arg4); |
| 5363 | |
| 5364 | wxPyEndAllowThreads(__tstate); |
| 5365 | if (PyErr_Occurred()) SWIG_fail; |
| 5366 | } |
| 5367 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5368 | return resultobj; |
| 5369 | fail: |
| 5370 | return NULL; |
| 5371 | } |
| 5372 | |
| 5373 | |
| 5374 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5375 | PyObject *resultobj; |
| 5376 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; |
| 5377 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5378 | int arg3 ; |
| 5379 | PyObject * obj0 = 0 ; |
| 5380 | PyObject * obj1 = 0 ; |
| 5381 | PyObject * obj2 = 0 ; |
| 5382 | char *kwnames[] = { |
| 5383 | (char *) "self",(char *) "attr",(char *) "row", NULL |
| 5384 | }; |
| 5385 | |
| 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
| 5388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5391 | arg3 = (int)SWIG_As_int(obj2); |
| 5392 | if (PyErr_Occurred()) SWIG_fail; |
| 5393 | { |
| 5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5395 | (arg1)->base_SetRowAttr(arg2,arg3); |
| 5396 | |
| 5397 | wxPyEndAllowThreads(__tstate); |
| 5398 | if (PyErr_Occurred()) SWIG_fail; |
| 5399 | } |
| 5400 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5401 | return resultobj; |
| 5402 | fail: |
| 5403 | return NULL; |
| 5404 | } |
| 5405 | |
| 5406 | |
| 5407 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5408 | PyObject *resultobj; |
| 5409 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; |
| 5410 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 5411 | int arg3 ; |
| 5412 | PyObject * obj0 = 0 ; |
| 5413 | PyObject * obj1 = 0 ; |
| 5414 | PyObject * obj2 = 0 ; |
| 5415 | char *kwnames[] = { |
| 5416 | (char *) "self",(char *) "attr",(char *) "col", NULL |
| 5417 | }; |
| 5418 | |
| 5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
| 5421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 5423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5424 | arg3 = (int)SWIG_As_int(obj2); |
| 5425 | if (PyErr_Occurred()) SWIG_fail; |
| 5426 | { |
| 5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5428 | (arg1)->base_SetColAttr(arg2,arg3); |
| 5429 | |
| 5430 | wxPyEndAllowThreads(__tstate); |
| 5431 | if (PyErr_Occurred()) SWIG_fail; |
| 5432 | } |
| 5433 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5434 | return resultobj; |
| 5435 | fail: |
| 5436 | return NULL; |
| 5437 | } |
| 5438 | |
| 5439 | |
| 5440 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *, PyObject *args) { |
| 5441 | PyObject *obj; |
| 5442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 5443 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); |
| 5444 | Py_INCREF(obj); |
| 5445 | return Py_BuildValue((char *)""); |
| 5446 | } |
| 5447 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5448 | PyObject *resultobj; |
| 5449 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5450 | PyObject *arg2 = (PyObject *) 0 ; |
| 5451 | PyObject * obj0 = 0 ; |
| 5452 | PyObject * obj1 = 0 ; |
| 5453 | char *kwnames[] = { |
| 5454 | (char *) "self",(char *) "_self", NULL |
| 5455 | }; |
| 5456 | |
| 5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; |
| 5458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5460 | arg2 = obj1; |
| 5461 | { |
| 5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5463 | wxGridTableBase__setOORInfo(arg1,arg2); |
| 5464 | |
| 5465 | wxPyEndAllowThreads(__tstate); |
| 5466 | if (PyErr_Occurred()) SWIG_fail; |
| 5467 | } |
| 5468 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5469 | return resultobj; |
| 5470 | fail: |
| 5471 | return NULL; |
| 5472 | } |
| 5473 | |
| 5474 | |
| 5475 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5476 | PyObject *resultobj; |
| 5477 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5478 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; |
| 5479 | PyObject * obj0 = 0 ; |
| 5480 | PyObject * obj1 = 0 ; |
| 5481 | char *kwnames[] = { |
| 5482 | (char *) "self",(char *) "attrProvider", NULL |
| 5483 | }; |
| 5484 | |
| 5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; |
| 5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider, |
| 5489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5490 | { |
| 5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5492 | (arg1)->SetAttrProvider(arg2); |
| 5493 | |
| 5494 | wxPyEndAllowThreads(__tstate); |
| 5495 | if (PyErr_Occurred()) SWIG_fail; |
| 5496 | } |
| 5497 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5498 | return resultobj; |
| 5499 | fail: |
| 5500 | return NULL; |
| 5501 | } |
| 5502 | |
| 5503 | |
| 5504 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5505 | PyObject *resultobj; |
| 5506 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5507 | wxGridCellAttrProvider *result; |
| 5508 | PyObject * obj0 = 0 ; |
| 5509 | char *kwnames[] = { |
| 5510 | (char *) "self", NULL |
| 5511 | }; |
| 5512 | |
| 5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; |
| 5514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5516 | { |
| 5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5518 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); |
| 5519 | |
| 5520 | wxPyEndAllowThreads(__tstate); |
| 5521 | if (PyErr_Occurred()) SWIG_fail; |
| 5522 | } |
| 5523 | { |
| 5524 | resultobj = wxPyMake_wxGridCellAttrProvider(result, 0); |
| 5525 | } |
| 5526 | return resultobj; |
| 5527 | fail: |
| 5528 | return NULL; |
| 5529 | } |
| 5530 | |
| 5531 | |
| 5532 | static PyObject *_wrap_GridTableBase_SetView(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5533 | PyObject *resultobj; |
| 5534 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5535 | wxGrid *arg2 = (wxGrid *) 0 ; |
| 5536 | PyObject * obj0 = 0 ; |
| 5537 | PyObject * obj1 = 0 ; |
| 5538 | char *kwnames[] = { |
| 5539 | (char *) "self",(char *) "grid", NULL |
| 5540 | }; |
| 5541 | |
| 5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; |
| 5543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, |
| 5546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5547 | { |
| 5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5549 | (arg1)->SetView(arg2); |
| 5550 | |
| 5551 | wxPyEndAllowThreads(__tstate); |
| 5552 | if (PyErr_Occurred()) SWIG_fail; |
| 5553 | } |
| 5554 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5555 | return resultobj; |
| 5556 | fail: |
| 5557 | return NULL; |
| 5558 | } |
| 5559 | |
| 5560 | |
| 5561 | static PyObject *_wrap_GridTableBase_GetView(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5562 | PyObject *resultobj; |
| 5563 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5564 | wxGrid *result; |
| 5565 | PyObject * obj0 = 0 ; |
| 5566 | char *kwnames[] = { |
| 5567 | (char *) "self", NULL |
| 5568 | }; |
| 5569 | |
| 5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; |
| 5571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5573 | { |
| 5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5575 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); |
| 5576 | |
| 5577 | wxPyEndAllowThreads(__tstate); |
| 5578 | if (PyErr_Occurred()) SWIG_fail; |
| 5579 | } |
| 5580 | { |
| 5581 | resultobj = wxPyMake_wxObject(result, 0); |
| 5582 | } |
| 5583 | return resultobj; |
| 5584 | fail: |
| 5585 | return NULL; |
| 5586 | } |
| 5587 | |
| 5588 | |
| 5589 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5590 | PyObject *resultobj; |
| 5591 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5592 | int result; |
| 5593 | PyObject * obj0 = 0 ; |
| 5594 | char *kwnames[] = { |
| 5595 | (char *) "self", NULL |
| 5596 | }; |
| 5597 | |
| 5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; |
| 5599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5601 | { |
| 5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5603 | result = (int)(arg1)->GetNumberRows(); |
| 5604 | |
| 5605 | wxPyEndAllowThreads(__tstate); |
| 5606 | if (PyErr_Occurred()) SWIG_fail; |
| 5607 | } |
| 5608 | resultobj = SWIG_From_int((int)result); |
| 5609 | return resultobj; |
| 5610 | fail: |
| 5611 | return NULL; |
| 5612 | } |
| 5613 | |
| 5614 | |
| 5615 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5616 | PyObject *resultobj; |
| 5617 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5618 | int result; |
| 5619 | PyObject * obj0 = 0 ; |
| 5620 | char *kwnames[] = { |
| 5621 | (char *) "self", NULL |
| 5622 | }; |
| 5623 | |
| 5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; |
| 5625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5627 | { |
| 5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5629 | result = (int)(arg1)->GetNumberCols(); |
| 5630 | |
| 5631 | wxPyEndAllowThreads(__tstate); |
| 5632 | if (PyErr_Occurred()) SWIG_fail; |
| 5633 | } |
| 5634 | resultobj = SWIG_From_int((int)result); |
| 5635 | return resultobj; |
| 5636 | fail: |
| 5637 | return NULL; |
| 5638 | } |
| 5639 | |
| 5640 | |
| 5641 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5642 | PyObject *resultobj; |
| 5643 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5644 | int arg2 ; |
| 5645 | int arg3 ; |
| 5646 | bool result; |
| 5647 | PyObject * obj0 = 0 ; |
| 5648 | PyObject * obj1 = 0 ; |
| 5649 | PyObject * obj2 = 0 ; |
| 5650 | char *kwnames[] = { |
| 5651 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5652 | }; |
| 5653 | |
| 5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5657 | arg2 = (int)SWIG_As_int(obj1); |
| 5658 | if (PyErr_Occurred()) SWIG_fail; |
| 5659 | arg3 = (int)SWIG_As_int(obj2); |
| 5660 | if (PyErr_Occurred()) SWIG_fail; |
| 5661 | { |
| 5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5663 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); |
| 5664 | |
| 5665 | wxPyEndAllowThreads(__tstate); |
| 5666 | if (PyErr_Occurred()) SWIG_fail; |
| 5667 | } |
| 5668 | { |
| 5669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 5670 | } |
| 5671 | return resultobj; |
| 5672 | fail: |
| 5673 | return NULL; |
| 5674 | } |
| 5675 | |
| 5676 | |
| 5677 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5678 | PyObject *resultobj; |
| 5679 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5680 | int arg2 ; |
| 5681 | int arg3 ; |
| 5682 | wxString result; |
| 5683 | PyObject * obj0 = 0 ; |
| 5684 | PyObject * obj1 = 0 ; |
| 5685 | PyObject * obj2 = 0 ; |
| 5686 | char *kwnames[] = { |
| 5687 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5688 | }; |
| 5689 | |
| 5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5693 | arg2 = (int)SWIG_As_int(obj1); |
| 5694 | if (PyErr_Occurred()) SWIG_fail; |
| 5695 | arg3 = (int)SWIG_As_int(obj2); |
| 5696 | if (PyErr_Occurred()) SWIG_fail; |
| 5697 | { |
| 5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5699 | result = (arg1)->GetValue(arg2,arg3); |
| 5700 | |
| 5701 | wxPyEndAllowThreads(__tstate); |
| 5702 | if (PyErr_Occurred()) SWIG_fail; |
| 5703 | } |
| 5704 | { |
| 5705 | #if wxUSE_UNICODE |
| 5706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 5707 | #else |
| 5708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 5709 | #endif |
| 5710 | } |
| 5711 | return resultobj; |
| 5712 | fail: |
| 5713 | return NULL; |
| 5714 | } |
| 5715 | |
| 5716 | |
| 5717 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5718 | PyObject *resultobj; |
| 5719 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5720 | int arg2 ; |
| 5721 | int arg3 ; |
| 5722 | wxString *arg4 = 0 ; |
| 5723 | bool temp4 = false ; |
| 5724 | PyObject * obj0 = 0 ; |
| 5725 | PyObject * obj1 = 0 ; |
| 5726 | PyObject * obj2 = 0 ; |
| 5727 | PyObject * obj3 = 0 ; |
| 5728 | char *kwnames[] = { |
| 5729 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL |
| 5730 | }; |
| 5731 | |
| 5732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5735 | arg2 = (int)SWIG_As_int(obj1); |
| 5736 | if (PyErr_Occurred()) SWIG_fail; |
| 5737 | arg3 = (int)SWIG_As_int(obj2); |
| 5738 | if (PyErr_Occurred()) SWIG_fail; |
| 5739 | { |
| 5740 | arg4 = wxString_in_helper(obj3); |
| 5741 | if (arg4 == NULL) SWIG_fail; |
| 5742 | temp4 = true; |
| 5743 | } |
| 5744 | { |
| 5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5746 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); |
| 5747 | |
| 5748 | wxPyEndAllowThreads(__tstate); |
| 5749 | if (PyErr_Occurred()) SWIG_fail; |
| 5750 | } |
| 5751 | Py_INCREF(Py_None); resultobj = Py_None; |
| 5752 | { |
| 5753 | if (temp4) |
| 5754 | delete arg4; |
| 5755 | } |
| 5756 | return resultobj; |
| 5757 | fail: |
| 5758 | { |
| 5759 | if (temp4) |
| 5760 | delete arg4; |
| 5761 | } |
| 5762 | return NULL; |
| 5763 | } |
| 5764 | |
| 5765 | |
| 5766 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5767 | PyObject *resultobj; |
| 5768 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5769 | int arg2 ; |
| 5770 | int arg3 ; |
| 5771 | wxString result; |
| 5772 | PyObject * obj0 = 0 ; |
| 5773 | PyObject * obj1 = 0 ; |
| 5774 | PyObject * obj2 = 0 ; |
| 5775 | char *kwnames[] = { |
| 5776 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5777 | }; |
| 5778 | |
| 5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5782 | arg2 = (int)SWIG_As_int(obj1); |
| 5783 | if (PyErr_Occurred()) SWIG_fail; |
| 5784 | arg3 = (int)SWIG_As_int(obj2); |
| 5785 | if (PyErr_Occurred()) SWIG_fail; |
| 5786 | { |
| 5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5788 | result = (arg1)->GetTypeName(arg2,arg3); |
| 5789 | |
| 5790 | wxPyEndAllowThreads(__tstate); |
| 5791 | if (PyErr_Occurred()) SWIG_fail; |
| 5792 | } |
| 5793 | { |
| 5794 | #if wxUSE_UNICODE |
| 5795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 5796 | #else |
| 5797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 5798 | #endif |
| 5799 | } |
| 5800 | return resultobj; |
| 5801 | fail: |
| 5802 | return NULL; |
| 5803 | } |
| 5804 | |
| 5805 | |
| 5806 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5807 | PyObject *resultobj; |
| 5808 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5809 | int arg2 ; |
| 5810 | int arg3 ; |
| 5811 | wxString *arg4 = 0 ; |
| 5812 | bool result; |
| 5813 | bool temp4 = false ; |
| 5814 | PyObject * obj0 = 0 ; |
| 5815 | PyObject * obj1 = 0 ; |
| 5816 | PyObject * obj2 = 0 ; |
| 5817 | PyObject * obj3 = 0 ; |
| 5818 | char *kwnames[] = { |
| 5819 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL |
| 5820 | }; |
| 5821 | |
| 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5825 | arg2 = (int)SWIG_As_int(obj1); |
| 5826 | if (PyErr_Occurred()) SWIG_fail; |
| 5827 | arg3 = (int)SWIG_As_int(obj2); |
| 5828 | if (PyErr_Occurred()) SWIG_fail; |
| 5829 | { |
| 5830 | arg4 = wxString_in_helper(obj3); |
| 5831 | if (arg4 == NULL) SWIG_fail; |
| 5832 | temp4 = true; |
| 5833 | } |
| 5834 | { |
| 5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5836 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); |
| 5837 | |
| 5838 | wxPyEndAllowThreads(__tstate); |
| 5839 | if (PyErr_Occurred()) SWIG_fail; |
| 5840 | } |
| 5841 | { |
| 5842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 5843 | } |
| 5844 | { |
| 5845 | if (temp4) |
| 5846 | delete arg4; |
| 5847 | } |
| 5848 | return resultobj; |
| 5849 | fail: |
| 5850 | { |
| 5851 | if (temp4) |
| 5852 | delete arg4; |
| 5853 | } |
| 5854 | return NULL; |
| 5855 | } |
| 5856 | |
| 5857 | |
| 5858 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5859 | PyObject *resultobj; |
| 5860 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5861 | int arg2 ; |
| 5862 | int arg3 ; |
| 5863 | wxString *arg4 = 0 ; |
| 5864 | bool result; |
| 5865 | bool temp4 = false ; |
| 5866 | PyObject * obj0 = 0 ; |
| 5867 | PyObject * obj1 = 0 ; |
| 5868 | PyObject * obj2 = 0 ; |
| 5869 | PyObject * obj3 = 0 ; |
| 5870 | char *kwnames[] = { |
| 5871 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL |
| 5872 | }; |
| 5873 | |
| 5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 5875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5877 | arg2 = (int)SWIG_As_int(obj1); |
| 5878 | if (PyErr_Occurred()) SWIG_fail; |
| 5879 | arg3 = (int)SWIG_As_int(obj2); |
| 5880 | if (PyErr_Occurred()) SWIG_fail; |
| 5881 | { |
| 5882 | arg4 = wxString_in_helper(obj3); |
| 5883 | if (arg4 == NULL) SWIG_fail; |
| 5884 | temp4 = true; |
| 5885 | } |
| 5886 | { |
| 5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5888 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); |
| 5889 | |
| 5890 | wxPyEndAllowThreads(__tstate); |
| 5891 | if (PyErr_Occurred()) SWIG_fail; |
| 5892 | } |
| 5893 | { |
| 5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 5895 | } |
| 5896 | { |
| 5897 | if (temp4) |
| 5898 | delete arg4; |
| 5899 | } |
| 5900 | return resultobj; |
| 5901 | fail: |
| 5902 | { |
| 5903 | if (temp4) |
| 5904 | delete arg4; |
| 5905 | } |
| 5906 | return NULL; |
| 5907 | } |
| 5908 | |
| 5909 | |
| 5910 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5911 | PyObject *resultobj; |
| 5912 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5913 | int arg2 ; |
| 5914 | int arg3 ; |
| 5915 | long result; |
| 5916 | PyObject * obj0 = 0 ; |
| 5917 | PyObject * obj1 = 0 ; |
| 5918 | PyObject * obj2 = 0 ; |
| 5919 | char *kwnames[] = { |
| 5920 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5921 | }; |
| 5922 | |
| 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5926 | arg2 = (int)SWIG_As_int(obj1); |
| 5927 | if (PyErr_Occurred()) SWIG_fail; |
| 5928 | arg3 = (int)SWIG_As_int(obj2); |
| 5929 | if (PyErr_Occurred()) SWIG_fail; |
| 5930 | { |
| 5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5932 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); |
| 5933 | |
| 5934 | wxPyEndAllowThreads(__tstate); |
| 5935 | if (PyErr_Occurred()) SWIG_fail; |
| 5936 | } |
| 5937 | resultobj = SWIG_From_long((long)result); |
| 5938 | return resultobj; |
| 5939 | fail: |
| 5940 | return NULL; |
| 5941 | } |
| 5942 | |
| 5943 | |
| 5944 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5945 | PyObject *resultobj; |
| 5946 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5947 | int arg2 ; |
| 5948 | int arg3 ; |
| 5949 | double result; |
| 5950 | PyObject * obj0 = 0 ; |
| 5951 | PyObject * obj1 = 0 ; |
| 5952 | PyObject * obj2 = 0 ; |
| 5953 | char *kwnames[] = { |
| 5954 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5955 | }; |
| 5956 | |
| 5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5960 | arg2 = (int)SWIG_As_int(obj1); |
| 5961 | if (PyErr_Occurred()) SWIG_fail; |
| 5962 | arg3 = (int)SWIG_As_int(obj2); |
| 5963 | if (PyErr_Occurred()) SWIG_fail; |
| 5964 | { |
| 5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5966 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); |
| 5967 | |
| 5968 | wxPyEndAllowThreads(__tstate); |
| 5969 | if (PyErr_Occurred()) SWIG_fail; |
| 5970 | } |
| 5971 | resultobj = SWIG_From_double((double)result); |
| 5972 | return resultobj; |
| 5973 | fail: |
| 5974 | return NULL; |
| 5975 | } |
| 5976 | |
| 5977 | |
| 5978 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *, PyObject *args, PyObject *kwargs) { |
| 5979 | PyObject *resultobj; |
| 5980 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 5981 | int arg2 ; |
| 5982 | int arg3 ; |
| 5983 | bool result; |
| 5984 | PyObject * obj0 = 0 ; |
| 5985 | PyObject * obj1 = 0 ; |
| 5986 | PyObject * obj2 = 0 ; |
| 5987 | char *kwnames[] = { |
| 5988 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 5989 | }; |
| 5990 | |
| 5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 5994 | arg2 = (int)SWIG_As_int(obj1); |
| 5995 | if (PyErr_Occurred()) SWIG_fail; |
| 5996 | arg3 = (int)SWIG_As_int(obj2); |
| 5997 | if (PyErr_Occurred()) SWIG_fail; |
| 5998 | { |
| 5999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6000 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); |
| 6001 | |
| 6002 | wxPyEndAllowThreads(__tstate); |
| 6003 | if (PyErr_Occurred()) SWIG_fail; |
| 6004 | } |
| 6005 | { |
| 6006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6007 | } |
| 6008 | return resultobj; |
| 6009 | fail: |
| 6010 | return NULL; |
| 6011 | } |
| 6012 | |
| 6013 | |
| 6014 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6015 | PyObject *resultobj; |
| 6016 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6017 | int arg2 ; |
| 6018 | int arg3 ; |
| 6019 | long arg4 ; |
| 6020 | PyObject * obj0 = 0 ; |
| 6021 | PyObject * obj1 = 0 ; |
| 6022 | PyObject * obj2 = 0 ; |
| 6023 | PyObject * obj3 = 0 ; |
| 6024 | char *kwnames[] = { |
| 6025 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL |
| 6026 | }; |
| 6027 | |
| 6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6031 | arg2 = (int)SWIG_As_int(obj1); |
| 6032 | if (PyErr_Occurred()) SWIG_fail; |
| 6033 | arg3 = (int)SWIG_As_int(obj2); |
| 6034 | if (PyErr_Occurred()) SWIG_fail; |
| 6035 | arg4 = (long)SWIG_As_long(obj3); |
| 6036 | if (PyErr_Occurred()) SWIG_fail; |
| 6037 | { |
| 6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6039 | (arg1)->SetValueAsLong(arg2,arg3,arg4); |
| 6040 | |
| 6041 | wxPyEndAllowThreads(__tstate); |
| 6042 | if (PyErr_Occurred()) SWIG_fail; |
| 6043 | } |
| 6044 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6045 | return resultobj; |
| 6046 | fail: |
| 6047 | return NULL; |
| 6048 | } |
| 6049 | |
| 6050 | |
| 6051 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6052 | PyObject *resultobj; |
| 6053 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6054 | int arg2 ; |
| 6055 | int arg3 ; |
| 6056 | double arg4 ; |
| 6057 | PyObject * obj0 = 0 ; |
| 6058 | PyObject * obj1 = 0 ; |
| 6059 | PyObject * obj2 = 0 ; |
| 6060 | PyObject * obj3 = 0 ; |
| 6061 | char *kwnames[] = { |
| 6062 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL |
| 6063 | }; |
| 6064 | |
| 6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6068 | arg2 = (int)SWIG_As_int(obj1); |
| 6069 | if (PyErr_Occurred()) SWIG_fail; |
| 6070 | arg3 = (int)SWIG_As_int(obj2); |
| 6071 | if (PyErr_Occurred()) SWIG_fail; |
| 6072 | arg4 = (double)SWIG_As_double(obj3); |
| 6073 | if (PyErr_Occurred()) SWIG_fail; |
| 6074 | { |
| 6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6076 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); |
| 6077 | |
| 6078 | wxPyEndAllowThreads(__tstate); |
| 6079 | if (PyErr_Occurred()) SWIG_fail; |
| 6080 | } |
| 6081 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6082 | return resultobj; |
| 6083 | fail: |
| 6084 | return NULL; |
| 6085 | } |
| 6086 | |
| 6087 | |
| 6088 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6089 | PyObject *resultobj; |
| 6090 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6091 | int arg2 ; |
| 6092 | int arg3 ; |
| 6093 | bool arg4 ; |
| 6094 | PyObject * obj0 = 0 ; |
| 6095 | PyObject * obj1 = 0 ; |
| 6096 | PyObject * obj2 = 0 ; |
| 6097 | PyObject * obj3 = 0 ; |
| 6098 | char *kwnames[] = { |
| 6099 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL |
| 6100 | }; |
| 6101 | |
| 6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6105 | arg2 = (int)SWIG_As_int(obj1); |
| 6106 | if (PyErr_Occurred()) SWIG_fail; |
| 6107 | arg3 = (int)SWIG_As_int(obj2); |
| 6108 | if (PyErr_Occurred()) SWIG_fail; |
| 6109 | arg4 = (bool)SWIG_As_bool(obj3); |
| 6110 | if (PyErr_Occurred()) SWIG_fail; |
| 6111 | { |
| 6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6113 | (arg1)->SetValueAsBool(arg2,arg3,arg4); |
| 6114 | |
| 6115 | wxPyEndAllowThreads(__tstate); |
| 6116 | if (PyErr_Occurred()) SWIG_fail; |
| 6117 | } |
| 6118 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6119 | return resultobj; |
| 6120 | fail: |
| 6121 | return NULL; |
| 6122 | } |
| 6123 | |
| 6124 | |
| 6125 | static PyObject *_wrap_GridTableBase_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6126 | PyObject *resultobj; |
| 6127 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6128 | PyObject * obj0 = 0 ; |
| 6129 | char *kwnames[] = { |
| 6130 | (char *) "self", NULL |
| 6131 | }; |
| 6132 | |
| 6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; |
| 6134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6136 | { |
| 6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6138 | (arg1)->Clear(); |
| 6139 | |
| 6140 | wxPyEndAllowThreads(__tstate); |
| 6141 | if (PyErr_Occurred()) SWIG_fail; |
| 6142 | } |
| 6143 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6144 | return resultobj; |
| 6145 | fail: |
| 6146 | return NULL; |
| 6147 | } |
| 6148 | |
| 6149 | |
| 6150 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6151 | PyObject *resultobj; |
| 6152 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6153 | size_t arg2 = (size_t) 0 ; |
| 6154 | size_t arg3 = (size_t) 1 ; |
| 6155 | bool result; |
| 6156 | PyObject * obj0 = 0 ; |
| 6157 | PyObject * obj1 = 0 ; |
| 6158 | PyObject * obj2 = 0 ; |
| 6159 | char *kwnames[] = { |
| 6160 | (char *) "self",(char *) "pos",(char *) "numRows", NULL |
| 6161 | }; |
| 6162 | |
| 6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6166 | if (obj1) { |
| 6167 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6168 | if (PyErr_Occurred()) SWIG_fail; |
| 6169 | } |
| 6170 | if (obj2) { |
| 6171 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 6172 | if (PyErr_Occurred()) SWIG_fail; |
| 6173 | } |
| 6174 | { |
| 6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6176 | result = (bool)(arg1)->InsertRows(arg2,arg3); |
| 6177 | |
| 6178 | wxPyEndAllowThreads(__tstate); |
| 6179 | if (PyErr_Occurred()) SWIG_fail; |
| 6180 | } |
| 6181 | { |
| 6182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6183 | } |
| 6184 | return resultobj; |
| 6185 | fail: |
| 6186 | return NULL; |
| 6187 | } |
| 6188 | |
| 6189 | |
| 6190 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6191 | PyObject *resultobj; |
| 6192 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6193 | size_t arg2 = (size_t) 1 ; |
| 6194 | bool result; |
| 6195 | PyObject * obj0 = 0 ; |
| 6196 | PyObject * obj1 = 0 ; |
| 6197 | char *kwnames[] = { |
| 6198 | (char *) "self",(char *) "numRows", NULL |
| 6199 | }; |
| 6200 | |
| 6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; |
| 6202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6204 | if (obj1) { |
| 6205 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6206 | if (PyErr_Occurred()) SWIG_fail; |
| 6207 | } |
| 6208 | { |
| 6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6210 | result = (bool)(arg1)->AppendRows(arg2); |
| 6211 | |
| 6212 | wxPyEndAllowThreads(__tstate); |
| 6213 | if (PyErr_Occurred()) SWIG_fail; |
| 6214 | } |
| 6215 | { |
| 6216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6217 | } |
| 6218 | return resultobj; |
| 6219 | fail: |
| 6220 | return NULL; |
| 6221 | } |
| 6222 | |
| 6223 | |
| 6224 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6225 | PyObject *resultobj; |
| 6226 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6227 | size_t arg2 = (size_t) 0 ; |
| 6228 | size_t arg3 = (size_t) 1 ; |
| 6229 | bool result; |
| 6230 | PyObject * obj0 = 0 ; |
| 6231 | PyObject * obj1 = 0 ; |
| 6232 | PyObject * obj2 = 0 ; |
| 6233 | char *kwnames[] = { |
| 6234 | (char *) "self",(char *) "pos",(char *) "numRows", NULL |
| 6235 | }; |
| 6236 | |
| 6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6240 | if (obj1) { |
| 6241 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6242 | if (PyErr_Occurred()) SWIG_fail; |
| 6243 | } |
| 6244 | if (obj2) { |
| 6245 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 6246 | if (PyErr_Occurred()) SWIG_fail; |
| 6247 | } |
| 6248 | { |
| 6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6250 | result = (bool)(arg1)->DeleteRows(arg2,arg3); |
| 6251 | |
| 6252 | wxPyEndAllowThreads(__tstate); |
| 6253 | if (PyErr_Occurred()) SWIG_fail; |
| 6254 | } |
| 6255 | { |
| 6256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6257 | } |
| 6258 | return resultobj; |
| 6259 | fail: |
| 6260 | return NULL; |
| 6261 | } |
| 6262 | |
| 6263 | |
| 6264 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6265 | PyObject *resultobj; |
| 6266 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6267 | size_t arg2 = (size_t) 0 ; |
| 6268 | size_t arg3 = (size_t) 1 ; |
| 6269 | bool result; |
| 6270 | PyObject * obj0 = 0 ; |
| 6271 | PyObject * obj1 = 0 ; |
| 6272 | PyObject * obj2 = 0 ; |
| 6273 | char *kwnames[] = { |
| 6274 | (char *) "self",(char *) "pos",(char *) "numCols", NULL |
| 6275 | }; |
| 6276 | |
| 6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6280 | if (obj1) { |
| 6281 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6282 | if (PyErr_Occurred()) SWIG_fail; |
| 6283 | } |
| 6284 | if (obj2) { |
| 6285 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 6286 | if (PyErr_Occurred()) SWIG_fail; |
| 6287 | } |
| 6288 | { |
| 6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6290 | result = (bool)(arg1)->InsertCols(arg2,arg3); |
| 6291 | |
| 6292 | wxPyEndAllowThreads(__tstate); |
| 6293 | if (PyErr_Occurred()) SWIG_fail; |
| 6294 | } |
| 6295 | { |
| 6296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6297 | } |
| 6298 | return resultobj; |
| 6299 | fail: |
| 6300 | return NULL; |
| 6301 | } |
| 6302 | |
| 6303 | |
| 6304 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6305 | PyObject *resultobj; |
| 6306 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6307 | size_t arg2 = (size_t) 1 ; |
| 6308 | bool result; |
| 6309 | PyObject * obj0 = 0 ; |
| 6310 | PyObject * obj1 = 0 ; |
| 6311 | char *kwnames[] = { |
| 6312 | (char *) "self",(char *) "numCols", NULL |
| 6313 | }; |
| 6314 | |
| 6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; |
| 6316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6318 | if (obj1) { |
| 6319 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6320 | if (PyErr_Occurred()) SWIG_fail; |
| 6321 | } |
| 6322 | { |
| 6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6324 | result = (bool)(arg1)->AppendCols(arg2); |
| 6325 | |
| 6326 | wxPyEndAllowThreads(__tstate); |
| 6327 | if (PyErr_Occurred()) SWIG_fail; |
| 6328 | } |
| 6329 | { |
| 6330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6331 | } |
| 6332 | return resultobj; |
| 6333 | fail: |
| 6334 | return NULL; |
| 6335 | } |
| 6336 | |
| 6337 | |
| 6338 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6339 | PyObject *resultobj; |
| 6340 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6341 | size_t arg2 = (size_t) 0 ; |
| 6342 | size_t arg3 = (size_t) 1 ; |
| 6343 | bool result; |
| 6344 | PyObject * obj0 = 0 ; |
| 6345 | PyObject * obj1 = 0 ; |
| 6346 | PyObject * obj2 = 0 ; |
| 6347 | char *kwnames[] = { |
| 6348 | (char *) "self",(char *) "pos",(char *) "numCols", NULL |
| 6349 | }; |
| 6350 | |
| 6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6354 | if (obj1) { |
| 6355 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6356 | if (PyErr_Occurred()) SWIG_fail; |
| 6357 | } |
| 6358 | if (obj2) { |
| 6359 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 6360 | if (PyErr_Occurred()) SWIG_fail; |
| 6361 | } |
| 6362 | { |
| 6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6364 | result = (bool)(arg1)->DeleteCols(arg2,arg3); |
| 6365 | |
| 6366 | wxPyEndAllowThreads(__tstate); |
| 6367 | if (PyErr_Occurred()) SWIG_fail; |
| 6368 | } |
| 6369 | { |
| 6370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6371 | } |
| 6372 | return resultobj; |
| 6373 | fail: |
| 6374 | return NULL; |
| 6375 | } |
| 6376 | |
| 6377 | |
| 6378 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6379 | PyObject *resultobj; |
| 6380 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6381 | int arg2 ; |
| 6382 | wxString result; |
| 6383 | PyObject * obj0 = 0 ; |
| 6384 | PyObject * obj1 = 0 ; |
| 6385 | char *kwnames[] = { |
| 6386 | (char *) "self",(char *) "row", NULL |
| 6387 | }; |
| 6388 | |
| 6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 6390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6392 | arg2 = (int)SWIG_As_int(obj1); |
| 6393 | if (PyErr_Occurred()) SWIG_fail; |
| 6394 | { |
| 6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6396 | result = (arg1)->GetRowLabelValue(arg2); |
| 6397 | |
| 6398 | wxPyEndAllowThreads(__tstate); |
| 6399 | if (PyErr_Occurred()) SWIG_fail; |
| 6400 | } |
| 6401 | { |
| 6402 | #if wxUSE_UNICODE |
| 6403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 6404 | #else |
| 6405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 6406 | #endif |
| 6407 | } |
| 6408 | return resultobj; |
| 6409 | fail: |
| 6410 | return NULL; |
| 6411 | } |
| 6412 | |
| 6413 | |
| 6414 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6415 | PyObject *resultobj; |
| 6416 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6417 | int arg2 ; |
| 6418 | wxString result; |
| 6419 | PyObject * obj0 = 0 ; |
| 6420 | PyObject * obj1 = 0 ; |
| 6421 | char *kwnames[] = { |
| 6422 | (char *) "self",(char *) "col", NULL |
| 6423 | }; |
| 6424 | |
| 6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6428 | arg2 = (int)SWIG_As_int(obj1); |
| 6429 | if (PyErr_Occurred()) SWIG_fail; |
| 6430 | { |
| 6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6432 | result = (arg1)->GetColLabelValue(arg2); |
| 6433 | |
| 6434 | wxPyEndAllowThreads(__tstate); |
| 6435 | if (PyErr_Occurred()) SWIG_fail; |
| 6436 | } |
| 6437 | { |
| 6438 | #if wxUSE_UNICODE |
| 6439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 6440 | #else |
| 6441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 6442 | #endif |
| 6443 | } |
| 6444 | return resultobj; |
| 6445 | fail: |
| 6446 | return NULL; |
| 6447 | } |
| 6448 | |
| 6449 | |
| 6450 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6451 | PyObject *resultobj; |
| 6452 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6453 | int arg2 ; |
| 6454 | wxString *arg3 = 0 ; |
| 6455 | bool temp3 = false ; |
| 6456 | PyObject * obj0 = 0 ; |
| 6457 | PyObject * obj1 = 0 ; |
| 6458 | PyObject * obj2 = 0 ; |
| 6459 | char *kwnames[] = { |
| 6460 | (char *) "self",(char *) "row",(char *) "value", NULL |
| 6461 | }; |
| 6462 | |
| 6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6466 | arg2 = (int)SWIG_As_int(obj1); |
| 6467 | if (PyErr_Occurred()) SWIG_fail; |
| 6468 | { |
| 6469 | arg3 = wxString_in_helper(obj2); |
| 6470 | if (arg3 == NULL) SWIG_fail; |
| 6471 | temp3 = true; |
| 6472 | } |
| 6473 | { |
| 6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6475 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); |
| 6476 | |
| 6477 | wxPyEndAllowThreads(__tstate); |
| 6478 | if (PyErr_Occurred()) SWIG_fail; |
| 6479 | } |
| 6480 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6481 | { |
| 6482 | if (temp3) |
| 6483 | delete arg3; |
| 6484 | } |
| 6485 | return resultobj; |
| 6486 | fail: |
| 6487 | { |
| 6488 | if (temp3) |
| 6489 | delete arg3; |
| 6490 | } |
| 6491 | return NULL; |
| 6492 | } |
| 6493 | |
| 6494 | |
| 6495 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6496 | PyObject *resultobj; |
| 6497 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6498 | int arg2 ; |
| 6499 | wxString *arg3 = 0 ; |
| 6500 | bool temp3 = false ; |
| 6501 | PyObject * obj0 = 0 ; |
| 6502 | PyObject * obj1 = 0 ; |
| 6503 | PyObject * obj2 = 0 ; |
| 6504 | char *kwnames[] = { |
| 6505 | (char *) "self",(char *) "col",(char *) "value", NULL |
| 6506 | }; |
| 6507 | |
| 6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6511 | arg2 = (int)SWIG_As_int(obj1); |
| 6512 | if (PyErr_Occurred()) SWIG_fail; |
| 6513 | { |
| 6514 | arg3 = wxString_in_helper(obj2); |
| 6515 | if (arg3 == NULL) SWIG_fail; |
| 6516 | temp3 = true; |
| 6517 | } |
| 6518 | { |
| 6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6520 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); |
| 6521 | |
| 6522 | wxPyEndAllowThreads(__tstate); |
| 6523 | if (PyErr_Occurred()) SWIG_fail; |
| 6524 | } |
| 6525 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6526 | { |
| 6527 | if (temp3) |
| 6528 | delete arg3; |
| 6529 | } |
| 6530 | return resultobj; |
| 6531 | fail: |
| 6532 | { |
| 6533 | if (temp3) |
| 6534 | delete arg3; |
| 6535 | } |
| 6536 | return NULL; |
| 6537 | } |
| 6538 | |
| 6539 | |
| 6540 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6541 | PyObject *resultobj; |
| 6542 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6543 | bool result; |
| 6544 | PyObject * obj0 = 0 ; |
| 6545 | char *kwnames[] = { |
| 6546 | (char *) "self", NULL |
| 6547 | }; |
| 6548 | |
| 6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; |
| 6550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6552 | { |
| 6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6554 | result = (bool)(arg1)->CanHaveAttributes(); |
| 6555 | |
| 6556 | wxPyEndAllowThreads(__tstate); |
| 6557 | if (PyErr_Occurred()) SWIG_fail; |
| 6558 | } |
| 6559 | { |
| 6560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6561 | } |
| 6562 | return resultobj; |
| 6563 | fail: |
| 6564 | return NULL; |
| 6565 | } |
| 6566 | |
| 6567 | |
| 6568 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6569 | PyObject *resultobj; |
| 6570 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6571 | int arg2 ; |
| 6572 | int arg3 ; |
| 6573 | int arg4 ; |
| 6574 | wxGridCellAttr *result; |
| 6575 | PyObject * obj0 = 0 ; |
| 6576 | PyObject * obj1 = 0 ; |
| 6577 | PyObject * obj2 = 0 ; |
| 6578 | PyObject * obj3 = 0 ; |
| 6579 | char *kwnames[] = { |
| 6580 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL |
| 6581 | }; |
| 6582 | |
| 6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6586 | arg2 = (int)SWIG_As_int(obj1); |
| 6587 | if (PyErr_Occurred()) SWIG_fail; |
| 6588 | arg3 = (int)SWIG_As_int(obj2); |
| 6589 | if (PyErr_Occurred()) SWIG_fail; |
| 6590 | arg4 = (int)SWIG_As_int(obj3); |
| 6591 | if (PyErr_Occurred()) SWIG_fail; |
| 6592 | { |
| 6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6594 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); |
| 6595 | |
| 6596 | wxPyEndAllowThreads(__tstate); |
| 6597 | if (PyErr_Occurred()) SWIG_fail; |
| 6598 | } |
| 6599 | { |
| 6600 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 6601 | } |
| 6602 | return resultobj; |
| 6603 | fail: |
| 6604 | return NULL; |
| 6605 | } |
| 6606 | |
| 6607 | |
| 6608 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6609 | PyObject *resultobj; |
| 6610 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6611 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 6612 | int arg3 ; |
| 6613 | int arg4 ; |
| 6614 | PyObject * obj0 = 0 ; |
| 6615 | PyObject * obj1 = 0 ; |
| 6616 | PyObject * obj2 = 0 ; |
| 6617 | PyObject * obj3 = 0 ; |
| 6618 | char *kwnames[] = { |
| 6619 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL |
| 6620 | }; |
| 6621 | |
| 6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 6626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6627 | arg3 = (int)SWIG_As_int(obj2); |
| 6628 | if (PyErr_Occurred()) SWIG_fail; |
| 6629 | arg4 = (int)SWIG_As_int(obj3); |
| 6630 | if (PyErr_Occurred()) SWIG_fail; |
| 6631 | { |
| 6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6633 | (arg1)->SetAttr(arg2,arg3,arg4); |
| 6634 | |
| 6635 | wxPyEndAllowThreads(__tstate); |
| 6636 | if (PyErr_Occurred()) SWIG_fail; |
| 6637 | } |
| 6638 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6639 | return resultobj; |
| 6640 | fail: |
| 6641 | return NULL; |
| 6642 | } |
| 6643 | |
| 6644 | |
| 6645 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6646 | PyObject *resultobj; |
| 6647 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6648 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 6649 | int arg3 ; |
| 6650 | PyObject * obj0 = 0 ; |
| 6651 | PyObject * obj1 = 0 ; |
| 6652 | PyObject * obj2 = 0 ; |
| 6653 | char *kwnames[] = { |
| 6654 | (char *) "self",(char *) "attr",(char *) "row", NULL |
| 6655 | }; |
| 6656 | |
| 6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 6661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6662 | arg3 = (int)SWIG_As_int(obj2); |
| 6663 | if (PyErr_Occurred()) SWIG_fail; |
| 6664 | { |
| 6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6666 | (arg1)->SetRowAttr(arg2,arg3); |
| 6667 | |
| 6668 | wxPyEndAllowThreads(__tstate); |
| 6669 | if (PyErr_Occurred()) SWIG_fail; |
| 6670 | } |
| 6671 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6672 | return resultobj; |
| 6673 | fail: |
| 6674 | return NULL; |
| 6675 | } |
| 6676 | |
| 6677 | |
| 6678 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6679 | PyObject *resultobj; |
| 6680 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 6681 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 6682 | int arg3 ; |
| 6683 | PyObject * obj0 = 0 ; |
| 6684 | PyObject * obj1 = 0 ; |
| 6685 | PyObject * obj2 = 0 ; |
| 6686 | char *kwnames[] = { |
| 6687 | (char *) "self",(char *) "attr",(char *) "col", NULL |
| 6688 | }; |
| 6689 | |
| 6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 6692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 6694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6695 | arg3 = (int)SWIG_As_int(obj2); |
| 6696 | if (PyErr_Occurred()) SWIG_fail; |
| 6697 | { |
| 6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6699 | (arg1)->SetColAttr(arg2,arg3); |
| 6700 | |
| 6701 | wxPyEndAllowThreads(__tstate); |
| 6702 | if (PyErr_Occurred()) SWIG_fail; |
| 6703 | } |
| 6704 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6705 | return resultobj; |
| 6706 | fail: |
| 6707 | return NULL; |
| 6708 | } |
| 6709 | |
| 6710 | |
| 6711 | static PyObject * GridTableBase_swigregister(PyObject *, PyObject *args) { |
| 6712 | PyObject *obj; |
| 6713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 6714 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); |
| 6715 | Py_INCREF(obj); |
| 6716 | return Py_BuildValue((char *)""); |
| 6717 | } |
| 6718 | static PyObject *_wrap_new_PyGridTableBase(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6719 | PyObject *resultobj; |
| 6720 | wxPyGridTableBase *result; |
| 6721 | char *kwnames[] = { |
| 6722 | NULL |
| 6723 | }; |
| 6724 | |
| 6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; |
| 6726 | { |
| 6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6728 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); |
| 6729 | |
| 6730 | wxPyEndAllowThreads(__tstate); |
| 6731 | if (PyErr_Occurred()) SWIG_fail; |
| 6732 | } |
| 6733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1); |
| 6734 | return resultobj; |
| 6735 | fail: |
| 6736 | return NULL; |
| 6737 | } |
| 6738 | |
| 6739 | |
| 6740 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6741 | PyObject *resultobj; |
| 6742 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6743 | PyObject *arg2 = (PyObject *) 0 ; |
| 6744 | PyObject *arg3 = (PyObject *) 0 ; |
| 6745 | PyObject * obj0 = 0 ; |
| 6746 | PyObject * obj1 = 0 ; |
| 6747 | PyObject * obj2 = 0 ; |
| 6748 | char *kwnames[] = { |
| 6749 | (char *) "self",(char *) "self",(char *) "_class", NULL |
| 6750 | }; |
| 6751 | |
| 6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6755 | arg2 = obj1; |
| 6756 | arg3 = obj2; |
| 6757 | { |
| 6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6759 | (arg1)->_setCallbackInfo(arg2,arg3); |
| 6760 | |
| 6761 | wxPyEndAllowThreads(__tstate); |
| 6762 | if (PyErr_Occurred()) SWIG_fail; |
| 6763 | } |
| 6764 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6765 | return resultobj; |
| 6766 | fail: |
| 6767 | return NULL; |
| 6768 | } |
| 6769 | |
| 6770 | |
| 6771 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6772 | PyObject *resultobj; |
| 6773 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6774 | PyObject * obj0 = 0 ; |
| 6775 | char *kwnames[] = { |
| 6776 | (char *) "self", NULL |
| 6777 | }; |
| 6778 | |
| 6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; |
| 6780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6782 | { |
| 6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6784 | wxPyGridTableBase_Destroy(arg1); |
| 6785 | |
| 6786 | wxPyEndAllowThreads(__tstate); |
| 6787 | if (PyErr_Occurred()) SWIG_fail; |
| 6788 | } |
| 6789 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6790 | return resultobj; |
| 6791 | fail: |
| 6792 | return NULL; |
| 6793 | } |
| 6794 | |
| 6795 | |
| 6796 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6797 | PyObject *resultobj; |
| 6798 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6799 | int arg2 ; |
| 6800 | int arg3 ; |
| 6801 | wxString result; |
| 6802 | PyObject * obj0 = 0 ; |
| 6803 | PyObject * obj1 = 0 ; |
| 6804 | PyObject * obj2 = 0 ; |
| 6805 | char *kwnames[] = { |
| 6806 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 6807 | }; |
| 6808 | |
| 6809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6812 | arg2 = (int)SWIG_As_int(obj1); |
| 6813 | if (PyErr_Occurred()) SWIG_fail; |
| 6814 | arg3 = (int)SWIG_As_int(obj2); |
| 6815 | if (PyErr_Occurred()) SWIG_fail; |
| 6816 | { |
| 6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6818 | result = (arg1)->base_GetTypeName(arg2,arg3); |
| 6819 | |
| 6820 | wxPyEndAllowThreads(__tstate); |
| 6821 | if (PyErr_Occurred()) SWIG_fail; |
| 6822 | } |
| 6823 | { |
| 6824 | #if wxUSE_UNICODE |
| 6825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 6826 | #else |
| 6827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 6828 | #endif |
| 6829 | } |
| 6830 | return resultobj; |
| 6831 | fail: |
| 6832 | return NULL; |
| 6833 | } |
| 6834 | |
| 6835 | |
| 6836 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6837 | PyObject *resultobj; |
| 6838 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6839 | int arg2 ; |
| 6840 | int arg3 ; |
| 6841 | wxString *arg4 = 0 ; |
| 6842 | bool result; |
| 6843 | bool temp4 = false ; |
| 6844 | PyObject * obj0 = 0 ; |
| 6845 | PyObject * obj1 = 0 ; |
| 6846 | PyObject * obj2 = 0 ; |
| 6847 | PyObject * obj3 = 0 ; |
| 6848 | char *kwnames[] = { |
| 6849 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL |
| 6850 | }; |
| 6851 | |
| 6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6855 | arg2 = (int)SWIG_As_int(obj1); |
| 6856 | if (PyErr_Occurred()) SWIG_fail; |
| 6857 | arg3 = (int)SWIG_As_int(obj2); |
| 6858 | if (PyErr_Occurred()) SWIG_fail; |
| 6859 | { |
| 6860 | arg4 = wxString_in_helper(obj3); |
| 6861 | if (arg4 == NULL) SWIG_fail; |
| 6862 | temp4 = true; |
| 6863 | } |
| 6864 | { |
| 6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6866 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); |
| 6867 | |
| 6868 | wxPyEndAllowThreads(__tstate); |
| 6869 | if (PyErr_Occurred()) SWIG_fail; |
| 6870 | } |
| 6871 | { |
| 6872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6873 | } |
| 6874 | { |
| 6875 | if (temp4) |
| 6876 | delete arg4; |
| 6877 | } |
| 6878 | return resultobj; |
| 6879 | fail: |
| 6880 | { |
| 6881 | if (temp4) |
| 6882 | delete arg4; |
| 6883 | } |
| 6884 | return NULL; |
| 6885 | } |
| 6886 | |
| 6887 | |
| 6888 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6889 | PyObject *resultobj; |
| 6890 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6891 | int arg2 ; |
| 6892 | int arg3 ; |
| 6893 | wxString *arg4 = 0 ; |
| 6894 | bool result; |
| 6895 | bool temp4 = false ; |
| 6896 | PyObject * obj0 = 0 ; |
| 6897 | PyObject * obj1 = 0 ; |
| 6898 | PyObject * obj2 = 0 ; |
| 6899 | PyObject * obj3 = 0 ; |
| 6900 | char *kwnames[] = { |
| 6901 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL |
| 6902 | }; |
| 6903 | |
| 6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6907 | arg2 = (int)SWIG_As_int(obj1); |
| 6908 | if (PyErr_Occurred()) SWIG_fail; |
| 6909 | arg3 = (int)SWIG_As_int(obj2); |
| 6910 | if (PyErr_Occurred()) SWIG_fail; |
| 6911 | { |
| 6912 | arg4 = wxString_in_helper(obj3); |
| 6913 | if (arg4 == NULL) SWIG_fail; |
| 6914 | temp4 = true; |
| 6915 | } |
| 6916 | { |
| 6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6918 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); |
| 6919 | |
| 6920 | wxPyEndAllowThreads(__tstate); |
| 6921 | if (PyErr_Occurred()) SWIG_fail; |
| 6922 | } |
| 6923 | { |
| 6924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6925 | } |
| 6926 | { |
| 6927 | if (temp4) |
| 6928 | delete arg4; |
| 6929 | } |
| 6930 | return resultobj; |
| 6931 | fail: |
| 6932 | { |
| 6933 | if (temp4) |
| 6934 | delete arg4; |
| 6935 | } |
| 6936 | return NULL; |
| 6937 | } |
| 6938 | |
| 6939 | |
| 6940 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6941 | PyObject *resultobj; |
| 6942 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6943 | PyObject * obj0 = 0 ; |
| 6944 | char *kwnames[] = { |
| 6945 | (char *) "self", NULL |
| 6946 | }; |
| 6947 | |
| 6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; |
| 6949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6951 | { |
| 6952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6953 | (arg1)->base_Clear(); |
| 6954 | |
| 6955 | wxPyEndAllowThreads(__tstate); |
| 6956 | if (PyErr_Occurred()) SWIG_fail; |
| 6957 | } |
| 6958 | Py_INCREF(Py_None); resultobj = Py_None; |
| 6959 | return resultobj; |
| 6960 | fail: |
| 6961 | return NULL; |
| 6962 | } |
| 6963 | |
| 6964 | |
| 6965 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 6966 | PyObject *resultobj; |
| 6967 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 6968 | size_t arg2 = (size_t) 0 ; |
| 6969 | size_t arg3 = (size_t) 1 ; |
| 6970 | bool result; |
| 6971 | PyObject * obj0 = 0 ; |
| 6972 | PyObject * obj1 = 0 ; |
| 6973 | PyObject * obj2 = 0 ; |
| 6974 | char *kwnames[] = { |
| 6975 | (char *) "self",(char *) "pos",(char *) "numRows", NULL |
| 6976 | }; |
| 6977 | |
| 6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 6979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 6980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 6981 | if (obj1) { |
| 6982 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 6983 | if (PyErr_Occurred()) SWIG_fail; |
| 6984 | } |
| 6985 | if (obj2) { |
| 6986 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 6987 | if (PyErr_Occurred()) SWIG_fail; |
| 6988 | } |
| 6989 | { |
| 6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6991 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); |
| 6992 | |
| 6993 | wxPyEndAllowThreads(__tstate); |
| 6994 | if (PyErr_Occurred()) SWIG_fail; |
| 6995 | } |
| 6996 | { |
| 6997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 6998 | } |
| 6999 | return resultobj; |
| 7000 | fail: |
| 7001 | return NULL; |
| 7002 | } |
| 7003 | |
| 7004 | |
| 7005 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7006 | PyObject *resultobj; |
| 7007 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7008 | size_t arg2 = (size_t) 1 ; |
| 7009 | bool result; |
| 7010 | PyObject * obj0 = 0 ; |
| 7011 | PyObject * obj1 = 0 ; |
| 7012 | char *kwnames[] = { |
| 7013 | (char *) "self",(char *) "numRows", NULL |
| 7014 | }; |
| 7015 | |
| 7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; |
| 7017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7019 | if (obj1) { |
| 7020 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 7021 | if (PyErr_Occurred()) SWIG_fail; |
| 7022 | } |
| 7023 | { |
| 7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7025 | result = (bool)(arg1)->base_AppendRows(arg2); |
| 7026 | |
| 7027 | wxPyEndAllowThreads(__tstate); |
| 7028 | if (PyErr_Occurred()) SWIG_fail; |
| 7029 | } |
| 7030 | { |
| 7031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7032 | } |
| 7033 | return resultobj; |
| 7034 | fail: |
| 7035 | return NULL; |
| 7036 | } |
| 7037 | |
| 7038 | |
| 7039 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7040 | PyObject *resultobj; |
| 7041 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7042 | size_t arg2 = (size_t) 0 ; |
| 7043 | size_t arg3 = (size_t) 1 ; |
| 7044 | bool result; |
| 7045 | PyObject * obj0 = 0 ; |
| 7046 | PyObject * obj1 = 0 ; |
| 7047 | PyObject * obj2 = 0 ; |
| 7048 | char *kwnames[] = { |
| 7049 | (char *) "self",(char *) "pos",(char *) "numRows", NULL |
| 7050 | }; |
| 7051 | |
| 7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7055 | if (obj1) { |
| 7056 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 7057 | if (PyErr_Occurred()) SWIG_fail; |
| 7058 | } |
| 7059 | if (obj2) { |
| 7060 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 7061 | if (PyErr_Occurred()) SWIG_fail; |
| 7062 | } |
| 7063 | { |
| 7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7065 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); |
| 7066 | |
| 7067 | wxPyEndAllowThreads(__tstate); |
| 7068 | if (PyErr_Occurred()) SWIG_fail; |
| 7069 | } |
| 7070 | { |
| 7071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7072 | } |
| 7073 | return resultobj; |
| 7074 | fail: |
| 7075 | return NULL; |
| 7076 | } |
| 7077 | |
| 7078 | |
| 7079 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7080 | PyObject *resultobj; |
| 7081 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7082 | size_t arg2 = (size_t) 0 ; |
| 7083 | size_t arg3 = (size_t) 1 ; |
| 7084 | bool result; |
| 7085 | PyObject * obj0 = 0 ; |
| 7086 | PyObject * obj1 = 0 ; |
| 7087 | PyObject * obj2 = 0 ; |
| 7088 | char *kwnames[] = { |
| 7089 | (char *) "self",(char *) "pos",(char *) "numCols", NULL |
| 7090 | }; |
| 7091 | |
| 7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7095 | if (obj1) { |
| 7096 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 7097 | if (PyErr_Occurred()) SWIG_fail; |
| 7098 | } |
| 7099 | if (obj2) { |
| 7100 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 7101 | if (PyErr_Occurred()) SWIG_fail; |
| 7102 | } |
| 7103 | { |
| 7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7105 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); |
| 7106 | |
| 7107 | wxPyEndAllowThreads(__tstate); |
| 7108 | if (PyErr_Occurred()) SWIG_fail; |
| 7109 | } |
| 7110 | { |
| 7111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7112 | } |
| 7113 | return resultobj; |
| 7114 | fail: |
| 7115 | return NULL; |
| 7116 | } |
| 7117 | |
| 7118 | |
| 7119 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7120 | PyObject *resultobj; |
| 7121 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7122 | size_t arg2 = (size_t) 1 ; |
| 7123 | bool result; |
| 7124 | PyObject * obj0 = 0 ; |
| 7125 | PyObject * obj1 = 0 ; |
| 7126 | char *kwnames[] = { |
| 7127 | (char *) "self",(char *) "numCols", NULL |
| 7128 | }; |
| 7129 | |
| 7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; |
| 7131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7133 | if (obj1) { |
| 7134 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 7135 | if (PyErr_Occurred()) SWIG_fail; |
| 7136 | } |
| 7137 | { |
| 7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7139 | result = (bool)(arg1)->base_AppendCols(arg2); |
| 7140 | |
| 7141 | wxPyEndAllowThreads(__tstate); |
| 7142 | if (PyErr_Occurred()) SWIG_fail; |
| 7143 | } |
| 7144 | { |
| 7145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7146 | } |
| 7147 | return resultobj; |
| 7148 | fail: |
| 7149 | return NULL; |
| 7150 | } |
| 7151 | |
| 7152 | |
| 7153 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7154 | PyObject *resultobj; |
| 7155 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7156 | size_t arg2 = (size_t) 0 ; |
| 7157 | size_t arg3 = (size_t) 1 ; |
| 7158 | bool result; |
| 7159 | PyObject * obj0 = 0 ; |
| 7160 | PyObject * obj1 = 0 ; |
| 7161 | PyObject * obj2 = 0 ; |
| 7162 | char *kwnames[] = { |
| 7163 | (char *) "self",(char *) "pos",(char *) "numCols", NULL |
| 7164 | }; |
| 7165 | |
| 7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7169 | if (obj1) { |
| 7170 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
| 7171 | if (PyErr_Occurred()) SWIG_fail; |
| 7172 | } |
| 7173 | if (obj2) { |
| 7174 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
| 7175 | if (PyErr_Occurred()) SWIG_fail; |
| 7176 | } |
| 7177 | { |
| 7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7179 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); |
| 7180 | |
| 7181 | wxPyEndAllowThreads(__tstate); |
| 7182 | if (PyErr_Occurred()) SWIG_fail; |
| 7183 | } |
| 7184 | { |
| 7185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7186 | } |
| 7187 | return resultobj; |
| 7188 | fail: |
| 7189 | return NULL; |
| 7190 | } |
| 7191 | |
| 7192 | |
| 7193 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7194 | PyObject *resultobj; |
| 7195 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7196 | int arg2 ; |
| 7197 | wxString result; |
| 7198 | PyObject * obj0 = 0 ; |
| 7199 | PyObject * obj1 = 0 ; |
| 7200 | char *kwnames[] = { |
| 7201 | (char *) "self",(char *) "row", NULL |
| 7202 | }; |
| 7203 | |
| 7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 7205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7207 | arg2 = (int)SWIG_As_int(obj1); |
| 7208 | if (PyErr_Occurred()) SWIG_fail; |
| 7209 | { |
| 7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7211 | result = (arg1)->base_GetRowLabelValue(arg2); |
| 7212 | |
| 7213 | wxPyEndAllowThreads(__tstate); |
| 7214 | if (PyErr_Occurred()) SWIG_fail; |
| 7215 | } |
| 7216 | { |
| 7217 | #if wxUSE_UNICODE |
| 7218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 7219 | #else |
| 7220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 7221 | #endif |
| 7222 | } |
| 7223 | return resultobj; |
| 7224 | fail: |
| 7225 | return NULL; |
| 7226 | } |
| 7227 | |
| 7228 | |
| 7229 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7230 | PyObject *resultobj; |
| 7231 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7232 | int arg2 ; |
| 7233 | wxString result; |
| 7234 | PyObject * obj0 = 0 ; |
| 7235 | PyObject * obj1 = 0 ; |
| 7236 | char *kwnames[] = { |
| 7237 | (char *) "self",(char *) "col", NULL |
| 7238 | }; |
| 7239 | |
| 7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 7241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7243 | arg2 = (int)SWIG_As_int(obj1); |
| 7244 | if (PyErr_Occurred()) SWIG_fail; |
| 7245 | { |
| 7246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7247 | result = (arg1)->base_GetColLabelValue(arg2); |
| 7248 | |
| 7249 | wxPyEndAllowThreads(__tstate); |
| 7250 | if (PyErr_Occurred()) SWIG_fail; |
| 7251 | } |
| 7252 | { |
| 7253 | #if wxUSE_UNICODE |
| 7254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 7255 | #else |
| 7256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 7257 | #endif |
| 7258 | } |
| 7259 | return resultobj; |
| 7260 | fail: |
| 7261 | return NULL; |
| 7262 | } |
| 7263 | |
| 7264 | |
| 7265 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7266 | PyObject *resultobj; |
| 7267 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7268 | int arg2 ; |
| 7269 | wxString *arg3 = 0 ; |
| 7270 | bool temp3 = false ; |
| 7271 | PyObject * obj0 = 0 ; |
| 7272 | PyObject * obj1 = 0 ; |
| 7273 | PyObject * obj2 = 0 ; |
| 7274 | char *kwnames[] = { |
| 7275 | (char *) "self",(char *) "row",(char *) "value", NULL |
| 7276 | }; |
| 7277 | |
| 7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7281 | arg2 = (int)SWIG_As_int(obj1); |
| 7282 | if (PyErr_Occurred()) SWIG_fail; |
| 7283 | { |
| 7284 | arg3 = wxString_in_helper(obj2); |
| 7285 | if (arg3 == NULL) SWIG_fail; |
| 7286 | temp3 = true; |
| 7287 | } |
| 7288 | { |
| 7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7290 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); |
| 7291 | |
| 7292 | wxPyEndAllowThreads(__tstate); |
| 7293 | if (PyErr_Occurred()) SWIG_fail; |
| 7294 | } |
| 7295 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7296 | { |
| 7297 | if (temp3) |
| 7298 | delete arg3; |
| 7299 | } |
| 7300 | return resultobj; |
| 7301 | fail: |
| 7302 | { |
| 7303 | if (temp3) |
| 7304 | delete arg3; |
| 7305 | } |
| 7306 | return NULL; |
| 7307 | } |
| 7308 | |
| 7309 | |
| 7310 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7311 | PyObject *resultobj; |
| 7312 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7313 | int arg2 ; |
| 7314 | wxString *arg3 = 0 ; |
| 7315 | bool temp3 = false ; |
| 7316 | PyObject * obj0 = 0 ; |
| 7317 | PyObject * obj1 = 0 ; |
| 7318 | PyObject * obj2 = 0 ; |
| 7319 | char *kwnames[] = { |
| 7320 | (char *) "self",(char *) "col",(char *) "value", NULL |
| 7321 | }; |
| 7322 | |
| 7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7326 | arg2 = (int)SWIG_As_int(obj1); |
| 7327 | if (PyErr_Occurred()) SWIG_fail; |
| 7328 | { |
| 7329 | arg3 = wxString_in_helper(obj2); |
| 7330 | if (arg3 == NULL) SWIG_fail; |
| 7331 | temp3 = true; |
| 7332 | } |
| 7333 | { |
| 7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7335 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); |
| 7336 | |
| 7337 | wxPyEndAllowThreads(__tstate); |
| 7338 | if (PyErr_Occurred()) SWIG_fail; |
| 7339 | } |
| 7340 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7341 | { |
| 7342 | if (temp3) |
| 7343 | delete arg3; |
| 7344 | } |
| 7345 | return resultobj; |
| 7346 | fail: |
| 7347 | { |
| 7348 | if (temp3) |
| 7349 | delete arg3; |
| 7350 | } |
| 7351 | return NULL; |
| 7352 | } |
| 7353 | |
| 7354 | |
| 7355 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7356 | PyObject *resultobj; |
| 7357 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7358 | bool result; |
| 7359 | PyObject * obj0 = 0 ; |
| 7360 | char *kwnames[] = { |
| 7361 | (char *) "self", NULL |
| 7362 | }; |
| 7363 | |
| 7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; |
| 7365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7367 | { |
| 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7369 | result = (bool)(arg1)->base_CanHaveAttributes(); |
| 7370 | |
| 7371 | wxPyEndAllowThreads(__tstate); |
| 7372 | if (PyErr_Occurred()) SWIG_fail; |
| 7373 | } |
| 7374 | { |
| 7375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 7376 | } |
| 7377 | return resultobj; |
| 7378 | fail: |
| 7379 | return NULL; |
| 7380 | } |
| 7381 | |
| 7382 | |
| 7383 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7384 | PyObject *resultobj; |
| 7385 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7386 | int arg2 ; |
| 7387 | int arg3 ; |
| 7388 | int arg4 ; |
| 7389 | wxGridCellAttr *result; |
| 7390 | PyObject * obj0 = 0 ; |
| 7391 | PyObject * obj1 = 0 ; |
| 7392 | PyObject * obj2 = 0 ; |
| 7393 | PyObject * obj3 = 0 ; |
| 7394 | char *kwnames[] = { |
| 7395 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL |
| 7396 | }; |
| 7397 | |
| 7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 7399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7401 | arg2 = (int)SWIG_As_int(obj1); |
| 7402 | if (PyErr_Occurred()) SWIG_fail; |
| 7403 | arg3 = (int)SWIG_As_int(obj2); |
| 7404 | if (PyErr_Occurred()) SWIG_fail; |
| 7405 | arg4 = (int)SWIG_As_int(obj3); |
| 7406 | if (PyErr_Occurred()) SWIG_fail; |
| 7407 | { |
| 7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7409 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); |
| 7410 | |
| 7411 | wxPyEndAllowThreads(__tstate); |
| 7412 | if (PyErr_Occurred()) SWIG_fail; |
| 7413 | } |
| 7414 | { |
| 7415 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 7416 | } |
| 7417 | return resultobj; |
| 7418 | fail: |
| 7419 | return NULL; |
| 7420 | } |
| 7421 | |
| 7422 | |
| 7423 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7424 | PyObject *resultobj; |
| 7425 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7426 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 7427 | int arg3 ; |
| 7428 | int arg4 ; |
| 7429 | PyObject * obj0 = 0 ; |
| 7430 | PyObject * obj1 = 0 ; |
| 7431 | PyObject * obj2 = 0 ; |
| 7432 | PyObject * obj3 = 0 ; |
| 7433 | char *kwnames[] = { |
| 7434 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL |
| 7435 | }; |
| 7436 | |
| 7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 7438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 7441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7442 | arg3 = (int)SWIG_As_int(obj2); |
| 7443 | if (PyErr_Occurred()) SWIG_fail; |
| 7444 | arg4 = (int)SWIG_As_int(obj3); |
| 7445 | if (PyErr_Occurred()) SWIG_fail; |
| 7446 | { |
| 7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7448 | (arg1)->base_SetAttr(arg2,arg3,arg4); |
| 7449 | |
| 7450 | wxPyEndAllowThreads(__tstate); |
| 7451 | if (PyErr_Occurred()) SWIG_fail; |
| 7452 | } |
| 7453 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7454 | return resultobj; |
| 7455 | fail: |
| 7456 | return NULL; |
| 7457 | } |
| 7458 | |
| 7459 | |
| 7460 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7461 | PyObject *resultobj; |
| 7462 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7463 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 7464 | int arg3 ; |
| 7465 | PyObject * obj0 = 0 ; |
| 7466 | PyObject * obj1 = 0 ; |
| 7467 | PyObject * obj2 = 0 ; |
| 7468 | char *kwnames[] = { |
| 7469 | (char *) "self",(char *) "attr",(char *) "row", NULL |
| 7470 | }; |
| 7471 | |
| 7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7475 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 7476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7477 | arg3 = (int)SWIG_As_int(obj2); |
| 7478 | if (PyErr_Occurred()) SWIG_fail; |
| 7479 | { |
| 7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7481 | (arg1)->base_SetRowAttr(arg2,arg3); |
| 7482 | |
| 7483 | wxPyEndAllowThreads(__tstate); |
| 7484 | if (PyErr_Occurred()) SWIG_fail; |
| 7485 | } |
| 7486 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7487 | return resultobj; |
| 7488 | fail: |
| 7489 | return NULL; |
| 7490 | } |
| 7491 | |
| 7492 | |
| 7493 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7494 | PyObject *resultobj; |
| 7495 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; |
| 7496 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; |
| 7497 | int arg3 ; |
| 7498 | PyObject * obj0 = 0 ; |
| 7499 | PyObject * obj1 = 0 ; |
| 7500 | PyObject * obj2 = 0 ; |
| 7501 | char *kwnames[] = { |
| 7502 | (char *) "self",(char *) "attr",(char *) "col", NULL |
| 7503 | }; |
| 7504 | |
| 7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 7506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
| 7507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, |
| 7509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7510 | arg3 = (int)SWIG_As_int(obj2); |
| 7511 | if (PyErr_Occurred()) SWIG_fail; |
| 7512 | { |
| 7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7514 | (arg1)->base_SetColAttr(arg2,arg3); |
| 7515 | |
| 7516 | wxPyEndAllowThreads(__tstate); |
| 7517 | if (PyErr_Occurred()) SWIG_fail; |
| 7518 | } |
| 7519 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7520 | return resultobj; |
| 7521 | fail: |
| 7522 | return NULL; |
| 7523 | } |
| 7524 | |
| 7525 | |
| 7526 | static PyObject * PyGridTableBase_swigregister(PyObject *, PyObject *args) { |
| 7527 | PyObject *obj; |
| 7528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 7529 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); |
| 7530 | Py_INCREF(obj); |
| 7531 | return Py_BuildValue((char *)""); |
| 7532 | } |
| 7533 | static PyObject *_wrap_new_GridStringTable(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7534 | PyObject *resultobj; |
| 7535 | int arg1 = (int) 0 ; |
| 7536 | int arg2 = (int) 0 ; |
| 7537 | wxGridStringTable *result; |
| 7538 | PyObject * obj0 = 0 ; |
| 7539 | PyObject * obj1 = 0 ; |
| 7540 | char *kwnames[] = { |
| 7541 | (char *) "numRows",(char *) "numCols", NULL |
| 7542 | }; |
| 7543 | |
| 7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; |
| 7545 | if (obj0) { |
| 7546 | arg1 = (int)SWIG_As_int(obj0); |
| 7547 | if (PyErr_Occurred()) SWIG_fail; |
| 7548 | } |
| 7549 | if (obj1) { |
| 7550 | arg2 = (int)SWIG_As_int(obj1); |
| 7551 | if (PyErr_Occurred()) SWIG_fail; |
| 7552 | } |
| 7553 | { |
| 7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7555 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); |
| 7556 | |
| 7557 | wxPyEndAllowThreads(__tstate); |
| 7558 | if (PyErr_Occurred()) SWIG_fail; |
| 7559 | } |
| 7560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1); |
| 7561 | return resultobj; |
| 7562 | fail: |
| 7563 | return NULL; |
| 7564 | } |
| 7565 | |
| 7566 | |
| 7567 | static PyObject * GridStringTable_swigregister(PyObject *, PyObject *args) { |
| 7568 | PyObject *obj; |
| 7569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 7570 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); |
| 7571 | Py_INCREF(obj); |
| 7572 | return Py_BuildValue((char *)""); |
| 7573 | } |
| 7574 | static PyObject *_wrap_new_GridTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7575 | PyObject *resultobj; |
| 7576 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; |
| 7577 | int arg2 ; |
| 7578 | int arg3 = (int) -1 ; |
| 7579 | int arg4 = (int) -1 ; |
| 7580 | wxGridTableMessage *result; |
| 7581 | PyObject * obj0 = 0 ; |
| 7582 | PyObject * obj1 = 0 ; |
| 7583 | PyObject * obj2 = 0 ; |
| 7584 | PyObject * obj3 = 0 ; |
| 7585 | char *kwnames[] = { |
| 7586 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL |
| 7587 | }; |
| 7588 | |
| 7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
| 7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7592 | arg2 = (int)SWIG_As_int(obj1); |
| 7593 | if (PyErr_Occurred()) SWIG_fail; |
| 7594 | if (obj2) { |
| 7595 | arg3 = (int)SWIG_As_int(obj2); |
| 7596 | if (PyErr_Occurred()) SWIG_fail; |
| 7597 | } |
| 7598 | if (obj3) { |
| 7599 | arg4 = (int)SWIG_As_int(obj3); |
| 7600 | if (PyErr_Occurred()) SWIG_fail; |
| 7601 | } |
| 7602 | { |
| 7603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7604 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); |
| 7605 | |
| 7606 | wxPyEndAllowThreads(__tstate); |
| 7607 | if (PyErr_Occurred()) SWIG_fail; |
| 7608 | } |
| 7609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1); |
| 7610 | return resultobj; |
| 7611 | fail: |
| 7612 | return NULL; |
| 7613 | } |
| 7614 | |
| 7615 | |
| 7616 | static PyObject *_wrap_delete_GridTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7617 | PyObject *resultobj; |
| 7618 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7619 | PyObject * obj0 = 0 ; |
| 7620 | char *kwnames[] = { |
| 7621 | (char *) "self", NULL |
| 7622 | }; |
| 7623 | |
| 7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; |
| 7625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7627 | { |
| 7628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7629 | delete arg1; |
| 7630 | |
| 7631 | wxPyEndAllowThreads(__tstate); |
| 7632 | if (PyErr_Occurred()) SWIG_fail; |
| 7633 | } |
| 7634 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7635 | return resultobj; |
| 7636 | fail: |
| 7637 | return NULL; |
| 7638 | } |
| 7639 | |
| 7640 | |
| 7641 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7642 | PyObject *resultobj; |
| 7643 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7644 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; |
| 7645 | PyObject * obj0 = 0 ; |
| 7646 | PyObject * obj1 = 0 ; |
| 7647 | char *kwnames[] = { |
| 7648 | (char *) "self",(char *) "table", NULL |
| 7649 | }; |
| 7650 | |
| 7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; |
| 7652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, |
| 7655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7656 | { |
| 7657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7658 | (arg1)->SetTableObject(arg2); |
| 7659 | |
| 7660 | wxPyEndAllowThreads(__tstate); |
| 7661 | if (PyErr_Occurred()) SWIG_fail; |
| 7662 | } |
| 7663 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7664 | return resultobj; |
| 7665 | fail: |
| 7666 | return NULL; |
| 7667 | } |
| 7668 | |
| 7669 | |
| 7670 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7671 | PyObject *resultobj; |
| 7672 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7673 | wxGridTableBase *result; |
| 7674 | PyObject * obj0 = 0 ; |
| 7675 | char *kwnames[] = { |
| 7676 | (char *) "self", NULL |
| 7677 | }; |
| 7678 | |
| 7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; |
| 7680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7682 | { |
| 7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7684 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); |
| 7685 | |
| 7686 | wxPyEndAllowThreads(__tstate); |
| 7687 | if (PyErr_Occurred()) SWIG_fail; |
| 7688 | } |
| 7689 | { |
| 7690 | resultobj = wxPyMake_wxGridTableBase(result, 0); |
| 7691 | } |
| 7692 | return resultobj; |
| 7693 | fail: |
| 7694 | return NULL; |
| 7695 | } |
| 7696 | |
| 7697 | |
| 7698 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7699 | PyObject *resultobj; |
| 7700 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7701 | int arg2 ; |
| 7702 | PyObject * obj0 = 0 ; |
| 7703 | PyObject * obj1 = 0 ; |
| 7704 | char *kwnames[] = { |
| 7705 | (char *) "self",(char *) "id", NULL |
| 7706 | }; |
| 7707 | |
| 7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; |
| 7709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7711 | arg2 = (int)SWIG_As_int(obj1); |
| 7712 | if (PyErr_Occurred()) SWIG_fail; |
| 7713 | { |
| 7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7715 | (arg1)->SetId(arg2); |
| 7716 | |
| 7717 | wxPyEndAllowThreads(__tstate); |
| 7718 | if (PyErr_Occurred()) SWIG_fail; |
| 7719 | } |
| 7720 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7721 | return resultobj; |
| 7722 | fail: |
| 7723 | return NULL; |
| 7724 | } |
| 7725 | |
| 7726 | |
| 7727 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7728 | PyObject *resultobj; |
| 7729 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7730 | int result; |
| 7731 | PyObject * obj0 = 0 ; |
| 7732 | char *kwnames[] = { |
| 7733 | (char *) "self", NULL |
| 7734 | }; |
| 7735 | |
| 7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; |
| 7737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7739 | { |
| 7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7741 | result = (int)(arg1)->GetId(); |
| 7742 | |
| 7743 | wxPyEndAllowThreads(__tstate); |
| 7744 | if (PyErr_Occurred()) SWIG_fail; |
| 7745 | } |
| 7746 | resultobj = SWIG_From_int((int)result); |
| 7747 | return resultobj; |
| 7748 | fail: |
| 7749 | return NULL; |
| 7750 | } |
| 7751 | |
| 7752 | |
| 7753 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7754 | PyObject *resultobj; |
| 7755 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7756 | int arg2 ; |
| 7757 | PyObject * obj0 = 0 ; |
| 7758 | PyObject * obj1 = 0 ; |
| 7759 | char *kwnames[] = { |
| 7760 | (char *) "self",(char *) "comInt1", NULL |
| 7761 | }; |
| 7762 | |
| 7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; |
| 7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7766 | arg2 = (int)SWIG_As_int(obj1); |
| 7767 | if (PyErr_Occurred()) SWIG_fail; |
| 7768 | { |
| 7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7770 | (arg1)->SetCommandInt(arg2); |
| 7771 | |
| 7772 | wxPyEndAllowThreads(__tstate); |
| 7773 | if (PyErr_Occurred()) SWIG_fail; |
| 7774 | } |
| 7775 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7776 | return resultobj; |
| 7777 | fail: |
| 7778 | return NULL; |
| 7779 | } |
| 7780 | |
| 7781 | |
| 7782 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7783 | PyObject *resultobj; |
| 7784 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7785 | int result; |
| 7786 | PyObject * obj0 = 0 ; |
| 7787 | char *kwnames[] = { |
| 7788 | (char *) "self", NULL |
| 7789 | }; |
| 7790 | |
| 7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; |
| 7792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7794 | { |
| 7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7796 | result = (int)(arg1)->GetCommandInt(); |
| 7797 | |
| 7798 | wxPyEndAllowThreads(__tstate); |
| 7799 | if (PyErr_Occurred()) SWIG_fail; |
| 7800 | } |
| 7801 | resultobj = SWIG_From_int((int)result); |
| 7802 | return resultobj; |
| 7803 | fail: |
| 7804 | return NULL; |
| 7805 | } |
| 7806 | |
| 7807 | |
| 7808 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7809 | PyObject *resultobj; |
| 7810 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7811 | int arg2 ; |
| 7812 | PyObject * obj0 = 0 ; |
| 7813 | PyObject * obj1 = 0 ; |
| 7814 | char *kwnames[] = { |
| 7815 | (char *) "self",(char *) "comInt2", NULL |
| 7816 | }; |
| 7817 | |
| 7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; |
| 7819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7821 | arg2 = (int)SWIG_As_int(obj1); |
| 7822 | if (PyErr_Occurred()) SWIG_fail; |
| 7823 | { |
| 7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7825 | (arg1)->SetCommandInt2(arg2); |
| 7826 | |
| 7827 | wxPyEndAllowThreads(__tstate); |
| 7828 | if (PyErr_Occurred()) SWIG_fail; |
| 7829 | } |
| 7830 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7831 | return resultobj; |
| 7832 | fail: |
| 7833 | return NULL; |
| 7834 | } |
| 7835 | |
| 7836 | |
| 7837 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7838 | PyObject *resultobj; |
| 7839 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; |
| 7840 | int result; |
| 7841 | PyObject * obj0 = 0 ; |
| 7842 | char *kwnames[] = { |
| 7843 | (char *) "self", NULL |
| 7844 | }; |
| 7845 | |
| 7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; |
| 7847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
| 7848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7849 | { |
| 7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7851 | result = (int)(arg1)->GetCommandInt2(); |
| 7852 | |
| 7853 | wxPyEndAllowThreads(__tstate); |
| 7854 | if (PyErr_Occurred()) SWIG_fail; |
| 7855 | } |
| 7856 | resultobj = SWIG_From_int((int)result); |
| 7857 | return resultobj; |
| 7858 | fail: |
| 7859 | return NULL; |
| 7860 | } |
| 7861 | |
| 7862 | |
| 7863 | static PyObject * GridTableMessage_swigregister(PyObject *, PyObject *args) { |
| 7864 | PyObject *obj; |
| 7865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 7866 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); |
| 7867 | Py_INCREF(obj); |
| 7868 | return Py_BuildValue((char *)""); |
| 7869 | } |
| 7870 | static PyObject *_wrap_new_GridCellCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7871 | PyObject *resultobj; |
| 7872 | int arg1 = (int) -1 ; |
| 7873 | int arg2 = (int) -1 ; |
| 7874 | wxGridCellCoords *result; |
| 7875 | PyObject * obj0 = 0 ; |
| 7876 | PyObject * obj1 = 0 ; |
| 7877 | char *kwnames[] = { |
| 7878 | (char *) "r",(char *) "c", NULL |
| 7879 | }; |
| 7880 | |
| 7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; |
| 7882 | if (obj0) { |
| 7883 | arg1 = (int)SWIG_As_int(obj0); |
| 7884 | if (PyErr_Occurred()) SWIG_fail; |
| 7885 | } |
| 7886 | if (obj1) { |
| 7887 | arg2 = (int)SWIG_As_int(obj1); |
| 7888 | if (PyErr_Occurred()) SWIG_fail; |
| 7889 | } |
| 7890 | { |
| 7891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7892 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); |
| 7893 | |
| 7894 | wxPyEndAllowThreads(__tstate); |
| 7895 | if (PyErr_Occurred()) SWIG_fail; |
| 7896 | } |
| 7897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1); |
| 7898 | return resultobj; |
| 7899 | fail: |
| 7900 | return NULL; |
| 7901 | } |
| 7902 | |
| 7903 | |
| 7904 | static PyObject *_wrap_delete_GridCellCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7905 | PyObject *resultobj; |
| 7906 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 7907 | PyObject * obj0 = 0 ; |
| 7908 | char *kwnames[] = { |
| 7909 | (char *) "self", NULL |
| 7910 | }; |
| 7911 | |
| 7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; |
| 7913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7915 | { |
| 7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7917 | delete arg1; |
| 7918 | |
| 7919 | wxPyEndAllowThreads(__tstate); |
| 7920 | if (PyErr_Occurred()) SWIG_fail; |
| 7921 | } |
| 7922 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7923 | return resultobj; |
| 7924 | fail: |
| 7925 | return NULL; |
| 7926 | } |
| 7927 | |
| 7928 | |
| 7929 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7930 | PyObject *resultobj; |
| 7931 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 7932 | int result; |
| 7933 | PyObject * obj0 = 0 ; |
| 7934 | char *kwnames[] = { |
| 7935 | (char *) "self", NULL |
| 7936 | }; |
| 7937 | |
| 7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; |
| 7939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 7940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7941 | { |
| 7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7943 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); |
| 7944 | |
| 7945 | wxPyEndAllowThreads(__tstate); |
| 7946 | if (PyErr_Occurred()) SWIG_fail; |
| 7947 | } |
| 7948 | resultobj = SWIG_From_int((int)result); |
| 7949 | return resultobj; |
| 7950 | fail: |
| 7951 | return NULL; |
| 7952 | } |
| 7953 | |
| 7954 | |
| 7955 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7956 | PyObject *resultobj; |
| 7957 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 7958 | int arg2 ; |
| 7959 | PyObject * obj0 = 0 ; |
| 7960 | PyObject * obj1 = 0 ; |
| 7961 | char *kwnames[] = { |
| 7962 | (char *) "self",(char *) "n", NULL |
| 7963 | }; |
| 7964 | |
| 7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; |
| 7966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 7967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 7968 | arg2 = (int)SWIG_As_int(obj1); |
| 7969 | if (PyErr_Occurred()) SWIG_fail; |
| 7970 | { |
| 7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7972 | (arg1)->SetRow(arg2); |
| 7973 | |
| 7974 | wxPyEndAllowThreads(__tstate); |
| 7975 | if (PyErr_Occurred()) SWIG_fail; |
| 7976 | } |
| 7977 | Py_INCREF(Py_None); resultobj = Py_None; |
| 7978 | return resultobj; |
| 7979 | fail: |
| 7980 | return NULL; |
| 7981 | } |
| 7982 | |
| 7983 | |
| 7984 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 7985 | PyObject *resultobj; |
| 7986 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 7987 | int result; |
| 7988 | PyObject * obj0 = 0 ; |
| 7989 | char *kwnames[] = { |
| 7990 | (char *) "self", NULL |
| 7991 | }; |
| 7992 | |
| 7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",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 = (int)((wxGridCellCoords const *)arg1)->GetCol(); |
| 7999 | |
| 8000 | wxPyEndAllowThreads(__tstate); |
| 8001 | if (PyErr_Occurred()) SWIG_fail; |
| 8002 | } |
| 8003 | resultobj = SWIG_From_int((int)result); |
| 8004 | return resultobj; |
| 8005 | fail: |
| 8006 | return NULL; |
| 8007 | } |
| 8008 | |
| 8009 | |
| 8010 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8011 | PyObject *resultobj; |
| 8012 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 8013 | int arg2 ; |
| 8014 | PyObject * obj0 = 0 ; |
| 8015 | PyObject * obj1 = 0 ; |
| 8016 | char *kwnames[] = { |
| 8017 | (char *) "self",(char *) "n", NULL |
| 8018 | }; |
| 8019 | |
| 8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; |
| 8021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 8022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8023 | arg2 = (int)SWIG_As_int(obj1); |
| 8024 | if (PyErr_Occurred()) SWIG_fail; |
| 8025 | { |
| 8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8027 | (arg1)->SetCol(arg2); |
| 8028 | |
| 8029 | wxPyEndAllowThreads(__tstate); |
| 8030 | if (PyErr_Occurred()) SWIG_fail; |
| 8031 | } |
| 8032 | Py_INCREF(Py_None); resultobj = Py_None; |
| 8033 | return resultobj; |
| 8034 | fail: |
| 8035 | return NULL; |
| 8036 | } |
| 8037 | |
| 8038 | |
| 8039 | static PyObject *_wrap_GridCellCoords_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8040 | PyObject *resultobj; |
| 8041 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 8042 | int arg2 ; |
| 8043 | int arg3 ; |
| 8044 | PyObject * obj0 = 0 ; |
| 8045 | PyObject * obj1 = 0 ; |
| 8046 | PyObject * obj2 = 0 ; |
| 8047 | char *kwnames[] = { |
| 8048 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 8049 | }; |
| 8050 | |
| 8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 8052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 8053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8054 | arg2 = (int)SWIG_As_int(obj1); |
| 8055 | if (PyErr_Occurred()) SWIG_fail; |
| 8056 | arg3 = (int)SWIG_As_int(obj2); |
| 8057 | if (PyErr_Occurred()) SWIG_fail; |
| 8058 | { |
| 8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8060 | (arg1)->Set(arg2,arg3); |
| 8061 | |
| 8062 | wxPyEndAllowThreads(__tstate); |
| 8063 | if (PyErr_Occurred()) SWIG_fail; |
| 8064 | } |
| 8065 | Py_INCREF(Py_None); resultobj = Py_None; |
| 8066 | return resultobj; |
| 8067 | fail: |
| 8068 | return NULL; |
| 8069 | } |
| 8070 | |
| 8071 | |
| 8072 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8073 | PyObject *resultobj; |
| 8074 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 8075 | wxGridCellCoords *arg2 = 0 ; |
| 8076 | bool result; |
| 8077 | wxGridCellCoords temp2 ; |
| 8078 | PyObject * obj0 = 0 ; |
| 8079 | PyObject * obj1 = 0 ; |
| 8080 | char *kwnames[] = { |
| 8081 | (char *) "self",(char *) "other", NULL |
| 8082 | }; |
| 8083 | |
| 8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; |
| 8085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 8086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8087 | { |
| 8088 | arg2 = &temp2; |
| 8089 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; |
| 8090 | } |
| 8091 | { |
| 8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8093 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); |
| 8094 | |
| 8095 | wxPyEndAllowThreads(__tstate); |
| 8096 | if (PyErr_Occurred()) SWIG_fail; |
| 8097 | } |
| 8098 | { |
| 8099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8100 | } |
| 8101 | return resultobj; |
| 8102 | fail: |
| 8103 | return NULL; |
| 8104 | } |
| 8105 | |
| 8106 | |
| 8107 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8108 | PyObject *resultobj; |
| 8109 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 8110 | wxGridCellCoords *arg2 = 0 ; |
| 8111 | bool result; |
| 8112 | wxGridCellCoords temp2 ; |
| 8113 | PyObject * obj0 = 0 ; |
| 8114 | PyObject * obj1 = 0 ; |
| 8115 | char *kwnames[] = { |
| 8116 | (char *) "self",(char *) "other", NULL |
| 8117 | }; |
| 8118 | |
| 8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; |
| 8120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 8121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8122 | { |
| 8123 | arg2 = &temp2; |
| 8124 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; |
| 8125 | } |
| 8126 | { |
| 8127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8128 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); |
| 8129 | |
| 8130 | wxPyEndAllowThreads(__tstate); |
| 8131 | if (PyErr_Occurred()) SWIG_fail; |
| 8132 | } |
| 8133 | { |
| 8134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8135 | } |
| 8136 | return resultobj; |
| 8137 | fail: |
| 8138 | return NULL; |
| 8139 | } |
| 8140 | |
| 8141 | |
| 8142 | static PyObject *_wrap_GridCellCoords_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8143 | PyObject *resultobj; |
| 8144 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; |
| 8145 | PyObject *result; |
| 8146 | PyObject * obj0 = 0 ; |
| 8147 | char *kwnames[] = { |
| 8148 | (char *) "self", NULL |
| 8149 | }; |
| 8150 | |
| 8151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_Get",kwnames,&obj0)) goto fail; |
| 8152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
| 8153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8154 | { |
| 8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8156 | result = (PyObject *)wxGridCellCoords_Get(arg1); |
| 8157 | |
| 8158 | wxPyEndAllowThreads(__tstate); |
| 8159 | if (PyErr_Occurred()) SWIG_fail; |
| 8160 | } |
| 8161 | resultobj = result; |
| 8162 | return resultobj; |
| 8163 | fail: |
| 8164 | return NULL; |
| 8165 | } |
| 8166 | |
| 8167 | |
| 8168 | static PyObject * GridCellCoords_swigregister(PyObject *, PyObject *args) { |
| 8169 | PyObject *obj; |
| 8170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 8171 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); |
| 8172 | Py_INCREF(obj); |
| 8173 | return Py_BuildValue((char *)""); |
| 8174 | } |
| 8175 | static PyObject *_wrap_new_Grid(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8176 | PyObject *resultobj; |
| 8177 | wxWindow *arg1 = (wxWindow *) 0 ; |
| 8178 | int arg2 = (int) -1 ; |
| 8179 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
| 8180 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; |
| 8181 | wxSize const &arg4_defvalue = wxDefaultSize ; |
| 8182 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; |
| 8183 | long arg5 = (long) wxWANTS_CHARS ; |
| 8184 | wxString const &arg6_defvalue = wxPyPanelNameStr ; |
| 8185 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
| 8186 | wxGrid *result; |
| 8187 | wxPoint temp3 ; |
| 8188 | wxSize temp4 ; |
| 8189 | bool temp6 = false ; |
| 8190 | PyObject * obj0 = 0 ; |
| 8191 | PyObject * obj1 = 0 ; |
| 8192 | PyObject * obj2 = 0 ; |
| 8193 | PyObject * obj3 = 0 ; |
| 8194 | PyObject * obj4 = 0 ; |
| 8195 | PyObject * obj5 = 0 ; |
| 8196 | char *kwnames[] = { |
| 8197 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
| 8198 | }; |
| 8199 | |
| 8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
| 8201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
| 8202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8203 | if (obj1) { |
| 8204 | arg2 = (int)SWIG_As_int(obj1); |
| 8205 | if (PyErr_Occurred()) SWIG_fail; |
| 8206 | } |
| 8207 | if (obj2) { |
| 8208 | { |
| 8209 | arg3 = &temp3; |
| 8210 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; |
| 8211 | } |
| 8212 | } |
| 8213 | if (obj3) { |
| 8214 | { |
| 8215 | arg4 = &temp4; |
| 8216 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; |
| 8217 | } |
| 8218 | } |
| 8219 | if (obj4) { |
| 8220 | arg5 = (long)SWIG_As_long(obj4); |
| 8221 | if (PyErr_Occurred()) SWIG_fail; |
| 8222 | } |
| 8223 | if (obj5) { |
| 8224 | { |
| 8225 | arg6 = wxString_in_helper(obj5); |
| 8226 | if (arg6 == NULL) SWIG_fail; |
| 8227 | temp6 = true; |
| 8228 | } |
| 8229 | } |
| 8230 | { |
| 8231 | if (!wxPyCheckForApp()) SWIG_fail; |
| 8232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8233 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); |
| 8234 | |
| 8235 | wxPyEndAllowThreads(__tstate); |
| 8236 | if (PyErr_Occurred()) SWIG_fail; |
| 8237 | } |
| 8238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGrid, 1); |
| 8239 | { |
| 8240 | if (temp6) |
| 8241 | delete arg6; |
| 8242 | } |
| 8243 | return resultobj; |
| 8244 | fail: |
| 8245 | { |
| 8246 | if (temp6) |
| 8247 | delete arg6; |
| 8248 | } |
| 8249 | return NULL; |
| 8250 | } |
| 8251 | |
| 8252 | |
| 8253 | static PyObject *_wrap_new_PreGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8254 | PyObject *resultobj; |
| 8255 | wxGrid *result; |
| 8256 | char *kwnames[] = { |
| 8257 | NULL |
| 8258 | }; |
| 8259 | |
| 8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGrid",kwnames)) goto fail; |
| 8261 | { |
| 8262 | if (!wxPyCheckForApp()) SWIG_fail; |
| 8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8264 | result = (wxGrid *)new wxGrid(); |
| 8265 | |
| 8266 | wxPyEndAllowThreads(__tstate); |
| 8267 | if (PyErr_Occurred()) SWIG_fail; |
| 8268 | } |
| 8269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGrid, 1); |
| 8270 | return resultobj; |
| 8271 | fail: |
| 8272 | return NULL; |
| 8273 | } |
| 8274 | |
| 8275 | |
| 8276 | static PyObject *_wrap_Grid_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8277 | PyObject *resultobj; |
| 8278 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8279 | wxWindow *arg2 = (wxWindow *) 0 ; |
| 8280 | int arg3 = (int) -1 ; |
| 8281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
| 8282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; |
| 8283 | wxSize const &arg5_defvalue = wxDefaultSize ; |
| 8284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; |
| 8285 | long arg6 = (long) wxWANTS_CHARS ; |
| 8286 | wxString const &arg7_defvalue = wxPyPanelNameStr ; |
| 8287 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
| 8288 | bool result; |
| 8289 | wxPoint temp4 ; |
| 8290 | wxSize temp5 ; |
| 8291 | bool temp7 = false ; |
| 8292 | PyObject * obj0 = 0 ; |
| 8293 | PyObject * obj1 = 0 ; |
| 8294 | PyObject * obj2 = 0 ; |
| 8295 | PyObject * obj3 = 0 ; |
| 8296 | PyObject * obj4 = 0 ; |
| 8297 | PyObject * obj5 = 0 ; |
| 8298 | PyObject * obj6 = 0 ; |
| 8299 | char *kwnames[] = { |
| 8300 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
| 8301 | }; |
| 8302 | |
| 8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Grid_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
| 8304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
| 8307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8308 | if (obj2) { |
| 8309 | arg3 = (int)SWIG_As_int(obj2); |
| 8310 | if (PyErr_Occurred()) SWIG_fail; |
| 8311 | } |
| 8312 | if (obj3) { |
| 8313 | { |
| 8314 | arg4 = &temp4; |
| 8315 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; |
| 8316 | } |
| 8317 | } |
| 8318 | if (obj4) { |
| 8319 | { |
| 8320 | arg5 = &temp5; |
| 8321 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; |
| 8322 | } |
| 8323 | } |
| 8324 | if (obj5) { |
| 8325 | arg6 = (long)SWIG_As_long(obj5); |
| 8326 | if (PyErr_Occurred()) SWIG_fail; |
| 8327 | } |
| 8328 | if (obj6) { |
| 8329 | { |
| 8330 | arg7 = wxString_in_helper(obj6); |
| 8331 | if (arg7 == NULL) SWIG_fail; |
| 8332 | temp7 = true; |
| 8333 | } |
| 8334 | } |
| 8335 | { |
| 8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8337 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); |
| 8338 | |
| 8339 | wxPyEndAllowThreads(__tstate); |
| 8340 | if (PyErr_Occurred()) SWIG_fail; |
| 8341 | } |
| 8342 | { |
| 8343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8344 | } |
| 8345 | { |
| 8346 | if (temp7) |
| 8347 | delete arg7; |
| 8348 | } |
| 8349 | return resultobj; |
| 8350 | fail: |
| 8351 | { |
| 8352 | if (temp7) |
| 8353 | delete arg7; |
| 8354 | } |
| 8355 | return NULL; |
| 8356 | } |
| 8357 | |
| 8358 | |
| 8359 | static PyObject *_wrap_Grid_CreateGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8360 | PyObject *resultobj; |
| 8361 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8362 | int arg2 ; |
| 8363 | int arg3 ; |
| 8364 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; |
| 8365 | bool result; |
| 8366 | PyObject * obj0 = 0 ; |
| 8367 | PyObject * obj1 = 0 ; |
| 8368 | PyObject * obj2 = 0 ; |
| 8369 | PyObject * obj3 = 0 ; |
| 8370 | char *kwnames[] = { |
| 8371 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL |
| 8372 | }; |
| 8373 | |
| 8374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8377 | arg2 = (int)SWIG_As_int(obj1); |
| 8378 | if (PyErr_Occurred()) SWIG_fail; |
| 8379 | arg3 = (int)SWIG_As_int(obj2); |
| 8380 | if (PyErr_Occurred()) SWIG_fail; |
| 8381 | if (obj3) { |
| 8382 | arg4 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj3); |
| 8383 | if (PyErr_Occurred()) SWIG_fail; |
| 8384 | } |
| 8385 | { |
| 8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8387 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); |
| 8388 | |
| 8389 | wxPyEndAllowThreads(__tstate); |
| 8390 | if (PyErr_Occurred()) SWIG_fail; |
| 8391 | } |
| 8392 | { |
| 8393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8394 | } |
| 8395 | return resultobj; |
| 8396 | fail: |
| 8397 | return NULL; |
| 8398 | } |
| 8399 | |
| 8400 | |
| 8401 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8402 | PyObject *resultobj; |
| 8403 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8404 | WXGRIDSELECTIONMODES arg2 ; |
| 8405 | PyObject * obj0 = 0 ; |
| 8406 | PyObject * obj1 = 0 ; |
| 8407 | char *kwnames[] = { |
| 8408 | (char *) "self",(char *) "selmode", NULL |
| 8409 | }; |
| 8410 | |
| 8411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; |
| 8412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8414 | arg2 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj1); |
| 8415 | if (PyErr_Occurred()) SWIG_fail; |
| 8416 | { |
| 8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8418 | (arg1)->SetSelectionMode(arg2); |
| 8419 | |
| 8420 | wxPyEndAllowThreads(__tstate); |
| 8421 | if (PyErr_Occurred()) SWIG_fail; |
| 8422 | } |
| 8423 | Py_INCREF(Py_None); resultobj = Py_None; |
| 8424 | return resultobj; |
| 8425 | fail: |
| 8426 | return NULL; |
| 8427 | } |
| 8428 | |
| 8429 | |
| 8430 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8431 | PyObject *resultobj; |
| 8432 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8433 | WXGRIDSELECTIONMODES result; |
| 8434 | PyObject * obj0 = 0 ; |
| 8435 | char *kwnames[] = { |
| 8436 | (char *) "self", NULL |
| 8437 | }; |
| 8438 | |
| 8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; |
| 8440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8442 | { |
| 8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8444 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); |
| 8445 | |
| 8446 | wxPyEndAllowThreads(__tstate); |
| 8447 | if (PyErr_Occurred()) SWIG_fail; |
| 8448 | } |
| 8449 | resultobj = SWIG_From_int((int)result); |
| 8450 | return resultobj; |
| 8451 | fail: |
| 8452 | return NULL; |
| 8453 | } |
| 8454 | |
| 8455 | |
| 8456 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8457 | PyObject *resultobj; |
| 8458 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8459 | int result; |
| 8460 | PyObject * obj0 = 0 ; |
| 8461 | char *kwnames[] = { |
| 8462 | (char *) "self", NULL |
| 8463 | }; |
| 8464 | |
| 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; |
| 8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8468 | { |
| 8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8470 | result = (int)(arg1)->GetNumberRows(); |
| 8471 | |
| 8472 | wxPyEndAllowThreads(__tstate); |
| 8473 | if (PyErr_Occurred()) SWIG_fail; |
| 8474 | } |
| 8475 | resultobj = SWIG_From_int((int)result); |
| 8476 | return resultobj; |
| 8477 | fail: |
| 8478 | return NULL; |
| 8479 | } |
| 8480 | |
| 8481 | |
| 8482 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8483 | PyObject *resultobj; |
| 8484 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8485 | int result; |
| 8486 | PyObject * obj0 = 0 ; |
| 8487 | char *kwnames[] = { |
| 8488 | (char *) "self", NULL |
| 8489 | }; |
| 8490 | |
| 8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; |
| 8492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8494 | { |
| 8495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8496 | result = (int)(arg1)->GetNumberCols(); |
| 8497 | |
| 8498 | wxPyEndAllowThreads(__tstate); |
| 8499 | if (PyErr_Occurred()) SWIG_fail; |
| 8500 | } |
| 8501 | resultobj = SWIG_From_int((int)result); |
| 8502 | return resultobj; |
| 8503 | fail: |
| 8504 | return NULL; |
| 8505 | } |
| 8506 | |
| 8507 | |
| 8508 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8509 | PyObject *resultobj; |
| 8510 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8511 | wxGridTableMessage *arg2 = 0 ; |
| 8512 | bool result; |
| 8513 | PyObject * obj0 = 0 ; |
| 8514 | PyObject * obj1 = 0 ; |
| 8515 | char *kwnames[] = { |
| 8516 | (char *) "self","arg2", NULL |
| 8517 | }; |
| 8518 | |
| 8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; |
| 8520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage, |
| 8523 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 8524 | SWIG_fail; |
| 8525 | if (arg2 == NULL) { |
| 8526 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 8527 | SWIG_fail; |
| 8528 | } |
| 8529 | { |
| 8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8531 | result = (bool)(arg1)->ProcessTableMessage(*arg2); |
| 8532 | |
| 8533 | wxPyEndAllowThreads(__tstate); |
| 8534 | if (PyErr_Occurred()) SWIG_fail; |
| 8535 | } |
| 8536 | { |
| 8537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8538 | } |
| 8539 | return resultobj; |
| 8540 | fail: |
| 8541 | return NULL; |
| 8542 | } |
| 8543 | |
| 8544 | |
| 8545 | static PyObject *_wrap_Grid_GetTable(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8546 | PyObject *resultobj; |
| 8547 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8548 | wxGridTableBase *result; |
| 8549 | PyObject * obj0 = 0 ; |
| 8550 | char *kwnames[] = { |
| 8551 | (char *) "self", NULL |
| 8552 | }; |
| 8553 | |
| 8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; |
| 8555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8557 | { |
| 8558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8559 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); |
| 8560 | |
| 8561 | wxPyEndAllowThreads(__tstate); |
| 8562 | if (PyErr_Occurred()) SWIG_fail; |
| 8563 | } |
| 8564 | { |
| 8565 | resultobj = wxPyMake_wxGridTableBase(result, 0); |
| 8566 | } |
| 8567 | return resultobj; |
| 8568 | fail: |
| 8569 | return NULL; |
| 8570 | } |
| 8571 | |
| 8572 | |
| 8573 | static PyObject *_wrap_Grid_SetTable(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8574 | PyObject *resultobj; |
| 8575 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8576 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; |
| 8577 | bool arg3 = (bool) false ; |
| 8578 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; |
| 8579 | bool result; |
| 8580 | PyObject * obj0 = 0 ; |
| 8581 | PyObject * obj1 = 0 ; |
| 8582 | PyObject * obj2 = 0 ; |
| 8583 | PyObject * obj3 = 0 ; |
| 8584 | char *kwnames[] = { |
| 8585 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL |
| 8586 | }; |
| 8587 | |
| 8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, |
| 8592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8593 | if (obj2) { |
| 8594 | arg3 = (bool)SWIG_As_bool(obj2); |
| 8595 | if (PyErr_Occurred()) SWIG_fail; |
| 8596 | } |
| 8597 | if (obj3) { |
| 8598 | arg4 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj3); |
| 8599 | if (PyErr_Occurred()) SWIG_fail; |
| 8600 | } |
| 8601 | { |
| 8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8603 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); |
| 8604 | |
| 8605 | wxPyEndAllowThreads(__tstate); |
| 8606 | if (PyErr_Occurred()) SWIG_fail; |
| 8607 | } |
| 8608 | { |
| 8609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8610 | } |
| 8611 | return resultobj; |
| 8612 | fail: |
| 8613 | return NULL; |
| 8614 | } |
| 8615 | |
| 8616 | |
| 8617 | static PyObject *_wrap_Grid_ClearGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8618 | PyObject *resultobj; |
| 8619 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8620 | PyObject * obj0 = 0 ; |
| 8621 | char *kwnames[] = { |
| 8622 | (char *) "self", NULL |
| 8623 | }; |
| 8624 | |
| 8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; |
| 8626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8628 | { |
| 8629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8630 | (arg1)->ClearGrid(); |
| 8631 | |
| 8632 | wxPyEndAllowThreads(__tstate); |
| 8633 | if (PyErr_Occurred()) SWIG_fail; |
| 8634 | } |
| 8635 | Py_INCREF(Py_None); resultobj = Py_None; |
| 8636 | return resultobj; |
| 8637 | fail: |
| 8638 | return NULL; |
| 8639 | } |
| 8640 | |
| 8641 | |
| 8642 | static PyObject *_wrap_Grid_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8643 | PyObject *resultobj; |
| 8644 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8645 | int arg2 = (int) 0 ; |
| 8646 | int arg3 = (int) 1 ; |
| 8647 | bool arg4 = (bool) true ; |
| 8648 | bool result; |
| 8649 | PyObject * obj0 = 0 ; |
| 8650 | PyObject * obj1 = 0 ; |
| 8651 | PyObject * obj2 = 0 ; |
| 8652 | PyObject * obj3 = 0 ; |
| 8653 | char *kwnames[] = { |
| 8654 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL |
| 8655 | }; |
| 8656 | |
| 8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8660 | if (obj1) { |
| 8661 | arg2 = (int)SWIG_As_int(obj1); |
| 8662 | if (PyErr_Occurred()) SWIG_fail; |
| 8663 | } |
| 8664 | if (obj2) { |
| 8665 | arg3 = (int)SWIG_As_int(obj2); |
| 8666 | if (PyErr_Occurred()) SWIG_fail; |
| 8667 | } |
| 8668 | if (obj3) { |
| 8669 | arg4 = (bool)SWIG_As_bool(obj3); |
| 8670 | if (PyErr_Occurred()) SWIG_fail; |
| 8671 | } |
| 8672 | { |
| 8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8674 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); |
| 8675 | |
| 8676 | wxPyEndAllowThreads(__tstate); |
| 8677 | if (PyErr_Occurred()) SWIG_fail; |
| 8678 | } |
| 8679 | { |
| 8680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8681 | } |
| 8682 | return resultobj; |
| 8683 | fail: |
| 8684 | return NULL; |
| 8685 | } |
| 8686 | |
| 8687 | |
| 8688 | static PyObject *_wrap_Grid_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8689 | PyObject *resultobj; |
| 8690 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8691 | int arg2 = (int) 1 ; |
| 8692 | bool arg3 = (bool) true ; |
| 8693 | bool result; |
| 8694 | PyObject * obj0 = 0 ; |
| 8695 | PyObject * obj1 = 0 ; |
| 8696 | PyObject * obj2 = 0 ; |
| 8697 | char *kwnames[] = { |
| 8698 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL |
| 8699 | }; |
| 8700 | |
| 8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 8702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8704 | if (obj1) { |
| 8705 | arg2 = (int)SWIG_As_int(obj1); |
| 8706 | if (PyErr_Occurred()) SWIG_fail; |
| 8707 | } |
| 8708 | if (obj2) { |
| 8709 | arg3 = (bool)SWIG_As_bool(obj2); |
| 8710 | if (PyErr_Occurred()) SWIG_fail; |
| 8711 | } |
| 8712 | { |
| 8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8714 | result = (bool)(arg1)->AppendRows(arg2,arg3); |
| 8715 | |
| 8716 | wxPyEndAllowThreads(__tstate); |
| 8717 | if (PyErr_Occurred()) SWIG_fail; |
| 8718 | } |
| 8719 | { |
| 8720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8721 | } |
| 8722 | return resultobj; |
| 8723 | fail: |
| 8724 | return NULL; |
| 8725 | } |
| 8726 | |
| 8727 | |
| 8728 | static PyObject *_wrap_Grid_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8729 | PyObject *resultobj; |
| 8730 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8731 | int arg2 = (int) 0 ; |
| 8732 | int arg3 = (int) 1 ; |
| 8733 | bool arg4 = (bool) true ; |
| 8734 | bool result; |
| 8735 | PyObject * obj0 = 0 ; |
| 8736 | PyObject * obj1 = 0 ; |
| 8737 | PyObject * obj2 = 0 ; |
| 8738 | PyObject * obj3 = 0 ; |
| 8739 | char *kwnames[] = { |
| 8740 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL |
| 8741 | }; |
| 8742 | |
| 8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8746 | if (obj1) { |
| 8747 | arg2 = (int)SWIG_As_int(obj1); |
| 8748 | if (PyErr_Occurred()) SWIG_fail; |
| 8749 | } |
| 8750 | if (obj2) { |
| 8751 | arg3 = (int)SWIG_As_int(obj2); |
| 8752 | if (PyErr_Occurred()) SWIG_fail; |
| 8753 | } |
| 8754 | if (obj3) { |
| 8755 | arg4 = (bool)SWIG_As_bool(obj3); |
| 8756 | if (PyErr_Occurred()) SWIG_fail; |
| 8757 | } |
| 8758 | { |
| 8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8760 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); |
| 8761 | |
| 8762 | wxPyEndAllowThreads(__tstate); |
| 8763 | if (PyErr_Occurred()) SWIG_fail; |
| 8764 | } |
| 8765 | { |
| 8766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8767 | } |
| 8768 | return resultobj; |
| 8769 | fail: |
| 8770 | return NULL; |
| 8771 | } |
| 8772 | |
| 8773 | |
| 8774 | static PyObject *_wrap_Grid_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8775 | PyObject *resultobj; |
| 8776 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8777 | int arg2 = (int) 0 ; |
| 8778 | int arg3 = (int) 1 ; |
| 8779 | bool arg4 = (bool) true ; |
| 8780 | bool result; |
| 8781 | PyObject * obj0 = 0 ; |
| 8782 | PyObject * obj1 = 0 ; |
| 8783 | PyObject * obj2 = 0 ; |
| 8784 | PyObject * obj3 = 0 ; |
| 8785 | char *kwnames[] = { |
| 8786 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL |
| 8787 | }; |
| 8788 | |
| 8789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8792 | if (obj1) { |
| 8793 | arg2 = (int)SWIG_As_int(obj1); |
| 8794 | if (PyErr_Occurred()) SWIG_fail; |
| 8795 | } |
| 8796 | if (obj2) { |
| 8797 | arg3 = (int)SWIG_As_int(obj2); |
| 8798 | if (PyErr_Occurred()) SWIG_fail; |
| 8799 | } |
| 8800 | if (obj3) { |
| 8801 | arg4 = (bool)SWIG_As_bool(obj3); |
| 8802 | if (PyErr_Occurred()) SWIG_fail; |
| 8803 | } |
| 8804 | { |
| 8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8806 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); |
| 8807 | |
| 8808 | wxPyEndAllowThreads(__tstate); |
| 8809 | if (PyErr_Occurred()) SWIG_fail; |
| 8810 | } |
| 8811 | { |
| 8812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8813 | } |
| 8814 | return resultobj; |
| 8815 | fail: |
| 8816 | return NULL; |
| 8817 | } |
| 8818 | |
| 8819 | |
| 8820 | static PyObject *_wrap_Grid_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8821 | PyObject *resultobj; |
| 8822 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8823 | int arg2 = (int) 1 ; |
| 8824 | bool arg3 = (bool) true ; |
| 8825 | bool result; |
| 8826 | PyObject * obj0 = 0 ; |
| 8827 | PyObject * obj1 = 0 ; |
| 8828 | PyObject * obj2 = 0 ; |
| 8829 | char *kwnames[] = { |
| 8830 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL |
| 8831 | }; |
| 8832 | |
| 8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 8834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8836 | if (obj1) { |
| 8837 | arg2 = (int)SWIG_As_int(obj1); |
| 8838 | if (PyErr_Occurred()) SWIG_fail; |
| 8839 | } |
| 8840 | if (obj2) { |
| 8841 | arg3 = (bool)SWIG_As_bool(obj2); |
| 8842 | if (PyErr_Occurred()) SWIG_fail; |
| 8843 | } |
| 8844 | { |
| 8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8846 | result = (bool)(arg1)->AppendCols(arg2,arg3); |
| 8847 | |
| 8848 | wxPyEndAllowThreads(__tstate); |
| 8849 | if (PyErr_Occurred()) SWIG_fail; |
| 8850 | } |
| 8851 | { |
| 8852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8853 | } |
| 8854 | return resultobj; |
| 8855 | fail: |
| 8856 | return NULL; |
| 8857 | } |
| 8858 | |
| 8859 | |
| 8860 | static PyObject *_wrap_Grid_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8861 | PyObject *resultobj; |
| 8862 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8863 | int arg2 = (int) 0 ; |
| 8864 | int arg3 = (int) 1 ; |
| 8865 | bool arg4 = (bool) true ; |
| 8866 | bool result; |
| 8867 | PyObject * obj0 = 0 ; |
| 8868 | PyObject * obj1 = 0 ; |
| 8869 | PyObject * obj2 = 0 ; |
| 8870 | PyObject * obj3 = 0 ; |
| 8871 | char *kwnames[] = { |
| 8872 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL |
| 8873 | }; |
| 8874 | |
| 8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 8876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8878 | if (obj1) { |
| 8879 | arg2 = (int)SWIG_As_int(obj1); |
| 8880 | if (PyErr_Occurred()) SWIG_fail; |
| 8881 | } |
| 8882 | if (obj2) { |
| 8883 | arg3 = (int)SWIG_As_int(obj2); |
| 8884 | if (PyErr_Occurred()) SWIG_fail; |
| 8885 | } |
| 8886 | if (obj3) { |
| 8887 | arg4 = (bool)SWIG_As_bool(obj3); |
| 8888 | if (PyErr_Occurred()) SWIG_fail; |
| 8889 | } |
| 8890 | { |
| 8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8892 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); |
| 8893 | |
| 8894 | wxPyEndAllowThreads(__tstate); |
| 8895 | if (PyErr_Occurred()) SWIG_fail; |
| 8896 | } |
| 8897 | { |
| 8898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 8899 | } |
| 8900 | return resultobj; |
| 8901 | fail: |
| 8902 | return NULL; |
| 8903 | } |
| 8904 | |
| 8905 | |
| 8906 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8907 | PyObject *resultobj; |
| 8908 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8909 | wxDC *arg2 = 0 ; |
| 8910 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; |
| 8911 | PyObject * obj0 = 0 ; |
| 8912 | PyObject * obj1 = 0 ; |
| 8913 | PyObject * obj2 = 0 ; |
| 8914 | char *kwnames[] = { |
| 8915 | (char *) "self",(char *) "dc",(char *) "attr", NULL |
| 8916 | }; |
| 8917 | |
| 8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 8919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
| 8922 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 8923 | SWIG_fail; |
| 8924 | if (arg2 == NULL) { |
| 8925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 8926 | SWIG_fail; |
| 8927 | } |
| 8928 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 8929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8930 | { |
| 8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8932 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); |
| 8933 | |
| 8934 | wxPyEndAllowThreads(__tstate); |
| 8935 | if (PyErr_Occurred()) SWIG_fail; |
| 8936 | } |
| 8937 | Py_INCREF(Py_None); resultobj = Py_None; |
| 8938 | return resultobj; |
| 8939 | fail: |
| 8940 | return NULL; |
| 8941 | } |
| 8942 | |
| 8943 | |
| 8944 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
| 8945 | PyObject *resultobj; |
| 8946 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 8947 | wxDC *arg2 = 0 ; |
| 8948 | wxString *arg3 = 0 ; |
| 8949 | wxRect *arg4 = 0 ; |
| 8950 | int arg5 = (int) wxLEFT ; |
| 8951 | int arg6 = (int) wxTOP ; |
| 8952 | int arg7 = (int) wxHORIZONTAL ; |
| 8953 | bool temp3 = false ; |
| 8954 | wxRect temp4 ; |
| 8955 | PyObject * obj0 = 0 ; |
| 8956 | PyObject * obj1 = 0 ; |
| 8957 | PyObject * obj2 = 0 ; |
| 8958 | PyObject * obj3 = 0 ; |
| 8959 | PyObject * obj4 = 0 ; |
| 8960 | PyObject * obj5 = 0 ; |
| 8961 | PyObject * obj6 = 0 ; |
| 8962 | char *kwnames[] = { |
| 8963 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL |
| 8964 | }; |
| 8965 | |
| 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
| 8967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 8969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
| 8970 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 8971 | SWIG_fail; |
| 8972 | if (arg2 == NULL) { |
| 8973 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 8974 | SWIG_fail; |
| 8975 | } |
| 8976 | { |
| 8977 | arg3 = wxString_in_helper(obj2); |
| 8978 | if (arg3 == NULL) SWIG_fail; |
| 8979 | temp3 = true; |
| 8980 | } |
| 8981 | { |
| 8982 | arg4 = &temp4; |
| 8983 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; |
| 8984 | } |
| 8985 | if (obj4) { |
| 8986 | arg5 = (int)SWIG_As_int(obj4); |
| 8987 | if (PyErr_Occurred()) SWIG_fail; |
| 8988 | } |
| 8989 | if (obj5) { |
| 8990 | arg6 = (int)SWIG_As_int(obj5); |
| 8991 | if (PyErr_Occurred()) SWIG_fail; |
| 8992 | } |
| 8993 | if (obj6) { |
| 8994 | arg7 = (int)SWIG_As_int(obj6); |
| 8995 | if (PyErr_Occurred()) SWIG_fail; |
| 8996 | } |
| 8997 | { |
| 8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8999 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
| 9000 | |
| 9001 | wxPyEndAllowThreads(__tstate); |
| 9002 | if (PyErr_Occurred()) SWIG_fail; |
| 9003 | } |
| 9004 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9005 | { |
| 9006 | if (temp3) |
| 9007 | delete arg3; |
| 9008 | } |
| 9009 | return resultobj; |
| 9010 | fail: |
| 9011 | { |
| 9012 | if (temp3) |
| 9013 | delete arg3; |
| 9014 | } |
| 9015 | return NULL; |
| 9016 | } |
| 9017 | |
| 9018 | |
| 9019 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9020 | PyObject *resultobj; |
| 9021 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9022 | wxDC *arg2 = 0 ; |
| 9023 | wxArrayString *arg3 = 0 ; |
| 9024 | long *arg4 = (long *) 0 ; |
| 9025 | long *arg5 = (long *) 0 ; |
| 9026 | bool temp3 = false ; |
| 9027 | long temp4 ; |
| 9028 | int res4 = 0 ; |
| 9029 | long temp5 ; |
| 9030 | int res5 = 0 ; |
| 9031 | PyObject * obj0 = 0 ; |
| 9032 | PyObject * obj1 = 0 ; |
| 9033 | PyObject * obj2 = 0 ; |
| 9034 | char *kwnames[] = { |
| 9035 | (char *) "self",(char *) "dc",(char *) "lines", NULL |
| 9036 | }; |
| 9037 | |
| 9038 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
| 9039 | arg5 = &temp5; res5 = SWIG_NEWOBJ; |
| 9040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 9041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
| 9044 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 9045 | SWIG_fail; |
| 9046 | if (arg2 == NULL) { |
| 9047 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 9048 | SWIG_fail; |
| 9049 | } |
| 9050 | { |
| 9051 | if (! PySequence_Check(obj2)) { |
| 9052 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); |
| 9053 | SWIG_fail; |
| 9054 | } |
| 9055 | arg3 = new wxArrayString; |
| 9056 | temp3 = true; |
| 9057 | int i, len=PySequence_Length(obj2); |
| 9058 | for (i=0; i<len; i++) { |
| 9059 | PyObject* item = PySequence_GetItem(obj2, i); |
| 9060 | #if wxUSE_UNICODE |
| 9061 | PyObject* str = PyObject_Unicode(item); |
| 9062 | #else |
| 9063 | PyObject* str = PyObject_Str(item); |
| 9064 | #endif |
| 9065 | if (PyErr_Occurred()) SWIG_fail; |
| 9066 | arg3->Add(Py2wxString(str)); |
| 9067 | Py_DECREF(item); |
| 9068 | Py_DECREF(str); |
| 9069 | } |
| 9070 | } |
| 9071 | { |
| 9072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9073 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); |
| 9074 | |
| 9075 | wxPyEndAllowThreads(__tstate); |
| 9076 | if (PyErr_Occurred()) SWIG_fail; |
| 9077 | } |
| 9078 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9079 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
| 9080 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); |
| 9081 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? |
| 9082 | SWIG_From_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_long, 0))); |
| 9083 | { |
| 9084 | if (temp3) delete arg3; |
| 9085 | } |
| 9086 | return resultobj; |
| 9087 | fail: |
| 9088 | { |
| 9089 | if (temp3) delete arg3; |
| 9090 | } |
| 9091 | return NULL; |
| 9092 | } |
| 9093 | |
| 9094 | |
| 9095 | static PyObject *_wrap_Grid_BeginBatch(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9096 | PyObject *resultobj; |
| 9097 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9098 | PyObject * obj0 = 0 ; |
| 9099 | char *kwnames[] = { |
| 9100 | (char *) "self", NULL |
| 9101 | }; |
| 9102 | |
| 9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; |
| 9104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9106 | { |
| 9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9108 | (arg1)->BeginBatch(); |
| 9109 | |
| 9110 | wxPyEndAllowThreads(__tstate); |
| 9111 | if (PyErr_Occurred()) SWIG_fail; |
| 9112 | } |
| 9113 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9114 | return resultobj; |
| 9115 | fail: |
| 9116 | return NULL; |
| 9117 | } |
| 9118 | |
| 9119 | |
| 9120 | static PyObject *_wrap_Grid_EndBatch(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9121 | PyObject *resultobj; |
| 9122 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9123 | PyObject * obj0 = 0 ; |
| 9124 | char *kwnames[] = { |
| 9125 | (char *) "self", NULL |
| 9126 | }; |
| 9127 | |
| 9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; |
| 9129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9131 | { |
| 9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9133 | (arg1)->EndBatch(); |
| 9134 | |
| 9135 | wxPyEndAllowThreads(__tstate); |
| 9136 | if (PyErr_Occurred()) SWIG_fail; |
| 9137 | } |
| 9138 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9139 | return resultobj; |
| 9140 | fail: |
| 9141 | return NULL; |
| 9142 | } |
| 9143 | |
| 9144 | |
| 9145 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9146 | PyObject *resultobj; |
| 9147 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9148 | int result; |
| 9149 | PyObject * obj0 = 0 ; |
| 9150 | char *kwnames[] = { |
| 9151 | (char *) "self", NULL |
| 9152 | }; |
| 9153 | |
| 9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; |
| 9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9157 | { |
| 9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9159 | result = (int)(arg1)->GetBatchCount(); |
| 9160 | |
| 9161 | wxPyEndAllowThreads(__tstate); |
| 9162 | if (PyErr_Occurred()) SWIG_fail; |
| 9163 | } |
| 9164 | resultobj = SWIG_From_int((int)result); |
| 9165 | return resultobj; |
| 9166 | fail: |
| 9167 | return NULL; |
| 9168 | } |
| 9169 | |
| 9170 | |
| 9171 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9172 | PyObject *resultobj; |
| 9173 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9174 | PyObject * obj0 = 0 ; |
| 9175 | char *kwnames[] = { |
| 9176 | (char *) "self", NULL |
| 9177 | }; |
| 9178 | |
| 9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; |
| 9180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9182 | { |
| 9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9184 | (arg1)->ForceRefresh(); |
| 9185 | |
| 9186 | wxPyEndAllowThreads(__tstate); |
| 9187 | if (PyErr_Occurred()) SWIG_fail; |
| 9188 | } |
| 9189 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9190 | return resultobj; |
| 9191 | fail: |
| 9192 | return NULL; |
| 9193 | } |
| 9194 | |
| 9195 | |
| 9196 | static PyObject *_wrap_Grid_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9197 | PyObject *resultobj; |
| 9198 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9199 | bool result; |
| 9200 | PyObject * obj0 = 0 ; |
| 9201 | char *kwnames[] = { |
| 9202 | (char *) "self", NULL |
| 9203 | }; |
| 9204 | |
| 9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; |
| 9206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9208 | { |
| 9209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9210 | result = (bool)(arg1)->IsEditable(); |
| 9211 | |
| 9212 | wxPyEndAllowThreads(__tstate); |
| 9213 | if (PyErr_Occurred()) SWIG_fail; |
| 9214 | } |
| 9215 | { |
| 9216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9217 | } |
| 9218 | return resultobj; |
| 9219 | fail: |
| 9220 | return NULL; |
| 9221 | } |
| 9222 | |
| 9223 | |
| 9224 | static PyObject *_wrap_Grid_EnableEditing(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9225 | PyObject *resultobj; |
| 9226 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9227 | bool arg2 ; |
| 9228 | PyObject * obj0 = 0 ; |
| 9229 | PyObject * obj1 = 0 ; |
| 9230 | char *kwnames[] = { |
| 9231 | (char *) "self",(char *) "edit", NULL |
| 9232 | }; |
| 9233 | |
| 9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; |
| 9235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9237 | arg2 = (bool)SWIG_As_bool(obj1); |
| 9238 | if (PyErr_Occurred()) SWIG_fail; |
| 9239 | { |
| 9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9241 | (arg1)->EnableEditing(arg2); |
| 9242 | |
| 9243 | wxPyEndAllowThreads(__tstate); |
| 9244 | if (PyErr_Occurred()) SWIG_fail; |
| 9245 | } |
| 9246 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9247 | return resultobj; |
| 9248 | fail: |
| 9249 | return NULL; |
| 9250 | } |
| 9251 | |
| 9252 | |
| 9253 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9254 | PyObject *resultobj; |
| 9255 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9256 | bool arg2 = (bool) true ; |
| 9257 | PyObject * obj0 = 0 ; |
| 9258 | PyObject * obj1 = 0 ; |
| 9259 | char *kwnames[] = { |
| 9260 | (char *) "self",(char *) "enable", NULL |
| 9261 | }; |
| 9262 | |
| 9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; |
| 9264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9266 | if (obj1) { |
| 9267 | arg2 = (bool)SWIG_As_bool(obj1); |
| 9268 | if (PyErr_Occurred()) SWIG_fail; |
| 9269 | } |
| 9270 | { |
| 9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9272 | (arg1)->EnableCellEditControl(arg2); |
| 9273 | |
| 9274 | wxPyEndAllowThreads(__tstate); |
| 9275 | if (PyErr_Occurred()) SWIG_fail; |
| 9276 | } |
| 9277 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9278 | return resultobj; |
| 9279 | fail: |
| 9280 | return NULL; |
| 9281 | } |
| 9282 | |
| 9283 | |
| 9284 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9285 | PyObject *resultobj; |
| 9286 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9287 | PyObject * obj0 = 0 ; |
| 9288 | char *kwnames[] = { |
| 9289 | (char *) "self", NULL |
| 9290 | }; |
| 9291 | |
| 9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; |
| 9293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9295 | { |
| 9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9297 | (arg1)->DisableCellEditControl(); |
| 9298 | |
| 9299 | wxPyEndAllowThreads(__tstate); |
| 9300 | if (PyErr_Occurred()) SWIG_fail; |
| 9301 | } |
| 9302 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9303 | return resultobj; |
| 9304 | fail: |
| 9305 | return NULL; |
| 9306 | } |
| 9307 | |
| 9308 | |
| 9309 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9310 | PyObject *resultobj; |
| 9311 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9312 | bool result; |
| 9313 | PyObject * obj0 = 0 ; |
| 9314 | char *kwnames[] = { |
| 9315 | (char *) "self", NULL |
| 9316 | }; |
| 9317 | |
| 9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; |
| 9319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9321 | { |
| 9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9323 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); |
| 9324 | |
| 9325 | wxPyEndAllowThreads(__tstate); |
| 9326 | if (PyErr_Occurred()) SWIG_fail; |
| 9327 | } |
| 9328 | { |
| 9329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9330 | } |
| 9331 | return resultobj; |
| 9332 | fail: |
| 9333 | return NULL; |
| 9334 | } |
| 9335 | |
| 9336 | |
| 9337 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9338 | PyObject *resultobj; |
| 9339 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9340 | bool result; |
| 9341 | PyObject * obj0 = 0 ; |
| 9342 | char *kwnames[] = { |
| 9343 | (char *) "self", NULL |
| 9344 | }; |
| 9345 | |
| 9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; |
| 9347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9349 | { |
| 9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9351 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); |
| 9352 | |
| 9353 | wxPyEndAllowThreads(__tstate); |
| 9354 | if (PyErr_Occurred()) SWIG_fail; |
| 9355 | } |
| 9356 | { |
| 9357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9358 | } |
| 9359 | return resultobj; |
| 9360 | fail: |
| 9361 | return NULL; |
| 9362 | } |
| 9363 | |
| 9364 | |
| 9365 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9366 | PyObject *resultobj; |
| 9367 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9368 | bool result; |
| 9369 | PyObject * obj0 = 0 ; |
| 9370 | char *kwnames[] = { |
| 9371 | (char *) "self", NULL |
| 9372 | }; |
| 9373 | |
| 9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; |
| 9375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9377 | { |
| 9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9379 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); |
| 9380 | |
| 9381 | wxPyEndAllowThreads(__tstate); |
| 9382 | if (PyErr_Occurred()) SWIG_fail; |
| 9383 | } |
| 9384 | { |
| 9385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9386 | } |
| 9387 | return resultobj; |
| 9388 | fail: |
| 9389 | return NULL; |
| 9390 | } |
| 9391 | |
| 9392 | |
| 9393 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9394 | PyObject *resultobj; |
| 9395 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9396 | bool result; |
| 9397 | PyObject * obj0 = 0 ; |
| 9398 | char *kwnames[] = { |
| 9399 | (char *) "self", NULL |
| 9400 | }; |
| 9401 | |
| 9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; |
| 9403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9405 | { |
| 9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9407 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); |
| 9408 | |
| 9409 | wxPyEndAllowThreads(__tstate); |
| 9410 | if (PyErr_Occurred()) SWIG_fail; |
| 9411 | } |
| 9412 | { |
| 9413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9414 | } |
| 9415 | return resultobj; |
| 9416 | fail: |
| 9417 | return NULL; |
| 9418 | } |
| 9419 | |
| 9420 | |
| 9421 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9422 | PyObject *resultobj; |
| 9423 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9424 | PyObject * obj0 = 0 ; |
| 9425 | char *kwnames[] = { |
| 9426 | (char *) "self", NULL |
| 9427 | }; |
| 9428 | |
| 9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; |
| 9430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9432 | { |
| 9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9434 | (arg1)->ShowCellEditControl(); |
| 9435 | |
| 9436 | wxPyEndAllowThreads(__tstate); |
| 9437 | if (PyErr_Occurred()) SWIG_fail; |
| 9438 | } |
| 9439 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9440 | return resultobj; |
| 9441 | fail: |
| 9442 | return NULL; |
| 9443 | } |
| 9444 | |
| 9445 | |
| 9446 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9447 | PyObject *resultobj; |
| 9448 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9449 | PyObject * obj0 = 0 ; |
| 9450 | char *kwnames[] = { |
| 9451 | (char *) "self", NULL |
| 9452 | }; |
| 9453 | |
| 9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; |
| 9455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9457 | { |
| 9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9459 | (arg1)->HideCellEditControl(); |
| 9460 | |
| 9461 | wxPyEndAllowThreads(__tstate); |
| 9462 | if (PyErr_Occurred()) SWIG_fail; |
| 9463 | } |
| 9464 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9465 | return resultobj; |
| 9466 | fail: |
| 9467 | return NULL; |
| 9468 | } |
| 9469 | |
| 9470 | |
| 9471 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9472 | PyObject *resultobj; |
| 9473 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9474 | PyObject * obj0 = 0 ; |
| 9475 | char *kwnames[] = { |
| 9476 | (char *) "self", NULL |
| 9477 | }; |
| 9478 | |
| 9479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; |
| 9480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9482 | { |
| 9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9484 | (arg1)->SaveEditControlValue(); |
| 9485 | |
| 9486 | wxPyEndAllowThreads(__tstate); |
| 9487 | if (PyErr_Occurred()) SWIG_fail; |
| 9488 | } |
| 9489 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9490 | return resultobj; |
| 9491 | fail: |
| 9492 | return NULL; |
| 9493 | } |
| 9494 | |
| 9495 | |
| 9496 | static PyObject *_wrap_Grid_XYToCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9497 | PyObject *resultobj; |
| 9498 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9499 | int arg2 ; |
| 9500 | int arg3 ; |
| 9501 | wxGridCellCoords result; |
| 9502 | PyObject * obj0 = 0 ; |
| 9503 | PyObject * obj1 = 0 ; |
| 9504 | PyObject * obj2 = 0 ; |
| 9505 | char *kwnames[] = { |
| 9506 | (char *) "self",(char *) "x",(char *) "y", NULL |
| 9507 | }; |
| 9508 | |
| 9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 9510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9512 | arg2 = (int)SWIG_As_int(obj1); |
| 9513 | if (PyErr_Occurred()) SWIG_fail; |
| 9514 | arg3 = (int)SWIG_As_int(obj2); |
| 9515 | if (PyErr_Occurred()) SWIG_fail; |
| 9516 | { |
| 9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9518 | result = wxGrid_XYToCell(arg1,arg2,arg3); |
| 9519 | |
| 9520 | wxPyEndAllowThreads(__tstate); |
| 9521 | if (PyErr_Occurred()) SWIG_fail; |
| 9522 | } |
| 9523 | { |
| 9524 | wxGridCellCoords * resultptr; |
| 9525 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); |
| 9526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
| 9527 | } |
| 9528 | return resultobj; |
| 9529 | fail: |
| 9530 | return NULL; |
| 9531 | } |
| 9532 | |
| 9533 | |
| 9534 | static PyObject *_wrap_Grid_YToRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9535 | PyObject *resultobj; |
| 9536 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9537 | int arg2 ; |
| 9538 | int result; |
| 9539 | PyObject * obj0 = 0 ; |
| 9540 | PyObject * obj1 = 0 ; |
| 9541 | char *kwnames[] = { |
| 9542 | (char *) "self",(char *) "y", NULL |
| 9543 | }; |
| 9544 | |
| 9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; |
| 9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9548 | arg2 = (int)SWIG_As_int(obj1); |
| 9549 | if (PyErr_Occurred()) SWIG_fail; |
| 9550 | { |
| 9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9552 | result = (int)(arg1)->YToRow(arg2); |
| 9553 | |
| 9554 | wxPyEndAllowThreads(__tstate); |
| 9555 | if (PyErr_Occurred()) SWIG_fail; |
| 9556 | } |
| 9557 | resultobj = SWIG_From_int((int)result); |
| 9558 | return resultobj; |
| 9559 | fail: |
| 9560 | return NULL; |
| 9561 | } |
| 9562 | |
| 9563 | |
| 9564 | static PyObject *_wrap_Grid_XToCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9565 | PyObject *resultobj; |
| 9566 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9567 | int arg2 ; |
| 9568 | int result; |
| 9569 | PyObject * obj0 = 0 ; |
| 9570 | PyObject * obj1 = 0 ; |
| 9571 | char *kwnames[] = { |
| 9572 | (char *) "self",(char *) "x", NULL |
| 9573 | }; |
| 9574 | |
| 9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; |
| 9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9578 | arg2 = (int)SWIG_As_int(obj1); |
| 9579 | if (PyErr_Occurred()) SWIG_fail; |
| 9580 | { |
| 9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9582 | result = (int)(arg1)->XToCol(arg2); |
| 9583 | |
| 9584 | wxPyEndAllowThreads(__tstate); |
| 9585 | if (PyErr_Occurred()) SWIG_fail; |
| 9586 | } |
| 9587 | resultobj = SWIG_From_int((int)result); |
| 9588 | return resultobj; |
| 9589 | fail: |
| 9590 | return NULL; |
| 9591 | } |
| 9592 | |
| 9593 | |
| 9594 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9595 | PyObject *resultobj; |
| 9596 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9597 | int arg2 ; |
| 9598 | int result; |
| 9599 | PyObject * obj0 = 0 ; |
| 9600 | PyObject * obj1 = 0 ; |
| 9601 | char *kwnames[] = { |
| 9602 | (char *) "self",(char *) "y", NULL |
| 9603 | }; |
| 9604 | |
| 9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; |
| 9606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9608 | arg2 = (int)SWIG_As_int(obj1); |
| 9609 | if (PyErr_Occurred()) SWIG_fail; |
| 9610 | { |
| 9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9612 | result = (int)(arg1)->YToEdgeOfRow(arg2); |
| 9613 | |
| 9614 | wxPyEndAllowThreads(__tstate); |
| 9615 | if (PyErr_Occurred()) SWIG_fail; |
| 9616 | } |
| 9617 | resultobj = SWIG_From_int((int)result); |
| 9618 | return resultobj; |
| 9619 | fail: |
| 9620 | return NULL; |
| 9621 | } |
| 9622 | |
| 9623 | |
| 9624 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9625 | PyObject *resultobj; |
| 9626 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9627 | int arg2 ; |
| 9628 | int result; |
| 9629 | PyObject * obj0 = 0 ; |
| 9630 | PyObject * obj1 = 0 ; |
| 9631 | char *kwnames[] = { |
| 9632 | (char *) "self",(char *) "x", NULL |
| 9633 | }; |
| 9634 | |
| 9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; |
| 9636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9638 | arg2 = (int)SWIG_As_int(obj1); |
| 9639 | if (PyErr_Occurred()) SWIG_fail; |
| 9640 | { |
| 9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9642 | result = (int)(arg1)->XToEdgeOfCol(arg2); |
| 9643 | |
| 9644 | wxPyEndAllowThreads(__tstate); |
| 9645 | if (PyErr_Occurred()) SWIG_fail; |
| 9646 | } |
| 9647 | resultobj = SWIG_From_int((int)result); |
| 9648 | return resultobj; |
| 9649 | fail: |
| 9650 | return NULL; |
| 9651 | } |
| 9652 | |
| 9653 | |
| 9654 | static PyObject *_wrap_Grid_CellToRect(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9655 | PyObject *resultobj; |
| 9656 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9657 | int arg2 ; |
| 9658 | int arg3 ; |
| 9659 | wxRect result; |
| 9660 | PyObject * obj0 = 0 ; |
| 9661 | PyObject * obj1 = 0 ; |
| 9662 | PyObject * obj2 = 0 ; |
| 9663 | char *kwnames[] = { |
| 9664 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 9665 | }; |
| 9666 | |
| 9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 9668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9670 | arg2 = (int)SWIG_As_int(obj1); |
| 9671 | if (PyErr_Occurred()) SWIG_fail; |
| 9672 | arg3 = (int)SWIG_As_int(obj2); |
| 9673 | if (PyErr_Occurred()) SWIG_fail; |
| 9674 | { |
| 9675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9676 | result = (arg1)->CellToRect(arg2,arg3); |
| 9677 | |
| 9678 | wxPyEndAllowThreads(__tstate); |
| 9679 | if (PyErr_Occurred()) SWIG_fail; |
| 9680 | } |
| 9681 | { |
| 9682 | wxRect * resultptr; |
| 9683 | resultptr = new wxRect((wxRect &) result); |
| 9684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
| 9685 | } |
| 9686 | return resultobj; |
| 9687 | fail: |
| 9688 | return NULL; |
| 9689 | } |
| 9690 | |
| 9691 | |
| 9692 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9693 | PyObject *resultobj; |
| 9694 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9695 | int result; |
| 9696 | PyObject * obj0 = 0 ; |
| 9697 | char *kwnames[] = { |
| 9698 | (char *) "self", NULL |
| 9699 | }; |
| 9700 | |
| 9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; |
| 9702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9704 | { |
| 9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9706 | result = (int)(arg1)->GetGridCursorRow(); |
| 9707 | |
| 9708 | wxPyEndAllowThreads(__tstate); |
| 9709 | if (PyErr_Occurred()) SWIG_fail; |
| 9710 | } |
| 9711 | resultobj = SWIG_From_int((int)result); |
| 9712 | return resultobj; |
| 9713 | fail: |
| 9714 | return NULL; |
| 9715 | } |
| 9716 | |
| 9717 | |
| 9718 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9719 | PyObject *resultobj; |
| 9720 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9721 | int result; |
| 9722 | PyObject * obj0 = 0 ; |
| 9723 | char *kwnames[] = { |
| 9724 | (char *) "self", NULL |
| 9725 | }; |
| 9726 | |
| 9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; |
| 9728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9730 | { |
| 9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9732 | result = (int)(arg1)->GetGridCursorCol(); |
| 9733 | |
| 9734 | wxPyEndAllowThreads(__tstate); |
| 9735 | if (PyErr_Occurred()) SWIG_fail; |
| 9736 | } |
| 9737 | resultobj = SWIG_From_int((int)result); |
| 9738 | return resultobj; |
| 9739 | fail: |
| 9740 | return NULL; |
| 9741 | } |
| 9742 | |
| 9743 | |
| 9744 | static PyObject *_wrap_Grid_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9745 | PyObject *resultobj; |
| 9746 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9747 | int arg2 ; |
| 9748 | int arg3 ; |
| 9749 | bool arg4 = (bool) true ; |
| 9750 | bool result; |
| 9751 | PyObject * obj0 = 0 ; |
| 9752 | PyObject * obj1 = 0 ; |
| 9753 | PyObject * obj2 = 0 ; |
| 9754 | PyObject * obj3 = 0 ; |
| 9755 | char *kwnames[] = { |
| 9756 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL |
| 9757 | }; |
| 9758 | |
| 9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 9760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9762 | arg2 = (int)SWIG_As_int(obj1); |
| 9763 | if (PyErr_Occurred()) SWIG_fail; |
| 9764 | arg3 = (int)SWIG_As_int(obj2); |
| 9765 | if (PyErr_Occurred()) SWIG_fail; |
| 9766 | if (obj3) { |
| 9767 | arg4 = (bool)SWIG_As_bool(obj3); |
| 9768 | if (PyErr_Occurred()) SWIG_fail; |
| 9769 | } |
| 9770 | { |
| 9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9772 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); |
| 9773 | |
| 9774 | wxPyEndAllowThreads(__tstate); |
| 9775 | if (PyErr_Occurred()) SWIG_fail; |
| 9776 | } |
| 9777 | { |
| 9778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 9779 | } |
| 9780 | return resultobj; |
| 9781 | fail: |
| 9782 | return NULL; |
| 9783 | } |
| 9784 | |
| 9785 | |
| 9786 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9787 | PyObject *resultobj; |
| 9788 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9789 | int arg2 ; |
| 9790 | int arg3 ; |
| 9791 | PyObject * obj0 = 0 ; |
| 9792 | PyObject * obj1 = 0 ; |
| 9793 | PyObject * obj2 = 0 ; |
| 9794 | char *kwnames[] = { |
| 9795 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 9796 | }; |
| 9797 | |
| 9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 9799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9801 | arg2 = (int)SWIG_As_int(obj1); |
| 9802 | if (PyErr_Occurred()) SWIG_fail; |
| 9803 | arg3 = (int)SWIG_As_int(obj2); |
| 9804 | if (PyErr_Occurred()) SWIG_fail; |
| 9805 | { |
| 9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9807 | (arg1)->MakeCellVisible(arg2,arg3); |
| 9808 | |
| 9809 | wxPyEndAllowThreads(__tstate); |
| 9810 | if (PyErr_Occurred()) SWIG_fail; |
| 9811 | } |
| 9812 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9813 | return resultobj; |
| 9814 | fail: |
| 9815 | return NULL; |
| 9816 | } |
| 9817 | |
| 9818 | |
| 9819 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9820 | PyObject *resultobj; |
| 9821 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9822 | int arg2 ; |
| 9823 | int arg3 ; |
| 9824 | PyObject * obj0 = 0 ; |
| 9825 | PyObject * obj1 = 0 ; |
| 9826 | PyObject * obj2 = 0 ; |
| 9827 | char *kwnames[] = { |
| 9828 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 9829 | }; |
| 9830 | |
| 9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 9832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9834 | arg2 = (int)SWIG_As_int(obj1); |
| 9835 | if (PyErr_Occurred()) SWIG_fail; |
| 9836 | arg3 = (int)SWIG_As_int(obj2); |
| 9837 | if (PyErr_Occurred()) SWIG_fail; |
| 9838 | { |
| 9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9840 | (arg1)->SetGridCursor(arg2,arg3); |
| 9841 | |
| 9842 | wxPyEndAllowThreads(__tstate); |
| 9843 | if (PyErr_Occurred()) SWIG_fail; |
| 9844 | } |
| 9845 | Py_INCREF(Py_None); resultobj = Py_None; |
| 9846 | return resultobj; |
| 9847 | fail: |
| 9848 | return NULL; |
| 9849 | } |
| 9850 | |
| 9851 | |
| 9852 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9853 | PyObject *resultobj; |
| 9854 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9855 | bool arg2 ; |
| 9856 | bool result; |
| 9857 | PyObject * obj0 = 0 ; |
| 9858 | PyObject * obj1 = 0 ; |
| 9859 | char *kwnames[] = { |
| 9860 | (char *) "self",(char *) "expandSelection", NULL |
| 9861 | }; |
| 9862 | |
| 9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; |
| 9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9866 | arg2 = (bool)SWIG_As_bool(obj1); |
| 9867 | if (PyErr_Occurred()) SWIG_fail; |
| 9868 | { |
| 9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9870 | result = (bool)(arg1)->MoveCursorUp(arg2); |
| 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_MoveCursorDown(PyObject *, 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_MoveCursorDown",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_As_bool(obj1); |
| 9899 | if (PyErr_Occurred()) SWIG_fail; |
| 9900 | { |
| 9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9902 | result = (bool)(arg1)->MoveCursorDown(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_MoveCursorLeft(PyObject *, 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_MoveCursorLeft",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_As_bool(obj1); |
| 9931 | if (PyErr_Occurred()) SWIG_fail; |
| 9932 | { |
| 9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9934 | result = (bool)(arg1)->MoveCursorLeft(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_MoveCursorRight(PyObject *, 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_MoveCursorRight",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_As_bool(obj1); |
| 9963 | if (PyErr_Occurred()) SWIG_fail; |
| 9964 | { |
| 9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9966 | result = (bool)(arg1)->MoveCursorRight(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_MovePageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 9981 | PyObject *resultobj; |
| 9982 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 9983 | bool result; |
| 9984 | PyObject * obj0 = 0 ; |
| 9985 | char *kwnames[] = { |
| 9986 | (char *) "self", NULL |
| 9987 | }; |
| 9988 | |
| 9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; |
| 9990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 9991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 9992 | { |
| 9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9994 | result = (bool)(arg1)->MovePageDown(); |
| 9995 | |
| 9996 | wxPyEndAllowThreads(__tstate); |
| 9997 | if (PyErr_Occurred()) SWIG_fail; |
| 9998 | } |
| 9999 | { |
| 10000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10001 | } |
| 10002 | return resultobj; |
| 10003 | fail: |
| 10004 | return NULL; |
| 10005 | } |
| 10006 | |
| 10007 | |
| 10008 | static PyObject *_wrap_Grid_MovePageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10009 | PyObject *resultobj; |
| 10010 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10011 | bool result; |
| 10012 | PyObject * obj0 = 0 ; |
| 10013 | char *kwnames[] = { |
| 10014 | (char *) "self", NULL |
| 10015 | }; |
| 10016 | |
| 10017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; |
| 10018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10020 | { |
| 10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10022 | result = (bool)(arg1)->MovePageUp(); |
| 10023 | |
| 10024 | wxPyEndAllowThreads(__tstate); |
| 10025 | if (PyErr_Occurred()) SWIG_fail; |
| 10026 | } |
| 10027 | { |
| 10028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10029 | } |
| 10030 | return resultobj; |
| 10031 | fail: |
| 10032 | return NULL; |
| 10033 | } |
| 10034 | |
| 10035 | |
| 10036 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10037 | PyObject *resultobj; |
| 10038 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10039 | bool arg2 ; |
| 10040 | bool result; |
| 10041 | PyObject * obj0 = 0 ; |
| 10042 | PyObject * obj1 = 0 ; |
| 10043 | char *kwnames[] = { |
| 10044 | (char *) "self",(char *) "expandSelection", NULL |
| 10045 | }; |
| 10046 | |
| 10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; |
| 10048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10050 | arg2 = (bool)SWIG_As_bool(obj1); |
| 10051 | if (PyErr_Occurred()) SWIG_fail; |
| 10052 | { |
| 10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10054 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); |
| 10055 | |
| 10056 | wxPyEndAllowThreads(__tstate); |
| 10057 | if (PyErr_Occurred()) SWIG_fail; |
| 10058 | } |
| 10059 | { |
| 10060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10061 | } |
| 10062 | return resultobj; |
| 10063 | fail: |
| 10064 | return NULL; |
| 10065 | } |
| 10066 | |
| 10067 | |
| 10068 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10069 | PyObject *resultobj; |
| 10070 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10071 | bool arg2 ; |
| 10072 | bool result; |
| 10073 | PyObject * obj0 = 0 ; |
| 10074 | PyObject * obj1 = 0 ; |
| 10075 | char *kwnames[] = { |
| 10076 | (char *) "self",(char *) "expandSelection", NULL |
| 10077 | }; |
| 10078 | |
| 10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; |
| 10080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10082 | arg2 = (bool)SWIG_As_bool(obj1); |
| 10083 | if (PyErr_Occurred()) SWIG_fail; |
| 10084 | { |
| 10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10086 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); |
| 10087 | |
| 10088 | wxPyEndAllowThreads(__tstate); |
| 10089 | if (PyErr_Occurred()) SWIG_fail; |
| 10090 | } |
| 10091 | { |
| 10092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10093 | } |
| 10094 | return resultobj; |
| 10095 | fail: |
| 10096 | return NULL; |
| 10097 | } |
| 10098 | |
| 10099 | |
| 10100 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10101 | PyObject *resultobj; |
| 10102 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10103 | bool arg2 ; |
| 10104 | bool result; |
| 10105 | PyObject * obj0 = 0 ; |
| 10106 | PyObject * obj1 = 0 ; |
| 10107 | char *kwnames[] = { |
| 10108 | (char *) "self",(char *) "expandSelection", NULL |
| 10109 | }; |
| 10110 | |
| 10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; |
| 10112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10114 | arg2 = (bool)SWIG_As_bool(obj1); |
| 10115 | if (PyErr_Occurred()) SWIG_fail; |
| 10116 | { |
| 10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10118 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); |
| 10119 | |
| 10120 | wxPyEndAllowThreads(__tstate); |
| 10121 | if (PyErr_Occurred()) SWIG_fail; |
| 10122 | } |
| 10123 | { |
| 10124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10125 | } |
| 10126 | return resultobj; |
| 10127 | fail: |
| 10128 | return NULL; |
| 10129 | } |
| 10130 | |
| 10131 | |
| 10132 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10133 | PyObject *resultobj; |
| 10134 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10135 | bool arg2 ; |
| 10136 | bool result; |
| 10137 | PyObject * obj0 = 0 ; |
| 10138 | PyObject * obj1 = 0 ; |
| 10139 | char *kwnames[] = { |
| 10140 | (char *) "self",(char *) "expandSelection", NULL |
| 10141 | }; |
| 10142 | |
| 10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; |
| 10144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10146 | arg2 = (bool)SWIG_As_bool(obj1); |
| 10147 | if (PyErr_Occurred()) SWIG_fail; |
| 10148 | { |
| 10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10150 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); |
| 10151 | |
| 10152 | wxPyEndAllowThreads(__tstate); |
| 10153 | if (PyErr_Occurred()) SWIG_fail; |
| 10154 | } |
| 10155 | { |
| 10156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 10157 | } |
| 10158 | return resultobj; |
| 10159 | fail: |
| 10160 | return NULL; |
| 10161 | } |
| 10162 | |
| 10163 | |
| 10164 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10165 | PyObject *resultobj; |
| 10166 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10167 | int result; |
| 10168 | PyObject * obj0 = 0 ; |
| 10169 | char *kwnames[] = { |
| 10170 | (char *) "self", NULL |
| 10171 | }; |
| 10172 | |
| 10173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; |
| 10174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10176 | { |
| 10177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10178 | result = (int)(arg1)->GetDefaultRowLabelSize(); |
| 10179 | |
| 10180 | wxPyEndAllowThreads(__tstate); |
| 10181 | if (PyErr_Occurred()) SWIG_fail; |
| 10182 | } |
| 10183 | resultobj = SWIG_From_int((int)result); |
| 10184 | return resultobj; |
| 10185 | fail: |
| 10186 | return NULL; |
| 10187 | } |
| 10188 | |
| 10189 | |
| 10190 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10191 | PyObject *resultobj; |
| 10192 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10193 | int result; |
| 10194 | PyObject * obj0 = 0 ; |
| 10195 | char *kwnames[] = { |
| 10196 | (char *) "self", NULL |
| 10197 | }; |
| 10198 | |
| 10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; |
| 10200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10202 | { |
| 10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10204 | result = (int)(arg1)->GetRowLabelSize(); |
| 10205 | |
| 10206 | wxPyEndAllowThreads(__tstate); |
| 10207 | if (PyErr_Occurred()) SWIG_fail; |
| 10208 | } |
| 10209 | resultobj = SWIG_From_int((int)result); |
| 10210 | return resultobj; |
| 10211 | fail: |
| 10212 | return NULL; |
| 10213 | } |
| 10214 | |
| 10215 | |
| 10216 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10217 | PyObject *resultobj; |
| 10218 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10219 | int result; |
| 10220 | PyObject * obj0 = 0 ; |
| 10221 | char *kwnames[] = { |
| 10222 | (char *) "self", NULL |
| 10223 | }; |
| 10224 | |
| 10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; |
| 10226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10228 | { |
| 10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10230 | result = (int)(arg1)->GetDefaultColLabelSize(); |
| 10231 | |
| 10232 | wxPyEndAllowThreads(__tstate); |
| 10233 | if (PyErr_Occurred()) SWIG_fail; |
| 10234 | } |
| 10235 | resultobj = SWIG_From_int((int)result); |
| 10236 | return resultobj; |
| 10237 | fail: |
| 10238 | return NULL; |
| 10239 | } |
| 10240 | |
| 10241 | |
| 10242 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10243 | PyObject *resultobj; |
| 10244 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10245 | int result; |
| 10246 | PyObject * obj0 = 0 ; |
| 10247 | char *kwnames[] = { |
| 10248 | (char *) "self", NULL |
| 10249 | }; |
| 10250 | |
| 10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; |
| 10252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10254 | { |
| 10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10256 | result = (int)(arg1)->GetColLabelSize(); |
| 10257 | |
| 10258 | wxPyEndAllowThreads(__tstate); |
| 10259 | if (PyErr_Occurred()) SWIG_fail; |
| 10260 | } |
| 10261 | resultobj = SWIG_From_int((int)result); |
| 10262 | return resultobj; |
| 10263 | fail: |
| 10264 | return NULL; |
| 10265 | } |
| 10266 | |
| 10267 | |
| 10268 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10269 | PyObject *resultobj; |
| 10270 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10271 | wxColour result; |
| 10272 | PyObject * obj0 = 0 ; |
| 10273 | char *kwnames[] = { |
| 10274 | (char *) "self", NULL |
| 10275 | }; |
| 10276 | |
| 10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; |
| 10278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10280 | { |
| 10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10282 | result = (arg1)->GetLabelBackgroundColour(); |
| 10283 | |
| 10284 | wxPyEndAllowThreads(__tstate); |
| 10285 | if (PyErr_Occurred()) SWIG_fail; |
| 10286 | } |
| 10287 | { |
| 10288 | wxColour * resultptr; |
| 10289 | resultptr = new wxColour((wxColour &) result); |
| 10290 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 10291 | } |
| 10292 | return resultobj; |
| 10293 | fail: |
| 10294 | return NULL; |
| 10295 | } |
| 10296 | |
| 10297 | |
| 10298 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10299 | PyObject *resultobj; |
| 10300 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10301 | wxColour result; |
| 10302 | PyObject * obj0 = 0 ; |
| 10303 | char *kwnames[] = { |
| 10304 | (char *) "self", NULL |
| 10305 | }; |
| 10306 | |
| 10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; |
| 10308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10310 | { |
| 10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10312 | result = (arg1)->GetLabelTextColour(); |
| 10313 | |
| 10314 | wxPyEndAllowThreads(__tstate); |
| 10315 | if (PyErr_Occurred()) SWIG_fail; |
| 10316 | } |
| 10317 | { |
| 10318 | wxColour * resultptr; |
| 10319 | resultptr = new wxColour((wxColour &) result); |
| 10320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 10321 | } |
| 10322 | return resultobj; |
| 10323 | fail: |
| 10324 | return NULL; |
| 10325 | } |
| 10326 | |
| 10327 | |
| 10328 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10329 | PyObject *resultobj; |
| 10330 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10331 | wxFont result; |
| 10332 | PyObject * obj0 = 0 ; |
| 10333 | char *kwnames[] = { |
| 10334 | (char *) "self", NULL |
| 10335 | }; |
| 10336 | |
| 10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; |
| 10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10340 | { |
| 10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10342 | result = (arg1)->GetLabelFont(); |
| 10343 | |
| 10344 | wxPyEndAllowThreads(__tstate); |
| 10345 | if (PyErr_Occurred()) SWIG_fail; |
| 10346 | } |
| 10347 | { |
| 10348 | wxFont * resultptr; |
| 10349 | resultptr = new wxFont((wxFont &) result); |
| 10350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
| 10351 | } |
| 10352 | return resultobj; |
| 10353 | fail: |
| 10354 | return NULL; |
| 10355 | } |
| 10356 | |
| 10357 | |
| 10358 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10359 | PyObject *resultobj; |
| 10360 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10361 | int *arg2 = (int *) 0 ; |
| 10362 | int *arg3 = (int *) 0 ; |
| 10363 | int temp2 ; |
| 10364 | int res2 = 0 ; |
| 10365 | int temp3 ; |
| 10366 | int res3 = 0 ; |
| 10367 | PyObject * obj0 = 0 ; |
| 10368 | char *kwnames[] = { |
| 10369 | (char *) "self", NULL |
| 10370 | }; |
| 10371 | |
| 10372 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
| 10373 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
| 10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; |
| 10375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10377 | { |
| 10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10379 | (arg1)->GetRowLabelAlignment(arg2,arg3); |
| 10380 | |
| 10381 | wxPyEndAllowThreads(__tstate); |
| 10382 | if (PyErr_Occurred()) SWIG_fail; |
| 10383 | } |
| 10384 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10385 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
| 10386 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); |
| 10387 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
| 10388 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); |
| 10389 | return resultobj; |
| 10390 | fail: |
| 10391 | return NULL; |
| 10392 | } |
| 10393 | |
| 10394 | |
| 10395 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10396 | PyObject *resultobj; |
| 10397 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10398 | int *arg2 = (int *) 0 ; |
| 10399 | int *arg3 = (int *) 0 ; |
| 10400 | int temp2 ; |
| 10401 | int res2 = 0 ; |
| 10402 | int temp3 ; |
| 10403 | int res3 = 0 ; |
| 10404 | PyObject * obj0 = 0 ; |
| 10405 | char *kwnames[] = { |
| 10406 | (char *) "self", NULL |
| 10407 | }; |
| 10408 | |
| 10409 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
| 10410 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
| 10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; |
| 10412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10414 | { |
| 10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10416 | (arg1)->GetColLabelAlignment(arg2,arg3); |
| 10417 | |
| 10418 | wxPyEndAllowThreads(__tstate); |
| 10419 | if (PyErr_Occurred()) SWIG_fail; |
| 10420 | } |
| 10421 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10422 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
| 10423 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); |
| 10424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
| 10425 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); |
| 10426 | return resultobj; |
| 10427 | fail: |
| 10428 | return NULL; |
| 10429 | } |
| 10430 | |
| 10431 | |
| 10432 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10433 | PyObject *resultobj; |
| 10434 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10435 | int result; |
| 10436 | PyObject * obj0 = 0 ; |
| 10437 | char *kwnames[] = { |
| 10438 | (char *) "self", NULL |
| 10439 | }; |
| 10440 | |
| 10441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; |
| 10442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10444 | { |
| 10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10446 | result = (int)(arg1)->GetColLabelTextOrientation(); |
| 10447 | |
| 10448 | wxPyEndAllowThreads(__tstate); |
| 10449 | if (PyErr_Occurred()) SWIG_fail; |
| 10450 | } |
| 10451 | resultobj = SWIG_From_int((int)result); |
| 10452 | return resultobj; |
| 10453 | fail: |
| 10454 | return NULL; |
| 10455 | } |
| 10456 | |
| 10457 | |
| 10458 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10459 | PyObject *resultobj; |
| 10460 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10461 | int arg2 ; |
| 10462 | wxString result; |
| 10463 | PyObject * obj0 = 0 ; |
| 10464 | PyObject * obj1 = 0 ; |
| 10465 | char *kwnames[] = { |
| 10466 | (char *) "self",(char *) "row", NULL |
| 10467 | }; |
| 10468 | |
| 10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 10470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10472 | arg2 = (int)SWIG_As_int(obj1); |
| 10473 | if (PyErr_Occurred()) SWIG_fail; |
| 10474 | { |
| 10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10476 | result = (arg1)->GetRowLabelValue(arg2); |
| 10477 | |
| 10478 | wxPyEndAllowThreads(__tstate); |
| 10479 | if (PyErr_Occurred()) SWIG_fail; |
| 10480 | } |
| 10481 | { |
| 10482 | #if wxUSE_UNICODE |
| 10483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 10484 | #else |
| 10485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 10486 | #endif |
| 10487 | } |
| 10488 | return resultobj; |
| 10489 | fail: |
| 10490 | return NULL; |
| 10491 | } |
| 10492 | |
| 10493 | |
| 10494 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10495 | PyObject *resultobj; |
| 10496 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10497 | int arg2 ; |
| 10498 | wxString result; |
| 10499 | PyObject * obj0 = 0 ; |
| 10500 | PyObject * obj1 = 0 ; |
| 10501 | char *kwnames[] = { |
| 10502 | (char *) "self",(char *) "col", NULL |
| 10503 | }; |
| 10504 | |
| 10505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
| 10506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10508 | arg2 = (int)SWIG_As_int(obj1); |
| 10509 | if (PyErr_Occurred()) SWIG_fail; |
| 10510 | { |
| 10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10512 | result = (arg1)->GetColLabelValue(arg2); |
| 10513 | |
| 10514 | wxPyEndAllowThreads(__tstate); |
| 10515 | if (PyErr_Occurred()) SWIG_fail; |
| 10516 | } |
| 10517 | { |
| 10518 | #if wxUSE_UNICODE |
| 10519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 10520 | #else |
| 10521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 10522 | #endif |
| 10523 | } |
| 10524 | return resultobj; |
| 10525 | fail: |
| 10526 | return NULL; |
| 10527 | } |
| 10528 | |
| 10529 | |
| 10530 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10531 | PyObject *resultobj; |
| 10532 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10533 | wxColour result; |
| 10534 | PyObject * obj0 = 0 ; |
| 10535 | char *kwnames[] = { |
| 10536 | (char *) "self", NULL |
| 10537 | }; |
| 10538 | |
| 10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; |
| 10540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10542 | { |
| 10543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10544 | result = (arg1)->GetGridLineColour(); |
| 10545 | |
| 10546 | wxPyEndAllowThreads(__tstate); |
| 10547 | if (PyErr_Occurred()) SWIG_fail; |
| 10548 | } |
| 10549 | { |
| 10550 | wxColour * resultptr; |
| 10551 | resultptr = new wxColour((wxColour &) result); |
| 10552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 10553 | } |
| 10554 | return resultobj; |
| 10555 | fail: |
| 10556 | return NULL; |
| 10557 | } |
| 10558 | |
| 10559 | |
| 10560 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10561 | PyObject *resultobj; |
| 10562 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10563 | wxColour result; |
| 10564 | PyObject * obj0 = 0 ; |
| 10565 | char *kwnames[] = { |
| 10566 | (char *) "self", NULL |
| 10567 | }; |
| 10568 | |
| 10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; |
| 10570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10572 | { |
| 10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10574 | result = (arg1)->GetCellHighlightColour(); |
| 10575 | |
| 10576 | wxPyEndAllowThreads(__tstate); |
| 10577 | if (PyErr_Occurred()) SWIG_fail; |
| 10578 | } |
| 10579 | { |
| 10580 | wxColour * resultptr; |
| 10581 | resultptr = new wxColour((wxColour &) result); |
| 10582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 10583 | } |
| 10584 | return resultobj; |
| 10585 | fail: |
| 10586 | return NULL; |
| 10587 | } |
| 10588 | |
| 10589 | |
| 10590 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10591 | PyObject *resultobj; |
| 10592 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10593 | int result; |
| 10594 | PyObject * obj0 = 0 ; |
| 10595 | char *kwnames[] = { |
| 10596 | (char *) "self", NULL |
| 10597 | }; |
| 10598 | |
| 10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; |
| 10600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10602 | { |
| 10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10604 | result = (int)(arg1)->GetCellHighlightPenWidth(); |
| 10605 | |
| 10606 | wxPyEndAllowThreads(__tstate); |
| 10607 | if (PyErr_Occurred()) SWIG_fail; |
| 10608 | } |
| 10609 | resultobj = SWIG_From_int((int)result); |
| 10610 | return resultobj; |
| 10611 | fail: |
| 10612 | return NULL; |
| 10613 | } |
| 10614 | |
| 10615 | |
| 10616 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10617 | PyObject *resultobj; |
| 10618 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10619 | int result; |
| 10620 | PyObject * obj0 = 0 ; |
| 10621 | char *kwnames[] = { |
| 10622 | (char *) "self", NULL |
| 10623 | }; |
| 10624 | |
| 10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; |
| 10626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10628 | { |
| 10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10630 | result = (int)(arg1)->GetCellHighlightROPenWidth(); |
| 10631 | |
| 10632 | wxPyEndAllowThreads(__tstate); |
| 10633 | if (PyErr_Occurred()) SWIG_fail; |
| 10634 | } |
| 10635 | resultobj = SWIG_From_int((int)result); |
| 10636 | return resultobj; |
| 10637 | fail: |
| 10638 | return NULL; |
| 10639 | } |
| 10640 | |
| 10641 | |
| 10642 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10643 | PyObject *resultobj; |
| 10644 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10645 | int arg2 ; |
| 10646 | PyObject * obj0 = 0 ; |
| 10647 | PyObject * obj1 = 0 ; |
| 10648 | char *kwnames[] = { |
| 10649 | (char *) "self",(char *) "width", NULL |
| 10650 | }; |
| 10651 | |
| 10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
| 10653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10655 | arg2 = (int)SWIG_As_int(obj1); |
| 10656 | if (PyErr_Occurred()) SWIG_fail; |
| 10657 | { |
| 10658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10659 | (arg1)->SetRowLabelSize(arg2); |
| 10660 | |
| 10661 | wxPyEndAllowThreads(__tstate); |
| 10662 | if (PyErr_Occurred()) SWIG_fail; |
| 10663 | } |
| 10664 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10665 | return resultobj; |
| 10666 | fail: |
| 10667 | return NULL; |
| 10668 | } |
| 10669 | |
| 10670 | |
| 10671 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10672 | PyObject *resultobj; |
| 10673 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10674 | int arg2 ; |
| 10675 | PyObject * obj0 = 0 ; |
| 10676 | PyObject * obj1 = 0 ; |
| 10677 | char *kwnames[] = { |
| 10678 | (char *) "self",(char *) "height", NULL |
| 10679 | }; |
| 10680 | |
| 10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
| 10682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10684 | arg2 = (int)SWIG_As_int(obj1); |
| 10685 | if (PyErr_Occurred()) SWIG_fail; |
| 10686 | { |
| 10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10688 | (arg1)->SetColLabelSize(arg2); |
| 10689 | |
| 10690 | wxPyEndAllowThreads(__tstate); |
| 10691 | if (PyErr_Occurred()) SWIG_fail; |
| 10692 | } |
| 10693 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10694 | return resultobj; |
| 10695 | fail: |
| 10696 | return NULL; |
| 10697 | } |
| 10698 | |
| 10699 | |
| 10700 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10701 | PyObject *resultobj; |
| 10702 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10703 | wxColour *arg2 = 0 ; |
| 10704 | wxColour temp2 ; |
| 10705 | PyObject * obj0 = 0 ; |
| 10706 | PyObject * obj1 = 0 ; |
| 10707 | char *kwnames[] = { |
| 10708 | (char *) "self","arg2", NULL |
| 10709 | }; |
| 10710 | |
| 10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
| 10712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10714 | { |
| 10715 | arg2 = &temp2; |
| 10716 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 10717 | } |
| 10718 | { |
| 10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10720 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); |
| 10721 | |
| 10722 | wxPyEndAllowThreads(__tstate); |
| 10723 | if (PyErr_Occurred()) SWIG_fail; |
| 10724 | } |
| 10725 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10726 | return resultobj; |
| 10727 | fail: |
| 10728 | return NULL; |
| 10729 | } |
| 10730 | |
| 10731 | |
| 10732 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10733 | PyObject *resultobj; |
| 10734 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10735 | wxColour *arg2 = 0 ; |
| 10736 | wxColour temp2 ; |
| 10737 | PyObject * obj0 = 0 ; |
| 10738 | PyObject * obj1 = 0 ; |
| 10739 | char *kwnames[] = { |
| 10740 | (char *) "self","arg2", NULL |
| 10741 | }; |
| 10742 | |
| 10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; |
| 10744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10746 | { |
| 10747 | arg2 = &temp2; |
| 10748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 10749 | } |
| 10750 | { |
| 10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10752 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); |
| 10753 | |
| 10754 | wxPyEndAllowThreads(__tstate); |
| 10755 | if (PyErr_Occurred()) SWIG_fail; |
| 10756 | } |
| 10757 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10758 | return resultobj; |
| 10759 | fail: |
| 10760 | return NULL; |
| 10761 | } |
| 10762 | |
| 10763 | |
| 10764 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10765 | PyObject *resultobj; |
| 10766 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10767 | wxFont *arg2 = 0 ; |
| 10768 | PyObject * obj0 = 0 ; |
| 10769 | PyObject * obj1 = 0 ; |
| 10770 | char *kwnames[] = { |
| 10771 | (char *) "self","arg2", NULL |
| 10772 | }; |
| 10773 | |
| 10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; |
| 10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, |
| 10778 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 10779 | SWIG_fail; |
| 10780 | if (arg2 == NULL) { |
| 10781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 10782 | SWIG_fail; |
| 10783 | } |
| 10784 | { |
| 10785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10786 | (arg1)->SetLabelFont((wxFont const &)*arg2); |
| 10787 | |
| 10788 | wxPyEndAllowThreads(__tstate); |
| 10789 | if (PyErr_Occurred()) SWIG_fail; |
| 10790 | } |
| 10791 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10792 | return resultobj; |
| 10793 | fail: |
| 10794 | return NULL; |
| 10795 | } |
| 10796 | |
| 10797 | |
| 10798 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10799 | PyObject *resultobj; |
| 10800 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10801 | int arg2 ; |
| 10802 | int arg3 ; |
| 10803 | PyObject * obj0 = 0 ; |
| 10804 | PyObject * obj1 = 0 ; |
| 10805 | PyObject * obj2 = 0 ; |
| 10806 | char *kwnames[] = { |
| 10807 | (char *) "self",(char *) "horiz",(char *) "vert", NULL |
| 10808 | }; |
| 10809 | |
| 10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 10811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10813 | arg2 = (int)SWIG_As_int(obj1); |
| 10814 | if (PyErr_Occurred()) SWIG_fail; |
| 10815 | arg3 = (int)SWIG_As_int(obj2); |
| 10816 | if (PyErr_Occurred()) SWIG_fail; |
| 10817 | { |
| 10818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10819 | (arg1)->SetRowLabelAlignment(arg2,arg3); |
| 10820 | |
| 10821 | wxPyEndAllowThreads(__tstate); |
| 10822 | if (PyErr_Occurred()) SWIG_fail; |
| 10823 | } |
| 10824 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10825 | return resultobj; |
| 10826 | fail: |
| 10827 | return NULL; |
| 10828 | } |
| 10829 | |
| 10830 | |
| 10831 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10832 | PyObject *resultobj; |
| 10833 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10834 | int arg2 ; |
| 10835 | int arg3 ; |
| 10836 | PyObject * obj0 = 0 ; |
| 10837 | PyObject * obj1 = 0 ; |
| 10838 | PyObject * obj2 = 0 ; |
| 10839 | char *kwnames[] = { |
| 10840 | (char *) "self",(char *) "horiz",(char *) "vert", NULL |
| 10841 | }; |
| 10842 | |
| 10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 10844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10846 | arg2 = (int)SWIG_As_int(obj1); |
| 10847 | if (PyErr_Occurred()) SWIG_fail; |
| 10848 | arg3 = (int)SWIG_As_int(obj2); |
| 10849 | if (PyErr_Occurred()) SWIG_fail; |
| 10850 | { |
| 10851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10852 | (arg1)->SetColLabelAlignment(arg2,arg3); |
| 10853 | |
| 10854 | wxPyEndAllowThreads(__tstate); |
| 10855 | if (PyErr_Occurred()) SWIG_fail; |
| 10856 | } |
| 10857 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10858 | return resultobj; |
| 10859 | fail: |
| 10860 | return NULL; |
| 10861 | } |
| 10862 | |
| 10863 | |
| 10864 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10865 | PyObject *resultobj; |
| 10866 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10867 | int arg2 ; |
| 10868 | PyObject * obj0 = 0 ; |
| 10869 | PyObject * obj1 = 0 ; |
| 10870 | char *kwnames[] = { |
| 10871 | (char *) "self",(char *) "textOrientation", NULL |
| 10872 | }; |
| 10873 | |
| 10874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; |
| 10875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10877 | arg2 = (int)SWIG_As_int(obj1); |
| 10878 | if (PyErr_Occurred()) SWIG_fail; |
| 10879 | { |
| 10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10881 | (arg1)->SetColLabelTextOrientation(arg2); |
| 10882 | |
| 10883 | wxPyEndAllowThreads(__tstate); |
| 10884 | if (PyErr_Occurred()) SWIG_fail; |
| 10885 | } |
| 10886 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10887 | return resultobj; |
| 10888 | fail: |
| 10889 | return NULL; |
| 10890 | } |
| 10891 | |
| 10892 | |
| 10893 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10894 | PyObject *resultobj; |
| 10895 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10896 | int arg2 ; |
| 10897 | wxString *arg3 = 0 ; |
| 10898 | bool temp3 = false ; |
| 10899 | PyObject * obj0 = 0 ; |
| 10900 | PyObject * obj1 = 0 ; |
| 10901 | PyObject * obj2 = 0 ; |
| 10902 | char *kwnames[] = { |
| 10903 | (char *) "self",(char *) "row","arg3", NULL |
| 10904 | }; |
| 10905 | |
| 10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 10907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10909 | arg2 = (int)SWIG_As_int(obj1); |
| 10910 | if (PyErr_Occurred()) SWIG_fail; |
| 10911 | { |
| 10912 | arg3 = wxString_in_helper(obj2); |
| 10913 | if (arg3 == NULL) SWIG_fail; |
| 10914 | temp3 = true; |
| 10915 | } |
| 10916 | { |
| 10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10918 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); |
| 10919 | |
| 10920 | wxPyEndAllowThreads(__tstate); |
| 10921 | if (PyErr_Occurred()) SWIG_fail; |
| 10922 | } |
| 10923 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10924 | { |
| 10925 | if (temp3) |
| 10926 | delete arg3; |
| 10927 | } |
| 10928 | return resultobj; |
| 10929 | fail: |
| 10930 | { |
| 10931 | if (temp3) |
| 10932 | delete arg3; |
| 10933 | } |
| 10934 | return NULL; |
| 10935 | } |
| 10936 | |
| 10937 | |
| 10938 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10939 | PyObject *resultobj; |
| 10940 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10941 | int arg2 ; |
| 10942 | wxString *arg3 = 0 ; |
| 10943 | bool temp3 = false ; |
| 10944 | PyObject * obj0 = 0 ; |
| 10945 | PyObject * obj1 = 0 ; |
| 10946 | PyObject * obj2 = 0 ; |
| 10947 | char *kwnames[] = { |
| 10948 | (char *) "self",(char *) "col","arg3", NULL |
| 10949 | }; |
| 10950 | |
| 10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10954 | arg2 = (int)SWIG_As_int(obj1); |
| 10955 | if (PyErr_Occurred()) SWIG_fail; |
| 10956 | { |
| 10957 | arg3 = wxString_in_helper(obj2); |
| 10958 | if (arg3 == NULL) SWIG_fail; |
| 10959 | temp3 = true; |
| 10960 | } |
| 10961 | { |
| 10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10963 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); |
| 10964 | |
| 10965 | wxPyEndAllowThreads(__tstate); |
| 10966 | if (PyErr_Occurred()) SWIG_fail; |
| 10967 | } |
| 10968 | Py_INCREF(Py_None); resultobj = Py_None; |
| 10969 | { |
| 10970 | if (temp3) |
| 10971 | delete arg3; |
| 10972 | } |
| 10973 | return resultobj; |
| 10974 | fail: |
| 10975 | { |
| 10976 | if (temp3) |
| 10977 | delete arg3; |
| 10978 | } |
| 10979 | return NULL; |
| 10980 | } |
| 10981 | |
| 10982 | |
| 10983 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 10984 | PyObject *resultobj; |
| 10985 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 10986 | wxColour *arg2 = 0 ; |
| 10987 | wxColour temp2 ; |
| 10988 | PyObject * obj0 = 0 ; |
| 10989 | PyObject * obj1 = 0 ; |
| 10990 | char *kwnames[] = { |
| 10991 | (char *) "self","arg2", NULL |
| 10992 | }; |
| 10993 | |
| 10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; |
| 10995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 10996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 10997 | { |
| 10998 | arg2 = &temp2; |
| 10999 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 11000 | } |
| 11001 | { |
| 11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11003 | (arg1)->SetGridLineColour((wxColour const &)*arg2); |
| 11004 | |
| 11005 | wxPyEndAllowThreads(__tstate); |
| 11006 | if (PyErr_Occurred()) SWIG_fail; |
| 11007 | } |
| 11008 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11009 | return resultobj; |
| 11010 | fail: |
| 11011 | return NULL; |
| 11012 | } |
| 11013 | |
| 11014 | |
| 11015 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11016 | PyObject *resultobj; |
| 11017 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11018 | wxColour *arg2 = 0 ; |
| 11019 | wxColour temp2 ; |
| 11020 | PyObject * obj0 = 0 ; |
| 11021 | PyObject * obj1 = 0 ; |
| 11022 | char *kwnames[] = { |
| 11023 | (char *) "self","arg2", NULL |
| 11024 | }; |
| 11025 | |
| 11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; |
| 11027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11029 | { |
| 11030 | arg2 = &temp2; |
| 11031 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 11032 | } |
| 11033 | { |
| 11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11035 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); |
| 11036 | |
| 11037 | wxPyEndAllowThreads(__tstate); |
| 11038 | if (PyErr_Occurred()) SWIG_fail; |
| 11039 | } |
| 11040 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11041 | return resultobj; |
| 11042 | fail: |
| 11043 | return NULL; |
| 11044 | } |
| 11045 | |
| 11046 | |
| 11047 | static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11048 | PyObject *resultobj; |
| 11049 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11050 | int arg2 ; |
| 11051 | PyObject * obj0 = 0 ; |
| 11052 | PyObject * obj1 = 0 ; |
| 11053 | char *kwnames[] = { |
| 11054 | (char *) "self",(char *) "width", NULL |
| 11055 | }; |
| 11056 | |
| 11057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; |
| 11058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11060 | arg2 = (int)SWIG_As_int(obj1); |
| 11061 | if (PyErr_Occurred()) SWIG_fail; |
| 11062 | { |
| 11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11064 | (arg1)->SetCellHighlightPenWidth(arg2); |
| 11065 | |
| 11066 | wxPyEndAllowThreads(__tstate); |
| 11067 | if (PyErr_Occurred()) SWIG_fail; |
| 11068 | } |
| 11069 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11070 | return resultobj; |
| 11071 | fail: |
| 11072 | return NULL; |
| 11073 | } |
| 11074 | |
| 11075 | |
| 11076 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11077 | PyObject *resultobj; |
| 11078 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11079 | int arg2 ; |
| 11080 | PyObject * obj0 = 0 ; |
| 11081 | PyObject * obj1 = 0 ; |
| 11082 | char *kwnames[] = { |
| 11083 | (char *) "self",(char *) "width", NULL |
| 11084 | }; |
| 11085 | |
| 11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; |
| 11087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11089 | arg2 = (int)SWIG_As_int(obj1); |
| 11090 | if (PyErr_Occurred()) SWIG_fail; |
| 11091 | { |
| 11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11093 | (arg1)->SetCellHighlightROPenWidth(arg2); |
| 11094 | |
| 11095 | wxPyEndAllowThreads(__tstate); |
| 11096 | if (PyErr_Occurred()) SWIG_fail; |
| 11097 | } |
| 11098 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11099 | return resultobj; |
| 11100 | fail: |
| 11101 | return NULL; |
| 11102 | } |
| 11103 | |
| 11104 | |
| 11105 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11106 | PyObject *resultobj; |
| 11107 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11108 | bool arg2 = (bool) true ; |
| 11109 | PyObject * obj0 = 0 ; |
| 11110 | PyObject * obj1 = 0 ; |
| 11111 | char *kwnames[] = { |
| 11112 | (char *) "self",(char *) "enable", NULL |
| 11113 | }; |
| 11114 | |
| 11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; |
| 11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11118 | if (obj1) { |
| 11119 | arg2 = (bool)SWIG_As_bool(obj1); |
| 11120 | if (PyErr_Occurred()) SWIG_fail; |
| 11121 | } |
| 11122 | { |
| 11123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11124 | (arg1)->EnableDragRowSize(arg2); |
| 11125 | |
| 11126 | wxPyEndAllowThreads(__tstate); |
| 11127 | if (PyErr_Occurred()) SWIG_fail; |
| 11128 | } |
| 11129 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11130 | return resultobj; |
| 11131 | fail: |
| 11132 | return NULL; |
| 11133 | } |
| 11134 | |
| 11135 | |
| 11136 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11137 | PyObject *resultobj; |
| 11138 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11139 | PyObject * obj0 = 0 ; |
| 11140 | char *kwnames[] = { |
| 11141 | (char *) "self", NULL |
| 11142 | }; |
| 11143 | |
| 11144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; |
| 11145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11147 | { |
| 11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11149 | (arg1)->DisableDragRowSize(); |
| 11150 | |
| 11151 | wxPyEndAllowThreads(__tstate); |
| 11152 | if (PyErr_Occurred()) SWIG_fail; |
| 11153 | } |
| 11154 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11155 | return resultobj; |
| 11156 | fail: |
| 11157 | return NULL; |
| 11158 | } |
| 11159 | |
| 11160 | |
| 11161 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11162 | PyObject *resultobj; |
| 11163 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11164 | bool result; |
| 11165 | PyObject * obj0 = 0 ; |
| 11166 | char *kwnames[] = { |
| 11167 | (char *) "self", NULL |
| 11168 | }; |
| 11169 | |
| 11170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; |
| 11171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11173 | { |
| 11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11175 | result = (bool)(arg1)->CanDragRowSize(); |
| 11176 | |
| 11177 | wxPyEndAllowThreads(__tstate); |
| 11178 | if (PyErr_Occurred()) SWIG_fail; |
| 11179 | } |
| 11180 | { |
| 11181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 11182 | } |
| 11183 | return resultobj; |
| 11184 | fail: |
| 11185 | return NULL; |
| 11186 | } |
| 11187 | |
| 11188 | |
| 11189 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11190 | PyObject *resultobj; |
| 11191 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11192 | bool arg2 = (bool) true ; |
| 11193 | PyObject * obj0 = 0 ; |
| 11194 | PyObject * obj1 = 0 ; |
| 11195 | char *kwnames[] = { |
| 11196 | (char *) "self",(char *) "enable", NULL |
| 11197 | }; |
| 11198 | |
| 11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; |
| 11200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11202 | if (obj1) { |
| 11203 | arg2 = (bool)SWIG_As_bool(obj1); |
| 11204 | if (PyErr_Occurred()) SWIG_fail; |
| 11205 | } |
| 11206 | { |
| 11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11208 | (arg1)->EnableDragColSize(arg2); |
| 11209 | |
| 11210 | wxPyEndAllowThreads(__tstate); |
| 11211 | if (PyErr_Occurred()) SWIG_fail; |
| 11212 | } |
| 11213 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11214 | return resultobj; |
| 11215 | fail: |
| 11216 | return NULL; |
| 11217 | } |
| 11218 | |
| 11219 | |
| 11220 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11221 | PyObject *resultobj; |
| 11222 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11223 | PyObject * obj0 = 0 ; |
| 11224 | char *kwnames[] = { |
| 11225 | (char *) "self", NULL |
| 11226 | }; |
| 11227 | |
| 11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; |
| 11229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11231 | { |
| 11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11233 | (arg1)->DisableDragColSize(); |
| 11234 | |
| 11235 | wxPyEndAllowThreads(__tstate); |
| 11236 | if (PyErr_Occurred()) SWIG_fail; |
| 11237 | } |
| 11238 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11239 | return resultobj; |
| 11240 | fail: |
| 11241 | return NULL; |
| 11242 | } |
| 11243 | |
| 11244 | |
| 11245 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11246 | PyObject *resultobj; |
| 11247 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11248 | bool result; |
| 11249 | PyObject * obj0 = 0 ; |
| 11250 | char *kwnames[] = { |
| 11251 | (char *) "self", NULL |
| 11252 | }; |
| 11253 | |
| 11254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; |
| 11255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11257 | { |
| 11258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11259 | result = (bool)(arg1)->CanDragColSize(); |
| 11260 | |
| 11261 | wxPyEndAllowThreads(__tstate); |
| 11262 | if (PyErr_Occurred()) SWIG_fail; |
| 11263 | } |
| 11264 | { |
| 11265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 11266 | } |
| 11267 | return resultobj; |
| 11268 | fail: |
| 11269 | return NULL; |
| 11270 | } |
| 11271 | |
| 11272 | |
| 11273 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11274 | PyObject *resultobj; |
| 11275 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11276 | bool arg2 = (bool) true ; |
| 11277 | PyObject * obj0 = 0 ; |
| 11278 | PyObject * obj1 = 0 ; |
| 11279 | char *kwnames[] = { |
| 11280 | (char *) "self",(char *) "enable", NULL |
| 11281 | }; |
| 11282 | |
| 11283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; |
| 11284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11286 | if (obj1) { |
| 11287 | arg2 = (bool)SWIG_As_bool(obj1); |
| 11288 | if (PyErr_Occurred()) SWIG_fail; |
| 11289 | } |
| 11290 | { |
| 11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11292 | (arg1)->EnableDragGridSize(arg2); |
| 11293 | |
| 11294 | wxPyEndAllowThreads(__tstate); |
| 11295 | if (PyErr_Occurred()) SWIG_fail; |
| 11296 | } |
| 11297 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11298 | return resultobj; |
| 11299 | fail: |
| 11300 | return NULL; |
| 11301 | } |
| 11302 | |
| 11303 | |
| 11304 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11305 | PyObject *resultobj; |
| 11306 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11307 | PyObject * obj0 = 0 ; |
| 11308 | char *kwnames[] = { |
| 11309 | (char *) "self", NULL |
| 11310 | }; |
| 11311 | |
| 11312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; |
| 11313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11315 | { |
| 11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11317 | (arg1)->DisableDragGridSize(); |
| 11318 | |
| 11319 | wxPyEndAllowThreads(__tstate); |
| 11320 | if (PyErr_Occurred()) SWIG_fail; |
| 11321 | } |
| 11322 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11323 | return resultobj; |
| 11324 | fail: |
| 11325 | return NULL; |
| 11326 | } |
| 11327 | |
| 11328 | |
| 11329 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11330 | PyObject *resultobj; |
| 11331 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11332 | bool result; |
| 11333 | PyObject * obj0 = 0 ; |
| 11334 | char *kwnames[] = { |
| 11335 | (char *) "self", NULL |
| 11336 | }; |
| 11337 | |
| 11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; |
| 11339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11341 | { |
| 11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11343 | result = (bool)(arg1)->CanDragGridSize(); |
| 11344 | |
| 11345 | wxPyEndAllowThreads(__tstate); |
| 11346 | if (PyErr_Occurred()) SWIG_fail; |
| 11347 | } |
| 11348 | { |
| 11349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 11350 | } |
| 11351 | return resultobj; |
| 11352 | fail: |
| 11353 | return NULL; |
| 11354 | } |
| 11355 | |
| 11356 | |
| 11357 | static PyObject *_wrap_Grid_EnableDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11358 | PyObject *resultobj; |
| 11359 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11360 | bool arg2 = (bool) true ; |
| 11361 | PyObject * obj0 = 0 ; |
| 11362 | PyObject * obj1 = 0 ; |
| 11363 | char *kwnames[] = { |
| 11364 | (char *) "self",(char *) "enable", NULL |
| 11365 | }; |
| 11366 | |
| 11367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragCell",kwnames,&obj0,&obj1)) goto fail; |
| 11368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11370 | if (obj1) { |
| 11371 | arg2 = (bool)SWIG_As_bool(obj1); |
| 11372 | if (PyErr_Occurred()) SWIG_fail; |
| 11373 | } |
| 11374 | { |
| 11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11376 | (arg1)->EnableDragCell(arg2); |
| 11377 | |
| 11378 | wxPyEndAllowThreads(__tstate); |
| 11379 | if (PyErr_Occurred()) SWIG_fail; |
| 11380 | } |
| 11381 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11382 | return resultobj; |
| 11383 | fail: |
| 11384 | return NULL; |
| 11385 | } |
| 11386 | |
| 11387 | |
| 11388 | static PyObject *_wrap_Grid_DisableDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11389 | PyObject *resultobj; |
| 11390 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11391 | PyObject * obj0 = 0 ; |
| 11392 | char *kwnames[] = { |
| 11393 | (char *) "self", NULL |
| 11394 | }; |
| 11395 | |
| 11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragCell",kwnames,&obj0)) goto fail; |
| 11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11399 | { |
| 11400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11401 | (arg1)->DisableDragCell(); |
| 11402 | |
| 11403 | wxPyEndAllowThreads(__tstate); |
| 11404 | if (PyErr_Occurred()) SWIG_fail; |
| 11405 | } |
| 11406 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11407 | return resultobj; |
| 11408 | fail: |
| 11409 | return NULL; |
| 11410 | } |
| 11411 | |
| 11412 | |
| 11413 | static PyObject *_wrap_Grid_CanDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11414 | PyObject *resultobj; |
| 11415 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11416 | bool result; |
| 11417 | PyObject * obj0 = 0 ; |
| 11418 | char *kwnames[] = { |
| 11419 | (char *) "self", NULL |
| 11420 | }; |
| 11421 | |
| 11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragCell",kwnames,&obj0)) goto fail; |
| 11423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11425 | { |
| 11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11427 | result = (bool)(arg1)->CanDragCell(); |
| 11428 | |
| 11429 | wxPyEndAllowThreads(__tstate); |
| 11430 | if (PyErr_Occurred()) SWIG_fail; |
| 11431 | } |
| 11432 | { |
| 11433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 11434 | } |
| 11435 | return resultobj; |
| 11436 | fail: |
| 11437 | return NULL; |
| 11438 | } |
| 11439 | |
| 11440 | |
| 11441 | static PyObject *_wrap_Grid_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11442 | PyObject *resultobj; |
| 11443 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11444 | int arg2 ; |
| 11445 | int arg3 ; |
| 11446 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; |
| 11447 | PyObject * obj0 = 0 ; |
| 11448 | PyObject * obj1 = 0 ; |
| 11449 | PyObject * obj2 = 0 ; |
| 11450 | PyObject * obj3 = 0 ; |
| 11451 | char *kwnames[] = { |
| 11452 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL |
| 11453 | }; |
| 11454 | |
| 11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 11456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11458 | arg2 = (int)SWIG_As_int(obj1); |
| 11459 | if (PyErr_Occurred()) SWIG_fail; |
| 11460 | arg3 = (int)SWIG_As_int(obj2); |
| 11461 | if (PyErr_Occurred()) SWIG_fail; |
| 11462 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr, |
| 11463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11464 | { |
| 11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11466 | (arg1)->SetAttr(arg2,arg3,arg4); |
| 11467 | |
| 11468 | wxPyEndAllowThreads(__tstate); |
| 11469 | if (PyErr_Occurred()) SWIG_fail; |
| 11470 | } |
| 11471 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11472 | return resultobj; |
| 11473 | fail: |
| 11474 | return NULL; |
| 11475 | } |
| 11476 | |
| 11477 | |
| 11478 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11479 | PyObject *resultobj; |
| 11480 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11481 | int arg2 ; |
| 11482 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; |
| 11483 | PyObject * obj0 = 0 ; |
| 11484 | PyObject * obj1 = 0 ; |
| 11485 | PyObject * obj2 = 0 ; |
| 11486 | char *kwnames[] = { |
| 11487 | (char *) "self",(char *) "row",(char *) "attr", NULL |
| 11488 | }; |
| 11489 | |
| 11490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 11491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11493 | arg2 = (int)SWIG_As_int(obj1); |
| 11494 | if (PyErr_Occurred()) SWIG_fail; |
| 11495 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 11496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11497 | { |
| 11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11499 | (arg1)->SetRowAttr(arg2,arg3); |
| 11500 | |
| 11501 | wxPyEndAllowThreads(__tstate); |
| 11502 | if (PyErr_Occurred()) SWIG_fail; |
| 11503 | } |
| 11504 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11505 | return resultobj; |
| 11506 | fail: |
| 11507 | return NULL; |
| 11508 | } |
| 11509 | |
| 11510 | |
| 11511 | static PyObject *_wrap_Grid_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11512 | PyObject *resultobj; |
| 11513 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11514 | int arg2 ; |
| 11515 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; |
| 11516 | PyObject * obj0 = 0 ; |
| 11517 | PyObject * obj1 = 0 ; |
| 11518 | PyObject * obj2 = 0 ; |
| 11519 | char *kwnames[] = { |
| 11520 | (char *) "self",(char *) "col",(char *) "attr", NULL |
| 11521 | }; |
| 11522 | |
| 11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 11524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11526 | arg2 = (int)SWIG_As_int(obj1); |
| 11527 | if (PyErr_Occurred()) SWIG_fail; |
| 11528 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
| 11529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11530 | { |
| 11531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11532 | (arg1)->SetColAttr(arg2,arg3); |
| 11533 | |
| 11534 | wxPyEndAllowThreads(__tstate); |
| 11535 | if (PyErr_Occurred()) SWIG_fail; |
| 11536 | } |
| 11537 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11538 | return resultobj; |
| 11539 | fail: |
| 11540 | return NULL; |
| 11541 | } |
| 11542 | |
| 11543 | |
| 11544 | static PyObject *_wrap_Grid_GetOrCreateCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11545 | PyObject *resultobj; |
| 11546 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11547 | int arg2 ; |
| 11548 | int arg3 ; |
| 11549 | wxGridCellAttr *result; |
| 11550 | PyObject * obj0 = 0 ; |
| 11551 | PyObject * obj1 = 0 ; |
| 11552 | PyObject * obj2 = 0 ; |
| 11553 | char *kwnames[] = { |
| 11554 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 11555 | }; |
| 11556 | |
| 11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetOrCreateCellAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 11558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11560 | arg2 = (int)SWIG_As_int(obj1); |
| 11561 | if (PyErr_Occurred()) SWIG_fail; |
| 11562 | arg3 = (int)SWIG_As_int(obj2); |
| 11563 | if (PyErr_Occurred()) SWIG_fail; |
| 11564 | { |
| 11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11566 | result = (wxGridCellAttr *)((wxGrid const *)arg1)->GetOrCreateCellAttr(arg2,arg3); |
| 11567 | |
| 11568 | wxPyEndAllowThreads(__tstate); |
| 11569 | if (PyErr_Occurred()) SWIG_fail; |
| 11570 | } |
| 11571 | { |
| 11572 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
| 11573 | } |
| 11574 | return resultobj; |
| 11575 | fail: |
| 11576 | return NULL; |
| 11577 | } |
| 11578 | |
| 11579 | |
| 11580 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11581 | PyObject *resultobj; |
| 11582 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11583 | int arg2 ; |
| 11584 | PyObject * obj0 = 0 ; |
| 11585 | PyObject * obj1 = 0 ; |
| 11586 | char *kwnames[] = { |
| 11587 | (char *) "self",(char *) "col", NULL |
| 11588 | }; |
| 11589 | |
| 11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; |
| 11591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11593 | arg2 = (int)SWIG_As_int(obj1); |
| 11594 | if (PyErr_Occurred()) SWIG_fail; |
| 11595 | { |
| 11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11597 | (arg1)->SetColFormatBool(arg2); |
| 11598 | |
| 11599 | wxPyEndAllowThreads(__tstate); |
| 11600 | if (PyErr_Occurred()) SWIG_fail; |
| 11601 | } |
| 11602 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11603 | return resultobj; |
| 11604 | fail: |
| 11605 | return NULL; |
| 11606 | } |
| 11607 | |
| 11608 | |
| 11609 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11610 | PyObject *resultobj; |
| 11611 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11612 | int arg2 ; |
| 11613 | PyObject * obj0 = 0 ; |
| 11614 | PyObject * obj1 = 0 ; |
| 11615 | char *kwnames[] = { |
| 11616 | (char *) "self",(char *) "col", NULL |
| 11617 | }; |
| 11618 | |
| 11619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; |
| 11620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11622 | arg2 = (int)SWIG_As_int(obj1); |
| 11623 | if (PyErr_Occurred()) SWIG_fail; |
| 11624 | { |
| 11625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11626 | (arg1)->SetColFormatNumber(arg2); |
| 11627 | |
| 11628 | wxPyEndAllowThreads(__tstate); |
| 11629 | if (PyErr_Occurred()) SWIG_fail; |
| 11630 | } |
| 11631 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11632 | return resultobj; |
| 11633 | fail: |
| 11634 | return NULL; |
| 11635 | } |
| 11636 | |
| 11637 | |
| 11638 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11639 | PyObject *resultobj; |
| 11640 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11641 | int arg2 ; |
| 11642 | int arg3 = (int) -1 ; |
| 11643 | int arg4 = (int) -1 ; |
| 11644 | PyObject * obj0 = 0 ; |
| 11645 | PyObject * obj1 = 0 ; |
| 11646 | PyObject * obj2 = 0 ; |
| 11647 | PyObject * obj3 = 0 ; |
| 11648 | char *kwnames[] = { |
| 11649 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL |
| 11650 | }; |
| 11651 | |
| 11652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 11653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11655 | arg2 = (int)SWIG_As_int(obj1); |
| 11656 | if (PyErr_Occurred()) SWIG_fail; |
| 11657 | if (obj2) { |
| 11658 | arg3 = (int)SWIG_As_int(obj2); |
| 11659 | if (PyErr_Occurred()) SWIG_fail; |
| 11660 | } |
| 11661 | if (obj3) { |
| 11662 | arg4 = (int)SWIG_As_int(obj3); |
| 11663 | if (PyErr_Occurred()) SWIG_fail; |
| 11664 | } |
| 11665 | { |
| 11666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11667 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); |
| 11668 | |
| 11669 | wxPyEndAllowThreads(__tstate); |
| 11670 | if (PyErr_Occurred()) SWIG_fail; |
| 11671 | } |
| 11672 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11673 | return resultobj; |
| 11674 | fail: |
| 11675 | return NULL; |
| 11676 | } |
| 11677 | |
| 11678 | |
| 11679 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11680 | PyObject *resultobj; |
| 11681 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11682 | int arg2 ; |
| 11683 | wxString *arg3 = 0 ; |
| 11684 | bool temp3 = false ; |
| 11685 | PyObject * obj0 = 0 ; |
| 11686 | PyObject * obj1 = 0 ; |
| 11687 | PyObject * obj2 = 0 ; |
| 11688 | char *kwnames[] = { |
| 11689 | (char *) "self",(char *) "col",(char *) "typeName", NULL |
| 11690 | }; |
| 11691 | |
| 11692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 11693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11695 | arg2 = (int)SWIG_As_int(obj1); |
| 11696 | if (PyErr_Occurred()) SWIG_fail; |
| 11697 | { |
| 11698 | arg3 = wxString_in_helper(obj2); |
| 11699 | if (arg3 == NULL) SWIG_fail; |
| 11700 | temp3 = true; |
| 11701 | } |
| 11702 | { |
| 11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11704 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); |
| 11705 | |
| 11706 | wxPyEndAllowThreads(__tstate); |
| 11707 | if (PyErr_Occurred()) SWIG_fail; |
| 11708 | } |
| 11709 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11710 | { |
| 11711 | if (temp3) |
| 11712 | delete arg3; |
| 11713 | } |
| 11714 | return resultobj; |
| 11715 | fail: |
| 11716 | { |
| 11717 | if (temp3) |
| 11718 | delete arg3; |
| 11719 | } |
| 11720 | return NULL; |
| 11721 | } |
| 11722 | |
| 11723 | |
| 11724 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11725 | PyObject *resultobj; |
| 11726 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11727 | bool arg2 = (bool) true ; |
| 11728 | PyObject * obj0 = 0 ; |
| 11729 | PyObject * obj1 = 0 ; |
| 11730 | char *kwnames[] = { |
| 11731 | (char *) "self",(char *) "enable", NULL |
| 11732 | }; |
| 11733 | |
| 11734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; |
| 11735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11737 | if (obj1) { |
| 11738 | arg2 = (bool)SWIG_As_bool(obj1); |
| 11739 | if (PyErr_Occurred()) SWIG_fail; |
| 11740 | } |
| 11741 | { |
| 11742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11743 | (arg1)->EnableGridLines(arg2); |
| 11744 | |
| 11745 | wxPyEndAllowThreads(__tstate); |
| 11746 | if (PyErr_Occurred()) SWIG_fail; |
| 11747 | } |
| 11748 | Py_INCREF(Py_None); resultobj = Py_None; |
| 11749 | return resultobj; |
| 11750 | fail: |
| 11751 | return NULL; |
| 11752 | } |
| 11753 | |
| 11754 | |
| 11755 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11756 | PyObject *resultobj; |
| 11757 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11758 | bool result; |
| 11759 | PyObject * obj0 = 0 ; |
| 11760 | char *kwnames[] = { |
| 11761 | (char *) "self", NULL |
| 11762 | }; |
| 11763 | |
| 11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; |
| 11765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11767 | { |
| 11768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11769 | result = (bool)(arg1)->GridLinesEnabled(); |
| 11770 | |
| 11771 | wxPyEndAllowThreads(__tstate); |
| 11772 | if (PyErr_Occurred()) SWIG_fail; |
| 11773 | } |
| 11774 | { |
| 11775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 11776 | } |
| 11777 | return resultobj; |
| 11778 | fail: |
| 11779 | return NULL; |
| 11780 | } |
| 11781 | |
| 11782 | |
| 11783 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11784 | PyObject *resultobj; |
| 11785 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11786 | int result; |
| 11787 | PyObject * obj0 = 0 ; |
| 11788 | char *kwnames[] = { |
| 11789 | (char *) "self", NULL |
| 11790 | }; |
| 11791 | |
| 11792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; |
| 11793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11795 | { |
| 11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11797 | result = (int)(arg1)->GetDefaultRowSize(); |
| 11798 | |
| 11799 | wxPyEndAllowThreads(__tstate); |
| 11800 | if (PyErr_Occurred()) SWIG_fail; |
| 11801 | } |
| 11802 | resultobj = SWIG_From_int((int)result); |
| 11803 | return resultobj; |
| 11804 | fail: |
| 11805 | return NULL; |
| 11806 | } |
| 11807 | |
| 11808 | |
| 11809 | static PyObject *_wrap_Grid_GetRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11810 | PyObject *resultobj; |
| 11811 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11812 | int arg2 ; |
| 11813 | int result; |
| 11814 | PyObject * obj0 = 0 ; |
| 11815 | PyObject * obj1 = 0 ; |
| 11816 | char *kwnames[] = { |
| 11817 | (char *) "self",(char *) "row", NULL |
| 11818 | }; |
| 11819 | |
| 11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; |
| 11821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11823 | arg2 = (int)SWIG_As_int(obj1); |
| 11824 | if (PyErr_Occurred()) SWIG_fail; |
| 11825 | { |
| 11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11827 | result = (int)(arg1)->GetRowSize(arg2); |
| 11828 | |
| 11829 | wxPyEndAllowThreads(__tstate); |
| 11830 | if (PyErr_Occurred()) SWIG_fail; |
| 11831 | } |
| 11832 | resultobj = SWIG_From_int((int)result); |
| 11833 | return resultobj; |
| 11834 | fail: |
| 11835 | return NULL; |
| 11836 | } |
| 11837 | |
| 11838 | |
| 11839 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11840 | PyObject *resultobj; |
| 11841 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11842 | int result; |
| 11843 | PyObject * obj0 = 0 ; |
| 11844 | char *kwnames[] = { |
| 11845 | (char *) "self", NULL |
| 11846 | }; |
| 11847 | |
| 11848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; |
| 11849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11851 | { |
| 11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11853 | result = (int)(arg1)->GetDefaultColSize(); |
| 11854 | |
| 11855 | wxPyEndAllowThreads(__tstate); |
| 11856 | if (PyErr_Occurred()) SWIG_fail; |
| 11857 | } |
| 11858 | resultobj = SWIG_From_int((int)result); |
| 11859 | return resultobj; |
| 11860 | fail: |
| 11861 | return NULL; |
| 11862 | } |
| 11863 | |
| 11864 | |
| 11865 | static PyObject *_wrap_Grid_GetColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11866 | PyObject *resultobj; |
| 11867 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11868 | int arg2 ; |
| 11869 | int result; |
| 11870 | PyObject * obj0 = 0 ; |
| 11871 | PyObject * obj1 = 0 ; |
| 11872 | char *kwnames[] = { |
| 11873 | (char *) "self",(char *) "col", NULL |
| 11874 | }; |
| 11875 | |
| 11876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; |
| 11877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11879 | arg2 = (int)SWIG_As_int(obj1); |
| 11880 | if (PyErr_Occurred()) SWIG_fail; |
| 11881 | { |
| 11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11883 | result = (int)(arg1)->GetColSize(arg2); |
| 11884 | |
| 11885 | wxPyEndAllowThreads(__tstate); |
| 11886 | if (PyErr_Occurred()) SWIG_fail; |
| 11887 | } |
| 11888 | resultobj = SWIG_From_int((int)result); |
| 11889 | return resultobj; |
| 11890 | fail: |
| 11891 | return NULL; |
| 11892 | } |
| 11893 | |
| 11894 | |
| 11895 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11896 | PyObject *resultobj; |
| 11897 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11898 | wxColour result; |
| 11899 | PyObject * obj0 = 0 ; |
| 11900 | char *kwnames[] = { |
| 11901 | (char *) "self", NULL |
| 11902 | }; |
| 11903 | |
| 11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; |
| 11905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11907 | { |
| 11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11909 | result = (arg1)->GetDefaultCellBackgroundColour(); |
| 11910 | |
| 11911 | wxPyEndAllowThreads(__tstate); |
| 11912 | if (PyErr_Occurred()) SWIG_fail; |
| 11913 | } |
| 11914 | { |
| 11915 | wxColour * resultptr; |
| 11916 | resultptr = new wxColour((wxColour &) result); |
| 11917 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 11918 | } |
| 11919 | return resultobj; |
| 11920 | fail: |
| 11921 | return NULL; |
| 11922 | } |
| 11923 | |
| 11924 | |
| 11925 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11926 | PyObject *resultobj; |
| 11927 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11928 | int arg2 ; |
| 11929 | int arg3 ; |
| 11930 | wxColour result; |
| 11931 | PyObject * obj0 = 0 ; |
| 11932 | PyObject * obj1 = 0 ; |
| 11933 | PyObject * obj2 = 0 ; |
| 11934 | char *kwnames[] = { |
| 11935 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 11936 | }; |
| 11937 | |
| 11938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 11939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11941 | arg2 = (int)SWIG_As_int(obj1); |
| 11942 | if (PyErr_Occurred()) SWIG_fail; |
| 11943 | arg3 = (int)SWIG_As_int(obj2); |
| 11944 | if (PyErr_Occurred()) SWIG_fail; |
| 11945 | { |
| 11946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11947 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); |
| 11948 | |
| 11949 | wxPyEndAllowThreads(__tstate); |
| 11950 | if (PyErr_Occurred()) SWIG_fail; |
| 11951 | } |
| 11952 | { |
| 11953 | wxColour * resultptr; |
| 11954 | resultptr = new wxColour((wxColour &) result); |
| 11955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 11956 | } |
| 11957 | return resultobj; |
| 11958 | fail: |
| 11959 | return NULL; |
| 11960 | } |
| 11961 | |
| 11962 | |
| 11963 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11964 | PyObject *resultobj; |
| 11965 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11966 | wxColour result; |
| 11967 | PyObject * obj0 = 0 ; |
| 11968 | char *kwnames[] = { |
| 11969 | (char *) "self", NULL |
| 11970 | }; |
| 11971 | |
| 11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; |
| 11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 11975 | { |
| 11976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11977 | result = (arg1)->GetDefaultCellTextColour(); |
| 11978 | |
| 11979 | wxPyEndAllowThreads(__tstate); |
| 11980 | if (PyErr_Occurred()) SWIG_fail; |
| 11981 | } |
| 11982 | { |
| 11983 | wxColour * resultptr; |
| 11984 | resultptr = new wxColour((wxColour &) result); |
| 11985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 11986 | } |
| 11987 | return resultobj; |
| 11988 | fail: |
| 11989 | return NULL; |
| 11990 | } |
| 11991 | |
| 11992 | |
| 11993 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 11994 | PyObject *resultobj; |
| 11995 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 11996 | int arg2 ; |
| 11997 | int arg3 ; |
| 11998 | wxColour result; |
| 11999 | PyObject * obj0 = 0 ; |
| 12000 | PyObject * obj1 = 0 ; |
| 12001 | PyObject * obj2 = 0 ; |
| 12002 | char *kwnames[] = { |
| 12003 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 12004 | }; |
| 12005 | |
| 12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12009 | arg2 = (int)SWIG_As_int(obj1); |
| 12010 | if (PyErr_Occurred()) SWIG_fail; |
| 12011 | arg3 = (int)SWIG_As_int(obj2); |
| 12012 | if (PyErr_Occurred()) SWIG_fail; |
| 12013 | { |
| 12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12015 | result = (arg1)->GetCellTextColour(arg2,arg3); |
| 12016 | |
| 12017 | wxPyEndAllowThreads(__tstate); |
| 12018 | if (PyErr_Occurred()) SWIG_fail; |
| 12019 | } |
| 12020 | { |
| 12021 | wxColour * resultptr; |
| 12022 | resultptr = new wxColour((wxColour &) result); |
| 12023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 12024 | } |
| 12025 | return resultobj; |
| 12026 | fail: |
| 12027 | return NULL; |
| 12028 | } |
| 12029 | |
| 12030 | |
| 12031 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12032 | PyObject *resultobj; |
| 12033 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12034 | wxFont result; |
| 12035 | PyObject * obj0 = 0 ; |
| 12036 | char *kwnames[] = { |
| 12037 | (char *) "self", NULL |
| 12038 | }; |
| 12039 | |
| 12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; |
| 12041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12043 | { |
| 12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12045 | result = (arg1)->GetDefaultCellFont(); |
| 12046 | |
| 12047 | wxPyEndAllowThreads(__tstate); |
| 12048 | if (PyErr_Occurred()) SWIG_fail; |
| 12049 | } |
| 12050 | { |
| 12051 | wxFont * resultptr; |
| 12052 | resultptr = new wxFont((wxFont &) result); |
| 12053 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
| 12054 | } |
| 12055 | return resultobj; |
| 12056 | fail: |
| 12057 | return NULL; |
| 12058 | } |
| 12059 | |
| 12060 | |
| 12061 | static PyObject *_wrap_Grid_GetCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12062 | PyObject *resultobj; |
| 12063 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12064 | int arg2 ; |
| 12065 | int arg3 ; |
| 12066 | wxFont result; |
| 12067 | PyObject * obj0 = 0 ; |
| 12068 | PyObject * obj1 = 0 ; |
| 12069 | PyObject * obj2 = 0 ; |
| 12070 | char *kwnames[] = { |
| 12071 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 12072 | }; |
| 12073 | |
| 12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12077 | arg2 = (int)SWIG_As_int(obj1); |
| 12078 | if (PyErr_Occurred()) SWIG_fail; |
| 12079 | arg3 = (int)SWIG_As_int(obj2); |
| 12080 | if (PyErr_Occurred()) SWIG_fail; |
| 12081 | { |
| 12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12083 | result = (arg1)->GetCellFont(arg2,arg3); |
| 12084 | |
| 12085 | wxPyEndAllowThreads(__tstate); |
| 12086 | if (PyErr_Occurred()) SWIG_fail; |
| 12087 | } |
| 12088 | { |
| 12089 | wxFont * resultptr; |
| 12090 | resultptr = new wxFont((wxFont &) result); |
| 12091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
| 12092 | } |
| 12093 | return resultobj; |
| 12094 | fail: |
| 12095 | return NULL; |
| 12096 | } |
| 12097 | |
| 12098 | |
| 12099 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12100 | PyObject *resultobj; |
| 12101 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12102 | int *arg2 = (int *) 0 ; |
| 12103 | int *arg3 = (int *) 0 ; |
| 12104 | int temp2 ; |
| 12105 | int res2 = 0 ; |
| 12106 | int temp3 ; |
| 12107 | int res3 = 0 ; |
| 12108 | PyObject * obj0 = 0 ; |
| 12109 | char *kwnames[] = { |
| 12110 | (char *) "self", NULL |
| 12111 | }; |
| 12112 | |
| 12113 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
| 12114 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
| 12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; |
| 12116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12118 | { |
| 12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12120 | (arg1)->GetDefaultCellAlignment(arg2,arg3); |
| 12121 | |
| 12122 | wxPyEndAllowThreads(__tstate); |
| 12123 | if (PyErr_Occurred()) SWIG_fail; |
| 12124 | } |
| 12125 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12126 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
| 12127 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); |
| 12128 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
| 12129 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); |
| 12130 | return resultobj; |
| 12131 | fail: |
| 12132 | return NULL; |
| 12133 | } |
| 12134 | |
| 12135 | |
| 12136 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12137 | PyObject *resultobj; |
| 12138 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12139 | int arg2 ; |
| 12140 | int arg3 ; |
| 12141 | int *arg4 = (int *) 0 ; |
| 12142 | int *arg5 = (int *) 0 ; |
| 12143 | int temp4 ; |
| 12144 | int res4 = 0 ; |
| 12145 | int temp5 ; |
| 12146 | int res5 = 0 ; |
| 12147 | PyObject * obj0 = 0 ; |
| 12148 | PyObject * obj1 = 0 ; |
| 12149 | PyObject * obj2 = 0 ; |
| 12150 | char *kwnames[] = { |
| 12151 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 12152 | }; |
| 12153 | |
| 12154 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
| 12155 | arg5 = &temp5; res5 = SWIG_NEWOBJ; |
| 12156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12159 | arg2 = (int)SWIG_As_int(obj1); |
| 12160 | if (PyErr_Occurred()) SWIG_fail; |
| 12161 | arg3 = (int)SWIG_As_int(obj2); |
| 12162 | if (PyErr_Occurred()) SWIG_fail; |
| 12163 | { |
| 12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12165 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); |
| 12166 | |
| 12167 | wxPyEndAllowThreads(__tstate); |
| 12168 | if (PyErr_Occurred()) SWIG_fail; |
| 12169 | } |
| 12170 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12171 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
| 12172 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); |
| 12173 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? |
| 12174 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); |
| 12175 | return resultobj; |
| 12176 | fail: |
| 12177 | return NULL; |
| 12178 | } |
| 12179 | |
| 12180 | |
| 12181 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12182 | PyObject *resultobj; |
| 12183 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12184 | bool result; |
| 12185 | PyObject * obj0 = 0 ; |
| 12186 | char *kwnames[] = { |
| 12187 | (char *) "self", NULL |
| 12188 | }; |
| 12189 | |
| 12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; |
| 12191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12193 | { |
| 12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12195 | result = (bool)(arg1)->GetDefaultCellOverflow(); |
| 12196 | |
| 12197 | wxPyEndAllowThreads(__tstate); |
| 12198 | if (PyErr_Occurred()) SWIG_fail; |
| 12199 | } |
| 12200 | { |
| 12201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 12202 | } |
| 12203 | return resultobj; |
| 12204 | fail: |
| 12205 | return NULL; |
| 12206 | } |
| 12207 | |
| 12208 | |
| 12209 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12210 | PyObject *resultobj; |
| 12211 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12212 | int arg2 ; |
| 12213 | int arg3 ; |
| 12214 | bool result; |
| 12215 | PyObject * obj0 = 0 ; |
| 12216 | PyObject * obj1 = 0 ; |
| 12217 | PyObject * obj2 = 0 ; |
| 12218 | char *kwnames[] = { |
| 12219 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 12220 | }; |
| 12221 | |
| 12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12225 | arg2 = (int)SWIG_As_int(obj1); |
| 12226 | if (PyErr_Occurred()) SWIG_fail; |
| 12227 | arg3 = (int)SWIG_As_int(obj2); |
| 12228 | if (PyErr_Occurred()) SWIG_fail; |
| 12229 | { |
| 12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12231 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); |
| 12232 | |
| 12233 | wxPyEndAllowThreads(__tstate); |
| 12234 | if (PyErr_Occurred()) SWIG_fail; |
| 12235 | } |
| 12236 | { |
| 12237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 12238 | } |
| 12239 | return resultobj; |
| 12240 | fail: |
| 12241 | return NULL; |
| 12242 | } |
| 12243 | |
| 12244 | |
| 12245 | static PyObject *_wrap_Grid_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12246 | PyObject *resultobj; |
| 12247 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12248 | int arg2 ; |
| 12249 | int arg3 ; |
| 12250 | int *arg4 = (int *) 0 ; |
| 12251 | int *arg5 = (int *) 0 ; |
| 12252 | int temp4 ; |
| 12253 | int res4 = 0 ; |
| 12254 | int temp5 ; |
| 12255 | int res5 = 0 ; |
| 12256 | PyObject * obj0 = 0 ; |
| 12257 | PyObject * obj1 = 0 ; |
| 12258 | PyObject * obj2 = 0 ; |
| 12259 | char *kwnames[] = { |
| 12260 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 12261 | }; |
| 12262 | |
| 12263 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
| 12264 | arg5 = &temp5; res5 = SWIG_NEWOBJ; |
| 12265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12268 | arg2 = (int)SWIG_As_int(obj1); |
| 12269 | if (PyErr_Occurred()) SWIG_fail; |
| 12270 | arg3 = (int)SWIG_As_int(obj2); |
| 12271 | if (PyErr_Occurred()) SWIG_fail; |
| 12272 | { |
| 12273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12274 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); |
| 12275 | |
| 12276 | wxPyEndAllowThreads(__tstate); |
| 12277 | if (PyErr_Occurred()) SWIG_fail; |
| 12278 | } |
| 12279 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12280 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
| 12281 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); |
| 12282 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? |
| 12283 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); |
| 12284 | return resultobj; |
| 12285 | fail: |
| 12286 | return NULL; |
| 12287 | } |
| 12288 | |
| 12289 | |
| 12290 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12291 | PyObject *resultobj; |
| 12292 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12293 | int arg2 ; |
| 12294 | bool arg3 = (bool) false ; |
| 12295 | PyObject * obj0 = 0 ; |
| 12296 | PyObject * obj1 = 0 ; |
| 12297 | PyObject * obj2 = 0 ; |
| 12298 | char *kwnames[] = { |
| 12299 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL |
| 12300 | }; |
| 12301 | |
| 12302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12305 | arg2 = (int)SWIG_As_int(obj1); |
| 12306 | if (PyErr_Occurred()) SWIG_fail; |
| 12307 | if (obj2) { |
| 12308 | arg3 = (bool)SWIG_As_bool(obj2); |
| 12309 | if (PyErr_Occurred()) SWIG_fail; |
| 12310 | } |
| 12311 | { |
| 12312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12313 | (arg1)->SetDefaultRowSize(arg2,arg3); |
| 12314 | |
| 12315 | wxPyEndAllowThreads(__tstate); |
| 12316 | if (PyErr_Occurred()) SWIG_fail; |
| 12317 | } |
| 12318 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12319 | return resultobj; |
| 12320 | fail: |
| 12321 | return NULL; |
| 12322 | } |
| 12323 | |
| 12324 | |
| 12325 | static PyObject *_wrap_Grid_SetRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12326 | PyObject *resultobj; |
| 12327 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12328 | int arg2 ; |
| 12329 | int arg3 ; |
| 12330 | PyObject * obj0 = 0 ; |
| 12331 | PyObject * obj1 = 0 ; |
| 12332 | PyObject * obj2 = 0 ; |
| 12333 | char *kwnames[] = { |
| 12334 | (char *) "self",(char *) "row",(char *) "height", NULL |
| 12335 | }; |
| 12336 | |
| 12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12340 | arg2 = (int)SWIG_As_int(obj1); |
| 12341 | if (PyErr_Occurred()) SWIG_fail; |
| 12342 | arg3 = (int)SWIG_As_int(obj2); |
| 12343 | if (PyErr_Occurred()) SWIG_fail; |
| 12344 | { |
| 12345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12346 | (arg1)->SetRowSize(arg2,arg3); |
| 12347 | |
| 12348 | wxPyEndAllowThreads(__tstate); |
| 12349 | if (PyErr_Occurred()) SWIG_fail; |
| 12350 | } |
| 12351 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12352 | return resultobj; |
| 12353 | fail: |
| 12354 | return NULL; |
| 12355 | } |
| 12356 | |
| 12357 | |
| 12358 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12359 | PyObject *resultobj; |
| 12360 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12361 | int arg2 ; |
| 12362 | bool arg3 = (bool) false ; |
| 12363 | PyObject * obj0 = 0 ; |
| 12364 | PyObject * obj1 = 0 ; |
| 12365 | PyObject * obj2 = 0 ; |
| 12366 | char *kwnames[] = { |
| 12367 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL |
| 12368 | }; |
| 12369 | |
| 12370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12373 | arg2 = (int)SWIG_As_int(obj1); |
| 12374 | if (PyErr_Occurred()) SWIG_fail; |
| 12375 | if (obj2) { |
| 12376 | arg3 = (bool)SWIG_As_bool(obj2); |
| 12377 | if (PyErr_Occurred()) SWIG_fail; |
| 12378 | } |
| 12379 | { |
| 12380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12381 | (arg1)->SetDefaultColSize(arg2,arg3); |
| 12382 | |
| 12383 | wxPyEndAllowThreads(__tstate); |
| 12384 | if (PyErr_Occurred()) SWIG_fail; |
| 12385 | } |
| 12386 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12387 | return resultobj; |
| 12388 | fail: |
| 12389 | return NULL; |
| 12390 | } |
| 12391 | |
| 12392 | |
| 12393 | static PyObject *_wrap_Grid_SetColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12394 | PyObject *resultobj; |
| 12395 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12396 | int arg2 ; |
| 12397 | int arg3 ; |
| 12398 | PyObject * obj0 = 0 ; |
| 12399 | PyObject * obj1 = 0 ; |
| 12400 | PyObject * obj2 = 0 ; |
| 12401 | char *kwnames[] = { |
| 12402 | (char *) "self",(char *) "col",(char *) "width", NULL |
| 12403 | }; |
| 12404 | |
| 12405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12408 | arg2 = (int)SWIG_As_int(obj1); |
| 12409 | if (PyErr_Occurred()) SWIG_fail; |
| 12410 | arg3 = (int)SWIG_As_int(obj2); |
| 12411 | if (PyErr_Occurred()) SWIG_fail; |
| 12412 | { |
| 12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12414 | (arg1)->SetColSize(arg2,arg3); |
| 12415 | |
| 12416 | wxPyEndAllowThreads(__tstate); |
| 12417 | if (PyErr_Occurred()) SWIG_fail; |
| 12418 | } |
| 12419 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12420 | return resultobj; |
| 12421 | fail: |
| 12422 | return NULL; |
| 12423 | } |
| 12424 | |
| 12425 | |
| 12426 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12427 | PyObject *resultobj; |
| 12428 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12429 | int arg2 ; |
| 12430 | bool arg3 = (bool) true ; |
| 12431 | PyObject * obj0 = 0 ; |
| 12432 | PyObject * obj1 = 0 ; |
| 12433 | PyObject * obj2 = 0 ; |
| 12434 | char *kwnames[] = { |
| 12435 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL |
| 12436 | }; |
| 12437 | |
| 12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12441 | arg2 = (int)SWIG_As_int(obj1); |
| 12442 | if (PyErr_Occurred()) SWIG_fail; |
| 12443 | if (obj2) { |
| 12444 | arg3 = (bool)SWIG_As_bool(obj2); |
| 12445 | if (PyErr_Occurred()) SWIG_fail; |
| 12446 | } |
| 12447 | { |
| 12448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12449 | (arg1)->AutoSizeColumn(arg2,arg3); |
| 12450 | |
| 12451 | wxPyEndAllowThreads(__tstate); |
| 12452 | if (PyErr_Occurred()) SWIG_fail; |
| 12453 | } |
| 12454 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12455 | return resultobj; |
| 12456 | fail: |
| 12457 | return NULL; |
| 12458 | } |
| 12459 | |
| 12460 | |
| 12461 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12462 | PyObject *resultobj; |
| 12463 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12464 | int arg2 ; |
| 12465 | bool arg3 = (bool) true ; |
| 12466 | PyObject * obj0 = 0 ; |
| 12467 | PyObject * obj1 = 0 ; |
| 12468 | PyObject * obj2 = 0 ; |
| 12469 | char *kwnames[] = { |
| 12470 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL |
| 12471 | }; |
| 12472 | |
| 12473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12476 | arg2 = (int)SWIG_As_int(obj1); |
| 12477 | if (PyErr_Occurred()) SWIG_fail; |
| 12478 | if (obj2) { |
| 12479 | arg3 = (bool)SWIG_As_bool(obj2); |
| 12480 | if (PyErr_Occurred()) SWIG_fail; |
| 12481 | } |
| 12482 | { |
| 12483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12484 | (arg1)->AutoSizeRow(arg2,arg3); |
| 12485 | |
| 12486 | wxPyEndAllowThreads(__tstate); |
| 12487 | if (PyErr_Occurred()) SWIG_fail; |
| 12488 | } |
| 12489 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12490 | return resultobj; |
| 12491 | fail: |
| 12492 | return NULL; |
| 12493 | } |
| 12494 | |
| 12495 | |
| 12496 | static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12497 | PyObject *resultobj; |
| 12498 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12499 | bool arg2 = (bool) true ; |
| 12500 | PyObject * obj0 = 0 ; |
| 12501 | PyObject * obj1 = 0 ; |
| 12502 | char *kwnames[] = { |
| 12503 | (char *) "self",(char *) "setAsMin", NULL |
| 12504 | }; |
| 12505 | |
| 12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; |
| 12507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12509 | if (obj1) { |
| 12510 | arg2 = (bool)SWIG_As_bool(obj1); |
| 12511 | if (PyErr_Occurred()) SWIG_fail; |
| 12512 | } |
| 12513 | { |
| 12514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12515 | (arg1)->AutoSizeColumns(arg2); |
| 12516 | |
| 12517 | wxPyEndAllowThreads(__tstate); |
| 12518 | if (PyErr_Occurred()) SWIG_fail; |
| 12519 | } |
| 12520 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12521 | return resultobj; |
| 12522 | fail: |
| 12523 | return NULL; |
| 12524 | } |
| 12525 | |
| 12526 | |
| 12527 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12528 | PyObject *resultobj; |
| 12529 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12530 | bool arg2 = (bool) true ; |
| 12531 | PyObject * obj0 = 0 ; |
| 12532 | PyObject * obj1 = 0 ; |
| 12533 | char *kwnames[] = { |
| 12534 | (char *) "self",(char *) "setAsMin", NULL |
| 12535 | }; |
| 12536 | |
| 12537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; |
| 12538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12540 | if (obj1) { |
| 12541 | arg2 = (bool)SWIG_As_bool(obj1); |
| 12542 | if (PyErr_Occurred()) SWIG_fail; |
| 12543 | } |
| 12544 | { |
| 12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12546 | (arg1)->AutoSizeRows(arg2); |
| 12547 | |
| 12548 | wxPyEndAllowThreads(__tstate); |
| 12549 | if (PyErr_Occurred()) SWIG_fail; |
| 12550 | } |
| 12551 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12552 | return resultobj; |
| 12553 | fail: |
| 12554 | return NULL; |
| 12555 | } |
| 12556 | |
| 12557 | |
| 12558 | static PyObject *_wrap_Grid_AutoSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12559 | PyObject *resultobj; |
| 12560 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12561 | PyObject * obj0 = 0 ; |
| 12562 | char *kwnames[] = { |
| 12563 | (char *) "self", NULL |
| 12564 | }; |
| 12565 | |
| 12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; |
| 12567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12569 | { |
| 12570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12571 | (arg1)->AutoSize(); |
| 12572 | |
| 12573 | wxPyEndAllowThreads(__tstate); |
| 12574 | if (PyErr_Occurred()) SWIG_fail; |
| 12575 | } |
| 12576 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12577 | return resultobj; |
| 12578 | fail: |
| 12579 | return NULL; |
| 12580 | } |
| 12581 | |
| 12582 | |
| 12583 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12584 | PyObject *resultobj; |
| 12585 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12586 | int arg2 ; |
| 12587 | PyObject * obj0 = 0 ; |
| 12588 | PyObject * obj1 = 0 ; |
| 12589 | char *kwnames[] = { |
| 12590 | (char *) "self",(char *) "row", NULL |
| 12591 | }; |
| 12592 | |
| 12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
| 12594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12596 | arg2 = (int)SWIG_As_int(obj1); |
| 12597 | if (PyErr_Occurred()) SWIG_fail; |
| 12598 | { |
| 12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12600 | (arg1)->AutoSizeRowLabelSize(arg2); |
| 12601 | |
| 12602 | wxPyEndAllowThreads(__tstate); |
| 12603 | if (PyErr_Occurred()) SWIG_fail; |
| 12604 | } |
| 12605 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12606 | return resultobj; |
| 12607 | fail: |
| 12608 | return NULL; |
| 12609 | } |
| 12610 | |
| 12611 | |
| 12612 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12613 | PyObject *resultobj; |
| 12614 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12615 | int arg2 ; |
| 12616 | PyObject * obj0 = 0 ; |
| 12617 | PyObject * obj1 = 0 ; |
| 12618 | char *kwnames[] = { |
| 12619 | (char *) "self",(char *) "col", NULL |
| 12620 | }; |
| 12621 | |
| 12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
| 12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12625 | arg2 = (int)SWIG_As_int(obj1); |
| 12626 | if (PyErr_Occurred()) SWIG_fail; |
| 12627 | { |
| 12628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12629 | (arg1)->AutoSizeColLabelSize(arg2); |
| 12630 | |
| 12631 | wxPyEndAllowThreads(__tstate); |
| 12632 | if (PyErr_Occurred()) SWIG_fail; |
| 12633 | } |
| 12634 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12635 | return resultobj; |
| 12636 | fail: |
| 12637 | return NULL; |
| 12638 | } |
| 12639 | |
| 12640 | |
| 12641 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12642 | PyObject *resultobj; |
| 12643 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12644 | int arg2 ; |
| 12645 | int arg3 ; |
| 12646 | PyObject * obj0 = 0 ; |
| 12647 | PyObject * obj1 = 0 ; |
| 12648 | PyObject * obj2 = 0 ; |
| 12649 | char *kwnames[] = { |
| 12650 | (char *) "self",(char *) "col",(char *) "width", NULL |
| 12651 | }; |
| 12652 | |
| 12653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12656 | arg2 = (int)SWIG_As_int(obj1); |
| 12657 | if (PyErr_Occurred()) SWIG_fail; |
| 12658 | arg3 = (int)SWIG_As_int(obj2); |
| 12659 | if (PyErr_Occurred()) SWIG_fail; |
| 12660 | { |
| 12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12662 | (arg1)->SetColMinimalWidth(arg2,arg3); |
| 12663 | |
| 12664 | wxPyEndAllowThreads(__tstate); |
| 12665 | if (PyErr_Occurred()) SWIG_fail; |
| 12666 | } |
| 12667 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12668 | return resultobj; |
| 12669 | fail: |
| 12670 | return NULL; |
| 12671 | } |
| 12672 | |
| 12673 | |
| 12674 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12675 | PyObject *resultobj; |
| 12676 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12677 | int arg2 ; |
| 12678 | int arg3 ; |
| 12679 | PyObject * obj0 = 0 ; |
| 12680 | PyObject * obj1 = 0 ; |
| 12681 | PyObject * obj2 = 0 ; |
| 12682 | char *kwnames[] = { |
| 12683 | (char *) "self",(char *) "row",(char *) "width", NULL |
| 12684 | }; |
| 12685 | |
| 12686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 12687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12689 | arg2 = (int)SWIG_As_int(obj1); |
| 12690 | if (PyErr_Occurred()) SWIG_fail; |
| 12691 | arg3 = (int)SWIG_As_int(obj2); |
| 12692 | if (PyErr_Occurred()) SWIG_fail; |
| 12693 | { |
| 12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12695 | (arg1)->SetRowMinimalHeight(arg2,arg3); |
| 12696 | |
| 12697 | wxPyEndAllowThreads(__tstate); |
| 12698 | if (PyErr_Occurred()) SWIG_fail; |
| 12699 | } |
| 12700 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12701 | return resultobj; |
| 12702 | fail: |
| 12703 | return NULL; |
| 12704 | } |
| 12705 | |
| 12706 | |
| 12707 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12708 | PyObject *resultobj; |
| 12709 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12710 | int arg2 ; |
| 12711 | PyObject * obj0 = 0 ; |
| 12712 | PyObject * obj1 = 0 ; |
| 12713 | char *kwnames[] = { |
| 12714 | (char *) "self",(char *) "width", NULL |
| 12715 | }; |
| 12716 | |
| 12717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; |
| 12718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12720 | arg2 = (int)SWIG_As_int(obj1); |
| 12721 | if (PyErr_Occurred()) SWIG_fail; |
| 12722 | { |
| 12723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12724 | (arg1)->SetColMinimalAcceptableWidth(arg2); |
| 12725 | |
| 12726 | wxPyEndAllowThreads(__tstate); |
| 12727 | if (PyErr_Occurred()) SWIG_fail; |
| 12728 | } |
| 12729 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12730 | return resultobj; |
| 12731 | fail: |
| 12732 | return NULL; |
| 12733 | } |
| 12734 | |
| 12735 | |
| 12736 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12737 | PyObject *resultobj; |
| 12738 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12739 | int arg2 ; |
| 12740 | PyObject * obj0 = 0 ; |
| 12741 | PyObject * obj1 = 0 ; |
| 12742 | char *kwnames[] = { |
| 12743 | (char *) "self",(char *) "width", NULL |
| 12744 | }; |
| 12745 | |
| 12746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; |
| 12747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12749 | arg2 = (int)SWIG_As_int(obj1); |
| 12750 | if (PyErr_Occurred()) SWIG_fail; |
| 12751 | { |
| 12752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12753 | (arg1)->SetRowMinimalAcceptableHeight(arg2); |
| 12754 | |
| 12755 | wxPyEndAllowThreads(__tstate); |
| 12756 | if (PyErr_Occurred()) SWIG_fail; |
| 12757 | } |
| 12758 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12759 | return resultobj; |
| 12760 | fail: |
| 12761 | return NULL; |
| 12762 | } |
| 12763 | |
| 12764 | |
| 12765 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12766 | PyObject *resultobj; |
| 12767 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12768 | int result; |
| 12769 | PyObject * obj0 = 0 ; |
| 12770 | char *kwnames[] = { |
| 12771 | (char *) "self", NULL |
| 12772 | }; |
| 12773 | |
| 12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; |
| 12775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12777 | { |
| 12778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12779 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); |
| 12780 | |
| 12781 | wxPyEndAllowThreads(__tstate); |
| 12782 | if (PyErr_Occurred()) SWIG_fail; |
| 12783 | } |
| 12784 | resultobj = SWIG_From_int((int)result); |
| 12785 | return resultobj; |
| 12786 | fail: |
| 12787 | return NULL; |
| 12788 | } |
| 12789 | |
| 12790 | |
| 12791 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12792 | PyObject *resultobj; |
| 12793 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12794 | int result; |
| 12795 | PyObject * obj0 = 0 ; |
| 12796 | char *kwnames[] = { |
| 12797 | (char *) "self", NULL |
| 12798 | }; |
| 12799 | |
| 12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; |
| 12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12803 | { |
| 12804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12805 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); |
| 12806 | |
| 12807 | wxPyEndAllowThreads(__tstate); |
| 12808 | if (PyErr_Occurred()) SWIG_fail; |
| 12809 | } |
| 12810 | resultobj = SWIG_From_int((int)result); |
| 12811 | return resultobj; |
| 12812 | fail: |
| 12813 | return NULL; |
| 12814 | } |
| 12815 | |
| 12816 | |
| 12817 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12818 | PyObject *resultobj; |
| 12819 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12820 | wxColour *arg2 = 0 ; |
| 12821 | wxColour temp2 ; |
| 12822 | PyObject * obj0 = 0 ; |
| 12823 | PyObject * obj1 = 0 ; |
| 12824 | char *kwnames[] = { |
| 12825 | (char *) "self","arg2", NULL |
| 12826 | }; |
| 12827 | |
| 12828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
| 12829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12831 | { |
| 12832 | arg2 = &temp2; |
| 12833 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 12834 | } |
| 12835 | { |
| 12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12837 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); |
| 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_SetCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12850 | PyObject *resultobj; |
| 12851 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12852 | int arg2 ; |
| 12853 | int arg3 ; |
| 12854 | wxColour *arg4 = 0 ; |
| 12855 | wxColour temp4 ; |
| 12856 | PyObject * obj0 = 0 ; |
| 12857 | PyObject * obj1 = 0 ; |
| 12858 | PyObject * obj2 = 0 ; |
| 12859 | PyObject * obj3 = 0 ; |
| 12860 | char *kwnames[] = { |
| 12861 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL |
| 12862 | }; |
| 12863 | |
| 12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 12865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12867 | arg2 = (int)SWIG_As_int(obj1); |
| 12868 | if (PyErr_Occurred()) SWIG_fail; |
| 12869 | arg3 = (int)SWIG_As_int(obj2); |
| 12870 | if (PyErr_Occurred()) SWIG_fail; |
| 12871 | { |
| 12872 | arg4 = &temp4; |
| 12873 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; |
| 12874 | } |
| 12875 | { |
| 12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12877 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); |
| 12878 | |
| 12879 | wxPyEndAllowThreads(__tstate); |
| 12880 | if (PyErr_Occurred()) SWIG_fail; |
| 12881 | } |
| 12882 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12883 | return resultobj; |
| 12884 | fail: |
| 12885 | return NULL; |
| 12886 | } |
| 12887 | |
| 12888 | |
| 12889 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12890 | PyObject *resultobj; |
| 12891 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12892 | wxColour *arg2 = 0 ; |
| 12893 | wxColour temp2 ; |
| 12894 | PyObject * obj0 = 0 ; |
| 12895 | PyObject * obj1 = 0 ; |
| 12896 | char *kwnames[] = { |
| 12897 | (char *) "self","arg2", NULL |
| 12898 | }; |
| 12899 | |
| 12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; |
| 12901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12903 | { |
| 12904 | arg2 = &temp2; |
| 12905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 12906 | } |
| 12907 | { |
| 12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12909 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); |
| 12910 | |
| 12911 | wxPyEndAllowThreads(__tstate); |
| 12912 | if (PyErr_Occurred()) SWIG_fail; |
| 12913 | } |
| 12914 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12915 | return resultobj; |
| 12916 | fail: |
| 12917 | return NULL; |
| 12918 | } |
| 12919 | |
| 12920 | |
| 12921 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12922 | PyObject *resultobj; |
| 12923 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12924 | int arg2 ; |
| 12925 | int arg3 ; |
| 12926 | wxColour *arg4 = 0 ; |
| 12927 | wxColour temp4 ; |
| 12928 | PyObject * obj0 = 0 ; |
| 12929 | PyObject * obj1 = 0 ; |
| 12930 | PyObject * obj2 = 0 ; |
| 12931 | PyObject * obj3 = 0 ; |
| 12932 | char *kwnames[] = { |
| 12933 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL |
| 12934 | }; |
| 12935 | |
| 12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 12937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12939 | arg2 = (int)SWIG_As_int(obj1); |
| 12940 | if (PyErr_Occurred()) SWIG_fail; |
| 12941 | arg3 = (int)SWIG_As_int(obj2); |
| 12942 | if (PyErr_Occurred()) SWIG_fail; |
| 12943 | { |
| 12944 | arg4 = &temp4; |
| 12945 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; |
| 12946 | } |
| 12947 | { |
| 12948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12949 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); |
| 12950 | |
| 12951 | wxPyEndAllowThreads(__tstate); |
| 12952 | if (PyErr_Occurred()) SWIG_fail; |
| 12953 | } |
| 12954 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12955 | return resultobj; |
| 12956 | fail: |
| 12957 | return NULL; |
| 12958 | } |
| 12959 | |
| 12960 | |
| 12961 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12962 | PyObject *resultobj; |
| 12963 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12964 | wxFont *arg2 = 0 ; |
| 12965 | PyObject * obj0 = 0 ; |
| 12966 | PyObject * obj1 = 0 ; |
| 12967 | char *kwnames[] = { |
| 12968 | (char *) "self","arg2", NULL |
| 12969 | }; |
| 12970 | |
| 12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; |
| 12972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 12973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 12974 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, |
| 12975 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 12976 | SWIG_fail; |
| 12977 | if (arg2 == NULL) { |
| 12978 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 12979 | SWIG_fail; |
| 12980 | } |
| 12981 | { |
| 12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 12983 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); |
| 12984 | |
| 12985 | wxPyEndAllowThreads(__tstate); |
| 12986 | if (PyErr_Occurred()) SWIG_fail; |
| 12987 | } |
| 12988 | Py_INCREF(Py_None); resultobj = Py_None; |
| 12989 | return resultobj; |
| 12990 | fail: |
| 12991 | return NULL; |
| 12992 | } |
| 12993 | |
| 12994 | |
| 12995 | static PyObject *_wrap_Grid_SetCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
| 12996 | PyObject *resultobj; |
| 12997 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 12998 | int arg2 ; |
| 12999 | int arg3 ; |
| 13000 | wxFont *arg4 = 0 ; |
| 13001 | PyObject * obj0 = 0 ; |
| 13002 | PyObject * obj1 = 0 ; |
| 13003 | PyObject * obj2 = 0 ; |
| 13004 | PyObject * obj3 = 0 ; |
| 13005 | char *kwnames[] = { |
| 13006 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL |
| 13007 | }; |
| 13008 | |
| 13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13012 | arg2 = (int)SWIG_As_int(obj1); |
| 13013 | if (PyErr_Occurred()) SWIG_fail; |
| 13014 | arg3 = (int)SWIG_As_int(obj2); |
| 13015 | if (PyErr_Occurred()) SWIG_fail; |
| 13016 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont, |
| 13017 | SWIG_POINTER_EXCEPTION | 0)) == -1) |
| 13018 | SWIG_fail; |
| 13019 | if (arg4 == NULL) { |
| 13020 | PyErr_SetString(PyExc_TypeError,"null reference"); |
| 13021 | SWIG_fail; |
| 13022 | } |
| 13023 | { |
| 13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13025 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); |
| 13026 | |
| 13027 | wxPyEndAllowThreads(__tstate); |
| 13028 | if (PyErr_Occurred()) SWIG_fail; |
| 13029 | } |
| 13030 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13031 | return resultobj; |
| 13032 | fail: |
| 13033 | return NULL; |
| 13034 | } |
| 13035 | |
| 13036 | |
| 13037 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13038 | PyObject *resultobj; |
| 13039 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13040 | int arg2 ; |
| 13041 | int arg3 ; |
| 13042 | PyObject * obj0 = 0 ; |
| 13043 | PyObject * obj1 = 0 ; |
| 13044 | PyObject * obj2 = 0 ; |
| 13045 | char *kwnames[] = { |
| 13046 | (char *) "self",(char *) "horiz",(char *) "vert", NULL |
| 13047 | }; |
| 13048 | |
| 13049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13052 | arg2 = (int)SWIG_As_int(obj1); |
| 13053 | if (PyErr_Occurred()) SWIG_fail; |
| 13054 | arg3 = (int)SWIG_As_int(obj2); |
| 13055 | if (PyErr_Occurred()) SWIG_fail; |
| 13056 | { |
| 13057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13058 | (arg1)->SetDefaultCellAlignment(arg2,arg3); |
| 13059 | |
| 13060 | wxPyEndAllowThreads(__tstate); |
| 13061 | if (PyErr_Occurred()) SWIG_fail; |
| 13062 | } |
| 13063 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13064 | return resultobj; |
| 13065 | fail: |
| 13066 | return NULL; |
| 13067 | } |
| 13068 | |
| 13069 | |
| 13070 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13071 | PyObject *resultobj; |
| 13072 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13073 | int arg2 ; |
| 13074 | int arg3 ; |
| 13075 | int arg4 ; |
| 13076 | int arg5 ; |
| 13077 | PyObject * obj0 = 0 ; |
| 13078 | PyObject * obj1 = 0 ; |
| 13079 | PyObject * obj2 = 0 ; |
| 13080 | PyObject * obj3 = 0 ; |
| 13081 | PyObject * obj4 = 0 ; |
| 13082 | char *kwnames[] = { |
| 13083 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL |
| 13084 | }; |
| 13085 | |
| 13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
| 13087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13089 | arg2 = (int)SWIG_As_int(obj1); |
| 13090 | if (PyErr_Occurred()) SWIG_fail; |
| 13091 | arg3 = (int)SWIG_As_int(obj2); |
| 13092 | if (PyErr_Occurred()) SWIG_fail; |
| 13093 | arg4 = (int)SWIG_As_int(obj3); |
| 13094 | if (PyErr_Occurred()) SWIG_fail; |
| 13095 | arg5 = (int)SWIG_As_int(obj4); |
| 13096 | if (PyErr_Occurred()) SWIG_fail; |
| 13097 | { |
| 13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13099 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); |
| 13100 | |
| 13101 | wxPyEndAllowThreads(__tstate); |
| 13102 | if (PyErr_Occurred()) SWIG_fail; |
| 13103 | } |
| 13104 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13105 | return resultobj; |
| 13106 | fail: |
| 13107 | return NULL; |
| 13108 | } |
| 13109 | |
| 13110 | |
| 13111 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13112 | PyObject *resultobj; |
| 13113 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13114 | bool arg2 ; |
| 13115 | PyObject * obj0 = 0 ; |
| 13116 | PyObject * obj1 = 0 ; |
| 13117 | char *kwnames[] = { |
| 13118 | (char *) "self",(char *) "allow", NULL |
| 13119 | }; |
| 13120 | |
| 13121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; |
| 13122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13124 | arg2 = (bool)SWIG_As_bool(obj1); |
| 13125 | if (PyErr_Occurred()) SWIG_fail; |
| 13126 | { |
| 13127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13128 | (arg1)->SetDefaultCellOverflow(arg2); |
| 13129 | |
| 13130 | wxPyEndAllowThreads(__tstate); |
| 13131 | if (PyErr_Occurred()) SWIG_fail; |
| 13132 | } |
| 13133 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13134 | return resultobj; |
| 13135 | fail: |
| 13136 | return NULL; |
| 13137 | } |
| 13138 | |
| 13139 | |
| 13140 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13141 | PyObject *resultobj; |
| 13142 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13143 | int arg2 ; |
| 13144 | int arg3 ; |
| 13145 | bool arg4 ; |
| 13146 | PyObject * obj0 = 0 ; |
| 13147 | PyObject * obj1 = 0 ; |
| 13148 | PyObject * obj2 = 0 ; |
| 13149 | PyObject * obj3 = 0 ; |
| 13150 | char *kwnames[] = { |
| 13151 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL |
| 13152 | }; |
| 13153 | |
| 13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13157 | arg2 = (int)SWIG_As_int(obj1); |
| 13158 | if (PyErr_Occurred()) SWIG_fail; |
| 13159 | arg3 = (int)SWIG_As_int(obj2); |
| 13160 | if (PyErr_Occurred()) SWIG_fail; |
| 13161 | arg4 = (bool)SWIG_As_bool(obj3); |
| 13162 | if (PyErr_Occurred()) SWIG_fail; |
| 13163 | { |
| 13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13165 | (arg1)->SetCellOverflow(arg2,arg3,arg4); |
| 13166 | |
| 13167 | wxPyEndAllowThreads(__tstate); |
| 13168 | if (PyErr_Occurred()) SWIG_fail; |
| 13169 | } |
| 13170 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13171 | return resultobj; |
| 13172 | fail: |
| 13173 | return NULL; |
| 13174 | } |
| 13175 | |
| 13176 | |
| 13177 | static PyObject *_wrap_Grid_SetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13178 | PyObject *resultobj; |
| 13179 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13180 | int arg2 ; |
| 13181 | int arg3 ; |
| 13182 | int arg4 ; |
| 13183 | int arg5 ; |
| 13184 | PyObject * obj0 = 0 ; |
| 13185 | PyObject * obj1 = 0 ; |
| 13186 | PyObject * obj2 = 0 ; |
| 13187 | PyObject * obj3 = 0 ; |
| 13188 | PyObject * obj4 = 0 ; |
| 13189 | char *kwnames[] = { |
| 13190 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL |
| 13191 | }; |
| 13192 | |
| 13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
| 13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13196 | arg2 = (int)SWIG_As_int(obj1); |
| 13197 | if (PyErr_Occurred()) SWIG_fail; |
| 13198 | arg3 = (int)SWIG_As_int(obj2); |
| 13199 | if (PyErr_Occurred()) SWIG_fail; |
| 13200 | arg4 = (int)SWIG_As_int(obj3); |
| 13201 | if (PyErr_Occurred()) SWIG_fail; |
| 13202 | arg5 = (int)SWIG_As_int(obj4); |
| 13203 | if (PyErr_Occurred()) SWIG_fail; |
| 13204 | { |
| 13205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13206 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); |
| 13207 | |
| 13208 | wxPyEndAllowThreads(__tstate); |
| 13209 | if (PyErr_Occurred()) SWIG_fail; |
| 13210 | } |
| 13211 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13212 | return resultobj; |
| 13213 | fail: |
| 13214 | return NULL; |
| 13215 | } |
| 13216 | |
| 13217 | |
| 13218 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13219 | PyObject *resultobj; |
| 13220 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13221 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; |
| 13222 | PyObject * obj0 = 0 ; |
| 13223 | PyObject * obj1 = 0 ; |
| 13224 | char *kwnames[] = { |
| 13225 | (char *) "self",(char *) "renderer", NULL |
| 13226 | }; |
| 13227 | |
| 13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; |
| 13229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, |
| 13232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13233 | { |
| 13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13235 | (arg1)->SetDefaultRenderer(arg2); |
| 13236 | |
| 13237 | wxPyEndAllowThreads(__tstate); |
| 13238 | if (PyErr_Occurred()) SWIG_fail; |
| 13239 | } |
| 13240 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13241 | return resultobj; |
| 13242 | fail: |
| 13243 | return NULL; |
| 13244 | } |
| 13245 | |
| 13246 | |
| 13247 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13248 | PyObject *resultobj; |
| 13249 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13250 | int arg2 ; |
| 13251 | int arg3 ; |
| 13252 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; |
| 13253 | PyObject * obj0 = 0 ; |
| 13254 | PyObject * obj1 = 0 ; |
| 13255 | PyObject * obj2 = 0 ; |
| 13256 | PyObject * obj3 = 0 ; |
| 13257 | char *kwnames[] = { |
| 13258 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL |
| 13259 | }; |
| 13260 | |
| 13261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13264 | arg2 = (int)SWIG_As_int(obj1); |
| 13265 | if (PyErr_Occurred()) SWIG_fail; |
| 13266 | arg3 = (int)SWIG_As_int(obj2); |
| 13267 | if (PyErr_Occurred()) SWIG_fail; |
| 13268 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer, |
| 13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13270 | { |
| 13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13272 | (arg1)->SetCellRenderer(arg2,arg3,arg4); |
| 13273 | |
| 13274 | wxPyEndAllowThreads(__tstate); |
| 13275 | if (PyErr_Occurred()) SWIG_fail; |
| 13276 | } |
| 13277 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13278 | return resultobj; |
| 13279 | fail: |
| 13280 | return NULL; |
| 13281 | } |
| 13282 | |
| 13283 | |
| 13284 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13285 | PyObject *resultobj; |
| 13286 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13287 | wxGridCellRenderer *result; |
| 13288 | PyObject * obj0 = 0 ; |
| 13289 | char *kwnames[] = { |
| 13290 | (char *) "self", NULL |
| 13291 | }; |
| 13292 | |
| 13293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; |
| 13294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13296 | { |
| 13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13298 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); |
| 13299 | |
| 13300 | wxPyEndAllowThreads(__tstate); |
| 13301 | if (PyErr_Occurred()) SWIG_fail; |
| 13302 | } |
| 13303 | { |
| 13304 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 13305 | } |
| 13306 | return resultobj; |
| 13307 | fail: |
| 13308 | return NULL; |
| 13309 | } |
| 13310 | |
| 13311 | |
| 13312 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13313 | PyObject *resultobj; |
| 13314 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13315 | int arg2 ; |
| 13316 | int arg3 ; |
| 13317 | wxGridCellRenderer *result; |
| 13318 | PyObject * obj0 = 0 ; |
| 13319 | PyObject * obj1 = 0 ; |
| 13320 | PyObject * obj2 = 0 ; |
| 13321 | char *kwnames[] = { |
| 13322 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 13323 | }; |
| 13324 | |
| 13325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13328 | arg2 = (int)SWIG_As_int(obj1); |
| 13329 | if (PyErr_Occurred()) SWIG_fail; |
| 13330 | arg3 = (int)SWIG_As_int(obj2); |
| 13331 | if (PyErr_Occurred()) SWIG_fail; |
| 13332 | { |
| 13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13334 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); |
| 13335 | |
| 13336 | wxPyEndAllowThreads(__tstate); |
| 13337 | if (PyErr_Occurred()) SWIG_fail; |
| 13338 | } |
| 13339 | { |
| 13340 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 13341 | } |
| 13342 | return resultobj; |
| 13343 | fail: |
| 13344 | return NULL; |
| 13345 | } |
| 13346 | |
| 13347 | |
| 13348 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13349 | PyObject *resultobj; |
| 13350 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13351 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; |
| 13352 | PyObject * obj0 = 0 ; |
| 13353 | PyObject * obj1 = 0 ; |
| 13354 | char *kwnames[] = { |
| 13355 | (char *) "self",(char *) "editor", NULL |
| 13356 | }; |
| 13357 | |
| 13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; |
| 13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13361 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, |
| 13362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13363 | { |
| 13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13365 | (arg1)->SetDefaultEditor(arg2); |
| 13366 | |
| 13367 | wxPyEndAllowThreads(__tstate); |
| 13368 | if (PyErr_Occurred()) SWIG_fail; |
| 13369 | } |
| 13370 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13371 | return resultobj; |
| 13372 | fail: |
| 13373 | return NULL; |
| 13374 | } |
| 13375 | |
| 13376 | |
| 13377 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13378 | PyObject *resultobj; |
| 13379 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13380 | int arg2 ; |
| 13381 | int arg3 ; |
| 13382 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; |
| 13383 | PyObject * obj0 = 0 ; |
| 13384 | PyObject * obj1 = 0 ; |
| 13385 | PyObject * obj2 = 0 ; |
| 13386 | PyObject * obj3 = 0 ; |
| 13387 | char *kwnames[] = { |
| 13388 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL |
| 13389 | }; |
| 13390 | |
| 13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13394 | arg2 = (int)SWIG_As_int(obj1); |
| 13395 | if (PyErr_Occurred()) SWIG_fail; |
| 13396 | arg3 = (int)SWIG_As_int(obj2); |
| 13397 | if (PyErr_Occurred()) SWIG_fail; |
| 13398 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, |
| 13399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13400 | { |
| 13401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13402 | (arg1)->SetCellEditor(arg2,arg3,arg4); |
| 13403 | |
| 13404 | wxPyEndAllowThreads(__tstate); |
| 13405 | if (PyErr_Occurred()) SWIG_fail; |
| 13406 | } |
| 13407 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13408 | return resultobj; |
| 13409 | fail: |
| 13410 | return NULL; |
| 13411 | } |
| 13412 | |
| 13413 | |
| 13414 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13415 | PyObject *resultobj; |
| 13416 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13417 | wxGridCellEditor *result; |
| 13418 | PyObject * obj0 = 0 ; |
| 13419 | char *kwnames[] = { |
| 13420 | (char *) "self", NULL |
| 13421 | }; |
| 13422 | |
| 13423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; |
| 13424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13426 | { |
| 13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13428 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); |
| 13429 | |
| 13430 | wxPyEndAllowThreads(__tstate); |
| 13431 | if (PyErr_Occurred()) SWIG_fail; |
| 13432 | } |
| 13433 | { |
| 13434 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 13435 | } |
| 13436 | return resultobj; |
| 13437 | fail: |
| 13438 | return NULL; |
| 13439 | } |
| 13440 | |
| 13441 | |
| 13442 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13443 | PyObject *resultobj; |
| 13444 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13445 | int arg2 ; |
| 13446 | int arg3 ; |
| 13447 | wxGridCellEditor *result; |
| 13448 | PyObject * obj0 = 0 ; |
| 13449 | PyObject * obj1 = 0 ; |
| 13450 | PyObject * obj2 = 0 ; |
| 13451 | char *kwnames[] = { |
| 13452 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 13453 | }; |
| 13454 | |
| 13455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13458 | arg2 = (int)SWIG_As_int(obj1); |
| 13459 | if (PyErr_Occurred()) SWIG_fail; |
| 13460 | arg3 = (int)SWIG_As_int(obj2); |
| 13461 | if (PyErr_Occurred()) SWIG_fail; |
| 13462 | { |
| 13463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13464 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); |
| 13465 | |
| 13466 | wxPyEndAllowThreads(__tstate); |
| 13467 | if (PyErr_Occurred()) SWIG_fail; |
| 13468 | } |
| 13469 | { |
| 13470 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 13471 | } |
| 13472 | return resultobj; |
| 13473 | fail: |
| 13474 | return NULL; |
| 13475 | } |
| 13476 | |
| 13477 | |
| 13478 | static PyObject *_wrap_Grid_GetCellValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13479 | PyObject *resultobj; |
| 13480 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13481 | int arg2 ; |
| 13482 | int arg3 ; |
| 13483 | wxString result; |
| 13484 | PyObject * obj0 = 0 ; |
| 13485 | PyObject * obj1 = 0 ; |
| 13486 | PyObject * obj2 = 0 ; |
| 13487 | char *kwnames[] = { |
| 13488 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 13489 | }; |
| 13490 | |
| 13491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13494 | arg2 = (int)SWIG_As_int(obj1); |
| 13495 | if (PyErr_Occurred()) SWIG_fail; |
| 13496 | arg3 = (int)SWIG_As_int(obj2); |
| 13497 | if (PyErr_Occurred()) SWIG_fail; |
| 13498 | { |
| 13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13500 | result = (arg1)->GetCellValue(arg2,arg3); |
| 13501 | |
| 13502 | wxPyEndAllowThreads(__tstate); |
| 13503 | if (PyErr_Occurred()) SWIG_fail; |
| 13504 | } |
| 13505 | { |
| 13506 | #if wxUSE_UNICODE |
| 13507 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
| 13508 | #else |
| 13509 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
| 13510 | #endif |
| 13511 | } |
| 13512 | return resultobj; |
| 13513 | fail: |
| 13514 | return NULL; |
| 13515 | } |
| 13516 | |
| 13517 | |
| 13518 | static PyObject *_wrap_Grid_SetCellValue(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13519 | PyObject *resultobj; |
| 13520 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13521 | int arg2 ; |
| 13522 | int arg3 ; |
| 13523 | wxString *arg4 = 0 ; |
| 13524 | bool temp4 = false ; |
| 13525 | PyObject * obj0 = 0 ; |
| 13526 | PyObject * obj1 = 0 ; |
| 13527 | PyObject * obj2 = 0 ; |
| 13528 | PyObject * obj3 = 0 ; |
| 13529 | char *kwnames[] = { |
| 13530 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL |
| 13531 | }; |
| 13532 | |
| 13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13536 | arg2 = (int)SWIG_As_int(obj1); |
| 13537 | if (PyErr_Occurred()) SWIG_fail; |
| 13538 | arg3 = (int)SWIG_As_int(obj2); |
| 13539 | if (PyErr_Occurred()) SWIG_fail; |
| 13540 | { |
| 13541 | arg4 = wxString_in_helper(obj3); |
| 13542 | if (arg4 == NULL) SWIG_fail; |
| 13543 | temp4 = true; |
| 13544 | } |
| 13545 | { |
| 13546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13547 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); |
| 13548 | |
| 13549 | wxPyEndAllowThreads(__tstate); |
| 13550 | if (PyErr_Occurred()) SWIG_fail; |
| 13551 | } |
| 13552 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13553 | { |
| 13554 | if (temp4) |
| 13555 | delete arg4; |
| 13556 | } |
| 13557 | return resultobj; |
| 13558 | fail: |
| 13559 | { |
| 13560 | if (temp4) |
| 13561 | delete arg4; |
| 13562 | } |
| 13563 | return NULL; |
| 13564 | } |
| 13565 | |
| 13566 | |
| 13567 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13568 | PyObject *resultobj; |
| 13569 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13570 | int arg2 ; |
| 13571 | int arg3 ; |
| 13572 | bool result; |
| 13573 | PyObject * obj0 = 0 ; |
| 13574 | PyObject * obj1 = 0 ; |
| 13575 | PyObject * obj2 = 0 ; |
| 13576 | char *kwnames[] = { |
| 13577 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 13578 | }; |
| 13579 | |
| 13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13583 | arg2 = (int)SWIG_As_int(obj1); |
| 13584 | if (PyErr_Occurred()) SWIG_fail; |
| 13585 | arg3 = (int)SWIG_As_int(obj2); |
| 13586 | if (PyErr_Occurred()) SWIG_fail; |
| 13587 | { |
| 13588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13589 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); |
| 13590 | |
| 13591 | wxPyEndAllowThreads(__tstate); |
| 13592 | if (PyErr_Occurred()) SWIG_fail; |
| 13593 | } |
| 13594 | { |
| 13595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 13596 | } |
| 13597 | return resultobj; |
| 13598 | fail: |
| 13599 | return NULL; |
| 13600 | } |
| 13601 | |
| 13602 | |
| 13603 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13604 | PyObject *resultobj; |
| 13605 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13606 | int arg2 ; |
| 13607 | int arg3 ; |
| 13608 | bool arg4 = (bool) true ; |
| 13609 | PyObject * obj0 = 0 ; |
| 13610 | PyObject * obj1 = 0 ; |
| 13611 | PyObject * obj2 = 0 ; |
| 13612 | PyObject * obj3 = 0 ; |
| 13613 | char *kwnames[] = { |
| 13614 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL |
| 13615 | }; |
| 13616 | |
| 13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 13618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13620 | arg2 = (int)SWIG_As_int(obj1); |
| 13621 | if (PyErr_Occurred()) SWIG_fail; |
| 13622 | arg3 = (int)SWIG_As_int(obj2); |
| 13623 | if (PyErr_Occurred()) SWIG_fail; |
| 13624 | if (obj3) { |
| 13625 | arg4 = (bool)SWIG_As_bool(obj3); |
| 13626 | if (PyErr_Occurred()) SWIG_fail; |
| 13627 | } |
| 13628 | { |
| 13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13630 | (arg1)->SetReadOnly(arg2,arg3,arg4); |
| 13631 | |
| 13632 | wxPyEndAllowThreads(__tstate); |
| 13633 | if (PyErr_Occurred()) SWIG_fail; |
| 13634 | } |
| 13635 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13636 | return resultobj; |
| 13637 | fail: |
| 13638 | return NULL; |
| 13639 | } |
| 13640 | |
| 13641 | |
| 13642 | static PyObject *_wrap_Grid_SelectRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13643 | PyObject *resultobj; |
| 13644 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13645 | int arg2 ; |
| 13646 | bool arg3 = (bool) false ; |
| 13647 | PyObject * obj0 = 0 ; |
| 13648 | PyObject * obj1 = 0 ; |
| 13649 | PyObject * obj2 = 0 ; |
| 13650 | char *kwnames[] = { |
| 13651 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL |
| 13652 | }; |
| 13653 | |
| 13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13657 | arg2 = (int)SWIG_As_int(obj1); |
| 13658 | if (PyErr_Occurred()) SWIG_fail; |
| 13659 | if (obj2) { |
| 13660 | arg3 = (bool)SWIG_As_bool(obj2); |
| 13661 | if (PyErr_Occurred()) SWIG_fail; |
| 13662 | } |
| 13663 | { |
| 13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13665 | (arg1)->SelectRow(arg2,arg3); |
| 13666 | |
| 13667 | wxPyEndAllowThreads(__tstate); |
| 13668 | if (PyErr_Occurred()) SWIG_fail; |
| 13669 | } |
| 13670 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13671 | return resultobj; |
| 13672 | fail: |
| 13673 | return NULL; |
| 13674 | } |
| 13675 | |
| 13676 | |
| 13677 | static PyObject *_wrap_Grid_SelectCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13678 | PyObject *resultobj; |
| 13679 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13680 | int arg2 ; |
| 13681 | bool arg3 = (bool) false ; |
| 13682 | PyObject * obj0 = 0 ; |
| 13683 | PyObject * obj1 = 0 ; |
| 13684 | PyObject * obj2 = 0 ; |
| 13685 | char *kwnames[] = { |
| 13686 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL |
| 13687 | }; |
| 13688 | |
| 13689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13692 | arg2 = (int)SWIG_As_int(obj1); |
| 13693 | if (PyErr_Occurred()) SWIG_fail; |
| 13694 | if (obj2) { |
| 13695 | arg3 = (bool)SWIG_As_bool(obj2); |
| 13696 | if (PyErr_Occurred()) SWIG_fail; |
| 13697 | } |
| 13698 | { |
| 13699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13700 | (arg1)->SelectCol(arg2,arg3); |
| 13701 | |
| 13702 | wxPyEndAllowThreads(__tstate); |
| 13703 | if (PyErr_Occurred()) SWIG_fail; |
| 13704 | } |
| 13705 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13706 | return resultobj; |
| 13707 | fail: |
| 13708 | return NULL; |
| 13709 | } |
| 13710 | |
| 13711 | |
| 13712 | static PyObject *_wrap_Grid_SelectBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13713 | PyObject *resultobj; |
| 13714 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13715 | int arg2 ; |
| 13716 | int arg3 ; |
| 13717 | int arg4 ; |
| 13718 | int arg5 ; |
| 13719 | bool arg6 = (bool) false ; |
| 13720 | PyObject * obj0 = 0 ; |
| 13721 | PyObject * obj1 = 0 ; |
| 13722 | PyObject * obj2 = 0 ; |
| 13723 | PyObject * obj3 = 0 ; |
| 13724 | PyObject * obj4 = 0 ; |
| 13725 | PyObject * obj5 = 0 ; |
| 13726 | char *kwnames[] = { |
| 13727 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL |
| 13728 | }; |
| 13729 | |
| 13730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
| 13731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13733 | arg2 = (int)SWIG_As_int(obj1); |
| 13734 | if (PyErr_Occurred()) SWIG_fail; |
| 13735 | arg3 = (int)SWIG_As_int(obj2); |
| 13736 | if (PyErr_Occurred()) SWIG_fail; |
| 13737 | arg4 = (int)SWIG_As_int(obj3); |
| 13738 | if (PyErr_Occurred()) SWIG_fail; |
| 13739 | arg5 = (int)SWIG_As_int(obj4); |
| 13740 | if (PyErr_Occurred()) SWIG_fail; |
| 13741 | if (obj5) { |
| 13742 | arg6 = (bool)SWIG_As_bool(obj5); |
| 13743 | if (PyErr_Occurred()) SWIG_fail; |
| 13744 | } |
| 13745 | { |
| 13746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13747 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); |
| 13748 | |
| 13749 | wxPyEndAllowThreads(__tstate); |
| 13750 | if (PyErr_Occurred()) SWIG_fail; |
| 13751 | } |
| 13752 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13753 | return resultobj; |
| 13754 | fail: |
| 13755 | return NULL; |
| 13756 | } |
| 13757 | |
| 13758 | |
| 13759 | static PyObject *_wrap_Grid_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13760 | PyObject *resultobj; |
| 13761 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13762 | PyObject * obj0 = 0 ; |
| 13763 | char *kwnames[] = { |
| 13764 | (char *) "self", NULL |
| 13765 | }; |
| 13766 | |
| 13767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; |
| 13768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13770 | { |
| 13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13772 | (arg1)->SelectAll(); |
| 13773 | |
| 13774 | wxPyEndAllowThreads(__tstate); |
| 13775 | if (PyErr_Occurred()) SWIG_fail; |
| 13776 | } |
| 13777 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13778 | return resultobj; |
| 13779 | fail: |
| 13780 | return NULL; |
| 13781 | } |
| 13782 | |
| 13783 | |
| 13784 | static PyObject *_wrap_Grid_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13785 | PyObject *resultobj; |
| 13786 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13787 | bool result; |
| 13788 | PyObject * obj0 = 0 ; |
| 13789 | char *kwnames[] = { |
| 13790 | (char *) "self", NULL |
| 13791 | }; |
| 13792 | |
| 13793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; |
| 13794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13796 | { |
| 13797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13798 | result = (bool)(arg1)->IsSelection(); |
| 13799 | |
| 13800 | wxPyEndAllowThreads(__tstate); |
| 13801 | if (PyErr_Occurred()) SWIG_fail; |
| 13802 | } |
| 13803 | { |
| 13804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 13805 | } |
| 13806 | return resultobj; |
| 13807 | fail: |
| 13808 | return NULL; |
| 13809 | } |
| 13810 | |
| 13811 | |
| 13812 | static PyObject *_wrap_Grid_ClearSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13813 | PyObject *resultobj; |
| 13814 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13815 | PyObject * obj0 = 0 ; |
| 13816 | char *kwnames[] = { |
| 13817 | (char *) "self", NULL |
| 13818 | }; |
| 13819 | |
| 13820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; |
| 13821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13823 | { |
| 13824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13825 | (arg1)->ClearSelection(); |
| 13826 | |
| 13827 | wxPyEndAllowThreads(__tstate); |
| 13828 | if (PyErr_Occurred()) SWIG_fail; |
| 13829 | } |
| 13830 | Py_INCREF(Py_None); resultobj = Py_None; |
| 13831 | return resultobj; |
| 13832 | fail: |
| 13833 | return NULL; |
| 13834 | } |
| 13835 | |
| 13836 | |
| 13837 | static PyObject *_wrap_Grid_IsInSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13838 | PyObject *resultobj; |
| 13839 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13840 | int arg2 ; |
| 13841 | int arg3 ; |
| 13842 | bool result; |
| 13843 | PyObject * obj0 = 0 ; |
| 13844 | PyObject * obj1 = 0 ; |
| 13845 | PyObject * obj2 = 0 ; |
| 13846 | char *kwnames[] = { |
| 13847 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 13848 | }; |
| 13849 | |
| 13850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 13851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13853 | arg2 = (int)SWIG_As_int(obj1); |
| 13854 | if (PyErr_Occurred()) SWIG_fail; |
| 13855 | arg3 = (int)SWIG_As_int(obj2); |
| 13856 | if (PyErr_Occurred()) SWIG_fail; |
| 13857 | { |
| 13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13859 | result = (bool)(arg1)->IsInSelection(arg2,arg3); |
| 13860 | |
| 13861 | wxPyEndAllowThreads(__tstate); |
| 13862 | if (PyErr_Occurred()) SWIG_fail; |
| 13863 | } |
| 13864 | { |
| 13865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 13866 | } |
| 13867 | return resultobj; |
| 13868 | fail: |
| 13869 | return NULL; |
| 13870 | } |
| 13871 | |
| 13872 | |
| 13873 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13874 | PyObject *resultobj; |
| 13875 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13876 | wxGridCellCoordsArray result; |
| 13877 | PyObject * obj0 = 0 ; |
| 13878 | char *kwnames[] = { |
| 13879 | (char *) "self", NULL |
| 13880 | }; |
| 13881 | |
| 13882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; |
| 13883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13885 | { |
| 13886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13887 | result = ((wxGrid const *)arg1)->GetSelectedCells(); |
| 13888 | |
| 13889 | wxPyEndAllowThreads(__tstate); |
| 13890 | if (PyErr_Occurred()) SWIG_fail; |
| 13891 | } |
| 13892 | { |
| 13893 | resultobj = wxGridCellCoordsArray_helper(result); |
| 13894 | } |
| 13895 | return resultobj; |
| 13896 | fail: |
| 13897 | return NULL; |
| 13898 | } |
| 13899 | |
| 13900 | |
| 13901 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13902 | PyObject *resultobj; |
| 13903 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13904 | wxGridCellCoordsArray result; |
| 13905 | PyObject * obj0 = 0 ; |
| 13906 | char *kwnames[] = { |
| 13907 | (char *) "self", NULL |
| 13908 | }; |
| 13909 | |
| 13910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; |
| 13911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13913 | { |
| 13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13915 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); |
| 13916 | |
| 13917 | wxPyEndAllowThreads(__tstate); |
| 13918 | if (PyErr_Occurred()) SWIG_fail; |
| 13919 | } |
| 13920 | { |
| 13921 | resultobj = wxGridCellCoordsArray_helper(result); |
| 13922 | } |
| 13923 | return resultobj; |
| 13924 | fail: |
| 13925 | return NULL; |
| 13926 | } |
| 13927 | |
| 13928 | |
| 13929 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13930 | PyObject *resultobj; |
| 13931 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13932 | wxGridCellCoordsArray result; |
| 13933 | PyObject * obj0 = 0 ; |
| 13934 | char *kwnames[] = { |
| 13935 | (char *) "self", NULL |
| 13936 | }; |
| 13937 | |
| 13938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; |
| 13939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13941 | { |
| 13942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13943 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); |
| 13944 | |
| 13945 | wxPyEndAllowThreads(__tstate); |
| 13946 | if (PyErr_Occurred()) SWIG_fail; |
| 13947 | } |
| 13948 | { |
| 13949 | resultobj = wxGridCellCoordsArray_helper(result); |
| 13950 | } |
| 13951 | return resultobj; |
| 13952 | fail: |
| 13953 | return NULL; |
| 13954 | } |
| 13955 | |
| 13956 | |
| 13957 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13958 | PyObject *resultobj; |
| 13959 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13960 | wxArrayInt result; |
| 13961 | PyObject * obj0 = 0 ; |
| 13962 | char *kwnames[] = { |
| 13963 | (char *) "self", NULL |
| 13964 | }; |
| 13965 | |
| 13966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; |
| 13967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 13968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 13969 | { |
| 13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 13971 | result = ((wxGrid const *)arg1)->GetSelectedRows(); |
| 13972 | |
| 13973 | wxPyEndAllowThreads(__tstate); |
| 13974 | if (PyErr_Occurred()) SWIG_fail; |
| 13975 | } |
| 13976 | { |
| 13977 | resultobj = PyList_New(0); |
| 13978 | size_t idx; |
| 13979 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { |
| 13980 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); |
| 13981 | PyList_Append(resultobj, val); |
| 13982 | Py_DECREF(val); |
| 13983 | } |
| 13984 | } |
| 13985 | return resultobj; |
| 13986 | fail: |
| 13987 | return NULL; |
| 13988 | } |
| 13989 | |
| 13990 | |
| 13991 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *, PyObject *args, PyObject *kwargs) { |
| 13992 | PyObject *resultobj; |
| 13993 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 13994 | wxArrayInt result; |
| 13995 | PyObject * obj0 = 0 ; |
| 13996 | char *kwnames[] = { |
| 13997 | (char *) "self", NULL |
| 13998 | }; |
| 13999 | |
| 14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; |
| 14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14003 | { |
| 14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14005 | result = ((wxGrid const *)arg1)->GetSelectedCols(); |
| 14006 | |
| 14007 | wxPyEndAllowThreads(__tstate); |
| 14008 | if (PyErr_Occurred()) SWIG_fail; |
| 14009 | } |
| 14010 | { |
| 14011 | resultobj = PyList_New(0); |
| 14012 | size_t idx; |
| 14013 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { |
| 14014 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); |
| 14015 | PyList_Append(resultobj, val); |
| 14016 | Py_DECREF(val); |
| 14017 | } |
| 14018 | } |
| 14019 | return resultobj; |
| 14020 | fail: |
| 14021 | return NULL; |
| 14022 | } |
| 14023 | |
| 14024 | |
| 14025 | static PyObject *_wrap_Grid_DeselectRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14026 | PyObject *resultobj; |
| 14027 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14028 | int arg2 ; |
| 14029 | PyObject * obj0 = 0 ; |
| 14030 | PyObject * obj1 = 0 ; |
| 14031 | char *kwnames[] = { |
| 14032 | (char *) "self",(char *) "row", NULL |
| 14033 | }; |
| 14034 | |
| 14035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; |
| 14036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14038 | arg2 = (int)SWIG_As_int(obj1); |
| 14039 | if (PyErr_Occurred()) SWIG_fail; |
| 14040 | { |
| 14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14042 | (arg1)->DeselectRow(arg2); |
| 14043 | |
| 14044 | wxPyEndAllowThreads(__tstate); |
| 14045 | if (PyErr_Occurred()) SWIG_fail; |
| 14046 | } |
| 14047 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14048 | return resultobj; |
| 14049 | fail: |
| 14050 | return NULL; |
| 14051 | } |
| 14052 | |
| 14053 | |
| 14054 | static PyObject *_wrap_Grid_DeselectCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14055 | PyObject *resultobj; |
| 14056 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14057 | int arg2 ; |
| 14058 | PyObject * obj0 = 0 ; |
| 14059 | PyObject * obj1 = 0 ; |
| 14060 | char *kwnames[] = { |
| 14061 | (char *) "self",(char *) "col", NULL |
| 14062 | }; |
| 14063 | |
| 14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; |
| 14065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14067 | arg2 = (int)SWIG_As_int(obj1); |
| 14068 | if (PyErr_Occurred()) SWIG_fail; |
| 14069 | { |
| 14070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14071 | (arg1)->DeselectCol(arg2); |
| 14072 | |
| 14073 | wxPyEndAllowThreads(__tstate); |
| 14074 | if (PyErr_Occurred()) SWIG_fail; |
| 14075 | } |
| 14076 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14077 | return resultobj; |
| 14078 | fail: |
| 14079 | return NULL; |
| 14080 | } |
| 14081 | |
| 14082 | |
| 14083 | static PyObject *_wrap_Grid_DeselectCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14084 | PyObject *resultobj; |
| 14085 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14086 | int arg2 ; |
| 14087 | int arg3 ; |
| 14088 | PyObject * obj0 = 0 ; |
| 14089 | PyObject * obj1 = 0 ; |
| 14090 | PyObject * obj2 = 0 ; |
| 14091 | char *kwnames[] = { |
| 14092 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 14093 | }; |
| 14094 | |
| 14095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 14096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14098 | arg2 = (int)SWIG_As_int(obj1); |
| 14099 | if (PyErr_Occurred()) SWIG_fail; |
| 14100 | arg3 = (int)SWIG_As_int(obj2); |
| 14101 | if (PyErr_Occurred()) SWIG_fail; |
| 14102 | { |
| 14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14104 | (arg1)->DeselectCell(arg2,arg3); |
| 14105 | |
| 14106 | wxPyEndAllowThreads(__tstate); |
| 14107 | if (PyErr_Occurred()) SWIG_fail; |
| 14108 | } |
| 14109 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14110 | return resultobj; |
| 14111 | fail: |
| 14112 | return NULL; |
| 14113 | } |
| 14114 | |
| 14115 | |
| 14116 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14117 | PyObject *resultobj; |
| 14118 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14119 | wxGridCellCoords *arg2 = 0 ; |
| 14120 | wxGridCellCoords *arg3 = 0 ; |
| 14121 | wxRect result; |
| 14122 | wxGridCellCoords temp2 ; |
| 14123 | wxGridCellCoords temp3 ; |
| 14124 | PyObject * obj0 = 0 ; |
| 14125 | PyObject * obj1 = 0 ; |
| 14126 | PyObject * obj2 = 0 ; |
| 14127 | char *kwnames[] = { |
| 14128 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL |
| 14129 | }; |
| 14130 | |
| 14131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 14132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14134 | { |
| 14135 | arg2 = &temp2; |
| 14136 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; |
| 14137 | } |
| 14138 | { |
| 14139 | arg3 = &temp3; |
| 14140 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; |
| 14141 | } |
| 14142 | { |
| 14143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14144 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); |
| 14145 | |
| 14146 | wxPyEndAllowThreads(__tstate); |
| 14147 | if (PyErr_Occurred()) SWIG_fail; |
| 14148 | } |
| 14149 | { |
| 14150 | wxRect * resultptr; |
| 14151 | resultptr = new wxRect((wxRect &) result); |
| 14152 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
| 14153 | } |
| 14154 | return resultobj; |
| 14155 | fail: |
| 14156 | return NULL; |
| 14157 | } |
| 14158 | |
| 14159 | |
| 14160 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14161 | PyObject *resultobj; |
| 14162 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14163 | wxColour result; |
| 14164 | PyObject * obj0 = 0 ; |
| 14165 | char *kwnames[] = { |
| 14166 | (char *) "self", NULL |
| 14167 | }; |
| 14168 | |
| 14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; |
| 14170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14172 | { |
| 14173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14174 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); |
| 14175 | |
| 14176 | wxPyEndAllowThreads(__tstate); |
| 14177 | if (PyErr_Occurred()) SWIG_fail; |
| 14178 | } |
| 14179 | { |
| 14180 | wxColour * resultptr; |
| 14181 | resultptr = new wxColour((wxColour &) result); |
| 14182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 14183 | } |
| 14184 | return resultobj; |
| 14185 | fail: |
| 14186 | return NULL; |
| 14187 | } |
| 14188 | |
| 14189 | |
| 14190 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14191 | PyObject *resultobj; |
| 14192 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14193 | wxColour result; |
| 14194 | PyObject * obj0 = 0 ; |
| 14195 | char *kwnames[] = { |
| 14196 | (char *) "self", NULL |
| 14197 | }; |
| 14198 | |
| 14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; |
| 14200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14202 | { |
| 14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14204 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); |
| 14205 | |
| 14206 | wxPyEndAllowThreads(__tstate); |
| 14207 | if (PyErr_Occurred()) SWIG_fail; |
| 14208 | } |
| 14209 | { |
| 14210 | wxColour * resultptr; |
| 14211 | resultptr = new wxColour((wxColour &) result); |
| 14212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
| 14213 | } |
| 14214 | return resultobj; |
| 14215 | fail: |
| 14216 | return NULL; |
| 14217 | } |
| 14218 | |
| 14219 | |
| 14220 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14221 | PyObject *resultobj; |
| 14222 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14223 | wxColour *arg2 = 0 ; |
| 14224 | wxColour temp2 ; |
| 14225 | PyObject * obj0 = 0 ; |
| 14226 | PyObject * obj1 = 0 ; |
| 14227 | char *kwnames[] = { |
| 14228 | (char *) "self",(char *) "c", NULL |
| 14229 | }; |
| 14230 | |
| 14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; |
| 14232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14234 | { |
| 14235 | arg2 = &temp2; |
| 14236 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 14237 | } |
| 14238 | { |
| 14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14240 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); |
| 14241 | |
| 14242 | wxPyEndAllowThreads(__tstate); |
| 14243 | if (PyErr_Occurred()) SWIG_fail; |
| 14244 | } |
| 14245 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14246 | return resultobj; |
| 14247 | fail: |
| 14248 | return NULL; |
| 14249 | } |
| 14250 | |
| 14251 | |
| 14252 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14253 | PyObject *resultobj; |
| 14254 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14255 | wxColour *arg2 = 0 ; |
| 14256 | wxColour temp2 ; |
| 14257 | PyObject * obj0 = 0 ; |
| 14258 | PyObject * obj1 = 0 ; |
| 14259 | char *kwnames[] = { |
| 14260 | (char *) "self",(char *) "c", NULL |
| 14261 | }; |
| 14262 | |
| 14263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; |
| 14264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14266 | { |
| 14267 | arg2 = &temp2; |
| 14268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; |
| 14269 | } |
| 14270 | { |
| 14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14272 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); |
| 14273 | |
| 14274 | wxPyEndAllowThreads(__tstate); |
| 14275 | if (PyErr_Occurred()) SWIG_fail; |
| 14276 | } |
| 14277 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14278 | return resultobj; |
| 14279 | fail: |
| 14280 | return NULL; |
| 14281 | } |
| 14282 | |
| 14283 | |
| 14284 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14285 | PyObject *resultobj; |
| 14286 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14287 | wxString *arg2 = 0 ; |
| 14288 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; |
| 14289 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; |
| 14290 | bool temp2 = false ; |
| 14291 | PyObject * obj0 = 0 ; |
| 14292 | PyObject * obj1 = 0 ; |
| 14293 | PyObject * obj2 = 0 ; |
| 14294 | PyObject * obj3 = 0 ; |
| 14295 | char *kwnames[] = { |
| 14296 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL |
| 14297 | }; |
| 14298 | |
| 14299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
| 14300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14302 | { |
| 14303 | arg2 = wxString_in_helper(obj1); |
| 14304 | if (arg2 == NULL) SWIG_fail; |
| 14305 | temp2 = true; |
| 14306 | } |
| 14307 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer, |
| 14308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14309 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, |
| 14310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14311 | { |
| 14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14313 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); |
| 14314 | |
| 14315 | wxPyEndAllowThreads(__tstate); |
| 14316 | if (PyErr_Occurred()) SWIG_fail; |
| 14317 | } |
| 14318 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14319 | { |
| 14320 | if (temp2) |
| 14321 | delete arg2; |
| 14322 | } |
| 14323 | return resultobj; |
| 14324 | fail: |
| 14325 | { |
| 14326 | if (temp2) |
| 14327 | delete arg2; |
| 14328 | } |
| 14329 | return NULL; |
| 14330 | } |
| 14331 | |
| 14332 | |
| 14333 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14334 | PyObject *resultobj; |
| 14335 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14336 | int arg2 ; |
| 14337 | int arg3 ; |
| 14338 | wxGridCellEditor *result; |
| 14339 | PyObject * obj0 = 0 ; |
| 14340 | PyObject * obj1 = 0 ; |
| 14341 | PyObject * obj2 = 0 ; |
| 14342 | char *kwnames[] = { |
| 14343 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 14344 | }; |
| 14345 | |
| 14346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 14347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14349 | arg2 = (int)SWIG_As_int(obj1); |
| 14350 | if (PyErr_Occurred()) SWIG_fail; |
| 14351 | arg3 = (int)SWIG_As_int(obj2); |
| 14352 | if (PyErr_Occurred()) SWIG_fail; |
| 14353 | { |
| 14354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14355 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); |
| 14356 | |
| 14357 | wxPyEndAllowThreads(__tstate); |
| 14358 | if (PyErr_Occurred()) SWIG_fail; |
| 14359 | } |
| 14360 | { |
| 14361 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 14362 | } |
| 14363 | return resultobj; |
| 14364 | fail: |
| 14365 | return NULL; |
| 14366 | } |
| 14367 | |
| 14368 | |
| 14369 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14370 | PyObject *resultobj; |
| 14371 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14372 | int arg2 ; |
| 14373 | int arg3 ; |
| 14374 | wxGridCellRenderer *result; |
| 14375 | PyObject * obj0 = 0 ; |
| 14376 | PyObject * obj1 = 0 ; |
| 14377 | PyObject * obj2 = 0 ; |
| 14378 | char *kwnames[] = { |
| 14379 | (char *) "self",(char *) "row",(char *) "col", NULL |
| 14380 | }; |
| 14381 | |
| 14382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 14383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14385 | arg2 = (int)SWIG_As_int(obj1); |
| 14386 | if (PyErr_Occurred()) SWIG_fail; |
| 14387 | arg3 = (int)SWIG_As_int(obj2); |
| 14388 | if (PyErr_Occurred()) SWIG_fail; |
| 14389 | { |
| 14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14391 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); |
| 14392 | |
| 14393 | wxPyEndAllowThreads(__tstate); |
| 14394 | if (PyErr_Occurred()) SWIG_fail; |
| 14395 | } |
| 14396 | { |
| 14397 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 14398 | } |
| 14399 | return resultobj; |
| 14400 | fail: |
| 14401 | return NULL; |
| 14402 | } |
| 14403 | |
| 14404 | |
| 14405 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14406 | PyObject *resultobj; |
| 14407 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14408 | wxString *arg2 = 0 ; |
| 14409 | wxGridCellEditor *result; |
| 14410 | bool temp2 = false ; |
| 14411 | PyObject * obj0 = 0 ; |
| 14412 | PyObject * obj1 = 0 ; |
| 14413 | char *kwnames[] = { |
| 14414 | (char *) "self",(char *) "typeName", NULL |
| 14415 | }; |
| 14416 | |
| 14417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; |
| 14418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14420 | { |
| 14421 | arg2 = wxString_in_helper(obj1); |
| 14422 | if (arg2 == NULL) SWIG_fail; |
| 14423 | temp2 = true; |
| 14424 | } |
| 14425 | { |
| 14426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14427 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); |
| 14428 | |
| 14429 | wxPyEndAllowThreads(__tstate); |
| 14430 | if (PyErr_Occurred()) SWIG_fail; |
| 14431 | } |
| 14432 | { |
| 14433 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
| 14434 | } |
| 14435 | { |
| 14436 | if (temp2) |
| 14437 | delete arg2; |
| 14438 | } |
| 14439 | return resultobj; |
| 14440 | fail: |
| 14441 | { |
| 14442 | if (temp2) |
| 14443 | delete arg2; |
| 14444 | } |
| 14445 | return NULL; |
| 14446 | } |
| 14447 | |
| 14448 | |
| 14449 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14450 | PyObject *resultobj; |
| 14451 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14452 | wxString *arg2 = 0 ; |
| 14453 | wxGridCellRenderer *result; |
| 14454 | bool temp2 = false ; |
| 14455 | PyObject * obj0 = 0 ; |
| 14456 | PyObject * obj1 = 0 ; |
| 14457 | char *kwnames[] = { |
| 14458 | (char *) "self",(char *) "typeName", NULL |
| 14459 | }; |
| 14460 | |
| 14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; |
| 14462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14464 | { |
| 14465 | arg2 = wxString_in_helper(obj1); |
| 14466 | if (arg2 == NULL) SWIG_fail; |
| 14467 | temp2 = true; |
| 14468 | } |
| 14469 | { |
| 14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14471 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); |
| 14472 | |
| 14473 | wxPyEndAllowThreads(__tstate); |
| 14474 | if (PyErr_Occurred()) SWIG_fail; |
| 14475 | } |
| 14476 | { |
| 14477 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
| 14478 | } |
| 14479 | { |
| 14480 | if (temp2) |
| 14481 | delete arg2; |
| 14482 | } |
| 14483 | return resultobj; |
| 14484 | fail: |
| 14485 | { |
| 14486 | if (temp2) |
| 14487 | delete arg2; |
| 14488 | } |
| 14489 | return NULL; |
| 14490 | } |
| 14491 | |
| 14492 | |
| 14493 | static PyObject *_wrap_Grid_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14494 | PyObject *resultobj; |
| 14495 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14496 | int arg2 ; |
| 14497 | int arg3 ; |
| 14498 | PyObject * obj0 = 0 ; |
| 14499 | PyObject * obj1 = 0 ; |
| 14500 | PyObject * obj2 = 0 ; |
| 14501 | char *kwnames[] = { |
| 14502 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL |
| 14503 | }; |
| 14504 | |
| 14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
| 14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14508 | arg2 = (int)SWIG_As_int(obj1); |
| 14509 | if (PyErr_Occurred()) SWIG_fail; |
| 14510 | arg3 = (int)SWIG_As_int(obj2); |
| 14511 | if (PyErr_Occurred()) SWIG_fail; |
| 14512 | { |
| 14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14514 | (arg1)->SetMargins(arg2,arg3); |
| 14515 | |
| 14516 | wxPyEndAllowThreads(__tstate); |
| 14517 | if (PyErr_Occurred()) SWIG_fail; |
| 14518 | } |
| 14519 | Py_INCREF(Py_None); resultobj = Py_None; |
| 14520 | return resultobj; |
| 14521 | fail: |
| 14522 | return NULL; |
| 14523 | } |
| 14524 | |
| 14525 | |
| 14526 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14527 | PyObject *resultobj; |
| 14528 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14529 | wxWindow *result; |
| 14530 | PyObject * obj0 = 0 ; |
| 14531 | char *kwnames[] = { |
| 14532 | (char *) "self", NULL |
| 14533 | }; |
| 14534 | |
| 14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; |
| 14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14538 | { |
| 14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14540 | result = (wxWindow *)(arg1)->GetGridWindow(); |
| 14541 | |
| 14542 | wxPyEndAllowThreads(__tstate); |
| 14543 | if (PyErr_Occurred()) SWIG_fail; |
| 14544 | } |
| 14545 | { |
| 14546 | resultobj = wxPyMake_wxObject(result, 0); |
| 14547 | } |
| 14548 | return resultobj; |
| 14549 | fail: |
| 14550 | return NULL; |
| 14551 | } |
| 14552 | |
| 14553 | |
| 14554 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14555 | PyObject *resultobj; |
| 14556 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14557 | wxWindow *result; |
| 14558 | PyObject * obj0 = 0 ; |
| 14559 | char *kwnames[] = { |
| 14560 | (char *) "self", NULL |
| 14561 | }; |
| 14562 | |
| 14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; |
| 14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14566 | { |
| 14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14568 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); |
| 14569 | |
| 14570 | wxPyEndAllowThreads(__tstate); |
| 14571 | if (PyErr_Occurred()) SWIG_fail; |
| 14572 | } |
| 14573 | { |
| 14574 | resultobj = wxPyMake_wxObject(result, 0); |
| 14575 | } |
| 14576 | return resultobj; |
| 14577 | fail: |
| 14578 | return NULL; |
| 14579 | } |
| 14580 | |
| 14581 | |
| 14582 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14583 | PyObject *resultobj; |
| 14584 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14585 | wxWindow *result; |
| 14586 | PyObject * obj0 = 0 ; |
| 14587 | char *kwnames[] = { |
| 14588 | (char *) "self", NULL |
| 14589 | }; |
| 14590 | |
| 14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; |
| 14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14594 | { |
| 14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14596 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); |
| 14597 | |
| 14598 | wxPyEndAllowThreads(__tstate); |
| 14599 | if (PyErr_Occurred()) SWIG_fail; |
| 14600 | } |
| 14601 | { |
| 14602 | resultobj = wxPyMake_wxObject(result, 0); |
| 14603 | } |
| 14604 | return resultobj; |
| 14605 | fail: |
| 14606 | return NULL; |
| 14607 | } |
| 14608 | |
| 14609 | |
| 14610 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14611 | PyObject *resultobj; |
| 14612 | wxGrid *arg1 = (wxGrid *) 0 ; |
| 14613 | wxWindow *result; |
| 14614 | PyObject * obj0 = 0 ; |
| 14615 | char *kwnames[] = { |
| 14616 | (char *) "self", NULL |
| 14617 | }; |
| 14618 | |
| 14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; |
| 14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
| 14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14622 | { |
| 14623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14624 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); |
| 14625 | |
| 14626 | wxPyEndAllowThreads(__tstate); |
| 14627 | if (PyErr_Occurred()) SWIG_fail; |
| 14628 | } |
| 14629 | { |
| 14630 | resultobj = wxPyMake_wxObject(result, 0); |
| 14631 | } |
| 14632 | return resultobj; |
| 14633 | fail: |
| 14634 | return NULL; |
| 14635 | } |
| 14636 | |
| 14637 | |
| 14638 | static PyObject *_wrap_Grid_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14639 | PyObject *resultobj; |
| 14640 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
| 14641 | wxVisualAttributes result; |
| 14642 | PyObject * obj0 = 0 ; |
| 14643 | char *kwnames[] = { |
| 14644 | (char *) "variant", NULL |
| 14645 | }; |
| 14646 | |
| 14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Grid_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
| 14648 | if (obj0) { |
| 14649 | arg1 = (int)SWIG_As_int(obj0); |
| 14650 | if (PyErr_Occurred()) SWIG_fail; |
| 14651 | } |
| 14652 | { |
| 14653 | if (!wxPyCheckForApp()) SWIG_fail; |
| 14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14655 | result = wxGrid::GetClassDefaultAttributes((wxWindowVariant )arg1); |
| 14656 | |
| 14657 | wxPyEndAllowThreads(__tstate); |
| 14658 | if (PyErr_Occurred()) SWIG_fail; |
| 14659 | } |
| 14660 | { |
| 14661 | wxVisualAttributes * resultptr; |
| 14662 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); |
| 14663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
| 14664 | } |
| 14665 | return resultobj; |
| 14666 | fail: |
| 14667 | return NULL; |
| 14668 | } |
| 14669 | |
| 14670 | |
| 14671 | static PyObject * Grid_swigregister(PyObject *, PyObject *args) { |
| 14672 | PyObject *obj; |
| 14673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 14674 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); |
| 14675 | Py_INCREF(obj); |
| 14676 | return Py_BuildValue((char *)""); |
| 14677 | } |
| 14678 | static PyObject *_wrap_new_GridEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14679 | PyObject *resultobj; |
| 14680 | int arg1 ; |
| 14681 | wxEventType arg2 ; |
| 14682 | wxGrid *arg3 = (wxGrid *) 0 ; |
| 14683 | int arg4 = (int) -1 ; |
| 14684 | int arg5 = (int) -1 ; |
| 14685 | int arg6 = (int) -1 ; |
| 14686 | int arg7 = (int) -1 ; |
| 14687 | bool arg8 = (bool) true ; |
| 14688 | bool arg9 = (bool) false ; |
| 14689 | bool arg10 = (bool) false ; |
| 14690 | bool arg11 = (bool) false ; |
| 14691 | bool arg12 = (bool) false ; |
| 14692 | wxGridEvent *result; |
| 14693 | PyObject * obj0 = 0 ; |
| 14694 | PyObject * obj1 = 0 ; |
| 14695 | PyObject * obj2 = 0 ; |
| 14696 | PyObject * obj3 = 0 ; |
| 14697 | PyObject * obj4 = 0 ; |
| 14698 | PyObject * obj5 = 0 ; |
| 14699 | PyObject * obj6 = 0 ; |
| 14700 | PyObject * obj7 = 0 ; |
| 14701 | PyObject * obj8 = 0 ; |
| 14702 | PyObject * obj9 = 0 ; |
| 14703 | PyObject * obj10 = 0 ; |
| 14704 | PyObject * obj11 = 0 ; |
| 14705 | char *kwnames[] = { |
| 14706 | (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 |
| 14707 | }; |
| 14708 | |
| 14709 | 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; |
| 14710 | arg1 = (int)SWIG_As_int(obj0); |
| 14711 | if (PyErr_Occurred()) SWIG_fail; |
| 14712 | arg2 = (wxEventType)SWIG_As_int(obj1); |
| 14713 | if (PyErr_Occurred()) SWIG_fail; |
| 14714 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, |
| 14715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14716 | if (obj3) { |
| 14717 | arg4 = (int)SWIG_As_int(obj3); |
| 14718 | if (PyErr_Occurred()) SWIG_fail; |
| 14719 | } |
| 14720 | if (obj4) { |
| 14721 | arg5 = (int)SWIG_As_int(obj4); |
| 14722 | if (PyErr_Occurred()) SWIG_fail; |
| 14723 | } |
| 14724 | if (obj5) { |
| 14725 | arg6 = (int)SWIG_As_int(obj5); |
| 14726 | if (PyErr_Occurred()) SWIG_fail; |
| 14727 | } |
| 14728 | if (obj6) { |
| 14729 | arg7 = (int)SWIG_As_int(obj6); |
| 14730 | if (PyErr_Occurred()) SWIG_fail; |
| 14731 | } |
| 14732 | if (obj7) { |
| 14733 | arg8 = (bool)SWIG_As_bool(obj7); |
| 14734 | if (PyErr_Occurred()) SWIG_fail; |
| 14735 | } |
| 14736 | if (obj8) { |
| 14737 | arg9 = (bool)SWIG_As_bool(obj8); |
| 14738 | if (PyErr_Occurred()) SWIG_fail; |
| 14739 | } |
| 14740 | if (obj9) { |
| 14741 | arg10 = (bool)SWIG_As_bool(obj9); |
| 14742 | if (PyErr_Occurred()) SWIG_fail; |
| 14743 | } |
| 14744 | if (obj10) { |
| 14745 | arg11 = (bool)SWIG_As_bool(obj10); |
| 14746 | if (PyErr_Occurred()) SWIG_fail; |
| 14747 | } |
| 14748 | if (obj11) { |
| 14749 | arg12 = (bool)SWIG_As_bool(obj11); |
| 14750 | if (PyErr_Occurred()) SWIG_fail; |
| 14751 | } |
| 14752 | { |
| 14753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14754 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); |
| 14755 | |
| 14756 | wxPyEndAllowThreads(__tstate); |
| 14757 | if (PyErr_Occurred()) SWIG_fail; |
| 14758 | } |
| 14759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1); |
| 14760 | return resultobj; |
| 14761 | fail: |
| 14762 | return NULL; |
| 14763 | } |
| 14764 | |
| 14765 | |
| 14766 | static PyObject *_wrap_GridEvent_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14767 | PyObject *resultobj; |
| 14768 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14769 | int result; |
| 14770 | PyObject * obj0 = 0 ; |
| 14771 | char *kwnames[] = { |
| 14772 | (char *) "self", NULL |
| 14773 | }; |
| 14774 | |
| 14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; |
| 14776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14778 | { |
| 14779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14780 | result = (int)(arg1)->GetRow(); |
| 14781 | |
| 14782 | wxPyEndAllowThreads(__tstate); |
| 14783 | if (PyErr_Occurred()) SWIG_fail; |
| 14784 | } |
| 14785 | resultobj = SWIG_From_int((int)result); |
| 14786 | return resultobj; |
| 14787 | fail: |
| 14788 | return NULL; |
| 14789 | } |
| 14790 | |
| 14791 | |
| 14792 | static PyObject *_wrap_GridEvent_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14793 | PyObject *resultobj; |
| 14794 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14795 | int result; |
| 14796 | PyObject * obj0 = 0 ; |
| 14797 | char *kwnames[] = { |
| 14798 | (char *) "self", NULL |
| 14799 | }; |
| 14800 | |
| 14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; |
| 14802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14804 | { |
| 14805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14806 | result = (int)(arg1)->GetCol(); |
| 14807 | |
| 14808 | wxPyEndAllowThreads(__tstate); |
| 14809 | if (PyErr_Occurred()) SWIG_fail; |
| 14810 | } |
| 14811 | resultobj = SWIG_From_int((int)result); |
| 14812 | return resultobj; |
| 14813 | fail: |
| 14814 | return NULL; |
| 14815 | } |
| 14816 | |
| 14817 | |
| 14818 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14819 | PyObject *resultobj; |
| 14820 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14821 | wxPoint result; |
| 14822 | PyObject * obj0 = 0 ; |
| 14823 | char *kwnames[] = { |
| 14824 | (char *) "self", NULL |
| 14825 | }; |
| 14826 | |
| 14827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; |
| 14828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14830 | { |
| 14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14832 | result = (arg1)->GetPosition(); |
| 14833 | |
| 14834 | wxPyEndAllowThreads(__tstate); |
| 14835 | if (PyErr_Occurred()) SWIG_fail; |
| 14836 | } |
| 14837 | { |
| 14838 | wxPoint * resultptr; |
| 14839 | resultptr = new wxPoint((wxPoint &) result); |
| 14840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
| 14841 | } |
| 14842 | return resultobj; |
| 14843 | fail: |
| 14844 | return NULL; |
| 14845 | } |
| 14846 | |
| 14847 | |
| 14848 | static PyObject *_wrap_GridEvent_Selecting(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14849 | PyObject *resultobj; |
| 14850 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14851 | bool result; |
| 14852 | PyObject * obj0 = 0 ; |
| 14853 | char *kwnames[] = { |
| 14854 | (char *) "self", NULL |
| 14855 | }; |
| 14856 | |
| 14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; |
| 14858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14860 | { |
| 14861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14862 | result = (bool)(arg1)->Selecting(); |
| 14863 | |
| 14864 | wxPyEndAllowThreads(__tstate); |
| 14865 | if (PyErr_Occurred()) SWIG_fail; |
| 14866 | } |
| 14867 | { |
| 14868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 14869 | } |
| 14870 | return resultobj; |
| 14871 | fail: |
| 14872 | return NULL; |
| 14873 | } |
| 14874 | |
| 14875 | |
| 14876 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14877 | PyObject *resultobj; |
| 14878 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14879 | bool result; |
| 14880 | PyObject * obj0 = 0 ; |
| 14881 | char *kwnames[] = { |
| 14882 | (char *) "self", NULL |
| 14883 | }; |
| 14884 | |
| 14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; |
| 14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14888 | { |
| 14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14890 | result = (bool)(arg1)->ControlDown(); |
| 14891 | |
| 14892 | wxPyEndAllowThreads(__tstate); |
| 14893 | if (PyErr_Occurred()) SWIG_fail; |
| 14894 | } |
| 14895 | { |
| 14896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 14897 | } |
| 14898 | return resultobj; |
| 14899 | fail: |
| 14900 | return NULL; |
| 14901 | } |
| 14902 | |
| 14903 | |
| 14904 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14905 | PyObject *resultobj; |
| 14906 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14907 | bool result; |
| 14908 | PyObject * obj0 = 0 ; |
| 14909 | char *kwnames[] = { |
| 14910 | (char *) "self", NULL |
| 14911 | }; |
| 14912 | |
| 14913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; |
| 14914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14916 | { |
| 14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14918 | result = (bool)(arg1)->MetaDown(); |
| 14919 | |
| 14920 | wxPyEndAllowThreads(__tstate); |
| 14921 | if (PyErr_Occurred()) SWIG_fail; |
| 14922 | } |
| 14923 | { |
| 14924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 14925 | } |
| 14926 | return resultobj; |
| 14927 | fail: |
| 14928 | return NULL; |
| 14929 | } |
| 14930 | |
| 14931 | |
| 14932 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14933 | PyObject *resultobj; |
| 14934 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14935 | bool result; |
| 14936 | PyObject * obj0 = 0 ; |
| 14937 | char *kwnames[] = { |
| 14938 | (char *) "self", NULL |
| 14939 | }; |
| 14940 | |
| 14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; |
| 14942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14944 | { |
| 14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14946 | result = (bool)(arg1)->ShiftDown(); |
| 14947 | |
| 14948 | wxPyEndAllowThreads(__tstate); |
| 14949 | if (PyErr_Occurred()) SWIG_fail; |
| 14950 | } |
| 14951 | { |
| 14952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 14953 | } |
| 14954 | return resultobj; |
| 14955 | fail: |
| 14956 | return NULL; |
| 14957 | } |
| 14958 | |
| 14959 | |
| 14960 | static PyObject *_wrap_GridEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14961 | PyObject *resultobj; |
| 14962 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; |
| 14963 | bool result; |
| 14964 | PyObject * obj0 = 0 ; |
| 14965 | char *kwnames[] = { |
| 14966 | (char *) "self", NULL |
| 14967 | }; |
| 14968 | |
| 14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; |
| 14970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
| 14971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 14972 | { |
| 14973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 14974 | result = (bool)(arg1)->AltDown(); |
| 14975 | |
| 14976 | wxPyEndAllowThreads(__tstate); |
| 14977 | if (PyErr_Occurred()) SWIG_fail; |
| 14978 | } |
| 14979 | { |
| 14980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 14981 | } |
| 14982 | return resultobj; |
| 14983 | fail: |
| 14984 | return NULL; |
| 14985 | } |
| 14986 | |
| 14987 | |
| 14988 | static PyObject * GridEvent_swigregister(PyObject *, PyObject *args) { |
| 14989 | PyObject *obj; |
| 14990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 14991 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); |
| 14992 | Py_INCREF(obj); |
| 14993 | return Py_BuildValue((char *)""); |
| 14994 | } |
| 14995 | static PyObject *_wrap_new_GridSizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
| 14996 | PyObject *resultobj; |
| 14997 | int arg1 ; |
| 14998 | wxEventType arg2 ; |
| 14999 | wxGrid *arg3 = (wxGrid *) 0 ; |
| 15000 | int arg4 = (int) -1 ; |
| 15001 | int arg5 = (int) -1 ; |
| 15002 | int arg6 = (int) -1 ; |
| 15003 | bool arg7 = (bool) false ; |
| 15004 | bool arg8 = (bool) false ; |
| 15005 | bool arg9 = (bool) false ; |
| 15006 | bool arg10 = (bool) false ; |
| 15007 | wxGridSizeEvent *result; |
| 15008 | PyObject * obj0 = 0 ; |
| 15009 | PyObject * obj1 = 0 ; |
| 15010 | PyObject * obj2 = 0 ; |
| 15011 | PyObject * obj3 = 0 ; |
| 15012 | PyObject * obj4 = 0 ; |
| 15013 | PyObject * obj5 = 0 ; |
| 15014 | PyObject * obj6 = 0 ; |
| 15015 | PyObject * obj7 = 0 ; |
| 15016 | PyObject * obj8 = 0 ; |
| 15017 | PyObject * obj9 = 0 ; |
| 15018 | char *kwnames[] = { |
| 15019 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL |
| 15020 | }; |
| 15021 | |
| 15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
| 15023 | arg1 = (int)SWIG_As_int(obj0); |
| 15024 | if (PyErr_Occurred()) SWIG_fail; |
| 15025 | arg2 = (wxEventType)SWIG_As_int(obj1); |
| 15026 | if (PyErr_Occurred()) SWIG_fail; |
| 15027 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, |
| 15028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15029 | if (obj3) { |
| 15030 | arg4 = (int)SWIG_As_int(obj3); |
| 15031 | if (PyErr_Occurred()) SWIG_fail; |
| 15032 | } |
| 15033 | if (obj4) { |
| 15034 | arg5 = (int)SWIG_As_int(obj4); |
| 15035 | if (PyErr_Occurred()) SWIG_fail; |
| 15036 | } |
| 15037 | if (obj5) { |
| 15038 | arg6 = (int)SWIG_As_int(obj5); |
| 15039 | if (PyErr_Occurred()) SWIG_fail; |
| 15040 | } |
| 15041 | if (obj6) { |
| 15042 | arg7 = (bool)SWIG_As_bool(obj6); |
| 15043 | if (PyErr_Occurred()) SWIG_fail; |
| 15044 | } |
| 15045 | if (obj7) { |
| 15046 | arg8 = (bool)SWIG_As_bool(obj7); |
| 15047 | if (PyErr_Occurred()) SWIG_fail; |
| 15048 | } |
| 15049 | if (obj8) { |
| 15050 | arg9 = (bool)SWIG_As_bool(obj8); |
| 15051 | if (PyErr_Occurred()) SWIG_fail; |
| 15052 | } |
| 15053 | if (obj9) { |
| 15054 | arg10 = (bool)SWIG_As_bool(obj9); |
| 15055 | if (PyErr_Occurred()) SWIG_fail; |
| 15056 | } |
| 15057 | { |
| 15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15059 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); |
| 15060 | |
| 15061 | wxPyEndAllowThreads(__tstate); |
| 15062 | if (PyErr_Occurred()) SWIG_fail; |
| 15063 | } |
| 15064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1); |
| 15065 | return resultobj; |
| 15066 | fail: |
| 15067 | return NULL; |
| 15068 | } |
| 15069 | |
| 15070 | |
| 15071 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15072 | PyObject *resultobj; |
| 15073 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15074 | int result; |
| 15075 | PyObject * obj0 = 0 ; |
| 15076 | char *kwnames[] = { |
| 15077 | (char *) "self", NULL |
| 15078 | }; |
| 15079 | |
| 15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; |
| 15081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15083 | { |
| 15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15085 | result = (int)(arg1)->GetRowOrCol(); |
| 15086 | |
| 15087 | wxPyEndAllowThreads(__tstate); |
| 15088 | if (PyErr_Occurred()) SWIG_fail; |
| 15089 | } |
| 15090 | resultobj = SWIG_From_int((int)result); |
| 15091 | return resultobj; |
| 15092 | fail: |
| 15093 | return NULL; |
| 15094 | } |
| 15095 | |
| 15096 | |
| 15097 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15098 | PyObject *resultobj; |
| 15099 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15100 | wxPoint result; |
| 15101 | PyObject * obj0 = 0 ; |
| 15102 | char *kwnames[] = { |
| 15103 | (char *) "self", NULL |
| 15104 | }; |
| 15105 | |
| 15106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; |
| 15107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15109 | { |
| 15110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15111 | result = (arg1)->GetPosition(); |
| 15112 | |
| 15113 | wxPyEndAllowThreads(__tstate); |
| 15114 | if (PyErr_Occurred()) SWIG_fail; |
| 15115 | } |
| 15116 | { |
| 15117 | wxPoint * resultptr; |
| 15118 | resultptr = new wxPoint((wxPoint &) result); |
| 15119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
| 15120 | } |
| 15121 | return resultobj; |
| 15122 | fail: |
| 15123 | return NULL; |
| 15124 | } |
| 15125 | |
| 15126 | |
| 15127 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15128 | PyObject *resultobj; |
| 15129 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15130 | bool result; |
| 15131 | PyObject * obj0 = 0 ; |
| 15132 | char *kwnames[] = { |
| 15133 | (char *) "self", NULL |
| 15134 | }; |
| 15135 | |
| 15136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; |
| 15137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15139 | { |
| 15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15141 | result = (bool)(arg1)->ControlDown(); |
| 15142 | |
| 15143 | wxPyEndAllowThreads(__tstate); |
| 15144 | if (PyErr_Occurred()) SWIG_fail; |
| 15145 | } |
| 15146 | { |
| 15147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15148 | } |
| 15149 | return resultobj; |
| 15150 | fail: |
| 15151 | return NULL; |
| 15152 | } |
| 15153 | |
| 15154 | |
| 15155 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15156 | PyObject *resultobj; |
| 15157 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15158 | bool result; |
| 15159 | PyObject * obj0 = 0 ; |
| 15160 | char *kwnames[] = { |
| 15161 | (char *) "self", NULL |
| 15162 | }; |
| 15163 | |
| 15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; |
| 15165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15167 | { |
| 15168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15169 | result = (bool)(arg1)->MetaDown(); |
| 15170 | |
| 15171 | wxPyEndAllowThreads(__tstate); |
| 15172 | if (PyErr_Occurred()) SWIG_fail; |
| 15173 | } |
| 15174 | { |
| 15175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15176 | } |
| 15177 | return resultobj; |
| 15178 | fail: |
| 15179 | return NULL; |
| 15180 | } |
| 15181 | |
| 15182 | |
| 15183 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15184 | PyObject *resultobj; |
| 15185 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15186 | bool result; |
| 15187 | PyObject * obj0 = 0 ; |
| 15188 | char *kwnames[] = { |
| 15189 | (char *) "self", NULL |
| 15190 | }; |
| 15191 | |
| 15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; |
| 15193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15195 | { |
| 15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15197 | result = (bool)(arg1)->ShiftDown(); |
| 15198 | |
| 15199 | wxPyEndAllowThreads(__tstate); |
| 15200 | if (PyErr_Occurred()) SWIG_fail; |
| 15201 | } |
| 15202 | { |
| 15203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15204 | } |
| 15205 | return resultobj; |
| 15206 | fail: |
| 15207 | return NULL; |
| 15208 | } |
| 15209 | |
| 15210 | |
| 15211 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15212 | PyObject *resultobj; |
| 15213 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; |
| 15214 | bool result; |
| 15215 | PyObject * obj0 = 0 ; |
| 15216 | char *kwnames[] = { |
| 15217 | (char *) "self", NULL |
| 15218 | }; |
| 15219 | |
| 15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; |
| 15221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
| 15222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15223 | { |
| 15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15225 | result = (bool)(arg1)->AltDown(); |
| 15226 | |
| 15227 | wxPyEndAllowThreads(__tstate); |
| 15228 | if (PyErr_Occurred()) SWIG_fail; |
| 15229 | } |
| 15230 | { |
| 15231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15232 | } |
| 15233 | return resultobj; |
| 15234 | fail: |
| 15235 | return NULL; |
| 15236 | } |
| 15237 | |
| 15238 | |
| 15239 | static PyObject * GridSizeEvent_swigregister(PyObject *, PyObject *args) { |
| 15240 | PyObject *obj; |
| 15241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 15242 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); |
| 15243 | Py_INCREF(obj); |
| 15244 | return Py_BuildValue((char *)""); |
| 15245 | } |
| 15246 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15247 | PyObject *resultobj; |
| 15248 | int arg1 ; |
| 15249 | wxEventType arg2 ; |
| 15250 | wxGrid *arg3 = (wxGrid *) 0 ; |
| 15251 | wxGridCellCoords *arg4 = 0 ; |
| 15252 | wxGridCellCoords *arg5 = 0 ; |
| 15253 | bool arg6 = (bool) true ; |
| 15254 | bool arg7 = (bool) false ; |
| 15255 | bool arg8 = (bool) false ; |
| 15256 | bool arg9 = (bool) false ; |
| 15257 | bool arg10 = (bool) false ; |
| 15258 | wxGridRangeSelectEvent *result; |
| 15259 | wxGridCellCoords temp4 ; |
| 15260 | wxGridCellCoords temp5 ; |
| 15261 | PyObject * obj0 = 0 ; |
| 15262 | PyObject * obj1 = 0 ; |
| 15263 | PyObject * obj2 = 0 ; |
| 15264 | PyObject * obj3 = 0 ; |
| 15265 | PyObject * obj4 = 0 ; |
| 15266 | PyObject * obj5 = 0 ; |
| 15267 | PyObject * obj6 = 0 ; |
| 15268 | PyObject * obj7 = 0 ; |
| 15269 | PyObject * obj8 = 0 ; |
| 15270 | PyObject * obj9 = 0 ; |
| 15271 | char *kwnames[] = { |
| 15272 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL |
| 15273 | }; |
| 15274 | |
| 15275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
| 15276 | arg1 = (int)SWIG_As_int(obj0); |
| 15277 | if (PyErr_Occurred()) SWIG_fail; |
| 15278 | arg2 = (wxEventType)SWIG_As_int(obj1); |
| 15279 | if (PyErr_Occurred()) SWIG_fail; |
| 15280 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, |
| 15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15282 | { |
| 15283 | arg4 = &temp4; |
| 15284 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; |
| 15285 | } |
| 15286 | { |
| 15287 | arg5 = &temp5; |
| 15288 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; |
| 15289 | } |
| 15290 | if (obj5) { |
| 15291 | arg6 = (bool)SWIG_As_bool(obj5); |
| 15292 | if (PyErr_Occurred()) SWIG_fail; |
| 15293 | } |
| 15294 | if (obj6) { |
| 15295 | arg7 = (bool)SWIG_As_bool(obj6); |
| 15296 | if (PyErr_Occurred()) SWIG_fail; |
| 15297 | } |
| 15298 | if (obj7) { |
| 15299 | arg8 = (bool)SWIG_As_bool(obj7); |
| 15300 | if (PyErr_Occurred()) SWIG_fail; |
| 15301 | } |
| 15302 | if (obj8) { |
| 15303 | arg9 = (bool)SWIG_As_bool(obj8); |
| 15304 | if (PyErr_Occurred()) SWIG_fail; |
| 15305 | } |
| 15306 | if (obj9) { |
| 15307 | arg10 = (bool)SWIG_As_bool(obj9); |
| 15308 | if (PyErr_Occurred()) SWIG_fail; |
| 15309 | } |
| 15310 | { |
| 15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15312 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
| 15313 | |
| 15314 | wxPyEndAllowThreads(__tstate); |
| 15315 | if (PyErr_Occurred()) SWIG_fail; |
| 15316 | } |
| 15317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1); |
| 15318 | return resultobj; |
| 15319 | fail: |
| 15320 | return NULL; |
| 15321 | } |
| 15322 | |
| 15323 | |
| 15324 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15325 | PyObject *resultobj; |
| 15326 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15327 | wxGridCellCoords result; |
| 15328 | PyObject * obj0 = 0 ; |
| 15329 | char *kwnames[] = { |
| 15330 | (char *) "self", NULL |
| 15331 | }; |
| 15332 | |
| 15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; |
| 15334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15336 | { |
| 15337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15338 | result = (arg1)->GetTopLeftCoords(); |
| 15339 | |
| 15340 | wxPyEndAllowThreads(__tstate); |
| 15341 | if (PyErr_Occurred()) SWIG_fail; |
| 15342 | } |
| 15343 | { |
| 15344 | wxGridCellCoords * resultptr; |
| 15345 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); |
| 15346 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
| 15347 | } |
| 15348 | return resultobj; |
| 15349 | fail: |
| 15350 | return NULL; |
| 15351 | } |
| 15352 | |
| 15353 | |
| 15354 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15355 | PyObject *resultobj; |
| 15356 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15357 | wxGridCellCoords result; |
| 15358 | PyObject * obj0 = 0 ; |
| 15359 | char *kwnames[] = { |
| 15360 | (char *) "self", NULL |
| 15361 | }; |
| 15362 | |
| 15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; |
| 15364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15366 | { |
| 15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15368 | result = (arg1)->GetBottomRightCoords(); |
| 15369 | |
| 15370 | wxPyEndAllowThreads(__tstate); |
| 15371 | if (PyErr_Occurred()) SWIG_fail; |
| 15372 | } |
| 15373 | { |
| 15374 | wxGridCellCoords * resultptr; |
| 15375 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); |
| 15376 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
| 15377 | } |
| 15378 | return resultobj; |
| 15379 | fail: |
| 15380 | return NULL; |
| 15381 | } |
| 15382 | |
| 15383 | |
| 15384 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15385 | PyObject *resultobj; |
| 15386 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15387 | int result; |
| 15388 | PyObject * obj0 = 0 ; |
| 15389 | char *kwnames[] = { |
| 15390 | (char *) "self", NULL |
| 15391 | }; |
| 15392 | |
| 15393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; |
| 15394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15396 | { |
| 15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15398 | result = (int)(arg1)->GetTopRow(); |
| 15399 | |
| 15400 | wxPyEndAllowThreads(__tstate); |
| 15401 | if (PyErr_Occurred()) SWIG_fail; |
| 15402 | } |
| 15403 | resultobj = SWIG_From_int((int)result); |
| 15404 | return resultobj; |
| 15405 | fail: |
| 15406 | return NULL; |
| 15407 | } |
| 15408 | |
| 15409 | |
| 15410 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15411 | PyObject *resultobj; |
| 15412 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15413 | int result; |
| 15414 | PyObject * obj0 = 0 ; |
| 15415 | char *kwnames[] = { |
| 15416 | (char *) "self", NULL |
| 15417 | }; |
| 15418 | |
| 15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; |
| 15420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15422 | { |
| 15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15424 | result = (int)(arg1)->GetBottomRow(); |
| 15425 | |
| 15426 | wxPyEndAllowThreads(__tstate); |
| 15427 | if (PyErr_Occurred()) SWIG_fail; |
| 15428 | } |
| 15429 | resultobj = SWIG_From_int((int)result); |
| 15430 | return resultobj; |
| 15431 | fail: |
| 15432 | return NULL; |
| 15433 | } |
| 15434 | |
| 15435 | |
| 15436 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15437 | PyObject *resultobj; |
| 15438 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15439 | int result; |
| 15440 | PyObject * obj0 = 0 ; |
| 15441 | char *kwnames[] = { |
| 15442 | (char *) "self", NULL |
| 15443 | }; |
| 15444 | |
| 15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; |
| 15446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15448 | { |
| 15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15450 | result = (int)(arg1)->GetLeftCol(); |
| 15451 | |
| 15452 | wxPyEndAllowThreads(__tstate); |
| 15453 | if (PyErr_Occurred()) SWIG_fail; |
| 15454 | } |
| 15455 | resultobj = SWIG_From_int((int)result); |
| 15456 | return resultobj; |
| 15457 | fail: |
| 15458 | return NULL; |
| 15459 | } |
| 15460 | |
| 15461 | |
| 15462 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15463 | PyObject *resultobj; |
| 15464 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15465 | int result; |
| 15466 | PyObject * obj0 = 0 ; |
| 15467 | char *kwnames[] = { |
| 15468 | (char *) "self", NULL |
| 15469 | }; |
| 15470 | |
| 15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; |
| 15472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15474 | { |
| 15475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15476 | result = (int)(arg1)->GetRightCol(); |
| 15477 | |
| 15478 | wxPyEndAllowThreads(__tstate); |
| 15479 | if (PyErr_Occurred()) SWIG_fail; |
| 15480 | } |
| 15481 | resultobj = SWIG_From_int((int)result); |
| 15482 | return resultobj; |
| 15483 | fail: |
| 15484 | return NULL; |
| 15485 | } |
| 15486 | |
| 15487 | |
| 15488 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15489 | PyObject *resultobj; |
| 15490 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15491 | bool result; |
| 15492 | PyObject * obj0 = 0 ; |
| 15493 | char *kwnames[] = { |
| 15494 | (char *) "self", NULL |
| 15495 | }; |
| 15496 | |
| 15497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; |
| 15498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15500 | { |
| 15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15502 | result = (bool)(arg1)->Selecting(); |
| 15503 | |
| 15504 | wxPyEndAllowThreads(__tstate); |
| 15505 | if (PyErr_Occurred()) SWIG_fail; |
| 15506 | } |
| 15507 | { |
| 15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15509 | } |
| 15510 | return resultobj; |
| 15511 | fail: |
| 15512 | return NULL; |
| 15513 | } |
| 15514 | |
| 15515 | |
| 15516 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15517 | PyObject *resultobj; |
| 15518 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15519 | bool result; |
| 15520 | PyObject * obj0 = 0 ; |
| 15521 | char *kwnames[] = { |
| 15522 | (char *) "self", NULL |
| 15523 | }; |
| 15524 | |
| 15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; |
| 15526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15528 | { |
| 15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15530 | result = (bool)(arg1)->ControlDown(); |
| 15531 | |
| 15532 | wxPyEndAllowThreads(__tstate); |
| 15533 | if (PyErr_Occurred()) SWIG_fail; |
| 15534 | } |
| 15535 | { |
| 15536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15537 | } |
| 15538 | return resultobj; |
| 15539 | fail: |
| 15540 | return NULL; |
| 15541 | } |
| 15542 | |
| 15543 | |
| 15544 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15545 | PyObject *resultobj; |
| 15546 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15547 | bool result; |
| 15548 | PyObject * obj0 = 0 ; |
| 15549 | char *kwnames[] = { |
| 15550 | (char *) "self", NULL |
| 15551 | }; |
| 15552 | |
| 15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; |
| 15554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15556 | { |
| 15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15558 | result = (bool)(arg1)->MetaDown(); |
| 15559 | |
| 15560 | wxPyEndAllowThreads(__tstate); |
| 15561 | if (PyErr_Occurred()) SWIG_fail; |
| 15562 | } |
| 15563 | { |
| 15564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15565 | } |
| 15566 | return resultobj; |
| 15567 | fail: |
| 15568 | return NULL; |
| 15569 | } |
| 15570 | |
| 15571 | |
| 15572 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15573 | PyObject *resultobj; |
| 15574 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15575 | bool result; |
| 15576 | PyObject * obj0 = 0 ; |
| 15577 | char *kwnames[] = { |
| 15578 | (char *) "self", NULL |
| 15579 | }; |
| 15580 | |
| 15581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; |
| 15582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15584 | { |
| 15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15586 | result = (bool)(arg1)->ShiftDown(); |
| 15587 | |
| 15588 | wxPyEndAllowThreads(__tstate); |
| 15589 | if (PyErr_Occurred()) SWIG_fail; |
| 15590 | } |
| 15591 | { |
| 15592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15593 | } |
| 15594 | return resultobj; |
| 15595 | fail: |
| 15596 | return NULL; |
| 15597 | } |
| 15598 | |
| 15599 | |
| 15600 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15601 | PyObject *resultobj; |
| 15602 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; |
| 15603 | bool result; |
| 15604 | PyObject * obj0 = 0 ; |
| 15605 | char *kwnames[] = { |
| 15606 | (char *) "self", NULL |
| 15607 | }; |
| 15608 | |
| 15609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; |
| 15610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
| 15611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15612 | { |
| 15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15614 | result = (bool)(arg1)->AltDown(); |
| 15615 | |
| 15616 | wxPyEndAllowThreads(__tstate); |
| 15617 | if (PyErr_Occurred()) SWIG_fail; |
| 15618 | } |
| 15619 | { |
| 15620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
| 15621 | } |
| 15622 | return resultobj; |
| 15623 | fail: |
| 15624 | return NULL; |
| 15625 | } |
| 15626 | |
| 15627 | |
| 15628 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *, PyObject *args) { |
| 15629 | PyObject *obj; |
| 15630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 15631 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); |
| 15632 | Py_INCREF(obj); |
| 15633 | return Py_BuildValue((char *)""); |
| 15634 | } |
| 15635 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15636 | PyObject *resultobj; |
| 15637 | int arg1 ; |
| 15638 | wxEventType arg2 ; |
| 15639 | wxObject *arg3 = (wxObject *) 0 ; |
| 15640 | int arg4 ; |
| 15641 | int arg5 ; |
| 15642 | wxControl *arg6 = (wxControl *) 0 ; |
| 15643 | wxGridEditorCreatedEvent *result; |
| 15644 | PyObject * obj0 = 0 ; |
| 15645 | PyObject * obj1 = 0 ; |
| 15646 | PyObject * obj2 = 0 ; |
| 15647 | PyObject * obj3 = 0 ; |
| 15648 | PyObject * obj4 = 0 ; |
| 15649 | PyObject * obj5 = 0 ; |
| 15650 | char *kwnames[] = { |
| 15651 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL |
| 15652 | }; |
| 15653 | |
| 15654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
| 15655 | arg1 = (int)SWIG_As_int(obj0); |
| 15656 | if (PyErr_Occurred()) SWIG_fail; |
| 15657 | arg2 = (wxEventType)SWIG_As_int(obj1); |
| 15658 | if (PyErr_Occurred()) SWIG_fail; |
| 15659 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, |
| 15660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15661 | arg4 = (int)SWIG_As_int(obj3); |
| 15662 | if (PyErr_Occurred()) SWIG_fail; |
| 15663 | arg5 = (int)SWIG_As_int(obj4); |
| 15664 | if (PyErr_Occurred()) SWIG_fail; |
| 15665 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl, |
| 15666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15667 | { |
| 15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15669 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); |
| 15670 | |
| 15671 | wxPyEndAllowThreads(__tstate); |
| 15672 | if (PyErr_Occurred()) SWIG_fail; |
| 15673 | } |
| 15674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1); |
| 15675 | return resultobj; |
| 15676 | fail: |
| 15677 | return NULL; |
| 15678 | } |
| 15679 | |
| 15680 | |
| 15681 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15682 | PyObject *resultobj; |
| 15683 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15684 | int result; |
| 15685 | PyObject * obj0 = 0 ; |
| 15686 | char *kwnames[] = { |
| 15687 | (char *) "self", NULL |
| 15688 | }; |
| 15689 | |
| 15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; |
| 15691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15693 | { |
| 15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15695 | result = (int)(arg1)->GetRow(); |
| 15696 | |
| 15697 | wxPyEndAllowThreads(__tstate); |
| 15698 | if (PyErr_Occurred()) SWIG_fail; |
| 15699 | } |
| 15700 | resultobj = SWIG_From_int((int)result); |
| 15701 | return resultobj; |
| 15702 | fail: |
| 15703 | return NULL; |
| 15704 | } |
| 15705 | |
| 15706 | |
| 15707 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15708 | PyObject *resultobj; |
| 15709 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15710 | int result; |
| 15711 | PyObject * obj0 = 0 ; |
| 15712 | char *kwnames[] = { |
| 15713 | (char *) "self", NULL |
| 15714 | }; |
| 15715 | |
| 15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; |
| 15717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15719 | { |
| 15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15721 | result = (int)(arg1)->GetCol(); |
| 15722 | |
| 15723 | wxPyEndAllowThreads(__tstate); |
| 15724 | if (PyErr_Occurred()) SWIG_fail; |
| 15725 | } |
| 15726 | resultobj = SWIG_From_int((int)result); |
| 15727 | return resultobj; |
| 15728 | fail: |
| 15729 | return NULL; |
| 15730 | } |
| 15731 | |
| 15732 | |
| 15733 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15734 | PyObject *resultobj; |
| 15735 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15736 | wxControl *result; |
| 15737 | PyObject * obj0 = 0 ; |
| 15738 | char *kwnames[] = { |
| 15739 | (char *) "self", NULL |
| 15740 | }; |
| 15741 | |
| 15742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; |
| 15743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15745 | { |
| 15746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15747 | result = (wxControl *)(arg1)->GetControl(); |
| 15748 | |
| 15749 | wxPyEndAllowThreads(__tstate); |
| 15750 | if (PyErr_Occurred()) SWIG_fail; |
| 15751 | } |
| 15752 | { |
| 15753 | resultobj = wxPyMake_wxObject(result, 0); |
| 15754 | } |
| 15755 | return resultobj; |
| 15756 | fail: |
| 15757 | return NULL; |
| 15758 | } |
| 15759 | |
| 15760 | |
| 15761 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15762 | PyObject *resultobj; |
| 15763 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15764 | int arg2 ; |
| 15765 | PyObject * obj0 = 0 ; |
| 15766 | PyObject * obj1 = 0 ; |
| 15767 | char *kwnames[] = { |
| 15768 | (char *) "self",(char *) "row", NULL |
| 15769 | }; |
| 15770 | |
| 15771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; |
| 15772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15774 | arg2 = (int)SWIG_As_int(obj1); |
| 15775 | if (PyErr_Occurred()) SWIG_fail; |
| 15776 | { |
| 15777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15778 | (arg1)->SetRow(arg2); |
| 15779 | |
| 15780 | wxPyEndAllowThreads(__tstate); |
| 15781 | if (PyErr_Occurred()) SWIG_fail; |
| 15782 | } |
| 15783 | Py_INCREF(Py_None); resultobj = Py_None; |
| 15784 | return resultobj; |
| 15785 | fail: |
| 15786 | return NULL; |
| 15787 | } |
| 15788 | |
| 15789 | |
| 15790 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15791 | PyObject *resultobj; |
| 15792 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15793 | int arg2 ; |
| 15794 | PyObject * obj0 = 0 ; |
| 15795 | PyObject * obj1 = 0 ; |
| 15796 | char *kwnames[] = { |
| 15797 | (char *) "self",(char *) "col", NULL |
| 15798 | }; |
| 15799 | |
| 15800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; |
| 15801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15803 | arg2 = (int)SWIG_As_int(obj1); |
| 15804 | if (PyErr_Occurred()) SWIG_fail; |
| 15805 | { |
| 15806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15807 | (arg1)->SetCol(arg2); |
| 15808 | |
| 15809 | wxPyEndAllowThreads(__tstate); |
| 15810 | if (PyErr_Occurred()) SWIG_fail; |
| 15811 | } |
| 15812 | Py_INCREF(Py_None); resultobj = Py_None; |
| 15813 | return resultobj; |
| 15814 | fail: |
| 15815 | return NULL; |
| 15816 | } |
| 15817 | |
| 15818 | |
| 15819 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
| 15820 | PyObject *resultobj; |
| 15821 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; |
| 15822 | wxControl *arg2 = (wxControl *) 0 ; |
| 15823 | PyObject * obj0 = 0 ; |
| 15824 | PyObject * obj1 = 0 ; |
| 15825 | char *kwnames[] = { |
| 15826 | (char *) "self",(char *) "ctrl", NULL |
| 15827 | }; |
| 15828 | |
| 15829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; |
| 15830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
| 15831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, |
| 15833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
| 15834 | { |
| 15835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 15836 | (arg1)->SetControl(arg2); |
| 15837 | |
| 15838 | wxPyEndAllowThreads(__tstate); |
| 15839 | if (PyErr_Occurred()) SWIG_fail; |
| 15840 | } |
| 15841 | Py_INCREF(Py_None); resultobj = Py_None; |
| 15842 | return resultobj; |
| 15843 | fail: |
| 15844 | return NULL; |
| 15845 | } |
| 15846 | |
| 15847 | |
| 15848 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *, PyObject *args) { |
| 15849 | PyObject *obj; |
| 15850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; |
| 15851 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); |
| 15852 | Py_INCREF(obj); |
| 15853 | return Py_BuildValue((char *)""); |
| 15854 | } |
| 15855 | static PyMethodDef SwigMethods[] = { |
| 15856 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15857 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15858 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15859 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15860 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15861 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15862 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15863 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS, NULL }, |
| 15864 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15865 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15866 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15867 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS, NULL }, |
| 15868 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15869 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS, NULL }, |
| 15870 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15871 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS, NULL }, |
| 15872 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15873 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15874 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15875 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15876 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15877 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS, NULL }, |
| 15878 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15879 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS, NULL }, |
| 15880 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15881 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS, NULL }, |
| 15882 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15883 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS, NULL }, |
| 15884 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15885 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS, NULL }, |
| 15886 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15887 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15888 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15889 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15890 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15891 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15892 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15893 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15894 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15895 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15896 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15897 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15898 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15899 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15900 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15901 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15902 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15903 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15904 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15905 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15906 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15907 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15908 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS, NULL }, |
| 15909 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15910 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15911 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15912 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15913 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15914 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15915 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15916 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15917 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15918 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15919 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15920 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS, NULL }, |
| 15921 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15922 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15923 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS, NULL }, |
| 15924 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15925 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15926 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS, NULL }, |
| 15927 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15928 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15929 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS, NULL }, |
| 15930 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15931 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15932 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS, NULL }, |
| 15933 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15934 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15935 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS, NULL }, |
| 15936 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15937 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15938 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS, NULL }, |
| 15939 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15940 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15941 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS, NULL }, |
| 15942 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15943 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15944 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15945 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15946 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15947 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15948 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15949 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15950 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15951 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15952 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15953 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15954 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15955 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15956 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15957 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15958 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15959 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15960 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15961 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15962 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15963 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15964 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15965 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15966 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15967 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15968 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15969 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15970 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15971 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15972 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15973 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15974 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15975 | { (char *)"GridCellAttr_GetKind", (PyCFunction) _wrap_GridCellAttr_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15976 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15977 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS, NULL }, |
| 15978 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15979 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15980 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15981 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15982 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15983 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15984 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15985 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15986 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS, NULL }, |
| 15987 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15988 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15989 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15990 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15991 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15992 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15993 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS, NULL }, |
| 15994 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15995 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15996 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15997 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15998 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 15999 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16000 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16001 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16002 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16003 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16004 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16005 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16006 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16007 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16008 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16009 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16010 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16011 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16012 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16013 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16014 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16015 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16016 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16017 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16018 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16019 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16020 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16021 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16022 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16023 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16024 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16025 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16026 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16027 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16028 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16029 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS, NULL }, |
| 16030 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16031 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16032 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16033 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16034 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16035 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16036 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16037 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16038 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16039 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16040 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16041 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16042 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16043 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16044 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16045 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16046 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16047 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16048 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16049 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16050 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16051 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16052 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS, NULL }, |
| 16053 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16054 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS, NULL }, |
| 16055 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16056 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16057 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16058 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16059 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16060 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16061 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16062 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16063 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16064 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16065 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS, NULL }, |
| 16066 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16067 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16068 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16069 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16070 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16071 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16072 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16073 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16074 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16075 | { (char *)"GridCellCoords_Get", (PyCFunction) _wrap_GridCellCoords_Get, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16076 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS, NULL }, |
| 16077 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16078 | { (char *)"new_PreGrid", (PyCFunction) _wrap_new_PreGrid, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16079 | { (char *)"Grid_Create", (PyCFunction) _wrap_Grid_Create, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16080 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16081 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16082 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16083 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16084 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16085 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16086 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16087 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16088 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16089 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16090 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16091 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16092 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16093 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16094 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16095 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16096 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16097 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16098 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16099 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16100 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16101 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16102 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16103 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16104 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16105 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16106 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16107 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16108 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16109 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16110 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16111 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16112 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16113 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16114 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16115 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16116 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16117 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16118 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16119 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16120 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16121 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16122 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16123 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16124 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16125 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16126 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16127 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16128 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16129 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16130 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16131 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16132 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16133 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16134 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16135 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16136 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16137 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16138 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16139 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16140 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16141 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16142 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16143 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16144 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16145 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16146 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16147 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16148 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16149 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16150 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16151 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16152 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16153 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16154 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16155 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16156 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16157 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16158 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16159 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16160 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16161 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16162 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16163 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16164 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16165 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16166 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16167 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16168 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16169 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16170 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16171 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16172 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16173 | { (char *)"Grid_EnableDragCell", (PyCFunction) _wrap_Grid_EnableDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16174 | { (char *)"Grid_DisableDragCell", (PyCFunction) _wrap_Grid_DisableDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16175 | { (char *)"Grid_CanDragCell", (PyCFunction) _wrap_Grid_CanDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16176 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16177 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16178 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16179 | { (char *)"Grid_GetOrCreateCellAttr", (PyCFunction) _wrap_Grid_GetOrCreateCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16180 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16181 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16182 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16183 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16184 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16185 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16186 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16187 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16188 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16189 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16190 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16191 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16192 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16193 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16194 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16195 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16196 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16197 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16198 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16199 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16200 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16201 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16202 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16203 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16204 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16205 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16206 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16207 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16208 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16209 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16210 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16211 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16212 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16213 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16214 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16215 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16216 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16217 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16218 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16219 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16220 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16221 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16222 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16223 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16224 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16225 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16226 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16227 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16228 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16229 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16230 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16231 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16232 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16233 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16234 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16235 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16236 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16237 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16238 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16239 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16240 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16241 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16242 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16243 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16244 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16245 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16246 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16247 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16248 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16249 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16250 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16251 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16252 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16253 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16254 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16255 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16256 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16257 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16258 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16259 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16260 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16261 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16262 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16263 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16264 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16265 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16266 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16267 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16268 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16269 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16270 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16271 | { (char *)"Grid_GetClassDefaultAttributes", (PyCFunction) _wrap_Grid_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16272 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS, NULL }, |
| 16273 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16274 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16275 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16276 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16277 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16278 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16279 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16280 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16281 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16282 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS, NULL }, |
| 16283 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16284 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16285 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16286 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16287 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16288 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16289 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16290 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS, NULL }, |
| 16291 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16292 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16293 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16294 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16295 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16296 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16297 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16298 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16299 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16300 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16301 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16302 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16303 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS, NULL }, |
| 16304 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16305 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16306 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16307 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16308 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16309 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16310 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS, NULL }, |
| 16311 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS, NULL }, |
| 16312 | { NULL, NULL, 0, NULL } |
| 16313 | }; |
| 16314 | |
| 16315 | |
| 16316 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
| 16317 | |
| 16318 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { |
| 16319 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); |
| 16320 | } |
| 16321 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { |
| 16322 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); |
| 16323 | } |
| 16324 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { |
| 16325 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); |
| 16326 | } |
| 16327 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { |
| 16328 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); |
| 16329 | } |
| 16330 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { |
| 16331 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); |
| 16332 | } |
| 16333 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { |
| 16334 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); |
| 16335 | } |
| 16336 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { |
| 16337 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); |
| 16338 | } |
| 16339 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { |
| 16340 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); |
| 16341 | } |
| 16342 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { |
| 16343 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); |
| 16344 | } |
| 16345 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { |
| 16346 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); |
| 16347 | } |
| 16348 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { |
| 16349 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); |
| 16350 | } |
| 16351 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { |
| 16352 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); |
| 16353 | } |
| 16354 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { |
| 16355 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); |
| 16356 | } |
| 16357 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { |
| 16358 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); |
| 16359 | } |
| 16360 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { |
| 16361 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); |
| 16362 | } |
| 16363 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
| 16364 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); |
| 16365 | } |
| 16366 | static void *_p_wxGridTo_p_wxPanel(void *x) { |
| 16367 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); |
| 16368 | } |
| 16369 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { |
| 16370 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); |
| 16371 | } |
| 16372 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { |
| 16373 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); |
| 16374 | } |
| 16375 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { |
| 16376 | return (void *)((wxPanel *) ((wxPyPanel *) x)); |
| 16377 | } |
| 16378 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { |
| 16379 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); |
| 16380 | } |
| 16381 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { |
| 16382 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); |
| 16383 | } |
| 16384 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { |
| 16385 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); |
| 16386 | } |
| 16387 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { |
| 16388 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); |
| 16389 | } |
| 16390 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { |
| 16391 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); |
| 16392 | } |
| 16393 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { |
| 16394 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); |
| 16395 | } |
| 16396 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { |
| 16397 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); |
| 16398 | } |
| 16399 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
| 16400 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); |
| 16401 | } |
| 16402 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { |
| 16403 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); |
| 16404 | } |
| 16405 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { |
| 16406 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); |
| 16407 | } |
| 16408 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { |
| 16409 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); |
| 16410 | } |
| 16411 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { |
| 16412 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); |
| 16413 | } |
| 16414 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { |
| 16415 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); |
| 16416 | } |
| 16417 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
| 16418 | return (void *)((wxWindow *) ((wxMenuBar *) x)); |
| 16419 | } |
| 16420 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { |
| 16421 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); |
| 16422 | } |
| 16423 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { |
| 16424 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); |
| 16425 | } |
| 16426 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { |
| 16427 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); |
| 16428 | } |
| 16429 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
| 16430 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); |
| 16431 | } |
| 16432 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { |
| 16433 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); |
| 16434 | } |
| 16435 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { |
| 16436 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); |
| 16437 | } |
| 16438 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { |
| 16439 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); |
| 16440 | } |
| 16441 | static void *_p_wxPanelTo_p_wxWindow(void *x) { |
| 16442 | return (void *)((wxWindow *) ((wxPanel *) x)); |
| 16443 | } |
| 16444 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { |
| 16445 | return (void *)((wxWindow *) ((wxStatusBar *) x)); |
| 16446 | } |
| 16447 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
| 16448 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); |
| 16449 | } |
| 16450 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
| 16451 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); |
| 16452 | } |
| 16453 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { |
| 16454 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); |
| 16455 | } |
| 16456 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { |
| 16457 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); |
| 16458 | } |
| 16459 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { |
| 16460 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); |
| 16461 | } |
| 16462 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { |
| 16463 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); |
| 16464 | } |
| 16465 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { |
| 16466 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); |
| 16467 | } |
| 16468 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { |
| 16469 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); |
| 16470 | } |
| 16471 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { |
| 16472 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); |
| 16473 | } |
| 16474 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { |
| 16475 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); |
| 16476 | } |
| 16477 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { |
| 16478 | return (void *)((wxWindow *) ((wxSashWindow *) x)); |
| 16479 | } |
| 16480 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
| 16481 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); |
| 16482 | } |
| 16483 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
| 16484 | return (void *)((wxWindow *) ((wxControl *) x)); |
| 16485 | } |
| 16486 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { |
| 16487 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); |
| 16488 | } |
| 16489 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { |
| 16490 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); |
| 16491 | } |
| 16492 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { |
| 16493 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); |
| 16494 | } |
| 16495 | static void *_p_wxGridTo_p_wxWindow(void *x) { |
| 16496 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); |
| 16497 | } |
| 16498 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { |
| 16499 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); |
| 16500 | } |
| 16501 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { |
| 16502 | return (void *)((wxWindow *) ((wxPyWindow *) x)); |
| 16503 | } |
| 16504 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { |
| 16505 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); |
| 16506 | } |
| 16507 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { |
| 16508 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); |
| 16509 | } |
| 16510 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { |
| 16511 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); |
| 16512 | } |
| 16513 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { |
| 16514 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); |
| 16515 | } |
| 16516 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { |
| 16517 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); |
| 16518 | } |
| 16519 | static void *_p_wxFrameTo_p_wxWindow(void *x) { |
| 16520 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); |
| 16521 | } |
| 16522 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { |
| 16523 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); |
| 16524 | } |
| 16525 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { |
| 16526 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); |
| 16527 | } |
| 16528 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { |
| 16529 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); |
| 16530 | } |
| 16531 | static void *_p_wxDialogTo_p_wxWindow(void *x) { |
| 16532 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); |
| 16533 | } |
| 16534 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { |
| 16535 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); |
| 16536 | } |
| 16537 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { |
| 16538 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); |
| 16539 | } |
| 16540 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
| 16541 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); |
| 16542 | } |
| 16543 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
| 16544 | return (void *)((wxControl *) ((wxControlWithItems *) x)); |
| 16545 | } |
| 16546 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
| 16547 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); |
| 16548 | } |
| 16549 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { |
| 16550 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); |
| 16551 | } |
| 16552 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { |
| 16553 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); |
| 16554 | } |
| 16555 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { |
| 16556 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); |
| 16557 | } |
| 16558 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { |
| 16559 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); |
| 16560 | } |
| 16561 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { |
| 16562 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); |
| 16563 | } |
| 16564 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { |
| 16565 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); |
| 16566 | } |
| 16567 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { |
| 16568 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); |
| 16569 | } |
| 16570 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { |
| 16571 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); |
| 16572 | } |
| 16573 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { |
| 16574 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); |
| 16575 | } |
| 16576 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
| 16577 | return (void *)((wxEvent *) ((wxPyEvent *) x)); |
| 16578 | } |
| 16579 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
| 16580 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); |
| 16581 | } |
| 16582 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
| 16583 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); |
| 16584 | } |
| 16585 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { |
| 16586 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); |
| 16587 | } |
| 16588 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { |
| 16589 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); |
| 16590 | } |
| 16591 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { |
| 16592 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); |
| 16593 | } |
| 16594 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { |
| 16595 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); |
| 16596 | } |
| 16597 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { |
| 16598 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); |
| 16599 | } |
| 16600 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { |
| 16601 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); |
| 16602 | } |
| 16603 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { |
| 16604 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); |
| 16605 | } |
| 16606 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { |
| 16607 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); |
| 16608 | } |
| 16609 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { |
| 16610 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); |
| 16611 | } |
| 16612 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { |
| 16613 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); |
| 16614 | } |
| 16615 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
| 16616 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); |
| 16617 | } |
| 16618 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { |
| 16619 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); |
| 16620 | } |
| 16621 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
| 16622 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); |
| 16623 | } |
| 16624 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { |
| 16625 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); |
| 16626 | } |
| 16627 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { |
| 16628 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); |
| 16629 | } |
| 16630 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { |
| 16631 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); |
| 16632 | } |
| 16633 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { |
| 16634 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); |
| 16635 | } |
| 16636 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { |
| 16637 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); |
| 16638 | } |
| 16639 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { |
| 16640 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); |
| 16641 | } |
| 16642 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { |
| 16643 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); |
| 16644 | } |
| 16645 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { |
| 16646 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); |
| 16647 | } |
| 16648 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { |
| 16649 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); |
| 16650 | } |
| 16651 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { |
| 16652 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); |
| 16653 | } |
| 16654 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { |
| 16655 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); |
| 16656 | } |
| 16657 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { |
| 16658 | return (void *)((wxEvent *) ((wxShowEvent *) x)); |
| 16659 | } |
| 16660 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { |
| 16661 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); |
| 16662 | } |
| 16663 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { |
| 16664 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); |
| 16665 | } |
| 16666 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { |
| 16667 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); |
| 16668 | } |
| 16669 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { |
| 16670 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); |
| 16671 | } |
| 16672 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { |
| 16673 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); |
| 16674 | } |
| 16675 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { |
| 16676 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); |
| 16677 | } |
| 16678 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { |
| 16679 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); |
| 16680 | } |
| 16681 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
| 16682 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); |
| 16683 | } |
| 16684 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { |
| 16685 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); |
| 16686 | } |
| 16687 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { |
| 16688 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); |
| 16689 | } |
| 16690 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { |
| 16691 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); |
| 16692 | } |
| 16693 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
| 16694 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); |
| 16695 | } |
| 16696 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
| 16697 | return (void *)((wxObject *) ((wxSizerItem *) x)); |
| 16698 | } |
| 16699 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
| 16700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); |
| 16701 | } |
| 16702 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
| 16703 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); |
| 16704 | } |
| 16705 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
| 16706 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); |
| 16707 | } |
| 16708 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
| 16709 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); |
| 16710 | } |
| 16711 | static void *_p_wxSizerTo_p_wxObject(void *x) { |
| 16712 | return (void *)((wxObject *) ((wxSizer *) x)); |
| 16713 | } |
| 16714 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
| 16715 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); |
| 16716 | } |
| 16717 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
| 16718 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); |
| 16719 | } |
| 16720 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { |
| 16721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); |
| 16722 | } |
| 16723 | static void *_p_wxEventTo_p_wxObject(void *x) { |
| 16724 | return (void *)((wxObject *) ((wxEvent *) x)); |
| 16725 | } |
| 16726 | static void *_p_wxFontDataTo_p_wxObject(void *x) { |
| 16727 | return (void *)((wxObject *) ((wxFontData *) x)); |
| 16728 | } |
| 16729 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { |
| 16730 | return (void *)((wxObject *) ((wxPrintData *) x)); |
| 16731 | } |
| 16732 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
| 16733 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); |
| 16734 | } |
| 16735 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
| 16736 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); |
| 16737 | } |
| 16738 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
| 16739 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); |
| 16740 | } |
| 16741 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { |
| 16742 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); |
| 16743 | } |
| 16744 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
| 16745 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); |
| 16746 | } |
| 16747 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { |
| 16748 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); |
| 16749 | } |
| 16750 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { |
| 16751 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); |
| 16752 | } |
| 16753 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
| 16754 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); |
| 16755 | } |
| 16756 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
| 16757 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); |
| 16758 | } |
| 16759 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
| 16760 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); |
| 16761 | } |
| 16762 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
| 16763 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); |
| 16764 | } |
| 16765 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
| 16766 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); |
| 16767 | } |
| 16768 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { |
| 16769 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); |
| 16770 | } |
| 16771 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { |
| 16772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); |
| 16773 | } |
| 16774 | static void *_p_wxGridEventTo_p_wxObject(void *x) { |
| 16775 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); |
| 16776 | } |
| 16777 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { |
| 16778 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); |
| 16779 | } |
| 16780 | static void *_p_wxControlTo_p_wxObject(void *x) { |
| 16781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); |
| 16782 | } |
| 16783 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
| 16784 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); |
| 16785 | } |
| 16786 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { |
| 16787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); |
| 16788 | } |
| 16789 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
| 16790 | return (void *)((wxObject *) ((wxFSFile *) x)); |
| 16791 | } |
| 16792 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { |
| 16793 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); |
| 16794 | } |
| 16795 | static void *_p_wxGridTo_p_wxObject(void *x) { |
| 16796 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); |
| 16797 | } |
| 16798 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
| 16799 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); |
| 16800 | } |
| 16801 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { |
| 16802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); |
| 16803 | } |
| 16804 | static void *_p_wxColourDataTo_p_wxObject(void *x) { |
| 16805 | return (void *)((wxObject *) ((wxColourData *) x)); |
| 16806 | } |
| 16807 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
| 16808 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); |
| 16809 | } |
| 16810 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
| 16811 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); |
| 16812 | } |
| 16813 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { |
| 16814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); |
| 16815 | } |
| 16816 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { |
| 16817 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); |
| 16818 | } |
| 16819 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { |
| 16820 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); |
| 16821 | } |
| 16822 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { |
| 16823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); |
| 16824 | } |
| 16825 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { |
| 16826 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); |
| 16827 | } |
| 16828 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { |
| 16829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); |
| 16830 | } |
| 16831 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
| 16832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); |
| 16833 | } |
| 16834 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { |
| 16835 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); |
| 16836 | } |
| 16837 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { |
| 16838 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); |
| 16839 | } |
| 16840 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
| 16841 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); |
| 16842 | } |
| 16843 | static void *_p_wxPrinterTo_p_wxObject(void *x) { |
| 16844 | return (void *)((wxObject *) ((wxPrinter *) x)); |
| 16845 | } |
| 16846 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
| 16847 | return (void *)((wxObject *) ((wxMenuItem *) x)); |
| 16848 | } |
| 16849 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
| 16850 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); |
| 16851 | } |
| 16852 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
| 16853 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); |
| 16854 | } |
| 16855 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { |
| 16856 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); |
| 16857 | } |
| 16858 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { |
| 16859 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); |
| 16860 | } |
| 16861 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
| 16862 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); |
| 16863 | } |
| 16864 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
| 16865 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); |
| 16866 | } |
| 16867 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
| 16868 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); |
| 16869 | } |
| 16870 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
| 16871 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); |
| 16872 | } |
| 16873 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { |
| 16874 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); |
| 16875 | } |
| 16876 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
| 16877 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); |
| 16878 | } |
| 16879 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
| 16880 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); |
| 16881 | } |
| 16882 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
| 16883 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); |
| 16884 | } |
| 16885 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
| 16886 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); |
| 16887 | } |
| 16888 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
| 16889 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); |
| 16890 | } |
| 16891 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
| 16892 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); |
| 16893 | } |
| 16894 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { |
| 16895 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); |
| 16896 | } |
| 16897 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
| 16898 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); |
| 16899 | } |
| 16900 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
| 16901 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); |
| 16902 | } |
| 16903 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
| 16904 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); |
| 16905 | } |
| 16906 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
| 16907 | return (void *)((wxObject *) ((wxImageHandler *) x)); |
| 16908 | } |
| 16909 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
| 16910 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); |
| 16911 | } |
| 16912 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
| 16913 | return (void *)((wxObject *) ((wxEvtHandler *) x)); |
| 16914 | } |
| 16915 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
| 16916 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); |
| 16917 | } |
| 16918 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { |
| 16919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); |
| 16920 | } |
| 16921 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { |
| 16922 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); |
| 16923 | } |
| 16924 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { |
| 16925 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); |
| 16926 | } |
| 16927 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
| 16928 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); |
| 16929 | } |
| 16930 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { |
| 16931 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); |
| 16932 | } |
| 16933 | static void *_p_wxImageTo_p_wxObject(void *x) { |
| 16934 | return (void *)((wxObject *) ((wxImage *) x)); |
| 16935 | } |
| 16936 | static void *_p_wxFrameTo_p_wxObject(void *x) { |
| 16937 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); |
| 16938 | } |
| 16939 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { |
| 16940 | return (void *)((wxObject *) ((wxPyPrintout *) x)); |
| 16941 | } |
| 16942 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
| 16943 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); |
| 16944 | } |
| 16945 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { |
| 16946 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); |
| 16947 | } |
| 16948 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { |
| 16949 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); |
| 16950 | } |
| 16951 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { |
| 16952 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); |
| 16953 | } |
| 16954 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
| 16955 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); |
| 16956 | } |
| 16957 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
| 16958 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); |
| 16959 | } |
| 16960 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
| 16961 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); |
| 16962 | } |
| 16963 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
| 16964 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); |
| 16965 | } |
| 16966 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
| 16967 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); |
| 16968 | } |
| 16969 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
| 16970 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); |
| 16971 | } |
| 16972 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
| 16973 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); |
| 16974 | } |
| 16975 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
| 16976 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); |
| 16977 | } |
| 16978 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { |
| 16979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); |
| 16980 | } |
| 16981 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { |
| 16982 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); |
| 16983 | } |
| 16984 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { |
| 16985 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); |
| 16986 | } |
| 16987 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { |
| 16988 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); |
| 16989 | } |
| 16990 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { |
| 16991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); |
| 16992 | } |
| 16993 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { |
| 16994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); |
| 16995 | } |
| 16996 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { |
| 16997 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); |
| 16998 | } |
| 16999 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { |
| 17000 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); |
| 17001 | } |
| 17002 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { |
| 17003 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); |
| 17004 | } |
| 17005 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
| 17006 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); |
| 17007 | } |
| 17008 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
| 17009 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); |
| 17010 | } |
| 17011 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { |
| 17012 | return (void *)((wxObject *) ((wxPrintPreview *) x)); |
| 17013 | } |
| 17014 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { |
| 17015 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); |
| 17016 | } |
| 17017 | static void *_p_wxPanelTo_p_wxObject(void *x) { |
| 17018 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); |
| 17019 | } |
| 17020 | static void *_p_wxDialogTo_p_wxObject(void *x) { |
| 17021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); |
| 17022 | } |
| 17023 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { |
| 17024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); |
| 17025 | } |
| 17026 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { |
| 17027 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); |
| 17028 | } |
| 17029 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { |
| 17030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); |
| 17031 | } |
| 17032 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { |
| 17033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); |
| 17034 | } |
| 17035 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { |
| 17036 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); |
| 17037 | } |
| 17038 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
| 17039 | return (void *)((wxObject *) ((wxFileSystem *) x)); |
| 17040 | } |
| 17041 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
| 17042 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); |
| 17043 | } |
| 17044 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
| 17045 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); |
| 17046 | } |
| 17047 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
| 17048 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); |
| 17049 | } |
| 17050 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
| 17051 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); |
| 17052 | } |
| 17053 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
| 17054 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); |
| 17055 | } |
| 17056 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
| 17057 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); |
| 17058 | } |
| 17059 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { |
| 17060 | return (void *)((wxObject *) ((wxGridTableBase *) x)); |
| 17061 | } |
| 17062 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { |
| 17063 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); |
| 17064 | } |
| 17065 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { |
| 17066 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); |
| 17067 | } |
| 17068 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { |
| 17069 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); |
| 17070 | } |
| 17071 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { |
| 17072 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); |
| 17073 | } |
| 17074 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { |
| 17075 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); |
| 17076 | } |
| 17077 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
| 17078 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); |
| 17079 | } |
| 17080 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { |
| 17081 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); |
| 17082 | } |
| 17083 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
| 17084 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); |
| 17085 | } |
| 17086 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
| 17087 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); |
| 17088 | } |
| 17089 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { |
| 17090 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); |
| 17091 | } |
| 17092 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { |
| 17093 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); |
| 17094 | } |
| 17095 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
| 17096 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); |
| 17097 | } |
| 17098 | static void *_p_wxValidatorTo_p_wxObject(void *x) { |
| 17099 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); |
| 17100 | } |
| 17101 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
| 17102 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); |
| 17103 | } |
| 17104 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { |
| 17105 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); |
| 17106 | } |
| 17107 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { |
| 17108 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); |
| 17109 | } |
| 17110 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { |
| 17111 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); |
| 17112 | } |
| 17113 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
| 17114 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); |
| 17115 | } |
| 17116 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { |
| 17117 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); |
| 17118 | } |
| 17119 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { |
| 17120 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); |
| 17121 | } |
| 17122 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
| 17123 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); |
| 17124 | } |
| 17125 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { |
| 17126 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); |
| 17127 | } |
| 17128 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { |
| 17129 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); |
| 17130 | } |
| 17131 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { |
| 17132 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); |
| 17133 | } |
| 17134 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
| 17135 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); |
| 17136 | } |
| 17137 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { |
| 17138 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); |
| 17139 | } |
| 17140 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { |
| 17141 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); |
| 17142 | } |
| 17143 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { |
| 17144 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); |
| 17145 | } |
| 17146 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { |
| 17147 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); |
| 17148 | } |
| 17149 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { |
| 17150 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); |
| 17151 | } |
| 17152 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { |
| 17153 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); |
| 17154 | } |
| 17155 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { |
| 17156 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); |
| 17157 | } |
| 17158 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { |
| 17159 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); |
| 17160 | } |
| 17161 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { |
| 17162 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); |
| 17163 | } |
| 17164 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { |
| 17165 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); |
| 17166 | } |
| 17167 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { |
| 17168 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); |
| 17169 | } |
| 17170 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { |
| 17171 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); |
| 17172 | } |
| 17173 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { |
| 17174 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); |
| 17175 | } |
| 17176 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { |
| 17177 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); |
| 17178 | } |
| 17179 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { |
| 17180 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); |
| 17181 | } |
| 17182 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { |
| 17183 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); |
| 17184 | } |
| 17185 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
| 17186 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); |
| 17187 | } |
| 17188 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
| 17189 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); |
| 17190 | } |
| 17191 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { |
| 17192 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); |
| 17193 | } |
| 17194 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { |
| 17195 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); |
| 17196 | } |
| 17197 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { |
| 17198 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); |
| 17199 | } |
| 17200 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { |
| 17201 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); |
| 17202 | } |
| 17203 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { |
| 17204 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); |
| 17205 | } |
| 17206 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { |
| 17207 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); |
| 17208 | } |
| 17209 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { |
| 17210 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); |
| 17211 | } |
| 17212 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { |
| 17213 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); |
| 17214 | } |
| 17215 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { |
| 17216 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); |
| 17217 | } |
| 17218 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { |
| 17219 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); |
| 17220 | } |
| 17221 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { |
| 17222 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); |
| 17223 | } |
| 17224 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { |
| 17225 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); |
| 17226 | } |
| 17227 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
| 17228 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); |
| 17229 | } |
| 17230 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { |
| 17231 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); |
| 17232 | } |
| 17233 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
| 17234 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); |
| 17235 | } |
| 17236 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
| 17237 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); |
| 17238 | } |
| 17239 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { |
| 17240 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); |
| 17241 | } |
| 17242 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { |
| 17243 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); |
| 17244 | } |
| 17245 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { |
| 17246 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); |
| 17247 | } |
| 17248 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { |
| 17249 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); |
| 17250 | } |
| 17251 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
| 17252 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); |
| 17253 | } |
| 17254 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { |
| 17255 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); |
| 17256 | } |
| 17257 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { |
| 17258 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); |
| 17259 | } |
| 17260 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { |
| 17261 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); |
| 17262 | } |
| 17263 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { |
| 17264 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); |
| 17265 | } |
| 17266 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { |
| 17267 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); |
| 17268 | } |
| 17269 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { |
| 17270 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); |
| 17271 | } |
| 17272 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { |
| 17273 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); |
| 17274 | } |
| 17275 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { |
| 17276 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); |
| 17277 | } |
| 17278 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { |
| 17279 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); |
| 17280 | } |
| 17281 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { |
| 17282 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); |
| 17283 | } |
| 17284 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { |
| 17285 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); |
| 17286 | } |
| 17287 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { |
| 17288 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); |
| 17289 | } |
| 17290 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { |
| 17291 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); |
| 17292 | } |
| 17293 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { |
| 17294 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); |
| 17295 | } |
| 17296 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
| 17297 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); |
| 17298 | } |
| 17299 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { |
| 17300 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); |
| 17301 | } |
| 17302 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { |
| 17303 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); |
| 17304 | } |
| 17305 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { |
| 17306 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); |
| 17307 | } |
| 17308 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { |
| 17309 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); |
| 17310 | } |
| 17311 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { |
| 17312 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); |
| 17313 | } |
| 17314 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { |
| 17315 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); |
| 17316 | } |
| 17317 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { |
| 17318 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); |
| 17319 | } |
| 17320 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
| 17321 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); |
| 17322 | } |
| 17323 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { |
| 17324 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); |
| 17325 | } |
| 17326 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { |
| 17327 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); |
| 17328 | } |
| 17329 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { |
| 17330 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); |
| 17331 | } |
| 17332 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
| 17333 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); |
| 17334 | } |
| 17335 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
| 17336 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); |
| 17337 | } |
| 17338 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { |
| 17339 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); |
| 17340 | } |
| 17341 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { |
| 17342 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); |
| 17343 | } |
| 17344 | 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}}; |
| 17345 | 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}}; |
| 17346 | 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}}; |
| 17347 | 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}}; |
| 17348 | 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}}; |
| 17349 | 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}}; |
| 17350 | 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}}; |
| 17351 | 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}}; |
| 17352 | 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}}; |
| 17353 | 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}}; |
| 17354 | 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}}; |
| 17355 | 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}}; |
| 17356 | 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}}; |
| 17357 | 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}}; |
| 17358 | 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}}; |
| 17359 | 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}}; |
| 17360 | 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}}; |
| 17361 | 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}}; |
| 17362 | 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}}; |
| 17363 | 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}}; |
| 17364 | 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}}; |
| 17365 | 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}}; |
| 17366 | 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}}; |
| 17367 | 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}}; |
| 17368 | 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}}; |
| 17369 | 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}}; |
| 17370 | 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_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_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}}; |
| 17371 | 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}}; |
| 17372 | 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}}; |
| 17373 | 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}}; |
| 17374 | 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}}; |
| 17375 | 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_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_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}}; |
| 17376 | 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}}; |
| 17377 | 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}}; |
| 17378 | 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}}; |
| 17379 | 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}}; |
| 17380 | 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}}; |
| 17381 | 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}}; |
| 17382 | 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}}; |
| 17383 | 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}}; |
| 17384 | 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}}; |
| 17385 | 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}}; |
| 17386 | 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}}; |
| 17387 | 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}}; |
| 17388 | 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}}; |
| 17389 | 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}}; |
| 17390 | 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}}; |
| 17391 | 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}}; |
| 17392 | 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}}; |
| 17393 | 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}}; |
| 17394 | 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}}; |
| 17395 | 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}}; |
| 17396 | 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}}; |
| 17397 | |
| 17398 | static swig_type_info *swig_types_initial[] = { |
| 17399 | _swigt__p_wxGridCellAutoWrapStringRenderer, |
| 17400 | _swigt__p_wxGridCellEnumRenderer, |
| 17401 | _swigt__p_wxGridCellDateTimeRenderer, |
| 17402 | _swigt__p_wxGridCellBoolRenderer, |
| 17403 | _swigt__p_wxGridCellFloatRenderer, |
| 17404 | _swigt__p_wxGridCellNumberRenderer, |
| 17405 | _swigt__p_wxPyGridCellRenderer, |
| 17406 | _swigt__p_wxGridCellRenderer, |
| 17407 | _swigt__p_wxGridCellStringRenderer, |
| 17408 | _swigt__p_wxGridCellAttr, |
| 17409 | _swigt__p_wxColour, |
| 17410 | _swigt__p_wxDC, |
| 17411 | _swigt__p_wxGridTableMessage, |
| 17412 | _swigt__p_wxGrid, |
| 17413 | _swigt__p_wxVisualAttributes, |
| 17414 | _swigt__p_char, |
| 17415 | _swigt__p_wxPanel, |
| 17416 | _swigt__p_wxNotifyEvent, |
| 17417 | _swigt__p_wxGridRangeSelectEvent, |
| 17418 | _swigt__p_wxSize, |
| 17419 | _swigt__p_wxGridCellCoords, |
| 17420 | _swigt__p_wxScrolledWindow, |
| 17421 | _swigt__p_wxWindow, |
| 17422 | _swigt__p_wxFont, |
| 17423 | _swigt__p_wxControl, |
| 17424 | _swigt__p_wxEvent, |
| 17425 | _swigt__p_wxObject, |
| 17426 | _swigt__p_wxGridSizeEvent, |
| 17427 | _swigt__p_wxRect, |
| 17428 | _swigt__p_long, |
| 17429 | _swigt__p_wxString, |
| 17430 | _swigt__p_wxEvtHandler, |
| 17431 | _swigt__p_wxPoint, |
| 17432 | _swigt__p_wxGridEvent, |
| 17433 | _swigt__p_wxGridEditorCreatedEvent, |
| 17434 | _swigt__p_wxGridTableBase, |
| 17435 | _swigt__p_wxGridCellNumberEditor, |
| 17436 | _swigt__p_wxPyGridCellEditor, |
| 17437 | _swigt__p_wxGridCellEditor, |
| 17438 | _swigt__p_wxGridCellTextEditor, |
| 17439 | _swigt__p_wxGridCellFloatEditor, |
| 17440 | _swigt__p_wxGridCellBoolEditor, |
| 17441 | _swigt__p_wxPyGridTableBase, |
| 17442 | _swigt__p_wxGridStringTable, |
| 17443 | _swigt__p_wxArrayString, |
| 17444 | _swigt__p_wxCommandEvent, |
| 17445 | _swigt__p_wxGridCellAttrProvider, |
| 17446 | _swigt__p_wxKeyEvent, |
| 17447 | _swigt__p_wxGridCellChoiceEditor, |
| 17448 | _swigt__p_wxGridCellEnumEditor, |
| 17449 | _swigt__p_wxGridCellAutoWrapStringEditor, |
| 17450 | _swigt__p_int, |
| 17451 | _swigt__p_wxPyGridCellAttrProvider, |
| 17452 | 0 |
| 17453 | }; |
| 17454 | |
| 17455 | |
| 17456 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
| 17457 | |
| 17458 | static swig_const_info swig_const_table[] = { |
| 17459 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char}, |
| 17460 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char}, |
| 17461 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char}, |
| 17462 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char}, |
| 17463 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char}, |
| 17464 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char}, |
| 17465 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char}, |
| 17466 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char}, |
| 17467 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char}, |
| 17468 | {0, 0, 0, 0.0, 0, 0}}; |
| 17469 | |
| 17470 | #ifdef __cplusplus |
| 17471 | } |
| 17472 | #endif |
| 17473 | |
| 17474 | #ifdef __cplusplus |
| 17475 | extern "C" |
| 17476 | #endif |
| 17477 | SWIGEXPORT(void) SWIG_init(void) { |
| 17478 | static PyObject *SWIG_globals = 0; |
| 17479 | static int typeinit = 0; |
| 17480 | PyObject *m, *d; |
| 17481 | int i; |
| 17482 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
| 17483 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
| 17484 | d = PyModule_GetDict(m); |
| 17485 | |
| 17486 | if (!typeinit) { |
| 17487 | for (i = 0; swig_types_initial[i]; i++) { |
| 17488 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); |
| 17489 | } |
| 17490 | typeinit = 1; |
| 17491 | } |
| 17492 | SWIG_InstallConstants(d,swig_const_table); |
| 17493 | |
| 17494 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
| 17495 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); |
| 17496 | PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string")); |
| 17497 | PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool")); |
| 17498 | PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long")); |
| 17499 | PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double")); |
| 17500 | PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice")); |
| 17501 | PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string")); |
| 17502 | PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long")); |
| 17503 | PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint")); |
| 17504 | PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime")); |
| 17505 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); |
| 17506 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); |
| 17507 | PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_ROWS", SWIG_From_int((int)wxGRID_DEFAULT_NUMBER_ROWS)); |
| 17508 | PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_COLS", SWIG_From_int((int)wxGRID_DEFAULT_NUMBER_COLS)); |
| 17509 | PyDict_SetItemString(d,"GRID_DEFAULT_ROW_HEIGHT", SWIG_From_int((int)wxGRID_DEFAULT_ROW_HEIGHT)); |
| 17510 | PyDict_SetItemString(d,"GRID_DEFAULT_COL_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_COL_WIDTH)); |
| 17511 | PyDict_SetItemString(d,"GRID_DEFAULT_COL_LABEL_HEIGHT", SWIG_From_int((int)wxGRID_DEFAULT_COL_LABEL_HEIGHT)); |
| 17512 | PyDict_SetItemString(d,"GRID_DEFAULT_ROW_LABEL_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_ROW_LABEL_WIDTH)); |
| 17513 | PyDict_SetItemString(d,"GRID_LABEL_EDGE_ZONE", SWIG_From_int((int)wxGRID_LABEL_EDGE_ZONE)); |
| 17514 | PyDict_SetItemString(d,"GRID_MIN_ROW_HEIGHT", SWIG_From_int((int)wxGRID_MIN_ROW_HEIGHT)); |
| 17515 | PyDict_SetItemString(d,"GRID_MIN_COL_WIDTH", SWIG_From_int((int)wxGRID_MIN_COL_WIDTH)); |
| 17516 | PyDict_SetItemString(d,"GRID_DEFAULT_SCROLLBAR_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_SCROLLBAR_WIDTH)); |
| 17517 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_From_int((int)wxGridCellAttr::Any)); |
| 17518 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_From_int((int)wxGridCellAttr::Default)); |
| 17519 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_From_int((int)wxGridCellAttr::Cell)); |
| 17520 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_From_int((int)wxGridCellAttr::Row)); |
| 17521 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_From_int((int)wxGridCellAttr::Col)); |
| 17522 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_From_int((int)wxGridCellAttr::Merged)); |
| 17523 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_From_int((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); |
| 17524 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_From_int((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); |
| 17525 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); |
| 17526 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); |
| 17527 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); |
| 17528 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); |
| 17529 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); |
| 17530 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); |
| 17531 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_From_int((int)wxGrid::wxGridSelectCells)); |
| 17532 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_From_int((int)wxGrid::wxGridSelectRows)); |
| 17533 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_From_int((int)wxGrid::wxGridSelectColumns)); |
| 17534 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); |
| 17535 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); |
| 17536 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); |
| 17537 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); |
| 17538 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); |
| 17539 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); |
| 17540 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); |
| 17541 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); |
| 17542 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); |
| 17543 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); |
| 17544 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); |
| 17545 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); |
| 17546 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); |
| 17547 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); |
| 17548 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); |
| 17549 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); |
| 17550 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_BEGIN_DRAG", PyInt_FromLong(wxEVT_GRID_CELL_BEGIN_DRAG)); |
| 17551 | |
| 17552 | |
| 17553 | } |
| 17554 | |