X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..5c0ccabf0249189e99d837acb2265cdb666ce092:/wxPython/src/gtk/grid_wrap.cpp?ds=inline diff --git a/wxPython/src/gtk/grid_wrap.cpp b/wxPython/src/gtk/grid_wrap.cpp index 4fed3bffa2..5b4ded6275 100644 --- a/wxPython/src/gtk/grid_wrap.cpp +++ b/wxPython/src/gtk/grid_wrap.cpp @@ -97,10 +97,10 @@ typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); typedef struct swig_type_info { - const char *name; + const char *name; swig_converter_func converter; const char *str; - void *clientdata; + void *clientdata; swig_dycast_func dcast; struct swig_type_info *next; struct swig_type_info *prev; @@ -118,6 +118,7 @@ SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); #ifdef __cplusplus } + #endif /*********************************************************************** @@ -203,15 +204,8 @@ SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_con /* Contract support */ -#define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else -#define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else - -#define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else -#define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else +#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else -#define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else -#define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else -#define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else #ifdef __cplusplus } @@ -311,7 +305,7 @@ PyObject* wxPyMake_##TYPE(TYPE* source) { \ /* Otherwise make a new wrapper for it the old fashioned way and \ give it the OOR treatment */ \ if (! target) { \ - target = wxPyConstructObject(source, wxT(#TYPE), FALSE); \ + target = wxPyConstructObject(source, wxT(#TYPE), False); \ if (target) \ source->SetClientObject(new wxPyOORClientData(target)); \ } \ @@ -867,7 +861,7 @@ public: bool EndEdit(int row, int col, wxGrid* grid) { - bool rv = FALSE; + bool rv = False; wxPyBeginBlockThreads(); if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { PyObject* go = wxPyMake_wxObject(grid); @@ -1152,7 +1146,7 @@ bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) goto error; *obj = ptr; - return TRUE; + return True; } // otherwise a 2-tuple of integers is expected else if (PySequence_Check(source) && PyObject_Length(source) == 2) { @@ -1166,12 +1160,12 @@ bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); Py_DECREF(o1); Py_DECREF(o2); - return TRUE; + return True; } error: PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); - return FALSE; + return False; } @@ -1180,13 +1174,13 @@ bool wxGridCellCoords_typecheck(PyObject* source) { if (wxPySwigInstance_Check(source) && wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) - return true; + return True; PyErr_Clear(); if (PySequence_Check(source) && PySequence_Length(source) == 2) - return true; + return True; - return false; + return False; } @@ -1275,7 +1269,7 @@ static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject * PyObject *resultobj; wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; wxString *arg2 = 0 ; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1287,7 +1281,7 @@ static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject * { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1553,7 +1547,7 @@ static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyO PyObject *resultobj; wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; wxString *arg2 = 0 ; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1565,7 +1559,7 @@ static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyO { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1819,8 +1813,6 @@ static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *ar wxString arg1 = (wxString) wxPyDateTimeFormatStr ; wxString arg2 = (wxString) wxPyDateTimeFormatStr ; wxGridCellDateTimeRenderer *result; - wxString *argp1 ; - wxString *argp2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1829,12 +1821,20 @@ static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *ar if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; if (obj0) { - if ((SWIG_ConvertPtr(obj0,(void **) &argp1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg1 = *argp1; + { + wxString* sptr = wxString_in_helper(obj0); + if (sptr == NULL) SWIG_fail; + arg1 = *sptr; + delete sptr; + } } if (obj1) { - if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; + { + wxString* sptr = wxString_in_helper(obj1); + if (sptr == NULL) SWIG_fail; + arg2 = *sptr; + delete sptr; + } } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1862,7 +1862,7 @@ static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, wxString const &arg1_defvalue = wxPyEmptyString ; wxString *arg1 = (wxString *) &arg1_defvalue ; wxGridCellEnumRenderer *result; - bool temp1 = false ; + bool temp1 = False ; PyObject * obj0 = 0 ; char *kwnames[] = { (char *) "choices", NULL @@ -1873,7 +1873,7 @@ static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = true; + temp1 = True; } } { @@ -2098,7 +2098,7 @@ static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *ar PyObject *resultobj; wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; wxString *arg2 = 0 ; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -2110,7 +2110,7 @@ static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *ar { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -2186,7 +2186,7 @@ static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyO PyObject *resultobj; wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; wxWindow *arg2 = (wxWindow *) 0 ; - wxWindowID arg3 ; + int arg3 ; wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -2860,7 +2860,7 @@ static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObj PyObject *resultobj; wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; wxString *arg2 = 0 ; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -2872,7 +2872,7 @@ static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObj { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3149,7 +3149,7 @@ static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *resultobj; int arg1 = (int) 0 ; wxString *arg2 = (wxString *) NULL ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; wxGridCellChoiceEditor *result; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -3222,7 +3222,7 @@ static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, Py wxString const &arg1_defvalue = wxPyEmptyString ; wxString *arg1 = (wxString *) &arg1_defvalue ; wxGridCellEnumEditor *result; - bool temp1 = false ; + bool temp1 = False ; PyObject * obj0 = 0 ; char *kwnames[] = { (char *) "choices", NULL @@ -3233,7 +3233,7 @@ static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, Py { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = true; + temp1 = True; } } { @@ -3661,7 +3661,7 @@ static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyOb static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3691,7 +3691,7 @@ static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4964,7 +4964,7 @@ static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, Py int arg2 ; int arg3 ; wxString *arg4 = 0 ; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -4976,7 +4976,7 @@ static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, Py { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5040,7 +5040,7 @@ static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *arg int arg3 ; wxString *arg4 = 0 ; bool result; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -5052,7 +5052,7 @@ static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *arg { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5083,7 +5083,7 @@ static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *arg int arg3 ; wxString *arg4 = 0 ; bool result; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -5095,7 +5095,7 @@ static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *arg { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5587,7 +5587,7 @@ static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject * wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -5599,7 +5599,7 @@ static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject * { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5628,7 +5628,7 @@ static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject * wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -5640,7 +5640,7 @@ static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject * { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5927,7 +5927,7 @@ static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObje int arg3 ; wxString *arg4 = 0 ; bool result; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -5939,7 +5939,7 @@ static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObje { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -5970,7 +5970,7 @@ static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObje int arg3 ; wxString *arg4 = 0 ; bool result; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -5982,7 +5982,7 @@ static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObje { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -6309,7 +6309,7 @@ static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyO wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -6321,7 +6321,7 @@ static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyO { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -6350,7 +6350,7 @@ static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyO wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -6362,7 +6362,7 @@ static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyO { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -7098,7 +7098,7 @@ static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) { static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxWindow *arg1 = (wxWindow *) 0 ; - wxWindowID arg2 ; + int arg2 ; wxPoint const &arg3_defvalue = wxDefaultPosition ; wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; wxSize const &arg4_defvalue = wxDefaultSize ; @@ -7109,7 +7109,7 @@ static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs wxGrid *result; wxPoint temp3 ; wxSize temp4 ; - bool temp6 = false ; + bool temp6 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; @@ -7136,7 +7136,7 @@ static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs { arg6 = wxString_in_helper(obj5); if (arg6 == NULL) SWIG_fail; - temp6 = true; + temp6 = True; } } { @@ -7353,7 +7353,7 @@ static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *k PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; bool result; PyObject * obj0 = 0 ; @@ -7413,7 +7413,7 @@ static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 0 ; int arg3 = (int) 1 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; @@ -7445,7 +7445,7 @@ static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 1 ; - bool arg3 = (bool) TRUE ; + bool arg3 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; @@ -7478,7 +7478,7 @@ static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 0 ; int arg3 = (int) 1 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; @@ -7511,7 +7511,7 @@ static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 0 ; int arg3 = (int) 1 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; @@ -7543,7 +7543,7 @@ static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 1 ; - bool arg3 = (bool) TRUE ; + bool arg3 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; @@ -7576,7 +7576,7 @@ static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject wxGrid *arg1 = (wxGrid *) 0 ; int arg2 = (int) 0 ; int arg3 = (int) 1 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; @@ -7646,7 +7646,7 @@ static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, Py int arg5 = (int) wxLEFT ; int arg6 = (int) wxTOP ; int arg7 = (int) wxHORIZONTAL ; - bool temp3 = false ; + bool temp3 = False ; wxRect temp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -7665,7 +7665,7 @@ static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, Py { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { arg4 = &temp4; @@ -7864,7 +7864,7 @@ static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObjec static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; wxRect *arg3 = (wxRect *) NULL ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -7952,7 +7952,7 @@ static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObje static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -8396,7 +8396,7 @@ static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject * wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; int arg3 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; bool result; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; @@ -9442,7 +9442,7 @@ static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyO wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -9454,7 +9454,7 @@ static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyO { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -9483,7 +9483,7 @@ static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyO wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -9495,7 +9495,7 @@ static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyO { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -9634,7 +9634,7 @@ static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -9713,7 +9713,7 @@ static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObj static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -9792,7 +9792,7 @@ static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObj static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -10035,7 +10035,7 @@ static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, P wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; wxString *arg3 = 0 ; - bool temp3 = false ; + bool temp3 = False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -10047,7 +10047,7 @@ static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, P { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = true; + temp3 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -10074,7 +10074,7 @@ static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, P static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -10582,7 +10582,7 @@ static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, Py PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -10639,7 +10639,7 @@ static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, Py PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -10696,7 +10696,7 @@ static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObj PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) TRUE ; + bool arg3 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -10727,7 +10727,7 @@ static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) TRUE ; + bool arg3 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -10757,7 +10757,7 @@ static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -10787,7 +10787,7 @@ static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyOb static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; - bool arg2 = (bool) TRUE ; + bool arg2 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -11633,7 +11633,7 @@ static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObjec int arg2 ; int arg3 ; wxString *arg4 = 0 ; - bool temp4 = false ; + bool temp4 = False ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -11645,7 +11645,7 @@ static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObjec { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = true; + temp4 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -11701,7 +11701,7 @@ static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; int arg3 ; - bool arg4 = (bool) TRUE ; + bool arg4 = (bool) True ; PyObject * obj0 = 0 ; PyObject * obj3 = 0 ; char *kwnames[] = { @@ -11732,7 +11732,7 @@ static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject * PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -11763,7 +11763,7 @@ static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject * PyObject *resultobj; wxGrid *arg1 = (wxGrid *) 0 ; int arg2 ; - bool arg3 = (bool) FALSE ; + bool arg3 = (bool) False ; PyObject * obj0 = 0 ; PyObject * obj2 = 0 ; char *kwnames[] = { @@ -11797,7 +11797,7 @@ static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject int arg3 ; int arg4 ; int arg5 ; - bool arg6 = (bool) FALSE ; + bool arg6 = (bool) False ; PyObject * obj0 = 0 ; PyObject * obj5 = 0 ; char *kwnames[] = { @@ -12316,7 +12316,7 @@ static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyO wxString *arg2 = 0 ; wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -12330,7 +12330,7 @@ static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyO { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12419,7 +12419,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *ar wxGrid *arg1 = (wxGrid *) 0 ; wxString *arg2 = 0 ; wxGridCellEditor *result; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -12431,7 +12431,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *ar { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -12462,7 +12462,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject * wxGrid *arg1 = (wxGrid *) 0 ; wxString *arg2 = 0 ; wxGridCellRenderer *result; - bool temp2 = false ; + bool temp2 = False ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -12474,7 +12474,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject * { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = true; + temp2 = True; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -12650,11 +12650,11 @@ static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *k int arg5 = (int) -1 ; int arg6 = (int) -1 ; int arg7 = (int) -1 ; - bool arg8 = (bool) TRUE ; - bool arg9 = (bool) FALSE ; - bool arg10 = (bool) FALSE ; - bool arg11 = (bool) FALSE ; - bool arg12 = (bool) FALSE ; + bool arg8 = (bool) True ; + bool arg9 = (bool) False ; + bool arg10 = (bool) False ; + bool arg11 = (bool) False ; + bool arg12 = (bool) False ; wxGridEvent *result; PyObject * obj2 = 0 ; PyObject * obj7 = 0 ; @@ -12921,10 +12921,10 @@ static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObjec int arg4 = (int) -1 ; int arg5 = (int) -1 ; int arg6 = (int) -1 ; - bool arg7 = (bool) FALSE ; - bool arg8 = (bool) FALSE ; - bool arg9 = (bool) FALSE ; - bool arg10 = (bool) FALSE ; + bool arg7 = (bool) False ; + bool arg8 = (bool) False ; + bool arg9 = (bool) False ; + bool arg10 = (bool) False ; wxGridSizeEvent *result; PyObject * obj2 = 0 ; PyObject * obj6 = 0 ; @@ -13135,11 +13135,11 @@ static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, wxGrid *arg3 = (wxGrid *) 0 ; wxGridCellCoords *arg4 = 0 ; wxGridCellCoords *arg5 = 0 ; - bool arg6 = (bool) TRUE ; - bool arg7 = (bool) FALSE ; - bool arg8 = (bool) FALSE ; - bool arg9 = (bool) FALSE ; - bool arg10 = (bool) FALSE ; + bool arg6 = (bool) True ; + bool arg7 = (bool) False ; + bool arg8 = (bool) False ; + bool arg9 = (bool) False ; + bool arg10 = (bool) False ; wxGridRangeSelectEvent *result; wxGridCellCoords temp4 ; wxGridCellCoords temp5 ;