[Python-checkins] python/dist/src/Tools/idle EditorWindow.py,1.41,1.42 PyShell.py,1.36,1.37 ScriptBinding.py,1.11,1.12
rhettinger@sourceforge.net
rhettinger@sourceforge.net
Tue, 21 May 2002 10:00:22 -0700
Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv32112
Modified Files:
EditorWindow.py PyShell.py ScriptBinding.py
Log Message:
Patch 543222. Disable script bindings in shell window.
Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/EditorWindow.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** EditorWindow.py 14 Apr 2002 10:30:51 -0000 1.41
--- EditorWindow.py 21 May 2002 17:00:19 -0000 1.42
***************
*** 96,99 ****
--- 96,100 ----
vars = {}
+ runnable = False # Shell window cannot Import Module or Run Script
def __init__(self, flist=None, filename=None, key=None, root=None):
Index: PyShell.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/PyShell.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** PyShell.py 4 Apr 2002 22:55:58 -0000 1.36
--- PyShell.py 21 May 2002 17:00:20 -0000 1.37
***************
*** 77,80 ****
--- 77,81 ----
# Regular text edit window when a shell is present
# XXX ought to merge with regular editor window
+ runnable = True # Shell not present, enable Import Module and Run Script
def __init__(self, *args):
Index: ScriptBinding.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/ScriptBinding.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ScriptBinding.py 7 Aug 2001 17:15:36 -0000 1.11
--- ScriptBinding.py 21 May 2002 17:00:20 -0000 1.12
***************
*** 52,55 ****
--- 52,58 ----
def __init__(self, editwin):
+ if not editwin.runnable:
+ self.menudefs = []
+ self.keydefs = {}
self.editwin = editwin
# Provide instance variables referenced by Debugger