dabo Commit
Revision 6323
Date: 2011-01-17 19:45:41 -0800 (Mon, 17 Jan 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6323

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

Log:
Minor fix: setting the SortIndicatorColor to a tuple was throwing an error. Now 
it accepts tuples as well as string names.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-01-18 03:26:42 UTC (rev 6322)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-01-18 03:45:41 UTC (rev 6323)
@@ -2576,7 +2576,9 @@
                                # of the column. TODO: Perhaps replace with 
prettier icons
                                left = headerRect[0] + sortIconBuffer
                                top = headerRect[1] + sortIconBuffer
-                               brushColor = 
dColors.colorTupleFromName(self.SortIndicatorColor)
+                               brushColor = self.SortIndicatorColor
+                               if isinstance(brushColor, basestring):
+                                       brushColor = 
dColors.colorTupleFromName(brushColor)
                                dc.SetBrush(wx.Brush(brushColor, wx.SOLID))
                                if self.sortOrder == "DESC":
                                        # Down arrow



_______________________________________________
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]

Reply via email to