dabo Commit
Revision 1282
Date: 2005-09-09 09:23:56 -0700 (Fri, 09 Sep 2005)
Author: paul

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

Log:
Further comments added in GetAttr. Removed the getDataSet function from
the test as it looks like it isn't used. 

Fixed the Automatic alignment setter to look for datatypes of "integer"
instead of "int", which results in the dGrid.py test having a right-
aligned second column.



Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 16:05:08 UTC (rev 1281)
+++ trunk/dabo/ui/uiwx/dGrid.py 2005-09-09 16:23:56 UTC (rev 1282)
@@ -90,6 +90,8 @@
                        # has columns, but self.grid.Columns doesn't know about 
it yet. Just return
                        # the default:
                        return self.grid._defaultGridColAttr.Clone()
+                       # (further testing reveals that this really isn't a 
problem: the grid is 
+                       #  just empty - no columns or rows added yet)
 
        def GetRowLabelValue(self, row):
                try:
@@ -529,7 +531,7 @@
        def _setAutoHorizontalCellAlignment(self):
                dt = self.DataType
                if isinstance(dt, basestring):
-                       if dt in ("decimal", "float", "long", "int"):
+                       if dt in ("decimal", "float", "long", "integer"):
                                self._setHorizontalCellAlignment("Right", 
_autoAlign=True)
                
        def _setHorizontalCellAlignment(self, val, _autoAlign=False):
@@ -2231,10 +2233,10 @@
                        col.Width = 40
                        col.Caption = "Age"
                        g.addColumn(col)
+
                
-               
-               def getDataSet(self):
-                       return self.dataSet
+#              def getDataSet(self):
+#                      return self.dataSet
 
                        
                        




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

Reply via email to