dabo Commit
Revision 6789
Date: 2011-08-19 15:38:34 -0700 (Fri, 19 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6789

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

Log:
Fix BackColor property issue.

Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2011-08-19 12:35:55 UTC (rev 6788)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2011-08-19 22:38:34 UTC (rev 6789)
@@ -1882,13 +1882,12 @@
                if self._constructed():
                        if isinstance(val, basestring):
                                val = dColors.colorTupleFromName(val)
-                       if isinstance(val, tuple):
-                               if val != self.GetBackgroundColour().Get():
-                                       self.SetBackgroundColour(val)
-                                       # Background color changes don't result 
in an automatic refresh.
-                                       self.refresh()
-                       elif val is None:
+                       if val is None:
                                self.SetBackgroundColour(wx.NullColour)
+                       elif val != self.GetBackgroundColour().Get():
+                               self.SetBackgroundColour(val)
+                               # Background color changes don't result in an 
automatic refresh.
+                               self.refresh()
                else:
                        self._properties["BackColor"] = 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]

Reply via email to