- Revision
- 16045
- Author
- grant
- Date
- 2007-12-04 17:52:51 -0800 (Tue, 04 Dec 2007)
Log Message
[APP] Use wx.Grid.SelectRow/DeselectRow in row selection mode
- This fixes issues with selection update when changing the model programmatically.
- This fixes issues with selection update when changing the model programmatically.
Modified Paths
Diff
Modified: branches/rearchitecture/Chandler-Platform/ocap/wxui/table.py (16044 => 16045)
--- branches/rearchitecture/Chandler-Platform/ocap/wxui/table.py 2007-12-05 01:11:45 UTC (rev 16044) +++ branches/rearchitecture/Chandler-Platform/ocap/wxui/table.py 2007-12-05 01:52:51 UTC (rev 16045) @@ -163,11 +163,11 @@ for row in view.GetSelectedRows(): if not self.listModel[row] in self.listModel.selected: - trellis.on_commit(view.SelectBlock, index, 0, index, 1, False) + trellis.on_commit(view.DeselectRow, row) for row, item in enumerate(self.listModel): if item in self.listModel.selected: - trellis.on_commit(view.SelectBlock, row, 0, row, 1, True) + trellis.on_commit(view.SelectRow, row, True) defaultRWAttribute = wxGrid.GridCellAttr() defaultROAttribute = wxGrid.GridCellAttr()
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
