summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/OutputWindow.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 20:39:14 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 20:39:14 (GMT)
commit5018db76aa433430e1bdb0826086df1c025a1f70 (patch)
tree0d4c426e53eac287d2fa77c54230b8837b4a9bb7 /Lib/idlelib/OutputWindow.py
parent2c184c6d75bb60ec7f8f564a91b4ac55d4796da7 (diff)
downloadcpython-5018db76aa433430e1bdb0826086df1c025a1f70.zip
cpython-5018db76aa433430e1bdb0826086df1c025a1f70.tar.gz
cpython-5018db76aa433430e1bdb0826086df1c025a1f70.tar.bz2
Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
Diffstat (limited to 'Lib/idlelib/OutputWindow.py')
-rw-r--r--Lib/idlelib/OutputWindow.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py
index 60d09c0..e18d846 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/OutputWindow.py
@@ -57,7 +57,11 @@ class OutputWindow(EditorWindow):
# Our own right-button menu
rmenu_specs = [
- ("Go to file/line", "<<goto-file-line>>"),
+ ("Cut", "<<cut>>", "rmenu_check_cut"),
+ ("Copy", "<<copy>>", "rmenu_check_copy"),
+ ("Paste", "<<paste>>", "rmenu_check_paste"),
+ (None, None, None),
+ ("Go to file/line", "<<goto-file-line>>", None),
]
file_line_pats = [