X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/322913cef36b156a4a9722ce6a68845e3219e615..2421eb827857325ff4886131c337391365986d6b:/wxPython/src/grid.i diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index dd116ffd2f..cebed93efa 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -20,9 +20,6 @@ #include #include - DECLARE_DEF_STRING(PanelNameStr); - DECLARE_DEF_STRING2(DateTimeFormatStr, wxT("%c")); - static const wxString wxPyEmptyString(wxT("")); %} @@ -31,8 +28,14 @@ %import windows.i %pythoncode { wx = core } + %include _grid_rename.i +MAKE_CONST_WXSTRING_NOSWIG(EmptyString); +MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr); +MAKE_CONST_WXSTRING2(DateTimeFormatStr, wxT("%c")); + + //--------------------------------------------------------------------------- // OOR related typemaps and helper functions @@ -952,8 +955,8 @@ class wxGridCellChoiceEditor : public wxGridCellEditor { public: %addtofunc wxGridCellChoiceEditor "self._setOORInfo(self)" - wxGridCellChoiceEditor(int LCOUNT = 0, - const wxString* choices = NULL, + wxGridCellChoiceEditor(int choices = 0, + const wxString* choices_array = NULL, bool allowOthers = False); virtual wxString GetValue(); }; @@ -1540,9 +1543,16 @@ public: const wxString& name = wxPyPanelNameStr); - enum wxGridSelectionModes {wxGridSelectCells, - wxGridSelectRows, - wxGridSelectColumns}; + enum wxGridSelectionModes { + wxGridSelectCells, + wxGridSelectRows, + wxGridSelectColumns + }; + %pythoncode { + SelectCells = wxGridSelectCells + SelectRows = wxGridSelectRows + SelectColumns = wxGridSelectColumns, + } bool CreateGrid( int numRows, int numCols, WXGRIDSELECTIONMODES selmode = wxGrid::wxGridSelectCells );