def show_exception_dialog(self, exc_tuple):
    from traceback import format_exception
    desc = "The program has terminated abnormally because of an exception.\n\nA full traceback is below. You may recall this traceback at any time using the 'e' key. The debugger has entered post-mortem mode and will prevent further state changes."
    tb_txt = ''.join(format_exception(*exc_tuple))
    self._show_exception_dialog(description=desc, error_info=tb_txt, title='Program Terminated for Uncaught Exception', exit_loop_on_ok=True)
def show_exception_dialog(self, exc_tuple):
    from traceback import format_exception
    desc = "The program has terminated abnormally because of an exception.\n\nA full traceback is below. You may recall this traceback at any time using the 'e' key. The debugger has entered post-mortem mode and will prevent further state changes."
    tb_txt = .join(format_exception(*exc_tuple))
    self._show_exception_dialog(description=desc, error_info=tb_txt, title='Program Terminated for Uncaught Exception', exit_loop_on_ok=True)