dabo Commit
Revision 6333
Date: 2011-01-20 04:10:37 -0800 (Thu, 20 Jan 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6333
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Doing a full grid.refresh() instead of the more conservative
grid._getWxHeader().ClearBackground() seems to fix the drawing problem under
Linux. Please try with Windows to see if this improves drawing on that platform.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-01-20 01:41:05 UTC (rev 6332)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-01-20 12:10:37 UTC (rev 6333)
@@ -4157,7 +4157,8 @@
def _setAutoAdjustHeaderHeight(self, val):
if self._constructed():
self._autoAdjustHeaderHeight = val
- self._getWxHeader().ClearBackground()
+# self._getWxHeader().ClearBackground()
+ self.refresh()
else:
self._properties["AutoAdjustHeaderHeight"] = val
@@ -4774,7 +4775,8 @@
dabo.ui.callAfter(self._autoSetHeaderHeight)
else:
# Force the repaint
- self._getWxHeader().ClearBackground()
+# self._getWxHeader().ClearBackground()
+ self.refresh()
else:
self._properties["VerticalHeaders"] = val
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]