diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 0c47eff96c..cebed93efa 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -1543,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 );