summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-09-14 02:50:56 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-09-14 02:50:56 (GMT)
commitee7afca550f69ace3e20d25b84432f45c246c600 (patch)
tree27ac21c7a0ecc3c7a23a976e378ffce3a3028c1a /Lib
parent8c11f7e3bf6bc184fbdd526cd9221cb443426afa (diff)
downloadcpython-ee7afca550f69ace3e20d25b84432f45c246c600.zip
cpython-ee7afca550f69ace3e20d25b84432f45c246c600.tar.gz
cpython-ee7afca550f69ace3e20d25b84432f45c246c600.tar.bz2
MERGE DS_RPC_BRANCH into MAIN
PyShell.py don't track Py Idle patch 543222 - disable script bindings in shell since it was done differently in MAIN Remove "binding comments" 05 Aug 1.13.2.2 to 1.13.2.3
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py44
1 files changed, 4 insertions, 40 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 9ef2ff7..9c3aa50 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -55,40 +55,6 @@ def linecache_checkcache(orig_checkcache=linecache.checkcache):
cache.update(save)
linecache.checkcache = linecache_checkcache
-
-# Note: <<newline-and-indent>> event is defined in AutoIndent.py
-
-#$ event <<plain-newline-and-indent>>
-#$ win <Control-j>
-#$ unix <Control-j>
-
-#$ event <<beginning-of-line>>
-#$ win <Control-a>
-#$ win <Home>
-#$ unix <Control-a>
-#$ unix <Home>
-
-#$ event <<history-next>>
-#$ win <Alt-n>
-#$ unix <Alt-n>
-
-#$ event <<history-previous>>
-#$ win <Alt-p>
-#$ unix <Alt-p>
-
-#$ event <<interrupt-execution>>
-#$ win <Control-c>
-#$ unix <Control-c>
-
-#$ event <<end-of-file>>
-#$ win <Control-d>
-#$ unix <Control-d>
-
-#$ event <<open-stack-viewer>>
-
-#$ event <<toggle-debugger>>
-
-
class PyShellEditorWindow(EditorWindow):
"Regular text edit window when a shell is present"
# XXX ought to merge with regular editor window
@@ -496,8 +462,7 @@ class PyShell(OutputWindow):
import __builtin__
__builtin__.quit = __builtin__.exit = "To exit, type Ctrl-D."
- self.auto = self.extensions["AutoIndent"] # Required extension
- self.auto.config(usetabs=1, indentwidth=8, context_use_ps1=1)
+ self.config(usetabs=1, indentwidth=8, context_use_ps1=1)
text = self.text
text.configure(wrap="char")
@@ -627,7 +592,6 @@ class PyShell(OutputWindow):
# Break cycles
self.interp = None
self.console = None
- self.auto = None
self.flist.pyshell = None
self.history = None
EditorWindow._close(self)
@@ -736,7 +700,7 @@ class PyShell(OutputWindow):
self.text.insert("insert", "\n")
self.text.see("insert")
else:
- self.auto.auto_indent(event)
+ self.auto_indent(event)
return "break"
def enter_callback(self, event):
@@ -776,7 +740,7 @@ class PyShell(OutputWindow):
# If we're in the current input before its last line,
# insert a newline right at the insert point
if self.text.compare("insert", "<", "end-1c linestart"):
- self.auto.auto_indent(event)
+ self.auto_indent(event)
return "break"
# We're in the last line; append a newline and submit it
self.text.mark_set("insert", "end-1c")
@@ -784,7 +748,7 @@ class PyShell(OutputWindow):
self.text.insert("insert", "\n")
self.text.see("insert")
else:
- self.auto.auto_indent(event)
+ self.auto_indent(event)
self.text.tag_add("stdin", "iomark", "end-1c")
self.text.update_idletasks()
if self.reading: