'Hide and delete all messages.'

@pyqtSlot()
def clear_messages(self):

    for widget in self._messages:
        self._vbox.removeWidget(widget)
        widget.hide()
        widget.deleteLater()
    self._messages = []
    self._last_text = None
    self.hide()
    self._clear_timer.stop()
