def error_dialog(self, msg, blocking):
    self.win.show_error(msg, parent=self.top_level_window())
    if blocking:
        self.done.set()
def error_dialog(self, msg, blocking):
    self.win.show_error(msg, parent=self.top_level_window())
    if blocking:
        self.done.set()