- Revision
- 15913
- Author
- john
- Date
- 2007-11-26 17:23:47 -0800 (Mon, 26 Nov 2007)
Log Message
work around bug in wxGrid where EVT_GRID_EDITOR_SHOWN and EVT_GRID_EDITOR_HIDDEN are not called as you would expect when a cell that is being edited is scrolled out of view
Modified Paths
Diff
Modified: branches/recorded_scripts/chandler/parcels/osaf/framework/blocks/Table.py (15912 => 15913)
--- branches/recorded_scripts/chandler/parcels/osaf/framework/blocks/Table.py 2007-11-26 23:40:21 UTC (rev 15912) +++ branches/recorded_scripts/chandler/parcels/osaf/framework/blocks/Table.py 2007-11-27 01:23:47 UTC (rev 15913) @@ -673,6 +673,9 @@ return self.SetGridCursor (cursorRow, colIndex) + + # Enabling CellEditControl is not possible unless the cell is visible + self.MakeCellVisible (cursorRow, colIndex) self.EnableCellEditControl() def GoToItem(self, item):
Modified: branches/recorded_scripts/chandler/parcels/osaf/views/main/SideBar.py (15912 => 15913)
--- branches/recorded_scripts/chandler/parcels/osaf/views/main/SideBar.py 2007-11-26 23:40:21 UTC (rev 15912) +++ branches/recorded_scripts/chandler/parcels/osaf/views/main/SideBar.py 2007-11-27 01:23:47 UTC (rev 15913) @@ -1270,8 +1270,12 @@ event.arguments['Enable'] = selectedItem is not None and UserCollection (selectedItem).renameable def onRenameEvent (self, event): - self.widget.EnableCellEditControl() + grid = self.widget + # Enabling CellEditControl isn't possible unles the cell is visible + grid.MakeCellVisible (grid.GetGridCursorRow(), grid.GetGridCursorCol()) + grid.EnableCellEditControl() + def onToggleMineEvent(self, event): assert len(list(self.contents.iterSelection())) == 1
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
