Ask for yes or no and call callback to return the result
(self, q, callback)
| 531 | self.callback = None |
| 532 | |
| 533 | def confirm(self, q, callback): |
| 534 | """Ask for yes or no and call callback to return the result""" |
| 535 | |
| 536 | def callback_wrapper(result): |
| 537 | callback(result.lower() in (_("y"), _("yes"))) |
| 538 | |
| 539 | self.prompt(q, callback_wrapper, single=True) |
| 540 | |
| 541 | def notify(self, s, n=10, wait_for_keypress=False): |
| 542 | return self.statusbar.message(s, n) |