X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..61940a7061d0b5d5122b1e1e939cfa2d72596999:/wxPython/demo/GridDragable.py diff --git a/wxPython/demo/GridDragable.py b/wxPython/demo/GridDragable.py index 547b19ee94..b30467c209 100644 --- a/wxPython/demo/GridDragable.py +++ b/wxPython/demo/GridDragable.py @@ -176,16 +176,12 @@ class DragableGrid(gridlib.Grid): self.SetTable(table, True) # Enable Column moving - #>> TODO - renamer didn't get this one - gridmovers.wxGridColMover(self) - #>> TODO - Bind() not working here - gridmovers.EVT_GRID_COL_MOVE(self,self.GetId(),self.OnColMove) + gridmovers.GridColMover(self) + self.Bind(gridmovers.EVT_GRID_COL_MOVE, self.OnColMove, self) # Enable Row moving - #>> TODO - renamer didn't get this one - gridmovers.wxGridRowMover(self) - #>> TODO - Bind() not working here - gridmovers.EVT_GRID_ROW_MOVE(self,self.GetId(),self.OnRowMove) + gridmovers.GridRowMover(self) + self.Bind(gridmovers.EVT_GRID_ROW_MOVE, self.OnRowMove, self) # Event method called when a column move needs to take place def OnColMove(self,evt):