summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorTal Einat <taleinat+github@gmail.com>2018-09-25 12:10:14 (GMT)
committerGitHub <noreply@github.com>2018-09-25 12:10:14 (GMT)
commit604e7b9931f9e7881a2941816e538f5f15930db8 (patch)
tree393ac360f1d76ab0afc2621c76d6b998e9813c60 /Lib/idlelib/pyshell.py
parent5b3cbcd4a041eeda935dd6d0c75f2d38111ed03d (diff)
downloadcpython-604e7b9931f9e7881a2941816e538f5f15930db8.zip
cpython-604e7b9931f9e7881a2941816e538f5f15930db8.tar.gz
cpython-604e7b9931f9e7881a2941816e538f5f15930db8.tar.bz2
bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 52c11e3..5458c59 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -856,6 +856,10 @@ class PyShell(OutputWindow):
("help", "_Help"),
]
+ # Extend right-click context menu
+ rmenu_specs = OutputWindow.rmenu_specs + [
+ ("Squeeze", "<<squeeze-current-text>>"),
+ ]
# New classes
from idlelib.history import History