I have a tkinter
dialog box which uses messagebox.askquestion
to ask if a user wants to delete a file.
from tkinter import messagebox
choice = messagebox.askquestion("Delete file", "Are you sure you want to delete this file?")
if choice == 'yes':
print("Delete file")
Instead of using Yes/No as my options, I want to change them to explicitly say Delete/Cancel.
How can I modify the Yes/No options in a tkinter
prompt?