From: Just van Rossum <just@letterror.com>
Date: Mon, 20 Jan 2003 09:02:23 +0000 (+0000)
Subject: Fix bug #670845: cut & clear in the output window now work, in that
X-Git-Tag: v2.3c1~2394
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a503a4ee6551cc7f19ced60121985f3c5116c43;p=python

Fix bug #670845: cut & clear in the output window now work, in that
  - clear clears the entire buffer
  - cut doesn't cut, but copies.
---

diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py
index 9a4a44be09..3fae413987 100644
--- a/Mac/Tools/IDE/PyConsole.py
+++ b/Mac/Tools/IDE/PyConsole.py
@@ -249,6 +249,12 @@ class OutputTextWidget(W.EditText):
 		f.close()
 		fss.SetCreatorType(W._signature, 'TEXT')
 	
+	def domenu_cut(self, *args):
+		self.domenu_copy(*args)
+	
+	def domenu_clear(self, *args):
+		self.set('')
+
 
 class PyOutput: