Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7f7d5bf4
Commit
7f7d5bf4
authored
May 21, 2002
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch 543222. Disable script bindings in shell window.
parent
f79f2f94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Tools/idle/EditorWindow.py
Tools/idle/EditorWindow.py
+1
-0
Tools/idle/PyShell.py
Tools/idle/PyShell.py
+1
-0
Tools/idle/ScriptBinding.py
Tools/idle/ScriptBinding.py
+3
-0
No files found.
Tools/idle/EditorWindow.py
View file @
7f7d5bf4
...
...
@@ -95,6 +95,7 @@ class EditorWindow:
about_text
=
about_text
vars
=
{}
runnable
=
False
# Shell window cannot Import Module or Run Script
def
__init__
(
self
,
flist
=
None
,
filename
=
None
,
key
=
None
,
root
=
None
):
edconf
=
idleconf
.
getsection
(
'EditorWindow'
)
...
...
Tools/idle/PyShell.py
View file @
7f7d5bf4
...
...
@@ -76,6 +76,7 @@ class PyShellEditorWindow(EditorWindow):
# 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
):
apply
(
EditorWindow
.
__init__
,
(
self
,)
+
args
)
...
...
Tools/idle/ScriptBinding.py
View file @
7f7d5bf4
...
...
@@ -51,6 +51,9 @@ class ScriptBinding:
]
def
__init__
(
self
,
editwin
):
if
not
editwin
.
runnable
:
self
.
menudefs
=
[]
self
.
keydefs
=
{}
self
.
editwin
=
editwin
# Provide instance variables referenced by Debugger
# XXX This should be done differently
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment