Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 24183:1723bcdc1e85 legacy-trunk
1. Prevent Undo before IOmark in PyShell.PyShell
2. Consolidate Undo code in EditorWindow.EditorWindow
3. Remove Formatting and Run menus from PyShell
| author | Kurt B. Kaiser <kbk@shore.net> |
|---|---|
| date | Thu, 11 Jul 2002 04:33:41 +0000 |
| parents | 41468f9353ce |
| children | 0e27b67247da |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Thu Jul 11 01:04:32 2002 +0000 +++ b/Lib/idlelib/PyShell.py Thu Jul 11 04:33:41 2002 +0000 @@ -450,9 +450,15 @@ ColorDelegator = ModifiedColorDelegator UndoDelegator = ModifiedUndoDelegator - # Override menu bar specs - menu_specs = PyShellEditorWindow.menu_specs[:] - menu_specs.insert(len(menu_specs)-3, ("debug", "_Debug")) + # Override menus: Run and Format not desired in shell; add Debug + menu_specs = [ + ("file", "_File"), + ("edit", "_Edit"), + ("debug", "_Debug"), + ("settings", "_Settings"), + ("windows", "_Windows"), + ("help", "_Help"), + ] # New classes from IdleHistory import History @@ -825,6 +831,7 @@ self.console.write(s) self.text.mark_set("insert", "end-1c") self.set_line_and_column() + self.io.reset_undo() def resetoutput(self): source = self.text.get("iomark", "end-1c")
