def show_intro(self): intro_dialog = dialog.YesNoDialog(self, yes_type="continue", no_type="skip") for segment in g.get_intro(): intro_dialog.text = segment if not dialog.call_dialog(intro_dialog, self): break intro_dialog.remove_hooks()