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
This commit is contained in:
Kurt B. Kaiser 2002-09-14 02:50:56 +00:00
parent 8c11f7e3bf
commit ee7afca550
1 changed files with 4 additions and 40 deletions

View File

@ -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: