dabo Commit 4303

View: New views
1 Messages — Rating Filter:   Alert me  

dabo Commit 4303

by Paul McNett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: Dabo-dev@...
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/20080721190604.5E6403188D9@...
LightInTheBox - Buy quality products at wholesale price