code: def boolbox(message="Shall I continue?", title="", choices=["Yes", "No"]):
      
      if title == None:
          if message == "Shall I continue?":
              title = "Confirmation"
          else:
              title = ""
  
      reply = buttonbox(message, title, choices)
      if reply == choices[0]:
          return 1
      else:
          return 0
docs: Original doc:
      Display a boolean message box.
      The default is the first choice.
      Returns returns 1 if the first choice is chosen, or if
      the dialog is cancelled (which is interpreted as
      choosing the default).  Otherwise returns 0.