def interaction(self, exc_tuple, show_exc_dialog=True):
    self.current_exc_tuple = exc_tuple
    from pudb import VERSION
    caption = [(None, ('PuDB %s - ?:help  n:next  s:step into  b:breakpoint  !:python command line' % VERSION))]
    if self.debugger.post_mortem:
        if (show_exc_dialog and (exc_tuple is not None)):
            self.show_exception_dialog(exc_tuple)
        caption.extend([(None, ' '), ('warning', '[POST-MORTEM MODE]')])
    elif (exc_tuple is not None):
        caption.extend([(None, ' '), ('warning', "[PROCESSING EXCEPTION - hit 'e' to examine]")])
    self.caption.set_text(caption)
    self.event_loop()
def interaction(self, exc_tuple, show_exc_dialog=True):
    self.current_exc_tuple = exc_tuple
    from pudb import VERSION
    caption = [(None, ('PuDB %s - ?:help  n:next  s:step into  b:breakpoint  !:python command line' % VERSION))]
    if self.debugger.post_mortem:
        if (show_exc_dialog and (exc_tuple is not None)):
            self.show_exception_dialog(exc_tuple)
        caption.extend([(None, ' '), ('warning', '[POST-MORTEM MODE]')])
    elif (exc_tuple is not None):
        caption.extend([(None, ' '), ('warning', "[PROCESSING EXCEPTION - hit 'e' to examine]")])
    self.caption.set_text(caption)
    self.event_loop()