'Post a message to the main window status bar with a timeout in ms'

def _post_message(self, message, timeout=60000):

    if self.editor_widget:
        try:
            statusbar = self.editor_widget.window().statusBar()
            statusbar.showMessage(message, timeout)
            QApplication.processEvents()
        except AttributeError:
            pass
