summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-25 12:39:12 (GMT)
committerGitHub <noreply@github.com>2018-09-25 12:39:12 (GMT)
commit0b3e1208033aa1eb5452afe9387f86f299ef24e5 (patch)
tree8a5e66c580f7409caf6367c9c10fa9aa1e4ea185 /Lib/idlelib/pyshell.py
parent936d740ac0308fdcb87c11cbe87962d4fe06f5ab (diff)
downloadcpython-0b3e1208033aa1eb5452afe9387f86f299ef24e5.zip
cpython-0b3e1208033aa1eb5452afe9387f86f299ef24e5.tar.gz
cpython-0b3e1208033aa1eb5452afe9387f86f299ef24e5.tar.bz2
bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)
(cherry picked from commit 604e7b9931f9e7881a2941816e538f5f15930db8) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
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