[Idle-dev] [ idlefork-Patches-567216 ] shell window binding cleanup
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 10 Jun 2002 21:52:01 -0700
Patches item #567216, was opened at 2002-06-11 14:52
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=309579&aid=567216&group_id=9579
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen M. Gava (elguavas)
Assigned to: Nobody/Anonymous (nobody)
Summary: shell window binding cleanup
Initial Comment:
this is a todo reminder. the following patch was
applied to python idle a while back, something like
this needs to be done in idlfork too but exactly what
will depend on how the shell/output window restructure
is handled:
===========
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
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=309579&aid=567216&group_id=9579