dabo Commit
Revision 4303
Date: 2008-07-21 12:06:04 -0700 (Mon, 21 Jul 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4303
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Fixed my only known remaining problem with shutter studio on Mac and
Win. For whatever reason, this wasn't an issue on Linux.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-07-21 15:35:31 UTC (rev 4302)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-07-21 19:06:04 UTC (rev 4303)
@@ -1064,7 +1064,13 @@
def _getForeColor(self):
- return self._gridColAttr.GetTextColour()
+ try:
+ return self._gridColAttr.GetTextColour()
+ except wx.PyAssertionError:
+ # Getting the color failed on Mac and win: "no default
attr"
+ default = dColors.colorTupleFromName("black")
+ self._gridColAttr.SetTextColour(default)
+ return default
def _setForeColor(self, val):
if self._constructed():
_______________________________________________
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]