From: john.michelsen at gte.net (John Michelsen)
Date: Wed, 7 Apr 1999 10:06:36 -0700
Subject: askyesnocancel in tkMessageBox
References: <199904062020.QAA05784@python.org>  <199904062043.QAA21700@eric.cnri.reston.va.us>
Message-ID: <7eg1g9$nem$1@news-2.news.gte.net>
X-UID: 916                                                  

>- /Fredrik Lundh is responsible for *documenting* Tkinter, but not for
>its maintenance (although he contributed a bunch of support modules).
>The maintenance of Tkinter is strictly my responsibility.  (Not that I
>asked for it. :-)


Could you put the following function in tkMessageBox then?:

def askyesnocancel(title=None, message=None, **options):
    "Ask a question; return yes, no, or cancel"
    return apply(_show, (title, message, WARNING, YESNOCANCEL), options)

I use it in a standard "closing the document" function so that the user can
close
with saving, without saving, or cancel the close.

Thanks,

John








