def _on_exit(self): """ Called when the exit action is invoked. """ parent = self.control print choose_one(parent, "Make a choice", ['one', 'two', 'three']) information(parent, 'Going...') warning(parent, 'Going......') error(parent, 'Gone!') if confirm(parent, 'Should I exit?') == YES: self.close()
def _on_exit(self): """ Called when the exit action is invoked. """ parent = self.control print(choose_one(parent, "Make a choice", ['one', 'two', 'three'])) information(parent, 'Going...') warning(parent, 'Going......') error(parent, 'Gone!') if confirm(parent, 'Should I exit?') == YES: self.close()
def _on_exit(self): """ Called when the exit action is invoked. """ parent = self.control print(choose_one(parent, "Make a choice", ["one", "two", "three"])) information(parent, "Going...") warning(parent, "Going......") error(parent, "Gone!") if confirm(parent, "Should I exit?") == YES: self.close()