def show_error(self, msg, blocking=False):
    self.done.clear()
    self.error_signal.emit(msg, blocking)
    if blocking:
        self.done.wait()
def show_error(self, msg, blocking=False):
    self.done.clear()
    self.error_signal.emit(msg, blocking)
    if blocking:
        self.done.wait()