def show_exception_message(self, ex): _cache_dir = Path(app.argv.cache_dir) / 'conjure-up.log' errmsg = str(ex) errmsg += ("\n\n Review log messages at {} " "If appropriate, please submit a bug here: " "https://github.com/conjure-up/conjure-up/issues/new". format(_cache_dir)) async .shutdown() EventLoop.remove_alarms() self.frame.body = ErrorView(errmsg) # ensure error is shown, even if exception was inside urwid EventLoop.redraw_screen() app.log.debug("Showing dialog for exception: {}".format(ex))
def unhandled_input(key): if key in ['q', 'Q']: Shutdown.set() if key in ['R']: EventLoop.redraw_screen()
def unhandled_input(key): if key in ['q', 'Q', 'meta q']: app.ui.quit() if key in ['R']: EventLoop.redraw_screen()