Answers for "how to handle response from tkinter messagebox.askquestion() function in Python"

0

how to handle response from tkinter messagebox.askquestion() function in Python

def new_game_confirm(self):
        result = messagebox.askquestion("Start a new game", "Are you sure you want to start a new game ? Your current campaign will be overriden and there is no going back !", icon='warning')
        if result == 'yes':
            self.proceed_to_new_game_menu()
        else:
            pass
Posted by: Guest on January-03-2021

Code answers related to "how to handle response from tkinter messagebox.askquestion() function in Python"

Python Answers by Framework

Browse Popular Code Answers by Language