Changeset 391 for python/trunk/Lib/lib-tk/tkMessageBox.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/lib-tk/tkMessageBox.py
r2 r391 71 71 if message: options["message"] = message 72 72 res = Message(**options).show() 73 # In some Tcl installations, Tcl converts yes/no into a boolean73 # In some Tcl installations, yes/no is converted into a boolean. 74 74 if isinstance(res, bool): 75 if res: return YES 75 if res: 76 return YES 76 77 return NO 77 return res 78 # In others we get a Tcl_Obj. 79 return str(res) 78 80 79 81 def showinfo(title=None, message=None, **options):
Note:
See TracChangeset
for help on using the changeset viewer.