def METHOD_NAME(self, color):
    """
    Sets this widget’s QColor_ to *color*.
    The default is None.
    .. _QColor: http://doc.qt.io/qt-5/qcolor.html
    """
    self._color = color
    self.update()