79389f883f41ee1df833be3df66655ca830d2b90,pyCellProfiler/cellprofiler/preferences.py,,get_background_color,#,221

Before Change


    """
    if not get_config().Exists(BACKGROUND_COLOR):
        r = random.Random()
        return wx.Colour(red = r.randint(0,255),
                         green = r.randint(0,255),
                         blue = r.randint(0,255))
    else:
        try:
            color = [int(x) 
                     for x in get_config().Read(BACKGROUND_COLOR).split(",")]

After Change


                     for x in get_config().Read(BACKGROUND_COLOR).split(",")]
            return wx.Colour(*tuple(color))
        except:
            return wx.Colour(red=143,green=188,blue=143) // darkseagreen

def set_background_color(color):
    """Set the color to be used for window backgrounds
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 79389f883f41ee1df833be3df66655ca830d2b90
Time: 2009-10-29
Author: mbray@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/preferences.py
Class Name:
Method Name: get_background_color


Project Name: CellProfiler/CellProfiler
Commit Name: dafe3271c32730ae1ca319de1b17899406851ba4
Time: 2009-10-29
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/preferences.py
Class Name:
Method Name: get_background_color


Project Name: CellProfiler/CellProfiler
Commit Name: de1aa60c4383cc384295d4b30e4117145f571360
Time: 2009-10-29
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/preferences.py
Class Name:
Method Name: get_background_color