dabo Commit
Revision 1283
Date: 2005-09-09 11:21:49 -0700 (Fri, 09 Sep 2005)
Author: paul

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
This is a temporary workaround for the AssertionError in dGrid on Mac
and Windows. I see now that I need to set default attributes, and will
refactor that into a separate function at some point.

Ed, please remove your if(False and ...) and see if this works for you.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 16:23:56 UTC (rev 1282)
+++ trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 18:21:49 UTC (rev 1283)
@@ -673,8 +673,9 @@
                self._rowLabels = []
 
                # dColumn maintains its own cell attribute object, but this is 
the default:
-               self._defaultGridColAttr = wx.grid.GridCellAttr()
-       
+               attr = self._defaultGridColAttr = wx.grid.GridCellAttr()
+               attr.SetAlignment(wx.ALIGN_TOP, wx.ALIGN_LEFT)
+
                # Columns notify the grid when their properties change
                # Sometimes the grid itself initiated the change, and doesn't
                # need to be notified.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to