aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/OutputWindow.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 22:41:19 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 22:41:19 +0200
commitd183767ca4786c00d84e284ad6c89fa3c154bad2 (patch)
tree440aaee4761275b2cb3f2c169fa21da82377b6a5 /Lib/idlelib/OutputWindow.py
parent5bb420761fc72f9a58461ff2c294c82fe990f0fa (diff)
downloadcpython-d183767ca4786c00d84e284ad6c89fa3c154bad2.tar.gz
cpython-d183767ca4786c00d84e284ad6c89fa3c154bad2.zip
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 cba90139976..745ccd26135 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/OutputWindow.py
@@ -52,7 +52,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 = [