X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2131d850ee99b2bebed4cc8d1467493ad0c226a5..7e664d85e6512d807ce2eb186ed9e0bbd60d6e8b:/wxPython/src/msw/grid.py diff --git a/wxPython/src/msw/grid.py b/wxPython/src/msw/grid.py index 8f04d45fd0..1b74ef21d0 100644 --- a/wxPython/src/msw/grid.py +++ b/wxPython/src/msw/grid.py @@ -1122,15 +1122,15 @@ class Grid(_windows.ScrolledWindow): """ return _grid.Grid_Create(*args, **kwargs) - GridSelectCells = _grid.Grid_GridSelectCells - GridSelectRows = _grid.Grid_GridSelectRows - GridSelectColumns = _grid.Grid_GridSelectColumns + wxGridSelectCells = _grid.Grid_wxGridSelectCells + wxGridSelectRows = _grid.Grid_wxGridSelectRows + wxGridSelectColumns = _grid.Grid_wxGridSelectColumns SelectCells = wxGridSelectCells SelectRows = wxGridSelectRows SelectColumns = wxGridSelectColumns def CreateGrid(*args, **kwargs): - """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=GridSelectCells) -> bool""" + """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool""" return _grid.Grid_CreateGrid(*args, **kwargs) def SetSelectionMode(*args, **kwargs): @@ -1158,7 +1158,7 @@ class Grid(_windows.ScrolledWindow): return _grid.Grid_GetTable(*args, **kwargs) def SetTable(*args, **kwargs): - """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=GridSelectCells) -> bool""" + """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool""" return _grid.Grid_SetTable(*args, **kwargs) def ClearGrid(*args, **kwargs): @@ -1273,7 +1273,7 @@ class Grid(_windows.ScrolledWindow): return _grid.Grid_YToRow(*args, **kwargs) def XToCol(*args, **kwargs): - """XToCol(self, int x) -> int""" + """XToCol(self, int x, bool clipToMinMax=False) -> int""" return _grid.Grid_XToCol(*args, **kwargs) def YToEdgeOfRow(*args, **kwargs): @@ -1492,6 +1492,18 @@ class Grid(_windows.ScrolledWindow): """CanDragColSize(self) -> bool""" return _grid.Grid_CanDragColSize(*args, **kwargs) + def EnableDragColMove(*args, **kwargs): + """EnableDragColMove(self, bool enable=True)""" + return _grid.Grid_EnableDragColMove(*args, **kwargs) + + def DisableDragColMove(*args, **kwargs): + """DisableDragColMove(self)""" + return _grid.Grid_DisableDragColMove(*args, **kwargs) + + def CanDragColMove(*args, **kwargs): + """CanDragColMove(self) -> bool""" + return _grid.Grid_CanDragColMove(*args, **kwargs) + def EnableDragGridSize(*args, **kwargs): """EnableDragGridSize(self, bool enable=True)""" return _grid.Grid_EnableDragGridSize(*args, **kwargs) @@ -1632,6 +1644,18 @@ class Grid(_windows.ScrolledWindow): """SetColSize(self, int col, int width)""" return _grid.Grid_SetColSize(*args, **kwargs) + def GetColAt(*args, **kwargs): + """GetColAt(self, int colPos) -> int""" + return _grid.Grid_GetColAt(*args, **kwargs) + + def SetColPos(*args, **kwargs): + """SetColPos(self, int colID, int newPos)""" + return _grid.Grid_SetColPos(*args, **kwargs) + + def GetColPos(*args, **kwargs): + """GetColPos(self, int colID) -> int""" + return _grid.Grid_GetColPos(*args, **kwargs) + def AutoSizeColumn(*args, **kwargs): """AutoSizeColumn(self, int col, bool setAsMin=True)""" return _grid.Grid_AutoSizeColumn(*args, **kwargs)