Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/lib-tk/tkMessageBox.py

    r2 r391  
    7171    if message: options["message"] = message
    7272    res = Message(**options).show()
    73     # In some Tcl installations, Tcl converts yes/no into a boolean
     73    # In some Tcl installations, yes/no is converted into a boolean.
    7474    if isinstance(res, bool):
    75         if res: return YES
     75        if res:
     76            return YES
    7677        return NO
    77     return res
     78    # In others we get a Tcl_Obj.
     79    return str(res)
    7880
    7981def showinfo(title=None, message=None, **options):
Note: See TracChangeset for help on using the changeset viewer.