From d183767ca4786c00d84e284ad6c89fa3c154bad2 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 1 Nov 2012 22:41:19 +0200 Subject: Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu Patch by Todd Rovito. --- Lib/idlelib/OutputWindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Lib/idlelib/OutputWindow.py') diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py index cba9013997..745ccd2613 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", "<>"), + ("Cut", "<>", "rmenu_check_cut"), + ("Copy", "<>", "rmenu_check_copy"), + ("Paste", "<>", "rmenu_check_paste"), + (None, None, None), + ("Go to file/line", "<>", None), ] file_line_pats = [ -- cgit v1.2.1