dabo Commit
Revision 1882
Date: 2006-01-31 09:28:37 -0800 (Tue, 31 Jan 2006)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Disabled the fillGrid()'s setting of focus to the grid, as it causes problems
with stealing focus away from another active form, at least on Windows. Also,
it seems that such code really doesn't belong inside the function to build the
grid, but perhaps we'll find it belongs somewhere else.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2006-01-31 01:36:27 UTC (rev 1881)
+++ trunk/dabo/ui/uiwx/dGrid.py 2006-01-31 17:28:37 UTC (rev 1882)
@@ -1602,7 +1602,11 @@
tbl.setColumns(self.Columns)
tbl.fillTable(force)
- if force:
+
+ ## pkm: I've disabled the following block, because setting the
focus
+ ## can steal focus from the active form. It also doesn't
seem
+ ## right to have this code here...
+ if False and force:
row = max(0, self.CurrentRow)
col = max(0, self.CurrentColumn)
if "linux" in sys.platform:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev