def str_color ( self, color ):
        if isinstance(color, QtGui.QColor):
            alpha = color.alpha()
            if alpha == 255:
                return "(%d,%d,%d)" % (color.red(), color.green(), color.blue())

            return "(%d,%d,%d,%d)" % (color.red(), color.green(), color.blue(), alpha)

        return color

#-------------------------------------------------------------------------------
#  'SimpleColorEditor' class:
#-------------------------------------------------------------------------------
Returns people following user.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/color_editor.py/ToolkitEditorFactory.str_color--crossover with--dataset/ETHPy150Open nathanborror/django-basic-apps/basic/relationships/templatetags/relationships.py/followers