title: How do I change the Yes/No options in a tkinter askquestion prompt?
body: <p>I have a <a href="https://docs.python.org/3/library/tkinter.html" rel="nofollow noreferrer"><code>tkinter</code></a> dialog box which uses <code>messagebox.askquestion</code> to ask if a user wants to delete a file.</p>
  
  <pre><code>from tkinter import messagebox
  
  choice = messagebox.askquestion("Delete file", "Are you sure you want to delete this file?")
  if choice == 'yes':
      print("Delete file")
  </code></pre>
  
  <p>Instead of using Yes/No as my options, I want to change them to explicitly say Delete/Cancel.</p>
  
  <p><strong>How can I modify the Yes/No options in a <code>tkinter</code> prompt?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Wx7CC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wx7CC.png" alt="&quot;Are you sure you want to delete this file?&quot;"></a></p>