(title=None, message=None, _icon=None, _type=None, **options)
| 69 | |
| 70 | # Rename _icon and _type options to allow overriding them in options |
| 71 | def _show(title=None, message=None, _icon=None, _type=None, **options): |
| 72 | if _icon and "icon" not in options: options["icon"] = _icon |
| 73 | if _type and "type" not in options: options["type"] = _type |
| 74 | if title: options["title"] = title |
| 75 | if message: options["message"] = message |
| 76 | res = Message(**options).show() |
| 77 | # In some Tcl installations, yes/no is converted into a boolean. |
| 78 | if isinstance(res, bool): |
| 79 | if res: |
| 80 | return YES |
| 81 | return NO |
| 82 | # In others we get a Tcl_Obj. |
| 83 | return str(res) |
| 84 | |
| 85 | |
| 86 | def showinfo(title=None, message=None, **options): |
no test coverage detected
searching dependent graphs…