dabo Commit
Revision 1770
Date: 2006-01-11 21:56:11 -0800 (Wed, 11 Jan 2006)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Fixed a problem with dGrid on Windows where the propsheet was stealing the focus
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2006-01-12 00:18:52 UTC (rev 1769)
+++ trunk/dabo/ui/uiwx/dGrid.py 2006-01-12 05:56:11 UTC (rev 1770)
@@ -1509,15 +1509,18 @@
if force:
row = max(0, self.CurrentRow)
col = max(0, self.CurrentColumn)
- # Needed on Linux to get the grid to have the focus:
- for window in self.Children:
- window.SetFocus()
+ if "linux" in sys.platform:
+ # Needed on Linux to get the grid to have the
focus,
+ # but on windows this is deadly:
+ for window in self.Children:
+ window.SetFocus()
# Needed on win and mac to get the grid to have the
focus:
- self.GetGridWindow().SetFocus()
+# self.GetGridWindow().SetFocus()
if not self.IsVisible(row, col):
self.MakeCellVisible(row, col)
self.MakeCellVisible(row, col)
self.SetGridCursor(row, col)
+
# self.SetColLabelAlignment(wx.ALIGN_CENTRE, wx.ALIGN_CENTRE)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev