diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2004-08-22 05:14:32 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2004-08-22 05:14:32 (GMT) |
commit | 183403a271977a26c0b77dbcf62e19395c007288 (patch) | |
tree | a999a52ca973e661ac249a934a5358a1cbb83c03 /Lib/idlelib/PyShell.py | |
parent | e594bee5351d6109ca5e6a7dde45e5ddd08ebe48 (diff) | |
download | cpython-183403a271977a26c0b77dbcf62e19395c007288.zip cpython-183403a271977a26c0b77dbcf62e19395c007288.tar.gz cpython-183403a271977a26c0b77dbcf62e19395c007288.tar.bz2 |
1. If user passes a non-existant filename on the commandline, just open
a new file, don't raise a dialog. IDLEfork 954928.
2. Refactor EditorWindow.wakeup() to WindowList.ListedToplevel.wakeup() and
clarify that the Toplevel of an EditorWindow is a WindowList.ListedToplevel.
3. Make a number of improvements to keyboard focus binding. Improve window
raising, especially in the debugger. IDLEfork Bug 763524 (GvR list).
4. Bump idlever to 1.1a3
M Debugger.py
M EditorWindow.py
M FileList.py
M NEWS.txt
M PyShell.py
M WindowList.py
M idlever.py
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 5b920b2..313c95d 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -96,7 +96,7 @@ linecache.checkcache = extended_linecache_checkcache class PyShellEditorWindow(EditorWindow): - "Regular text edit window when a shell is present" + "Regular text edit window in IDLE, supports breakpoints" def __init__(self, *args): self.breakpoints = [] @@ -258,15 +258,17 @@ class PyShellEditorWindow(EditorWindow): class PyShellFileList(FileList): - "Extend base class: file list when a shell is present" + "Extend base class: IDLE supports a shell and breakpoints" + # override FileList's class variable, instances return PyShellEditorWindow + # instead of EditorWindow when new edit windows are created. EditorWindow = PyShellEditorWindow pyshell = None def open_shell(self, event=None): if self.pyshell: - self.pyshell.wakeup() + self.pyshell.top.wakeup() else: self.pyshell = PyShell(self) if self.pyshell: @@ -802,7 +804,6 @@ class PyShell(OutputWindow): text.bind("<<end-of-file>>", self.eof_callback) text.bind("<<open-stack-viewer>>", self.open_stack_viewer) text.bind("<<toggle-debugger>>", self.toggle_debugger) - text.bind("<<open-python-shell>>", self.flist.open_shell) text.bind("<<toggle-jit-stack-viewer>>", self.toggle_jit_stack_viewer) if use_subprocess: text.bind("<<view-restart>>", self.view_restart_mark) |