class Responses:
    """Sets responsers color and message."""
    @staticmethod
    def raise_error(responser, msg):
        responser.setStyleSheet('*{color: red;}')
        responser.setText(msg)

    @staticmethod
    def raise_alert(responser, msg):
        responser.setStyleSheet('*{color: orange;}')
        responser.setText(msg)

    @staticmethod
    def success_message(responser, msg):
        responser.setStyleSheet('*{color: green;}')
        responser.setText(msg)

    @staticmethod
    def clear(inputs, responser=None):
        """
        Clear inputs and responsers
        """
        for input_ in inputs:
            input_.setText('')
        if responser is None:
            return
        responser.setText('')
