def str_color ( self, color ):
        """ Returns the text representation of a specified color value.
        """
        if type( color ) in SequenceTypes:
            return "(%d,%d,%d)" % ( int( color[0] * 255.0 ),
                                    int( color[1] * 255.0 ),
                                    int( color[2] * 255.0 ) )
        return super(ToolkitEditorFactory, self).str_color(color)
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/rgb_color_editor.py/ToolkitEditorFactory.str_color/original