Changeset 4303

Show
Ignore:
Timestamp:
07/21/2008 12:06:04 PM (1 month ago)
Author:
paul
Message:

Fixed my only known remaining problem with shutter studio on Mac and
Win. For whatever reason, this wasn't an issue on Linux.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dGrid.py

    r4269 r4303  
    10651065 
    10661066    def _getForeColor(self): 
    1067         return self._gridColAttr.GetTextColour() 
     1067        try: 
     1068            return self._gridColAttr.GetTextColour() 
     1069        except wx.PyAssertionError: 
     1070            # Getting the color failed on Mac and win: "no default attr"  
     1071            default = dColors.colorTupleFromName("black") 
     1072            self._gridColAttr.SetTextColour(default) 
     1073            return default 
    10681074 
    10691075    def _setForeColor(self, val):