diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-06-20 04:01:47 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-06-20 04:01:47 (GMT) |
commit | 669f4c3850eaaf4e00a79032ef960a79e6ca6ad7 (patch) | |
tree | a73ecd1e7ee6e14687981aec97a356e0b03479fd /Lib/idlelib/PyShell.py | |
parent | 3875e90274e7e14b5c147cd85f2464499f327f31 (diff) | |
download | cpython-669f4c3850eaaf4e00a79032ef960a79e6ca6ad7.zip cpython-669f4c3850eaaf4e00a79032ef960a79e6ca6ad7.tar.gz cpython-669f4c3850eaaf4e00a79032ef960a79e6ca6ad7.tar.bz2 |
1. Debugger Breakpoints, finish implementation
2. Debugger Clear Breakpoints, implement
3. Nice yellow breakpoints for Chui :)
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d84e2e1..f418a57 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -96,10 +96,13 @@ class PyShellEditorWindow(EditorWindow): def __init__(self, *args): apply(EditorWindow.__init__, (self,) + args) self.text.bind("<<set-breakpoint-here>>", self.set_breakpoint_here) + self.text.bind("<<clear-breakpoint-here>>", + self.clear_breakpoint_here) self.text.bind("<<open-python-shell>>", self.flist.open_shell) rmenu_specs = [ - ("Set breakpoint here", "<<set-breakpoint-here>>"), + ("Set Breakpoint", "<<set-breakpoint-here>>"), + ("Clear Breakpoint", "<<clear-breakpoint-here>>") ] def set_breakpoint_here(self, event=None): @@ -108,6 +111,12 @@ class PyShellEditorWindow(EditorWindow): return self.flist.pyshell.interp.debugger.set_breakpoint_here(self) + def clear_breakpoint_here(self, event=None): + if not self.flist.pyshell or not self.flist.pyshell.interp.debugger: + self.text.bell() + return + self.flist.pyshell.interp.debugger.clear_breakpoint_here(self) + class PyShellFileList(FileList): |