diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-03-16 10:53:02 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-03-16 10:53:02 (GMT) |
commit | e1609b7793e188e3ba527e1e11919ab325335fad (patch) | |
tree | 8272709fd99a63711556abfbee573752ac91ae3b | |
parent | ffb5384ab1c09dc2beae1992d98a82421414406e (diff) | |
download | cpython-e1609b7793e188e3ba527e1e11919ab325335fad.zip cpython-e1609b7793e188e3ba527e1e11919ab325335fad.tar.gz cpython-e1609b7793e188e3ba527e1e11919ab325335fad.tar.bz2 |
Merged revisions 78989 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r78989 | matthias.klose | 2010-03-16 11:51:28 +0100 (Tue, 16 Mar 2010) | 10 lines
Merged revisions 78988 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78988 | matthias.klose | 2010-03-16 11:48:52 +0100 (Tue, 16 Mar 2010) | 3 lines
- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
with Tcl/Tk-8.5.
........
................
-rw-r--r-- | Lib/tkinter/messagebox.py | 8 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/Lib/tkinter/messagebox.py b/Lib/tkinter/messagebox.py index c934956..5c35d5a 100644 --- a/Lib/tkinter/messagebox.py +++ b/Lib/tkinter/messagebox.py @@ -70,11 +70,13 @@ def _show(title=None, message=None, _icon=None, _type=None, **options): if title: options["title"] = title if message: options["message"] = message res = Message(**options).show() - # In some Tcl installations, Tcl converts yes/no into a boolean + # In some Tcl installations, yes/no is converted into a boolean. if isinstance(res, bool): - if res: return YES + if res: + return YES return NO - return res + # In others we get a Tcl_Obj. + return str(res) def showinfo(title=None, message=None, **options): "Show an info message" @@ -17,6 +17,9 @@ Core and Builtins Library ------- +- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox + with Tcl/Tk-8.5. + - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. |