def examine_breakpoint(w, size, key):
    (bp_entry, pos) = self.bp_list._w.get_focus()
    if (bp_entry is None):
        return
    bp = self._get_bp_list()[pos]
    if (bp.cond is None):
        cond = ''
    else:
        cond = str(bp.cond)
    enabled_checkbox = urwid.CheckBox('Enabled', bp.enabled)
    cond_edit = urwid.Edit([('label', 'Condition:               ')], cond)
    ign_count_edit = urwid.IntEdit([('label', 'Ignore the next N times: ')], bp.ignore)
    lb = urwid.ListBox(urwid.SimpleListWalker([labelled_value('File: ', bp.file), labelled_value('Line: ', bp.line), labelled_value('Hits: ', bp.hits), urwid.Text(''), enabled_checkbox, urwid.AttrMap(cond_edit, 'value', 'value'), urwid.AttrMap(ign_count_edit, 'value', 'value')]))
    result = self.dialog(lb, [('OK', True), ('Cancel', False), None, ('Delete', 'del'), ('Location', 'loc')], title='Edit Breakpoint')
    if (result is True):
        bp.enabled = enabled_checkbox.get_state()
        bp.ignore = int(ign_count_edit.value())
        cond = cond_edit.get_edit_text()
        if cond:
            bp.cond = cond
        else:
            bp.cond = None
    elif (result == 'loc'):
        self.show_line(bp.line, FileSourceCodeProvider(self.debugger, bp.file))
        self.columns.set_focus(0)
    elif (result == 'del'):
        bp_source_identifier = self.source_code_provider.get_source_identifier()
        if (bp_source_identifier is None):
            self.message('Cannot currently delete a breakpoint here--source code does not correspond to a file location. (perhaps this is generated code)')
        if (bp_source_identifier == bp.file):
            self.source[(bp.line - 1)].set_breakpoint(False)
        err = self.debugger.clear_break(bp.file, bp.line)
        if err:
            self.message(('Error clearing breakpoint:\n' + err))
        else:
            self.update_breakpoints()
def examine_breakpoint(w, size, key):
    (bp_entry, pos) = self.bp_list._w.get_focus()
    if (bp_entry is None):
        return
    bp = self._get_bp_list()[pos]
    if (bp.cond is None):
        cond = 
    else:
        cond = str(bp.cond)
    enabled_checkbox = urwid.CheckBox('Enabled', bp.enabled)
    cond_edit = urwid.Edit([('label', 'Condition:               ')], cond)
    ign_count_edit = urwid.IntEdit([('label', 'Ignore the next N times: ')], bp.ignore)
    lb = urwid.ListBox(urwid.SimpleListWalker([labelled_value('File: ', bp.file), labelled_value('Line: ', bp.line), labelled_value('Hits: ', bp.hits), urwid.Text(), enabled_checkbox, urwid.AttrMap(cond_edit, 'value', 'value'), urwid.AttrMap(ign_count_edit, 'value', 'value')]))
    result = self.dialog(lb, [('OK', True), ('Cancel', False), None, ('Delete', 'del'), ('Location', 'loc')], title='Edit Breakpoint')
    if (result is True):
        bp.enabled = enabled_checkbox.get_state()
        bp.ignore = int(ign_count_edit.value())
        cond = cond_edit.get_edit_text()
        if cond:
            bp.cond = cond
        else:
            bp.cond = None
    elif (result == 'loc'):
        self.show_line(bp.line, FileSourceCodeProvider(self.debugger, bp.file))
        self.columns.set_focus(0)
    elif (result == 'del'):
        bp_source_identifier = self.source_code_provider.get_source_identifier()
        if (bp_source_identifier is None):
            self.message('Cannot currently delete a breakpoint here--source code does not correspond to a file location. (perhaps this is generated code)')
        if (bp_source_identifier == bp.file):
            self.source[(bp.line - 1)].set_breakpoint(False)
        err = self.debugger.clear_break(bp.file, bp.line)
        if err:
            self.message(('Error clearing breakpoint:\n' + err))
        else:
            self.update_breakpoints()