Kaydet (Commit) b0c670ce authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Convert boolean results back to strings. Fixes #807871.

Will backport to 2.3.
üst 5d52e781
......@@ -72,7 +72,12 @@ def _show(title=None, message=None, icon=None, type=None, **options):
if type: options["type"] = type
if title: options["title"] = title
if message: options["message"] = message
return Message(**options).show()
res = Message(**options).show()
# In some Tcl installations, Tcl converts yes/no into a boolean
if isinstance(res, bool):
if res: return YES
return NO
return res
def showinfo(title=None, message=None, **options):
"Show an info message"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment