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.

def boolbox(message="Shall I continue?", title="", choices=["Yes", "No"]):
    """
    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.
    """
    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