dabo Commit
Revision 6514
Date: 2011-03-31 10:23:55 -0700 (Thu, 31 Mar 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6514
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
SelectionForeColor and SelectionBackColor weren't settable from
initProperties()
or from the constructor. Fixed.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-03-31 08:47:58 UTC (rev 6513)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-03-31 17:23:55 UTC (rev 6514)
@@ -4654,20 +4654,26 @@
return self._selectionBackColor
def _setSelectionBackColor(self, val):
- self._selectionBackColor = val
- if isinstance(val, basestring):
- val = dColors.colorTupleFromName(val)
- self.SetSelectionBackground(val)
+ if self._constructed():
+ self._selectionBackColor = val
+ if isinstance(val, basestring):
+ val = dColors.colorTupleFromName(val)
+ self.SetSelectionBackground(val)
+ else:
+ self._properties["SelectionBackColor"] = val
def _getSelectionForeColor(self):
return self._selectionForeColor
def _setSelectionForeColor(self, val):
- self._selectionForeColor = val
- if isinstance(val, basestring):
- val = dColors.colorTupleFromName(val)
- self.SetSelectionForeground(val)
+ if self._constructed():
+ self._selectionForeColor = val
+ if isinstance(val, basestring):
+ val = dColors.colorTupleFromName(val)
+ self.SetSelectionForeground(val)
+ else:
+ self._properties["SelectionForeColor"] = val
def _getSelectionMode(self):
_______________________________________________
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]