def METHOD_NAME(self, widget):
    self.main_window.visible = False
    for i in range(5, 0, -1):
        print(f"Back in {i}...")
        yield 1
    self.main_window.visible = True
    self.main_window.info_dialog("Here we go again", "I'm back!")