def enable_disable_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]
    bp.enabled = (not bp.enabled)
    sline = self.source[(bp.line - 1)]
    sline.set_breakpoint(bp.enabled)
    self.update_breakpoints()
def enable_disable_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]
    bp.enabled = (not bp.enabled)
    sline = self.source[(bp.line - 1)]
    sline.set_breakpoint(bp.enabled)
    self.update_breakpoints()